BrightSide Workbench Full Report + Source Code
m303/ModelType.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2011 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 package org.turro.financials.treasury.m303;
19 
24 public enum ModelType {
25 
26  INPUT_VAT_NORMAL(10000, "47200%", "6___0%", 1L),
27  INPUT_VAT_INTRACOMMUNITY(11000, "47210%", "6___1%", 1L),
28  INPUT_VAT_EXTRACOMMUNITY(12000, "47220%", "6___2%", 1L),
29  INPUT_VAT_EXEMPT(13000, "47230%", "6___3%", 1L),
30  INPUT_VAT_INVEST_NORMAL(20000, "47201%", "2___0%", 3L),
31  INPUT_VAT_INVEST_INTRACOMMUNITY(21000, "47211%", "2___1%", 3L),
32  INPUT_VAT_INVEST_EXTRACOMMUNITY(22000, "47221%", "2___2%", 3L),
33  INPUT_VAT_INVEST_EXEMPT(23000, "47231%", "2___3%", 3L),
34  OUTPUT_VAT_NORMAL(30000, "47700%", "7___0%", 2L),
35  OUTPUT_VAT_INTRACOMMUNITY(31000, "47710%", "7___1%", 2L),
36  OUTPUT_VAT_EXTRACOMMUNITY(32000, "47720%", "7___2%", 2L),
37  OUTPUT_VAT_EXEMPT(33000, "47730%", "7___3%", 2L);
38 
39  private final int order;
40  private final String vatAccount, opAccount;
41  private final long bookId;
42 
43  private ModelType(int order, String vatAccount, String opAccount, Long bookId) {
44  this.order = order;
45  this.vatAccount = vatAccount;
46  this.opAccount = opAccount;
47  this.bookId = bookId;
48  }
49 
50  public String getOpAccount() {
51  return opAccount;
52  }
53 
54  public long getBookId() {
55  return bookId;
56  }
57 
58  public int getOrder() {
59  return order;
60  }
61 
62  public String getVatAccount() {
63  return vatAccount;
64  }
65 
66  public static String getModel() {
67  return "303";
68  }
69 
70 }