View Javadoc
1   /*
2    * Copyright 2007 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.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/ecl2.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.businessobject;
17  
18  import org.apache.ojb.broker.PersistenceBrokerAware;
19  import org.kuali.ole.integration.purap.ExternalPurApItem;
20  import org.kuali.ole.module.purap.document.PurchasingAccountsPayableDocument;
21  import org.kuali.rice.core.api.util.type.KualiDecimal;
22  import org.kuali.rice.krad.bo.PersistableBusinessObject;
23  
24  import java.math.BigDecimal;
25  import java.util.List;
26  
27  /**
28   * Purap Item Business Object.
29   */
30  public interface PurApItem extends PersistableBusinessObject, PersistenceBrokerAware, PurapEnterableItem, ExternalPurApItem {
31  
32      public abstract Integer getItemIdentifier();
33  
34      public abstract void setItemIdentifier(Integer ItemIdentifier);
35  
36      public abstract Integer getItemLineNumber();
37  
38      public abstract void setItemLineNumber(Integer itemLineNumber);
39  
40      public abstract String getItemUnitOfMeasureCode();
41  
42      public abstract void setItemUnitOfMeasureCode(String itemUnitOfMeasureCode);
43  
44      public abstract String getItemCatalogNumber();
45  
46      public abstract void setItemCatalogNumber(String itemCatalogNumber);
47  
48      public abstract String getItemDescription();
49  
50      public abstract void setItemDescription(String itemDescription);
51  
52      public abstract BigDecimal getItemUnitPrice();
53  
54      public abstract void setItemUnitPrice(BigDecimal itemUnitPrice);
55  
56      public abstract String getItemTypeCode();
57  
58      public abstract void setItemTypeCode(String itemTypeCode);
59  
60      public abstract String getItemAuxiliaryPartIdentifier();
61  
62      public abstract void setItemAuxiliaryPartIdentifier(String itemAuxiliaryPartIdentifier);
63  
64      public abstract String getExternalOrganizationB2bProductReferenceNumber();
65  
66      public abstract void setExternalOrganizationB2bProductReferenceNumber(String externalOrganizationB2bProductReferenceNumber);
67  
68      public abstract String getExternalOrganizationB2bProductTypeName();
69  
70      public abstract void setExternalOrganizationB2bProductTypeName(String externalOrganizationB2bProductTypeName);
71  
72      public abstract boolean getItemAssignedToTradeInIndicator();
73  
74      public abstract void setItemAssignedToTradeInIndicator(boolean itemAssignedToTradeInIndicator);
75  
76      public abstract ItemType getItemType();
77  
78      /**
79       * Sets the itemType attribute.
80       *
81       * @param itemType The itemType to set.
82       * @deprecated
83       */
84      public abstract void setItemType(ItemType itemType);
85  
86      /**
87       * This method resets the transient new account method
88       */
89      public void resetAccount();
90  
91      public void resetAccount(BigDecimal initialPercent);
92  
93      public KualiDecimal getExtendedPrice();
94  
95      public KualiDecimal getTotalAmount();
96  
97      public void setTotalAmount(KualiDecimal totalAmount);
98  
99      /**
100      * gets the total amount to remit to a vendor
101      *
102      * @return pre tax total if use tax post tax if sales
103      */
104     public KualiDecimal getTotalRemitAmount();
105 
106     public KualiDecimal calculateExtendedPrice();
107 
108     public void setExtendedPrice(KualiDecimal extendedPrice);
109 
110     public KualiDecimal getItemTaxAmount();
111 
112     public void setItemTaxAmount(KualiDecimal itemTaxAmount);
113 
114     public PurApAccountingLine getNewSourceLine();
115 
116     public void setNewSourceLine(PurApAccountingLine newAccountingLine);
117 
118     public abstract Class getAccountingLineClass();
119 
120     public abstract Class getUseTaxClass();
121 
122     public List<PurApAccountingLine> getSourceAccountingLines();
123 
124     public void setSourceAccountingLines(List<PurApAccountingLine> purapAccountingLines);
125 
126     public List<PurApAccountingLine> getBaselineSourceAccountingLines();
127 
128     public List<PurApItemUseTax> getUseTaxItems();
129 
130     public void setUseTaxItems(List<PurApItemUseTax> useTaxItems);
131 
132     public KualiDecimal getItemQuantity();
133 
134     public void setItemQuantity(KualiDecimal itemQuantity);
135 
136     public String getItemIdentifierString();
137 
138     public PurApSummaryItem getSummaryItem();
139 
140     public <T extends PurchasingAccountsPayableDocument> T getPurapDocument();
141 
142     public void setPurapDocument(PurchasingAccountsPayableDocument purapDoc);
143 
144     public Integer getPurapDocumentIdentifier();
145 
146     public void setPurapDocumentIdentifier(Integer purapDocumentIdentifier);
147 
148     public void fixAccountReferences();
149 }