View Javadoc
1   /*
2    * Copyright 2008 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.kuali.ole.module.purap.document.CorrectionReceivingDocument;
19  
20  /**
21   * @author Kuali Nervous System Team (kualidev@oncourse.iu.edu)
22   */
23  public class CorrectionReceivingItem extends ReceivingItemBase {
24  
25      private CorrectionReceivingDocument correctionReceivingDocument;
26  
27      /**
28       * Default constructor.
29       */
30      public CorrectionReceivingItem() {
31  
32      }
33  
34      public CorrectionReceivingItem(LineItemReceivingItem rli, CorrectionReceivingDocument rcd) {
35  
36          this.setDocumentNumber(rcd.getDocumentNumber());
37          this.setItemTypeCode(rli.getItemTypeCode());
38          this.setPurchaseOrderIdentifier(rli.getPurchaseOrderIdentifier());
39  
40          this.setItemLineNumber(rli.getItemLineNumber());
41          this.setItemCatalogNumber(rli.getItemCatalogNumber());
42          this.setItemDescription(rli.getItemDescription());
43          this.setItemUnitOfMeasureCode(rli.getItemUnitOfMeasureCode());
44  
45          this.setItemOriginalReceivedTotalQuantity(rli.getItemReceivedTotalQuantity());
46          this.setItemOriginalReturnedTotalQuantity(rli.getItemReturnedTotalQuantity());
47          this.setItemOriginalDamagedTotalQuantity(rli.getItemDamagedTotalQuantity());
48  
49          this.setItemReceivedTotalQuantity(rli.getItemReceivedTotalQuantity());
50          this.setItemReturnedTotalQuantity(rli.getItemReturnedTotalQuantity());
51          this.setItemDamagedTotalQuantity(rli.getItemDamagedTotalQuantity());
52  
53          //not added
54          this.setItemReasonAddedCode(null);
55      }
56  
57  
58      public CorrectionReceivingDocument getCorrectionReceivingDocument() {
59          return correctionReceivingDocument;
60      }
61  
62      /**
63       * Sets the receivingCorrectionDocument attribute value.
64       *
65       * @param receivingCorrectionDocument The receivingCorrectionDocument to set.
66       * @deprecated
67       */
68      public void setCorrectionReceivingDocument(CorrectionReceivingDocument correctionReceivingDocument) {
69          this.correctionReceivingDocument = correctionReceivingDocument;
70      }
71  
72  
73  }