1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.kuali.kfs.module.ld.businessobject;
21
22 import static org.kuali.kfs.sys.KFSPropertyConstants.ACCOUNT_NUMBER;
23 import static org.kuali.kfs.sys.KFSPropertyConstants.CHART_OF_ACCOUNTS_CODE;
24 import static org.kuali.kfs.sys.KFSPropertyConstants.FINANCIAL_OBJECT_CODE;
25 import static org.kuali.kfs.sys.KFSPropertyConstants.FINANCIAL_SUB_OBJECT_CODE;
26 import static org.kuali.kfs.sys.KFSPropertyConstants.ORGANIZATION_REFERENCE_ID;
27 import static org.kuali.kfs.sys.KFSPropertyConstants.POSITION_NUMBER;
28 import static org.kuali.kfs.sys.KFSPropertyConstants.PROJECT_CODE;
29 import static org.kuali.kfs.sys.KFSPropertyConstants.SUB_ACCOUNT_NUMBER;
30
31 import org.kuali.kfs.module.ld.LaborPropertyConstants;
32 import org.kuali.kfs.sys.KFSPropertyConstants;
33 import org.kuali.kfs.sys.businessobject.AccountingLineParserBase;
34
35
36
37
38 public class LaborLedgerAccountingLineParser extends AccountingLineParserBase {
39
40 protected static final String[] LABOR_LEDGER_FORMAT = { CHART_OF_ACCOUNTS_CODE, ACCOUNT_NUMBER, SUB_ACCOUNT_NUMBER, FINANCIAL_OBJECT_CODE, FINANCIAL_SUB_OBJECT_CODE, PROJECT_CODE, ORGANIZATION_REFERENCE_ID, POSITION_NUMBER, LaborPropertyConstants.PAYROLL_END_DATE_FISCAL_YEAR, LaborPropertyConstants.PAYROLL_END_DATE_FISCAL_PERIOD_CODE, LaborPropertyConstants.PAYROLL_TOTAL_HOURS, KFSPropertyConstants.AMOUNT };
41
42
43
44
45 public LaborLedgerAccountingLineParser() {
46 }
47
48
49
50
51
52
53
54 @Override
55 public String[] getSourceAccountingLineFormat() {
56 return removeChartFromFormatIfNeeded(LABOR_LEDGER_FORMAT);
57 }
58
59
60
61
62
63
64
65 @Override
66 public String[] getTargetAccountingLineFormat() {
67 return removeChartFromFormatIfNeeded(LABOR_LEDGER_FORMAT);
68 }
69
70 }