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.AMOUNT;
21 import static org.kuali.ole.sys.OLEPropertyConstants.CHART_OF_ACCOUNTS_CODE;
22 import static org.kuali.ole.sys.OLEPropertyConstants.FINANCIAL_OBJECT_CODE;
23 import static org.kuali.ole.sys.OLEPropertyConstants.FINANCIAL_SUB_OBJECT_CODE;
24 import static org.kuali.ole.sys.OLEPropertyConstants.ORGANIZATION_REFERENCE_ID;
25 import static org.kuali.ole.sys.OLEPropertyConstants.PROJECT_CODE;
26 import static org.kuali.ole.sys.OLEPropertyConstants.REFERENCE_NUMBER;
27 import static org.kuali.ole.sys.OLEPropertyConstants.SUB_ACCOUNT_NUMBER;
28
29 import org.kuali.ole.sys.businessobject.AccountingLineParserBase;
30
31
32
33
34
35
36
37 public class PreEncumbranceDocumentAccountingLineParser extends AccountingLineParserBase {
38 protected static final String[] PE_SOURCE_FORMAT = { CHART_OF_ACCOUNTS_CODE, ACCOUNT_NUMBER, SUB_ACCOUNT_NUMBER, FINANCIAL_OBJECT_CODE, FINANCIAL_SUB_OBJECT_CODE, PROJECT_CODE, ORGANIZATION_REFERENCE_ID, AMOUNT };
39 protected static final String[] PE_TARGET_FORMAT = { CHART_OF_ACCOUNTS_CODE, ACCOUNT_NUMBER, SUB_ACCOUNT_NUMBER, FINANCIAL_OBJECT_CODE, FINANCIAL_SUB_OBJECT_CODE, PROJECT_CODE, ORGANIZATION_REFERENCE_ID, REFERENCE_NUMBER, AMOUNT };
40
41
42
43
44 @Override
45 public String[] getSourceAccountingLineFormat() {
46 return removeChartFromFormatIfNeeded(PE_SOURCE_FORMAT);
47 }
48
49
50
51
52 @Override
53 public String[] getTargetAccountingLineFormat() {
54 return removeChartFromFormatIfNeeded(PE_TARGET_FORMAT);
55 }
56
57 }