1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.ole.fp.businessobject;
18
19 import static org.kuali.ole.sys.OLEPropertyConstants.ACCOUNT_NUMBER;
20 import static org.kuali.ole.sys.OLEPropertyConstants.BASE_BUDGET_ADJUSTMENT_AMOUNT;
21 import static org.kuali.ole.sys.OLEPropertyConstants.CHART_OF_ACCOUNTS_CODE;
22 import static org.kuali.ole.sys.OLEPropertyConstants.CURRENT_BUDGET_ADJUSTMENT_AMOUNT;
23 import static org.kuali.ole.sys.OLEPropertyConstants.FINANCIAL_DOCUMENT_MONTH_10_LINE_AMOUNT;
24 import static org.kuali.ole.sys.OLEPropertyConstants.FINANCIAL_DOCUMENT_MONTH_11_LINE_AMOUNT;
25 import static org.kuali.ole.sys.OLEPropertyConstants.FINANCIAL_DOCUMENT_MONTH_12_LINE_AMOUNT;
26 import static org.kuali.ole.sys.OLEPropertyConstants.FINANCIAL_DOCUMENT_MONTH_1_LINE_AMOUNT;
27 import static org.kuali.ole.sys.OLEPropertyConstants.FINANCIAL_DOCUMENT_MONTH_2_LINE_AMOUNT;
28 import static org.kuali.ole.sys.OLEPropertyConstants.FINANCIAL_DOCUMENT_MONTH_3_LINE_AMOUNT;
29 import static org.kuali.ole.sys.OLEPropertyConstants.FINANCIAL_DOCUMENT_MONTH_4_LINE_AMOUNT;
30 import static org.kuali.ole.sys.OLEPropertyConstants.FINANCIAL_DOCUMENT_MONTH_5_LINE_AMOUNT;
31 import static org.kuali.ole.sys.OLEPropertyConstants.FINANCIAL_DOCUMENT_MONTH_6_LINE_AMOUNT;
32 import static org.kuali.ole.sys.OLEPropertyConstants.FINANCIAL_DOCUMENT_MONTH_7_LINE_AMOUNT;
33 import static org.kuali.ole.sys.OLEPropertyConstants.FINANCIAL_DOCUMENT_MONTH_8_LINE_AMOUNT;
34 import static org.kuali.ole.sys.OLEPropertyConstants.FINANCIAL_DOCUMENT_MONTH_9_LINE_AMOUNT;
35 import static org.kuali.ole.sys.OLEPropertyConstants.FINANCIAL_OBJECT_CODE;
36 import static org.kuali.ole.sys.OLEPropertyConstants.FINANCIAL_SUB_OBJECT_CODE;
37 import static org.kuali.ole.sys.OLEPropertyConstants.ORGANIZATION_REFERENCE_ID;
38 import static org.kuali.ole.sys.OLEPropertyConstants.PROJECT_CODE;
39 import static org.kuali.ole.sys.OLEPropertyConstants.SUB_ACCOUNT_NUMBER;
40
41 import org.kuali.ole.sys.businessobject.AccountingLineParserBase;
42
43
44
45
46
47 public class BudgetAdjustmentAccountingLineParser extends AccountingLineParserBase {
48 protected static final String[] AD_FORMAT = { CHART_OF_ACCOUNTS_CODE, ACCOUNT_NUMBER, SUB_ACCOUNT_NUMBER, FINANCIAL_OBJECT_CODE, FINANCIAL_SUB_OBJECT_CODE, PROJECT_CODE, ORGANIZATION_REFERENCE_ID, CURRENT_BUDGET_ADJUSTMENT_AMOUNT, BASE_BUDGET_ADJUSTMENT_AMOUNT, FINANCIAL_DOCUMENT_MONTH_1_LINE_AMOUNT, FINANCIAL_DOCUMENT_MONTH_2_LINE_AMOUNT, FINANCIAL_DOCUMENT_MONTH_3_LINE_AMOUNT, FINANCIAL_DOCUMENT_MONTH_4_LINE_AMOUNT, FINANCIAL_DOCUMENT_MONTH_5_LINE_AMOUNT, FINANCIAL_DOCUMENT_MONTH_6_LINE_AMOUNT, FINANCIAL_DOCUMENT_MONTH_7_LINE_AMOUNT, FINANCIAL_DOCUMENT_MONTH_8_LINE_AMOUNT, FINANCIAL_DOCUMENT_MONTH_9_LINE_AMOUNT, FINANCIAL_DOCUMENT_MONTH_10_LINE_AMOUNT, FINANCIAL_DOCUMENT_MONTH_11_LINE_AMOUNT, FINANCIAL_DOCUMENT_MONTH_12_LINE_AMOUNT };
49
50
51
52
53 public BudgetAdjustmentAccountingLineParser() {
54 super();
55 }
56
57
58
59
60 @Override
61 public String[] getSourceAccountingLineFormat() {
62 return removeChartFromFormatIfNeeded(AD_FORMAT);
63 }
64
65
66
67
68 @Override
69 public String[] getTargetAccountingLineFormat() {
70 return removeChartFromFormatIfNeeded(AD_FORMAT);
71 }
72 }