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 NonCheckDisbursementDocumentAccountingLineParser extends AccountingLineParserBase {
42 protected static final String[] NCD_FORMAT = { CHART_OF_ACCOUNTS_CODE, ACCOUNT_NUMBER, SUB_ACCOUNT_NUMBER, FINANCIAL_OBJECT_CODE, FINANCIAL_SUB_OBJECT_CODE, PROJECT_CODE, ORGANIZATION_REFERENCE_ID, REFERENCE_NUMBER, FINANCIAL_DOCUMENT_LINE_DESCRIPTION, AMOUNT };
43
44
45
46
47 @Override
48 public String[] getSourceAccountingLineFormat() {
49 return removeChartFromFormatIfNeeded(NCD_FORMAT);
50 }
51
52
53
54
55 @Override
56 public String[] getTargetAccountingLineFormat() {
57 return removeChartFromFormatIfNeeded(NCD_FORMAT);
58 }
59
60 }