1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.module.purap.businessobject;
17
18 import org.kuali.ole.sys.OLEConstants;
19 import org.kuali.ole.sys.businessobject.FinancialSystemDocumentHeader;
20 import org.kuali.rice.core.web.format.CurrencyFormatter;
21 import org.kuali.rice.core.web.format.DateFormatter;
22 import org.kuali.rice.krad.bo.Note;
23
24 import java.sql.Timestamp;
25 import java.util.List;
26
27
28
29
30
31 public class CreditMemoView extends AbstractRelatedView {
32 private String creditMemoNumber;
33 private Integer paymentRequestIdentifier;
34 private Integer purchaseOrderIdentifier;
35 private boolean creditHoldIndicator;
36 private String vendorCustomerNumber;
37 private Timestamp accountsPayableApprovalTimestamp;
38 private Timestamp creditMemoExtractedTimestamp;
39 private Timestamp creditMemoPaidTimestamp;
40 private String vendorName;
41
42
43 private FinancialSystemDocumentHeader documentHeader;
44
45
46
47 public Object getTotalAmount() {
48 return (new CurrencyFormatter()).format(documentHeader.getFinancialDocumentTotalAmount());
49 }
50
51 public Object getAccountsPayableApprovalTimestamp() {
52 return (new DateFormatter()).format(accountsPayableApprovalTimestamp);
53 }
54
55 public void setAccountsPayableApprovalTimestamp(Timestamp accountsPayableApprovalTimestamp) {
56 this.accountsPayableApprovalTimestamp = accountsPayableApprovalTimestamp;
57 }
58
59 public boolean isCreditHoldIndicator() {
60 return creditHoldIndicator;
61 }
62
63 public void setCreditHoldIndicator(boolean creditHoldIndicator) {
64 this.creditHoldIndicator = creditHoldIndicator;
65 }
66
67 public Timestamp getCreditMemoExtractedTimestamp() {
68 return creditMemoExtractedTimestamp;
69 }
70
71 public void setCreditMemoExtractedTimestamp(Timestamp creditMemoExtractedTimestamp) {
72 this.creditMemoExtractedTimestamp = creditMemoExtractedTimestamp;
73 }
74
75 public String getCreditMemoNumber() {
76 return creditMemoNumber;
77 }
78
79 public void setCreditMemoNumber(String creditMemoNumber) {
80 this.creditMemoNumber = creditMemoNumber;
81 }
82
83 public Timestamp getCreditMemoPaidTimestamp() {
84 return creditMemoPaidTimestamp;
85 }
86
87 public void setCreditMemoPaidTimestamp(Timestamp creditMemoPaidTimestamp) {
88 this.creditMemoPaidTimestamp = creditMemoPaidTimestamp;
89 }
90
91 public Integer getPaymentRequestIdentifier() {
92 return paymentRequestIdentifier;
93 }
94
95 public void setPaymentRequestIdentifier(Integer paymentRequestIdentifier) {
96 this.paymentRequestIdentifier = paymentRequestIdentifier;
97 }
98
99 public Integer getPurchaseOrderIdentifier() {
100 return purchaseOrderIdentifier;
101 }
102
103 public void setPurchaseOrderIdentifier(Integer purchaseOrderIdentifier) {
104 this.purchaseOrderIdentifier = purchaseOrderIdentifier;
105 }
106
107 public String getVendorCustomerNumber() {
108 return vendorCustomerNumber;
109 }
110
111 public void setVendorCustomerNumber(String vendorCustomerNumber) {
112 this.vendorCustomerNumber = vendorCustomerNumber;
113 }
114
115 public String getVendorName() {
116 return vendorName;
117 }
118
119 public void setVendorName(String vendorName) {
120 this.vendorName = vendorName;
121 }
122
123
124
125
126 public String getDocumentType() {
127 return OLEConstants.FinancialDocumentTypeCodes.VENDOR_CREDIT_MEMO;
128 }
129
130
131
132
133
134 @Override
135 public Integer getPurapDocumentIdentifier() {
136 return super.getPurapDocumentIdentifier();
137 }
138
139 @Override
140 public String getDocumentIdentifierString() {
141 return super.getDocumentIdentifierString();
142 }
143
144 @Override
145 public List<Note> getNotes() {
146 return super.getNotes();
147 }
148
149 @Override
150 public String getUrl() {
151 return super.getUrl();
152 }
153
154
155
156
157 @Override
158 public String getDocumentTypeName() {
159 return OLEConstants.FinancialDocumentTypeCodes.VENDOR_CREDIT_MEMO;
160 }
161 }