View Javadoc
1   package org.kuali.ole.select.document.krad;
2   
3   import java.math.BigDecimal;
4   import java.util.List;
5   
6   import org.kuali.ole.module.purap.businessobject.InvoiceAccount;
7   import org.kuali.ole.select.businessobject.OlePurchaseOrderAccount;
8   import org.kuali.rice.krad.uif.element.Action;
9   import org.kuali.rice.krad.uif.widget.QuickFinder;
10  
11  public class OleInvoiceAccountingLine {
12  
13  	private String lineId;
14  	private String bindPath;
15  
16  	private String chartOfAccountsCode;
17  	private String accountNumber;
18  	private String subAccountNumber;
19  	private String financialObjectCode;
20  	private String financialSubObjectCode;
21  	private String projectCode;
22  	private String orgRefId;
23  	private BigDecimal amount;
24  	private BigDecimal percent;
25  
26  	private QuickFinder accountNumberQuickfinder;
27  	private QuickFinder subAccountNumberQuickfinder;
28  	private QuickFinder financialObjectCodeQuickfinder;
29  	private QuickFinder financialSubObjectCodeQuickfinder;
30  	private QuickFinder projectCodeQuickfinder;
31  	private List<Action> actions;
32  
33  	public String getLineId() {
34  		return lineId;
35  	}
36  
37  	public void setLineId(String lineId) {
38  		this.lineId = lineId;
39  	}
40  
41  	public String getBindPath() {
42  		return bindPath;
43  	}
44  
45  	public void setBindPath(String bindPath) {
46  		this.bindPath = bindPath;
47  	}
48  
49  	public void setPoAccount(OlePurchaseOrderAccount poAccount) {
50  		chartOfAccountsCode = poAccount.getChartOfAccountsCode();
51  		accountNumber = poAccount.getAccountNumber();
52  		subAccountNumber = poAccount.getSubAccountNumber();
53  		financialObjectCode = poAccount.getFinancialObjectCode();
54  		financialSubObjectCode = poAccount.getFinancialSubObjectCode();
55  		projectCode = poAccount.getProjectCode();
56  		orgRefId = poAccount.getOrganizationReferenceId();
57  		amount = poAccount.getAmount() == null ? null : poAccount.getAmount()
58  				.bigDecimalValue();
59  		percent = poAccount.getAccountLinePercent();
60  	}
61  
62  	public void setInvoiceAccount(InvoiceAccount invAccount) {
63  		chartOfAccountsCode = invAccount.getChartOfAccountsCode();
64  		accountNumber = invAccount.getAccountNumber();
65  		subAccountNumber = invAccount.getSubAccountNumber();
66  		financialObjectCode = invAccount.getFinancialObjectCode();
67  		financialSubObjectCode = invAccount.getFinancialSubObjectCode();
68  		projectCode = invAccount.getProjectCode();
69  		orgRefId = invAccount.getOrganizationReferenceId();
70  		amount = invAccount.getAmount() == null ? null : invAccount.getAmount()
71  				.bigDecimalValue();
72  		percent = invAccount.getAccountLinePercent();
73  	}
74  
75  	public String getChartOfAccountsCode() {
76  		return chartOfAccountsCode;
77  	}
78  
79  	public String getAccountNumber() {
80  		return accountNumber;
81  	}
82  
83  	public String getSubAccountNumber() {
84  		return subAccountNumber;
85  	}
86  
87  	public String getFinancialObjectCode() {
88  		return financialObjectCode;
89  	}
90  
91  	public String getFinancialSubObjectCode() {
92  		return financialSubObjectCode;
93  	}
94  
95  	public String getProjectCode() {
96  		return projectCode;
97  	}
98  
99  	public String getOrgRefId() {
100 		return orgRefId;
101 	}
102 
103 	public BigDecimal getAmount() {
104 		return amount;
105 	}
106 
107 	public BigDecimal getPercent() {
108 		return percent;
109 	}
110 
111 	public QuickFinder getAccountNumberQuickfinder() {
112 		return accountNumberQuickfinder;
113 	}
114 
115 	public void setAccountNumberQuickfinder(QuickFinder accountNumberQuickfinder) {
116 		this.accountNumberQuickfinder = accountNumberQuickfinder;
117 	}
118 
119 	public QuickFinder getSubAccountNumberQuickfinder() {
120 		return subAccountNumberQuickfinder;
121 	}
122 
123 	public void setSubAccountNumberQuickfinder(
124 			QuickFinder subAccountNumberQuickfinder) {
125 		this.subAccountNumberQuickfinder = subAccountNumberQuickfinder;
126 	}
127 
128 	public QuickFinder getFinancialObjectCodeQuickfinder() {
129 		return financialObjectCodeQuickfinder;
130 	}
131 
132 	public void setFinancialObjectCodeQuickfinder(
133 			QuickFinder financialObjectCodeQuickfinder) {
134 		this.financialObjectCodeQuickfinder = financialObjectCodeQuickfinder;
135 	}
136 
137 	public QuickFinder getFinancialSubObjectCodeQuickfinder() {
138 		return financialSubObjectCodeQuickfinder;
139 	}
140 
141 	public void setFinancialSubObjectCodeQuickfinder(
142 			QuickFinder financialSubObjectCodeQuickfinder) {
143 		this.financialSubObjectCodeQuickfinder = financialSubObjectCodeQuickfinder;
144 	}
145 
146 	public QuickFinder getProjectCodeQuickfinder() {
147 		return projectCodeQuickfinder;
148 	}
149 
150 	public void setProjectCodeQuickfinder(QuickFinder projectCodeQuickfinder) {
151 		this.projectCodeQuickfinder = projectCodeQuickfinder;
152 	}
153 
154 	public List<Action> getActions() {
155 		return actions;
156 	}
157 
158 	public void setActions(List<Action> actions) {
159 		this.actions = actions;
160 	}
161 
162 	@Override
163 	public String toString() {
164 		return "OleInvoicePOAccountingLine [lineId=" + lineId + ", bindPath="
165 				+ bindPath + ", chartOfAccountsCode=" + chartOfAccountsCode
166 				+ ", accountNumber=" + accountNumber + ", subAccountNumber="
167 				+ subAccountNumber + ", financialObjectCode="
168 				+ financialObjectCode + ", financialSubObjectCode="
169 				+ financialSubObjectCode + ", projectCode=" + projectCode
170 				+ ", orgRefId=" + orgRefId + ", amount=" + amount
171 				+ ", percent=" + percent + "]";
172 	}
173 
174 }
175