View Javadoc
1   package org.kuali.ole.select.document;
2   
3   import org.apache.commons.lang3.StringUtils;
4   import org.kuali.ole.select.bo.OLEEResourceInvoiceAccountingLine;
5   import org.kuali.ole.sys.OLEConstants;
6   import org.kuali.rice.core.api.config.property.ConfigContext;
7   import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
8   
9   import java.sql.Date;
10  import java.util.ArrayList;
11  import java.util.List;
12  
13  /**
14   * Created with IntelliJ IDEA.
15   * User: srinivasane
16   * Date: 6/24/13
17   * Time: 8:17 PM
18   * To change this template use File | Settings | File Templates.
19   */
20  public class OLEEResourceInvoices extends PersistableBusinessObjectBase {
21      private String oleEResInvoiceId;
22      private String oleERSIdentifier;
23      private Integer oleInvoiceItemId;
24      private String invoiceId;
25      private Integer purchaseOrderId;
26      private String invoiceNumber;
27      private Date invoiceDate;
28      private String vendorName;
29      private String invoicedAmount;
30      private Date paidDate;
31      private String invoiceNote;
32      /*private String fundCode;*/
33      private Date checkClearedDate;
34      private String checkNumber;
35      private String invoiceStatus;
36      private String holdingsId;
37      private OLEEResourceRecordDocument oleERSDocument;
38      private OLEEResourcePO oleEResPO;
39      private String redirectUrl;
40      private List<OLEEResourceInvoiceAccountingLine> accountingLines = new ArrayList<>();
41  
42      public String getOleEResInvoiceId() {
43          return oleEResInvoiceId;
44      }
45  
46      public void setOleEResInvoiceId(String oleEResInvoiceId) {
47          this.oleEResInvoiceId = oleEResInvoiceId;
48      }
49  
50      public String getOleERSIdentifier() {
51          return oleERSIdentifier;
52      }
53  
54      public void setOleERSIdentifier(String oleERSIdentifier) {
55          this.oleERSIdentifier = oleERSIdentifier;
56      }
57  
58      public Integer getOleInvoiceItemId() {
59          return oleInvoiceItemId;
60      }
61  
62      public void setOleInvoiceItemId(Integer oleInvoiceItemId) {
63          this.oleInvoiceItemId = oleInvoiceItemId;
64      }
65  
66      public String getInvoiceId() {
67          return invoiceId;
68      }
69  
70      public void setInvoiceId(String invoiceId) {
71          this.invoiceId = invoiceId;
72      }
73  
74      public Integer getPurchaseOrderId() {
75          return purchaseOrderId;
76      }
77  
78      public void setPurchaseOrderId(Integer purchaseOrderId) {
79          this.purchaseOrderId = purchaseOrderId;
80      }
81  
82      public String getInvoiceNumber() {
83          return invoiceNumber;
84      }
85  
86      public void setInvoiceNumber(String invoiceNumber) {
87          this.invoiceNumber = invoiceNumber;
88      }
89  
90      public Date getInvoiceDate() {
91          return invoiceDate;
92      }
93  
94      public void setInvoiceDate(Date invoiceDate) {
95          this.invoiceDate = invoiceDate;
96      }
97  
98      public String getVendorName() {
99          return vendorName;
100     }
101 
102     public void setVendorName(String vendorName) {
103         this.vendorName = vendorName;
104     }
105 
106     public String getInvoicedAmount() {
107         return invoicedAmount;
108     }
109 
110     public void setInvoicedAmount(String invoicedAmount) {
111         this.invoicedAmount = invoicedAmount;
112     }
113 
114     public Date getPaidDate() {
115         return paidDate;
116     }
117 
118     public void setPaidDate(Date paidDate) {
119         this.paidDate = paidDate;
120     }
121 
122     public String getInvoiceNote() {
123         return invoiceNote;
124     }
125 
126     public void setInvoiceNote(String invoiceNote) {
127         this.invoiceNote = invoiceNote;
128     }
129 
130     /*public String getFundCode() {
131         return fundCode;
132     }
133 
134     public void setFundCode(String fundCode) {
135         this.fundCode = fundCode;
136     }*/
137 
138     public Date getCheckClearedDate() {
139         return checkClearedDate;
140     }
141 
142     public void setCheckClearedDate(Date checkClearedDate) {
143         this.checkClearedDate = checkClearedDate;
144     }
145 
146     public String getCheckNumber() {
147         return checkNumber;
148     }
149 
150     public void setCheckNumber(String checkNumber) {
151         this.checkNumber = checkNumber;
152     }
153 
154     public String getInvoiceStatus() {
155         return invoiceStatus;
156     }
157 
158     public void setInvoiceStatus(String invoiceStatus) {
159         this.invoiceStatus = invoiceStatus;
160     }
161 
162     public String getHoldingsId() {
163         return holdingsId;
164     }
165 
166     public void setHoldingsId(String holdingsId) {
167         this.holdingsId = holdingsId;
168     }
169 
170     public OLEEResourceRecordDocument getOleERSDocument() {
171         return oleERSDocument;
172     }
173 
174     public void setOleERSDocument(OLEEResourceRecordDocument oleERSDocument) {
175         this.oleERSDocument = oleERSDocument;
176     }
177 
178     public OLEEResourcePO getOleEResPO() {
179         return oleEResPO;
180     }
181 
182     public void setOleEResPO(OLEEResourcePO oleEResPO) {
183         this.oleEResPO = oleEResPO;
184     }
185 
186     public String getRedirectUrl() {
187         String invoiceDocumentNumber = this.getInvoiceNumber();
188         if (StringUtils.isNotBlank(invoiceDocumentNumber)) {
189             redirectUrl = ConfigContext.getCurrentContextConfig().getProperty("kew.url") + OLEConstants.PO_LINE_ITEM_URL + invoiceDocumentNumber;
190         }
191         return redirectUrl;
192     }
193 
194     public void setRedirectUrl(String redirectUrl) {
195         this.redirectUrl = redirectUrl;
196     }
197 
198     public List<OLEEResourceInvoiceAccountingLine> getAccountingLines() {
199         return accountingLines;
200     }
201 
202     public void setAccountingLines(List<OLEEResourceInvoiceAccountingLine> accountingLines) {
203         this.accountingLines = accountingLines;
204     }
205 }