View Javadoc
1   /*
2    * Copyright 2011 The Kuali Foundation.
3    * 
4    * Licensed under the Educational Community License, Version 1.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl1.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.ole.module.purap.document.service;
17  
18  import org.kuali.ole.docstore.common.document.Bib;
19  import org.kuali.ole.docstore.common.document.content.bib.marc.BibMarcRecord;
20  import org.kuali.ole.module.purap.businessobject.PurApItem;
21  import org.kuali.ole.module.purap.businessobject.PurchaseOrderType;
22  import org.kuali.ole.module.purap.document.PurchaseOrderDocument;
23  import org.kuali.ole.module.purap.document.PurchasingAccountsPayableDocument;
24  import org.kuali.ole.select.businessobject.*;
25  import org.kuali.ole.vnd.businessobject.VendorDetail;
26  
27  import java.math.BigDecimal;
28  import java.util.Map;
29  
30  public interface OlePurapService {
31  
32  
33      public BigDecimal calculateDiscount(OleRequisitionItem oleRequisition);
34  
35      public BigDecimal calculateDiscount(OlePurchaseOrderItem olePurchaseOrder);
36  
37      public OleRequisitionItem calculateForeignCurrency(OleRequisitionItem item);
38  
39      public OlePurchaseOrderItem calculateForeignCurrency(OlePurchaseOrderItem item);
40  
41      public BigDecimal calculateDiscount(OlePaymentRequestItem olePaymentRequestOrder);
42  
43      public OlePaymentRequestItem calculateForeignCurrency(OlePaymentRequestItem item);
44  
45      public BigDecimal calculateDiscount(OleInvoiceItem oleInvoiceOrder);
46  
47      public OleInvoiceItem calculateForeignCurrency(OleInvoiceItem item);
48  
49      public String getOperatorInitials();
50  
51      public OleCreditMemoItem calculateForeignCurrency(OleCreditMemoItem item);
52  
53      public void getInitialCollapseSections(PurchasingAccountsPayableDocument document);
54  
55      public String getPatronName(String patronId);
56  
57      public void setBibMarcRecord(BibMarcRecord bibMarcRecord,BibInfoBean bibInfoBean);
58  
59      public void setInvoiceDocumentsForRequisition(PurApItem purApItem);
60  
61      public void setInvoiceDocumentsForPO(PurApItem purApItem);
62  
63      public void setInvoiceDocumentsForPO(PurchaseOrderDocument purchaseOrderDocument,PurApItem purApItem);
64  
65      public Integer getRequestorTypeId(String requestorType);
66  
67      public void setClaimDateForReq(OleRequisitionItem oleRequisitionItem,VendorDetail vendorDetail);
68  
69      public void setClaimDateForPO(OlePurchaseOrderItem olePurchaseOrderItem,VendorDetail vendorDetail);
70  
71      public String getItemDescription(Bib bib);
72  
73      public PurchaseOrderType getPurchaseOrderType(BigDecimal purchaseOrderTypeId);
74  
75      public String getParameter(String name);
76  
77      public String getCurrentDateTime();
78  
79      public String setDocumentDescription(String description,Map descMap);
80  
81      public String getItemDescription(OlePurchaseOrderItem olePurchaseOrderItem);
82  
83  }