001/* 002 * Copyright 2011 The Kuali Foundation. 003 * 004 * Licensed under the Educational Community License, Version 1.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl1.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.ole.module.purap.document.service; 017 018import org.kuali.ole.docstore.common.document.Bib; 019import org.kuali.ole.docstore.common.document.content.bib.marc.BibMarcRecord; 020import org.kuali.ole.module.purap.businessobject.PurApItem; 021import org.kuali.ole.module.purap.businessobject.PurchaseOrderType; 022import org.kuali.ole.module.purap.document.PurchaseOrderDocument; 023import org.kuali.ole.module.purap.document.PurchasingAccountsPayableDocument; 024import org.kuali.ole.select.businessobject.*; 025import org.kuali.ole.vnd.businessobject.VendorDetail; 026 027import java.math.BigDecimal; 028import java.util.Map; 029 030public interface OlePurapService { 031 032 033 public BigDecimal calculateDiscount(OleRequisitionItem oleRequisition); 034 035 public BigDecimal calculateDiscount(OlePurchaseOrderItem olePurchaseOrder); 036 037 public OleRequisitionItem calculateForeignCurrency(OleRequisitionItem item); 038 039 public OlePurchaseOrderItem calculateForeignCurrency(OlePurchaseOrderItem item); 040 041 public BigDecimal calculateDiscount(OlePaymentRequestItem olePaymentRequestOrder); 042 043 public OlePaymentRequestItem calculateForeignCurrency(OlePaymentRequestItem item); 044 045 public BigDecimal calculateDiscount(OleInvoiceItem oleInvoiceOrder); 046 047 public OleInvoiceItem calculateForeignCurrency(OleInvoiceItem item); 048 049 public String getOperatorInitials(); 050 051 public OleCreditMemoItem calculateForeignCurrency(OleCreditMemoItem item); 052 053 public void getInitialCollapseSections(PurchasingAccountsPayableDocument document); 054 055 public String getPatronName(String patronId); 056 057 public void setBibMarcRecord(BibMarcRecord bibMarcRecord,BibInfoBean bibInfoBean); 058 059 public void setInvoiceDocumentsForRequisition(PurApItem purApItem); 060 061 public void setInvoiceDocumentsForPO(PurApItem purApItem); 062 063 public void setInvoiceDocumentsForPO(PurchaseOrderDocument purchaseOrderDocument,PurApItem purApItem); 064 065 public Integer getRequestorTypeId(String requestorType); 066 067 public void setClaimDateForReq(OleRequisitionItem oleRequisitionItem,VendorDetail vendorDetail); 068 069 public void setClaimDateForPO(OlePurchaseOrderItem olePurchaseOrderItem,VendorDetail vendorDetail); 070 071 public String getItemDescription(Bib bib); 072 073 public PurchaseOrderType getPurchaseOrderType(BigDecimal purchaseOrderTypeId); 074 075 public String getParameter(String name); 076 077 public String getCurrentDateTime(); 078 079 public String setDocumentDescription(String description,Map descMap); 080 081 public String getItemDescription(OlePurchaseOrderItem olePurchaseOrderItem); 082 083}