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.PurchasingAccountsPayableDocument;
23  import org.kuali.ole.select.businessobject.*;
24  import org.kuali.ole.vnd.businessobject.VendorDetail;
25  
26  import java.math.BigDecimal;
27  import java.util.Map;
28  
29  public interface OlePurapService {
30  
31  
32      public BigDecimal calculateDiscount(OleRequisitionItem oleRequisition);
33  
34      public BigDecimal calculateDiscount(OlePurchaseOrderItem olePurchaseOrder);
35  
36      public OleRequisitionItem calculateForeignCurrency(OleRequisitionItem item);
37  
38      public OlePurchaseOrderItem calculateForeignCurrency(OlePurchaseOrderItem item);
39  
40      public BigDecimal calculateDiscount(OlePaymentRequestItem olePaymentRequestOrder);
41  
42      public OlePaymentRequestItem calculateForeignCurrency(OlePaymentRequestItem item);
43  
44      public BigDecimal calculateDiscount(OleInvoiceItem oleInvoiceOrder);
45  
46      public OleInvoiceItem calculateForeignCurrency(OleInvoiceItem item);
47  
48      public String getOperatorInitials();
49  
50      public OleCreditMemoItem calculateForeignCurrency(OleCreditMemoItem item);
51  
52      public void getInitialCollapseSections(PurchasingAccountsPayableDocument document);
53  
54      public String getPatronName(String patronId);
55  
56      public void setBibMarcRecord(BibMarcRecord bibMarcRecord,BibInfoBean bibInfoBean);
57  
58      public void setInvoiceDocumentsForRequisition(PurApItem purApItem);
59  
60      public void setInvoiceDocumentsForPO(PurApItem purApItem);
61  
62      public Integer getRequestorTypeId(String requestorType);
63  
64      public void setClaimDateForReq(OleRequisitionItem oleRequisitionItem,VendorDetail vendorDetail);
65  
66      public void setClaimDateForPO(OlePurchaseOrderItem olePurchaseOrderItem,VendorDetail vendorDetail);
67  
68      public String getItemDescription(Bib bib);
69  
70      public PurchaseOrderType getPurchaseOrderType(BigDecimal purchaseOrderTypeId);
71  
72      public String getParameter(String name);
73  
74      public String getCurrentDateTime();
75  
76      public String setDocumentDescription(String description,Map descMap);
77  
78      public String getItemDescription(OlePurchaseOrderItem olePurchaseOrderItem);
79  
80  }