1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.select.document.web.struts;
17
18 import org.kuali.ole.module.purap.PurapConstants;
19 import org.kuali.ole.module.purap.businessobject.LineItemReceivingItem;
20 import org.kuali.ole.module.purap.document.LineItemReceivingDocument;
21 import org.kuali.ole.module.purap.document.web.struts.LineItemReceivingForm;
22 import org.kuali.ole.select.businessobject.OleLineItemReceivingItem;
23 import org.kuali.ole.select.businessobject.OleRequisitionCopies;
24
25
26
27
28 public class OleLineItemReceivingForm extends LineItemReceivingForm {
29
30 private OleRequisitionCopies newOleCopies = new OleRequisitionCopies();
31
32
33
34
35
36
37
38 public OleRequisitionCopies getNewOleCopies() {
39 return newOleCopies;
40 }
41
42
43
44
45
46
47 public void setNewOleCopies(OleRequisitionCopies newOleCopies) {
48 this.newOleCopies = newOleCopies;
49 }
50
51
52
53
54
55
56
57 @Override
58 public LineItemReceivingItem setupNewLineItemReceivingItemLine() {
59 return new OleLineItemReceivingItem();
60 }
61
62
63
64
65
66
67
68 @Override
69 public LineItemReceivingItem setupNewReceivingItemLine() {
70 OleLineItemReceivingItem lineItemReceivingItem = new OleLineItemReceivingItem((LineItemReceivingDocument) getDocument());
71 newLineItemReceivingItemLine.setItemTypeCode(PurapConstants.ItemTypeCodes.ITEM_TYPE_UNORDERED_ITEM_CODE);
72 lineItemReceivingItem.setItemUnitOfMeasureCode(PurapConstants.LineItemReceivingDocumentStrings.CUSTOMER_INVOICE_DETAIL_UOM_DEFAULT);
73 return lineItemReceivingItem;
74 }
75 }