1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.kuali.kfs.fp.businessobject;
21
22 import static org.kuali.kfs.sys.KFSPropertyConstants.ACCOUNT_NUMBER;
23 import static org.kuali.kfs.sys.KFSPropertyConstants.AMOUNT;
24 import static org.kuali.kfs.sys.KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE;
25 import static org.kuali.kfs.sys.KFSPropertyConstants.FINANCIAL_DOCUMENT_LINE_DESCRIPTION;
26 import static org.kuali.kfs.sys.KFSPropertyConstants.FINANCIAL_OBJECT_CODE;
27 import static org.kuali.kfs.sys.KFSPropertyConstants.FINANCIAL_SUB_OBJECT_CODE;
28 import static org.kuali.kfs.sys.KFSPropertyConstants.ORGANIZATION_REFERENCE_ID;
29 import static org.kuali.kfs.sys.KFSPropertyConstants.PROJECT_CODE;
30 import static org.kuali.kfs.sys.KFSPropertyConstants.REFERENCE_NUMBER;
31 import static org.kuali.kfs.sys.KFSPropertyConstants.SUB_ACCOUNT_NUMBER;
32
33 import org.kuali.kfs.sys.businessobject.AccountingLineParserBase;
34
35
36
37
38
39
40
41 public class PreEncumbranceDocumentAccountingLineParser extends AccountingLineParserBase {
42 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, FINANCIAL_DOCUMENT_LINE_DESCRIPTION, AMOUNT };
43 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 };
44
45
46
47
48 @Override
49 public String[] getSourceAccountingLineFormat() {
50 return removeChartFromFormatIfNeeded(PE_SOURCE_FORMAT);
51 }
52
53
54
55
56 @Override
57 public String[] getTargetAccountingLineFormat() {
58 return removeChartFromFormatIfNeeded(PE_TARGET_FORMAT);
59 }
60
61 }