View Javadoc
1   /*
2    * Copyright 2011 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  
17  package org.kuali.ole.select.businessobject;
18  
19  
20  import org.kuali.ole.docstore.common.document.ids.BibId;
21  import org.kuali.ole.docstore.engine.service.storage.rdbms.pojo.BibInfoRecord;
22  import org.kuali.ole.module.purap.PurapConstants;
23  import org.kuali.ole.module.purap.businessobject.RequisitionItem;
24  import org.kuali.ole.module.purap.document.RequisitionDocument;
25  import org.kuali.ole.pojo.OleOrderRecord;
26  import org.kuali.ole.select.bo.OLELinkPurapDonor;
27  import org.kuali.ole.select.bo.OLEPOClaimHistory;
28  import org.kuali.ole.select.document.OleInvoiceDocument;
29  import org.kuali.ole.select.lookup.DocData;
30  import org.kuali.ole.sys.OLEConstants;
31  import org.kuali.ole.sys.context.SpringContext;
32  import org.kuali.rice.core.api.membership.MemberType;
33  import org.kuali.rice.core.api.util.type.KualiDecimal;
34  import org.kuali.rice.core.api.util.type.KualiInteger;
35  import org.kuali.rice.kim.api.identity.Person;
36  import org.kuali.rice.kim.api.identity.PersonService;
37  import org.kuali.rice.kim.api.services.KimApiServiceLocator;
38  import org.kuali.rice.kim.impl.identity.PersonImpl;
39  import org.kuali.rice.krad.service.BusinessObjectService;
40  
41  import java.util.*;
42  import java.sql.Date;
43  
44  /**
45   * Requisition Item Business Object.
46   */
47  public class OleRequisitionItem extends RequisitionItem implements OlePurchasingItem {
48      private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(OleRequisitionItem.class);
49      private BibInfoBean bibInfoBean;
50      private OleOrderRecord oleOrderRecord;
51      private String docFormat;
52      protected String itemTitleId;
53      protected String linkToOrderOption;
54      protected String localTitleId;
55      protected String bibUUID;
56      protected String requestSourceUrl;
57      protected Integer requestorTypeId;
58      protected String requestorId;
59      protected String internalRequestorId;
60      protected String requestorFirstName;
61      protected String requestorLastName;
62      protected String requestorName;
63      protected OleRequestor oleRequestor;
64      private DocData docData;
65      private PersonImpl personImpl;
66      private PersonImpl internalRequestor;
67      protected String vendorItemPoNumber;
68      private BusinessObjectService businessObjectService;
69      private String singleCopyNumber;
70      private String donorId;
71      private String donorCode;
72      private List<OLELinkPurapDonor> oleDonors=new ArrayList<>();
73      private BibId bibTree;
74  
75      private RequisitionDocument requisition;
76      protected String selector;
77      protected String statusCode;
78  
79      protected boolean itemAdded = false;
80      protected String itemTitle;
81      protected String itemAuthor;
82      protected String fromDateLastModified;
83      protected String toDateLastModified;
84      protected String dateModified;
85      protected KualiDecimal itemPrice;
86      protected String internalRequestorName;
87      protected String externalRequestorName;
88      protected KualiInteger itemNoOfParts;
89      protected KualiDecimal itemListPrice;
90      protected KualiDecimal itemDiscount;
91      protected String itemDiscountType;
92      // private DiscountType discountType;
93  
94      // Foreign Currency Conversion
95      protected String itemCurrencyType;
96      protected KualiDecimal itemForeignListPrice;
97      protected KualiDecimal itemForeignDiscount;
98      protected String itemForeignDiscountType;
99      protected KualiDecimal itemForeignDiscountAmt;
100     protected KualiDecimal itemForeignUnitCost;
101     protected KualiDecimal itemExchangeRate;
102     protected KualiDecimal itemUnitCostUSD;
103     protected boolean itemRouteToRequestorIndicator;
104     protected boolean itemPublicViewIndicator;
105 
106 
107     //private OleRequestSourceType oleRequestSourceType;
108     protected Integer categoryId;
109     protected Integer formatTypeId;
110     protected Integer requestSourceTypeId;
111     protected Integer receiptStatusId;
112     protected Integer itemPriceSourceId;
113     private OleItemPriceSource itemPriceSource;
114     private OleCategory category;
115     private OleFormatType formatTypeName;
116     private OleRequestSourceType oleRequestSourceType;
117     private OleReceiptStatus oleReceiptStatus;
118     private List<OleCopy> deletedCopiesList = new ArrayList<>();
119 
120     private List<OleInvoiceDocument> invoiceDocuments = new ArrayList<OleInvoiceDocument>();
121 
122 
123     //AcquiisitionsSearch
124     protected String initialDate;
125     protected String documentType;
126     protected String initiator;
127 
128     protected KualiDecimal itemForiegnExtendedPrice;
129     private String itemLocation;
130     /**
131      * For List of copies
132      */
133     private Integer itemCopiesId;
134     private KualiInteger parts;
135     private KualiDecimal itemCopies;
136     private String partEnumeration;
137     private String locationCopies;
138     private KualiInteger startingCopyNumber;
139     private String caption;
140     private String volumeNumber;
141     private OleRequisitionCopies oleRequisitionCopy;
142     //private String                               instanceId;
143     private List<OleCopies> copies = new ArrayList<OleCopies>();
144     private List<OleCopy> copyList = new ArrayList<>();
145 
146     /**
147      * For List Payment History
148      */
149     private String paymentHistory;
150     private List<OleRequisitionPaymentHistory> requisitionPaymentHistory = new ArrayList<OleRequisitionPaymentHistory>();
151 
152     private String noOfCopiesReceived;
153     private String noOfPartsReceived;
154     private String itemTypeDescription;
155 
156     private OLERequestorPatronDocument olePatronDocument;
157     protected String olePatronId;
158     private String firstName;
159     private String enumeration;
160     private String location;
161     private String copyNumber;
162     private String receiptStatus;
163 
164     private String                               itemStatus;
165 
166     /**
167      * For getting the NoteTypeId and Note
168      */
169     private Integer noteTypeId;
170     private String note;
171 
172     /**
173      * For List of Notes
174      */
175     private List<OleNotes> notes;
176 
177     /**
178      * For Quantity As Integer
179      */
180     private KualiInteger oleItemQuantity;
181 
182     private boolean doNotClaim;
183     private Date claimDate;
184     private String claimNote;
185     private KualiInteger claimCount;
186     private BibInfoRecord bibInfoRecord;
187 
188     private List<OLEPOClaimHistory> claimHistories = new ArrayList<>();
189 
190     public List<OLEPOClaimHistory> getClaimHistories() {
191         return claimHistories;
192     }
193 
194     public void setClaimHistories(List<OLEPOClaimHistory> claimHistories) {
195         this.claimHistories = claimHistories;
196     }
197 
198     public String getSingleCopyNumber() {
199         return singleCopyNumber;
200     }
201 
202     public void setSingleCopyNumber(String singleCopyNumber) {
203         this.singleCopyNumber = singleCopyNumber;
204     }
205 
206     public KualiInteger getClaimCount() {
207         return claimCount;
208     }
209 
210     public void setClaimCount(KualiInteger claimCount) {
211         this.claimCount = claimCount;
212     }
213 
214     public String getClaimNote() {
215         return claimNote;
216     }
217 
218     public void setClaimNote(String claimNote) {
219         this.claimNote = claimNote;
220     }
221 
222     public Date getClaimDate() {
223         return claimDate;
224     }
225 
226     public void setClaimDate(Date claimDate) {
227         this.claimDate = claimDate;
228     }
229 
230     public boolean isDoNotClaim() {
231         return doNotClaim;
232     }
233 
234     public void setDoNotClaim(boolean doNotClaim) {
235         this.doNotClaim = doNotClaim;
236     }
237 
238     public String getLocalTitleId() {
239         return localTitleId;
240     }
241 
242     public void setLocalTitleId(String localTitleId) {
243         this.localTitleId = localTitleId;
244     }
245 
246     /**
247      * Default constructor.
248      */
249     public OleRequisitionItem() {
250         this.setItemNoOfParts(new KualiInteger(1));
251         this.setItemPublicViewIndicator(true);
252         this.setItemUnitOfMeasureCode(PurapConstants.PODocumentsStrings.CUSTOMER_INVOICE_DETAIL_UOM_DEFAULT);
253         this.setOleItemQuantity(new KualiInteger(1));
254         if (this.getItemListPrice() == null) {
255             this.setItemListPrice(new KualiDecimal(0.00));
256         }
257         this.setNoOfCopiesReceived("");
258         this.setNoOfPartsReceived("");
259         this.setSingleCopyNumber(OLEConstants.OleRequisitionItem.DEFAULT_COPY_NUMBER);
260         /*if(GlobalVariables.getUserSession()!=null) {
261             this.internalRequestorId=GlobalVariables.getUserSession().getPrincipalId();
262             this.setRequestorFirstName(getPersonName(GlobalVariables.getUserSession().getPrincipalId()));
263         }*/
264 /*        if(SpringContext.getBean(OleRequisitionService.class).getRequestor()!=null) {
265             String requestor=SpringContext.getBean(OleRequisitionService.class).getRequestor();
266             this.setRequestorFirstName(requestor);
267         }*/
268         /*OleRequisitionService oleRequestionService=new OleRequisitionServiceImpl();
269        if(oleRequestionService.getRequestor()!=null) {
270             String requestor=oleRequestionService.getRequestor();
271             this.setRequestorFirstName(requestor);
272         }*/
273         /**
274          * Initializing OleRequisitionNotes List
275          */
276         LOG.debug("Inside OleRequisitionItem Constructor");
277         LOG.debug("Initializing OleRequisitionNotes List");
278         notes = new ArrayList<OleNotes>();
279 
280     }
281 
282     public String getItemStatus() {
283         return itemStatus;
284     }
285 
286     public void setItemStatus(String itemStatus) {
287         this.itemStatus = itemStatus;
288     }
289 
290     public BibInfoBean getBibInfoBean() {
291         return bibInfoBean;
292     }
293 
294     @Override
295     public void setBibInfoBean(BibInfoBean bibInfoBean) {
296         this.bibInfoBean = bibInfoBean;
297     }
298 
299     @Override
300     public Integer getRequestorTypeId() {
301         return requestorTypeId;
302     }
303 
304     public void setRequestorTypeId(Integer requestorTypeId) {
305         this.requestorTypeId = requestorTypeId;
306     }
307 
308     @Override
309     public String getItemTitleId() {
310         return itemTitleId;
311     }
312 
313     public String getDonorId() {
314         return donorId;
315     }
316 
317     public void setDonorId(String donorId) {
318         this.donorId = donorId;
319     }
320 
321     public String getDonorCode() {
322         return donorCode;
323     }
324 
325     public void setDonorCode(String donorCode) {
326         this.donorCode = donorCode;
327     }
328 
329     public List<OLELinkPurapDonor> getOleDonors() {
330         return oleDonors;
331     }
332 
333     public void setOleDonors(List<OLELinkPurapDonor> oleDonors) {
334         this.oleDonors = oleDonors;
335     }
336 
337     public void setItemTitleId(String itemTitleId) {
338         this.itemTitleId = itemTitleId;
339     }
340 
341     public String getLinkToOrderOption() {
342         return linkToOrderOption;
343     }
344 
345     public void setLinkToOrderOption(String linkToOrderOption) {
346         this.linkToOrderOption = linkToOrderOption;
347     }
348 
349     public String getBibUUID() {
350         return bibUUID;
351     }
352 
353     public void setBibUUID(String bibUUID) {
354         this.bibUUID = bibUUID;
355     }
356 
357     public String getRequestSourceUrl() {
358         return requestSourceUrl;
359     }
360 
361     public void setRequestSourceUrl(String requestSourceUrl) {
362         this.requestSourceUrl = requestSourceUrl;
363     }
364 
365     @Override
366     public String getRequestorId() {
367         return requestorId;
368     }
369 
370     public void setRequestorId(String requestorId) {
371         this.requestorId = requestorId;
372     }
373 
374     @Override
375     public String getRequestorFirstName() {
376         return requestorFirstName;
377     }
378 
379     @Override
380     public void setRequestorFirstName(String requestorFirstName) {
381         this.requestorFirstName = requestorFirstName;
382     }
383 
384     public String getRequestorLastName() {
385         return requestorLastName;
386     }
387 
388     public void setRequestorLastName(String requestorLastName) {
389         this.requestorLastName = requestorLastName;
390     }
391 
392     public String getRequestorName() {
393         return requestorName;
394     }
395 
396     public void setRequestorName(String requestorName) {
397         this.requestorName = requestorName;
398     }
399 
400     public OleRequestor getOleRequestor() {
401         return oleRequestor;
402     }
403 
404     public void setOleRequestor(OleRequestor oleRequestor) {
405         this.oleRequestor = oleRequestor;
406     }
407 
408     public DocData getDocData() {
409         return docData;
410     }
411 
412     public void setDocData(DocData docData) {
413         this.docData = docData;
414     }
415 
416     public PersonImpl getPersonImpl() {
417         return personImpl;
418     }
419 
420     public void setPersonImpl(PersonImpl personImpl) {
421         this.personImpl = personImpl;
422     }
423 
424     @SuppressWarnings("unchecked")
425     private List<String> getRolesForPrincipal(String principalId) {
426         if (principalId == null) {
427             return new ArrayList<String>();
428         }
429         Map<String, String> criteria = new HashMap<String, String>(2);
430         criteria.put("members.memberId", principalId);
431         criteria.put("members.memberTypeCode", MemberType.PRINCIPAL.getCode());
432         return KimApiServiceLocator.getRoleService().getMemberParentRoleIds(MemberType.PRINCIPAL.getCode(), principalId);
433     }
434 
435     public String getPersonName(String principalId) {
436         Person person = SpringContext.getBean(PersonService.class).getPerson(principalId);
437         return person.getName();
438     }
439 
440     @Override
441     public RequisitionDocument getRequisition() {
442         return requisition;
443     }
444 
445     @Override
446     public void setRequisition(RequisitionDocument requisition) {
447         setPurapDocument(requisition);
448         this.requisition = requisition;
449     }
450 
451     public String getSelector() {
452         return selector;
453     }
454 
455     public void setSelector(String selector) {
456         this.selector = selector;
457     }
458 
459     public String getStatusCode() {
460         return getRequisition().getStatusCode();
461     }
462 
463     public void setStatusCode(String statusCode) {
464         this.statusCode = statusCode;
465     }
466 
467     public String getFromDateLastModified() {
468         return fromDateLastModified;
469     }
470 
471     public void setFromDateLastModified(String fromDateLastModified) {
472         this.fromDateLastModified = fromDateLastModified;
473     }
474 
475     public String getToDateLastModified() {
476         return toDateLastModified;
477     }
478 
479     public void setToDateLastModified(String toDateLastModified) {
480         this.toDateLastModified = toDateLastModified;
481     }
482 
483     public String getDateModified() {
484         return dateModified;
485     }
486 
487     public void setDateModified(String dateModified) {
488         this.dateModified = dateModified;
489     }
490 
491     public boolean isItemAdded() {
492         return itemAdded;
493     }
494 
495     public void setItemAdded(boolean isItemAdded) {
496         this.itemAdded = isItemAdded;
497     }
498 
499     public String getItemTitle() {
500         return itemTitle;
501     }
502 
503     public void setItemTitle(String itemTitle) {
504         this.itemTitle = itemTitle;
505     }
506 
507     public String getItemAuthor() {
508         return itemAuthor;
509     }
510 
511     public void setItemAuthor(String itemAuthor) {
512         this.itemAuthor = itemAuthor;
513     }
514 
515     @Override
516     public String getInternalRequestorId() {
517         return internalRequestorId;
518     }
519 
520     public void setInternalRequestorId(String internalRequestorId) {
521         this.internalRequestorId = internalRequestorId;
522     }
523 
524     public KualiDecimal getItemPrice() {
525         return this.getTotalAmount();
526     }
527 
528     public void setItemPrice(KualiDecimal itemPrice) {
529         this.itemPrice = itemPrice;
530     }
531 
532     public PersonImpl getInternalRequestor() {
533         return internalRequestor;
534     }
535 
536     public void setInternalRequestor(PersonImpl internalRequestor) {
537         this.internalRequestor = internalRequestor;
538     }
539 
540     public String getInternalRequestorName() {
541         return internalRequestorName;
542     }
543 
544     public void setInternalRequestorName(String internalRequestorName) {
545         this.internalRequestorName = internalRequestorName;
546     }
547 
548     public String getExternalRequestorName() {
549         return externalRequestorName;
550     }
551 
552     public void setExternalRequestorName(String externalRequestorName) {
553         this.externalRequestorName = externalRequestorName;
554     }
555 
556     public KualiInteger getItemNoOfParts() {
557         if (this.itemNoOfParts != null) {
558             return itemNoOfParts;
559         } else {
560             return itemNoOfParts;
561         }
562     }
563 
564     public void setItemNoOfParts(KualiInteger itemNoOfParts) {
565         this.itemNoOfParts = itemNoOfParts;
566     }
567 
568 /*    public OleRequestSourceType getOleRequestSourceType() {
569         return oleRequestSourceType;
570     }
571 
572     public void setOleRequestSourceType(OleRequestSourceType oleRequestSourceType) {
573         this.oleRequestSourceType = oleRequestSourceType;
574     }*/
575 
576     public Integer getRequestSourceTypeId() {
577         return requestSourceTypeId;
578     }
579 
580     public void setRequestSourceTypeId(Integer requestSourceTypeId) {
581         this.requestSourceTypeId = requestSourceTypeId;
582     }
583 
584     public OleRequestSourceType getOleRequestSourceType() {
585         return oleRequestSourceType;
586     }
587 
588     public void setOleRequestSourceType(OleRequestSourceType oleRequestSourceType) {
589         this.oleRequestSourceType = oleRequestSourceType;
590     }
591 
592     /**
593      * Gets the value of the receiptStatusId property
594      *
595      * @return receiptStatusId
596      */
597     public Integer getReceiptStatusId() {
598         return receiptStatusId;
599     }
600 
601     /**
602      * Sets the receiptStatusId value
603      *
604      * @param receiptStatusId
605      */
606     public void setReceiptStatusId(Integer receiptStatusId) {
607         this.receiptStatusId = receiptStatusId;
608     }
609 
610     /**
611      * Gets the instance of OleReceiptStatus
612      *
613      * @return oleReceiptStatus
614      */
615     public OleReceiptStatus getOleReceiptStatus() {
616         return oleReceiptStatus;
617     }
618 
619     /**
620      * Sets the instance value for OleReceiptStatus
621      *
622      * @param oleReceiptStatus
623      */
624     public void setOleReceiptStatus(OleReceiptStatus oleReceiptStatus) {
625         this.oleReceiptStatus = oleReceiptStatus;
626     }
627 
628     public KualiDecimal getItemListPrice() {
629         return itemListPrice;
630     }
631 
632     public void setItemListPrice(KualiDecimal itemListPrice) {
633         this.itemListPrice = itemListPrice;
634     }
635 
636     public KualiDecimal getItemDiscount() {
637         return itemDiscount;
638     }
639 
640     public void setItemDiscount(KualiDecimal itemDiscount) {
641         this.itemDiscount = itemDiscount;
642     }
643 
644     public String getItemDiscountType() {
645         return itemDiscountType;
646     }
647 
648     public void setItemDiscountType(String itemDiscountType) {
649         this.itemDiscountType = itemDiscountType;
650     }
651 
652    /* public DiscountType getDiscountType() {
653         return discountType;
654     }
655 
656     public void setDiscountType(DiscountType discountType) {
657         this.discountType = discountType;
658     }*/
659 
660     /**
661      * This method... to get the noteType Id
662      *
663      * @return noteTypeId
664      */
665     public Integer getNoteTypeId() {
666         return noteTypeId;
667     }
668 
669     /**
670      * This method to set noteType Id
671      *
672      * @param //noteTypeId
673      */
674     public void setNoteTypeId(Integer noteTypeId) {
675         this.noteTypeId = noteTypeId;
676     }
677 
678     /**
679      * This method... to get the note description
680      *
681      * @return note
682      */
683     public String getNote() {
684         return note;
685     }
686 
687     /**
688      * This method... to set note description
689      *
690      * @param note
691      */
692     public void setNote(String note) {
693         this.note = note;
694     }
695 
696     /**
697      * This method... to get OleRequistionNotes List
698      *
699      * @return List of Notes(OleRequisitionNotes)
700      */
701     public List<OleNotes> getNotes() {
702         return notes;
703     }
704 
705     /**
706      * This method... to set OleRequisitionNotes List
707      */
708     public void setNotes(List<OleNotes> notes) {
709         this.notes = notes;
710     }
711 
712     public String getItemCurrencyType() {
713         return itemCurrencyType;
714     }
715 
716     public void setItemCurrencyType(String itemCurrencyType) {
717         this.itemCurrencyType = itemCurrencyType;
718     }
719 
720     public KualiDecimal getItemForeignListPrice() {
721         return itemForeignListPrice;
722     }
723 
724     public void setItemForeignListPrice(KualiDecimal itemForeignListPrice) {
725         this.itemForeignListPrice = itemForeignListPrice;
726     }
727 
728     public KualiDecimal getItemForeignDiscount() {
729         return itemForeignDiscount;
730     }
731 
732     public void setItemForeignDiscount(KualiDecimal itemForeignDiscount) {
733         this.itemForeignDiscount = itemForeignDiscount;
734     }
735 
736     public String getItemForeignDiscountType() {
737         return itemForeignDiscountType;
738     }
739 
740     public void setItemForeignDiscountType(String itemForeignDiscountType) {
741         this.itemForeignDiscountType = itemForeignDiscountType;
742     }
743 
744     public KualiDecimal getItemForeignDiscountAmt() {
745         return itemForeignDiscountAmt;
746     }
747 
748     public void setItemForeignDiscountAmt(KualiDecimal itemForeignDiscountAmt) {
749         this.itemForeignDiscountAmt = itemForeignDiscountAmt;
750     }
751 
752     public KualiDecimal getItemForeignUnitCost() {
753         return itemForeignUnitCost;
754     }
755 
756     public void setItemForeignUnitCost(KualiDecimal itemForeignUnitCost) {
757         this.itemForeignUnitCost = itemForeignUnitCost;
758     }
759 
760     public KualiDecimal getItemExchangeRate() {
761         return itemExchangeRate;
762     }
763 
764     public void setItemExchangeRate(KualiDecimal itemExchangeRate) {
765         this.itemExchangeRate = itemExchangeRate;
766     }
767 
768     public KualiDecimal getItemUnitCostUSD() {
769         return itemUnitCostUSD;
770     }
771 
772     public void setItemUnitCostUSD(KualiDecimal itemUnitCostUSD) {
773         this.itemUnitCostUSD = itemUnitCostUSD;
774     }
775 
776     public Integer getCategoryId() {
777         return categoryId;
778     }
779 
780     public void setCategoryId(Integer categoryId) {
781         this.categoryId = categoryId;
782     }
783 
784     public Integer getFormatTypeId() {
785         return formatTypeId;
786     }
787 
788     public void setFormatTypeId(Integer formatTypeId) {
789         this.formatTypeId = formatTypeId;
790     }
791 
792     public Integer getItemPriceSourceId() {
793         return itemPriceSourceId;
794     }
795 
796     public void setItemPriceSourceId(Integer itemPriceSourceId) {
797         this.itemPriceSourceId = itemPriceSourceId;
798     }
799 
800     public OleItemPriceSource getItemPriceSource() {
801         return itemPriceSource;
802     }
803 
804     public void setItemPriceSource(OleItemPriceSource itemPriceSource) {
805         this.itemPriceSource = itemPriceSource;
806     }
807 
808     public OleCategory getCategory() {
809         return category;
810     }
811 
812     public void setCategory(OleCategory category) {
813         this.category = category;
814     }
815 
816     public OleFormatType getFormatTypeName() {
817         return formatTypeName;
818     }
819 
820     public void setFormatTypeName(OleFormatType formatTypeName) {
821         this.formatTypeName = formatTypeName;
822     }
823 
824     public boolean isItemRouteToRequestorIndicator() {
825         return itemRouteToRequestorIndicator;
826     }
827 
828     public void setItemRouteToRequestorIndicator(boolean itemRouteToRequestorIndicator) {
829         this.itemRouteToRequestorIndicator = itemRouteToRequestorIndicator;
830     }
831 
832     public boolean isItemPublicViewIndicator() {
833         return itemPublicViewIndicator;
834     }
835 
836     public void setItemPublicViewIndicator(boolean itemPublicViewIndicator) {
837         this.itemPublicViewIndicator = itemPublicViewIndicator;
838     }
839 
840     public String getInitialDate() {
841         return initialDate;
842     }
843 
844     public void setInitialDate(String initialDate) {
845         this.initialDate = initialDate;
846     }
847 
848     public String getDocumentType() {
849         return documentType;
850     }
851 
852     public void setDocumentType(String documentType) {
853         this.documentType = documentType;
854     }
855 
856     public String getInitiator() {
857         return initiator;
858     }
859 
860     public void setInitiator(String initiator) {
861         this.initiator = initiator;
862     }
863 
864     /**
865      * @see org.kuali.ole.module.purap.businessobject.PurchasingItemBase#getAccountingLineClass()
866      */
867     @Override
868     public Class getAccountingLineClass() {
869         return OleRequisitionAccount.class;
870     }
871 
872     public String getVendorItemPoNumber() {
873         return vendorItemPoNumber;
874     }
875 
876     public void setVendorItemPoNumber(String vendorItemPoNumber) {
877         this.vendorItemPoNumber = vendorItemPoNumber;
878     }
879 
880     public OleOrderRecord getOleOrderRecord() {
881         return oleOrderRecord;
882     }
883 
884     public void setOleOrderRecord(OleOrderRecord oleOrderRecord) {
885         this.oleOrderRecord = oleOrderRecord;
886     }
887 
888     /**
889      * Gets the itemForiegnExtendedPrice attribute.
890      *
891      * @return Returns the itemForiegnExtendedPrice.
892      */
893     public KualiDecimal getItemForiegnExtendedPrice() {
894         return itemForiegnExtendedPrice;
895     }
896 
897     /**
898      * Sets the itemForiegnExtendedPrice attribute value.
899      *
900      * @param itemForiegnExtendedPrice The itemForiegnExtendedPrice to set.
901      */
902     public void setItemForiegnExtendedPrice(KualiDecimal itemForiegnExtendedPrice) {
903         this.itemForiegnExtendedPrice = itemForiegnExtendedPrice;
904     }
905 
906     /**
907      * Gets the itemLocation attribute.
908      *
909      * @return Returns the itemLocation.
910      */
911     public String getItemLocation() {
912         return itemLocation;
913     }
914 
915     /**
916      * Sets the itemLocation attribute value.
917      *
918      * @param itemLocation The itemLocation to set.
919      */
920     public void setItemLocation(String itemLocation) {
921         this.itemLocation = itemLocation;
922     }
923 
924     /**
925      * Gets the itemCopiesId attribute.
926      *
927      * @return Returns the itemCopiesId.
928      */
929     public Integer getItemCopiesId() {
930         return itemCopiesId;
931     }
932 
933     /**
934      * Sets the itemCopiesId attribute value.
935      *
936      * @param itemCopiesId The itemCopiesId to set.
937      */
938     public void setItemCopiesId(Integer itemCopiesId) {
939         this.itemCopiesId = itemCopiesId;
940     }
941 
942     /**
943      * Gets the parts attribute.
944      *
945      * @return Returns the parts.
946      */
947     public KualiInteger getParts() {
948         return parts;
949     }
950 
951     /**
952      * Sets the parts attribute value.
953      *
954      * @param parts The parts to set.
955      */
956     public void setParts(KualiInteger parts) {
957         this.parts = parts;
958     }
959 
960     /**
961      * Gets the itemCopies attribute.
962      *
963      * @return Returns the itemCopies.
964      */
965     public KualiDecimal getItemCopies() {
966         return itemCopies;
967     }
968 
969     /**
970      * Sets the itemCopies attribute value.
971      *
972      * @param itemCopies The itemCopies to set.
973      */
974     public void setItemCopies(KualiDecimal itemCopies) {
975         this.itemCopies = itemCopies;
976     }
977 
978     /**
979      * Gets the partEnumeration attribute.
980      *
981      * @return Returns the partEnumeration.
982      */
983     public String getPartEnumeration() {
984         return partEnumeration;
985     }
986 
987     /**
988      * Sets the partEnumeration attribute value.
989      *
990      * @param partEnumeration The partEnumeration to set.
991      */
992     public void setPartEnumeration(String partEnumeration) {
993         this.partEnumeration = partEnumeration;
994     }
995 
996     /**
997      * Gets the locationCopies attribute.
998      *
999      * @return Returns the locationCopies.
1000      */
1001     public String getLocationCopies() {
1002         return locationCopies;
1003     }
1004 
1005     /**
1006      * Sets the locationCopies attribute value.
1007      *
1008      * @param locationCopies The locationCopies to set.
1009      */
1010     public void setLocationCopies(String locationCopies) {
1011         this.locationCopies = locationCopies;
1012     }
1013 
1014     /**
1015      * Gets the startingCopyNumber attribute.
1016      *
1017      * @return Returns the startingCopyNumber.
1018      */
1019     public KualiInteger getStartingCopyNumber() {
1020         return startingCopyNumber;
1021     }
1022 
1023     /**
1024      * Sets the startingCopyNumber attribute value.
1025      *
1026      * @param startingCopyNumber The startingCopyNumber to set.
1027      */
1028     public void setStartingCopyNumber(KualiInteger startingCopyNumber) {
1029         this.startingCopyNumber = startingCopyNumber;
1030     }
1031 
1032     /**
1033      * Gets the copies attribute.
1034      *
1035      * @return Returns the copies.
1036      */
1037     public List<OleCopies> getCopies() {
1038         return copies;
1039     }
1040 
1041     /**
1042      * Sets the copies attribute value.
1043      *
1044      * @param copies The copies to set.
1045      */
1046     public void setCopies(List<OleCopies> copies) {
1047         this.copies = copies;
1048     }
1049 
1050     /**
1051      * Gets the paymentHistory attribute.
1052      *
1053      * @return Returns the paymentHistory.
1054      */
1055     public String getPaymentHistory() {
1056         return paymentHistory;
1057     }
1058 
1059     /**
1060      * Sets the paymentHistory attribute value.
1061      *
1062      * @param paymentHistory The paymentHistory to set.
1063      */
1064     public void setPaymentHistory(String paymentHistory) {
1065         this.paymentHistory = paymentHistory;
1066     }
1067 
1068     /**
1069      * Gets the requisitionPaymentHistory attribute.
1070      *
1071      * @return Returns the requisitionPaymentHistory.
1072      */
1073     public List<OleRequisitionPaymentHistory> getRequisitionPaymentHistory() {
1074         return requisitionPaymentHistory;
1075     }
1076 
1077     /**
1078      * Sets the requisitionPaymentHistory attribute value.
1079      *
1080      * @param requisitionPaymentHistory The requisitionPaymentHistory to set.
1081      */
1082     public void setRequisitionPaymentHistory(List<OleRequisitionPaymentHistory> requisitionPaymentHistory) {
1083         this.requisitionPaymentHistory = requisitionPaymentHistory;
1084     }
1085 
1086 
1087     public String getDocFormat() {
1088         return docFormat;
1089     }
1090 
1091     public void setDocFormat(String docFormat) {
1092         this.docFormat = docFormat;
1093     }
1094 
1095     /**
1096      * Gets the noOfCopiesReceived attribute.
1097      *
1098      * @return Returns the noOfCopiesReceived.
1099      */
1100     public String getNoOfCopiesReceived() {
1101         return noOfCopiesReceived;
1102     }
1103 
1104     /**
1105      * Sets the noOfCopiesReceived attribute value.
1106      *
1107      * @param noOfCopiesReceived The noOfCopiesReceived to set.
1108      */
1109     public void setNoOfCopiesReceived(String noOfCopiesReceived) {
1110         this.noOfCopiesReceived = noOfCopiesReceived;
1111     }
1112 
1113     /**
1114      * Gets the noOfPartsReceived attribute.
1115      *
1116      * @return Returns the noOfPartsReceived.
1117      */
1118     public String getNoOfPartsReceived() {
1119         return noOfPartsReceived;
1120     }
1121 
1122     /**
1123      * Sets the noOfPartsReceived attribute value.
1124      *
1125      * @param noOfPartsReceived The noOfPartsReceived to set.
1126      */
1127     public void setNoOfPartsReceived(String noOfPartsReceived) {
1128         this.noOfPartsReceived = noOfPartsReceived;
1129     }
1130 
1131     /**
1132      * Gets the itemTypeDescription attribute.
1133      *
1134      * @return Returns the itemTypeDescription.
1135      */
1136     public String getItemTypeDescription() {
1137         return itemTypeDescription;
1138     }
1139 
1140     /**
1141      * Sets the itemTypeDescription attribute value.
1142      *
1143      * @param itemTypeDescription The itemTypeDescription to set.
1144      */
1145     public void setItemTypeDescription(String itemTypeDescription) {
1146         this.itemTypeDescription = itemTypeDescription;
1147     }
1148 
1149     /**
1150      * Gets the oleRequisitionCopy attribute.
1151      *
1152      * @return Returns the oleRequisitionCopy.
1153      */
1154     public OleRequisitionCopies getOleRequisitionCopy() {
1155         return oleRequisitionCopy;
1156     }
1157 
1158     /**
1159      * Sets the oleRequisitionCopy attribute value.
1160      *
1161      * @param oleRequisitionCopy The oleRequisitionCopy to set.
1162      */
1163     public void setOleRequisitionCopy(OleRequisitionCopies oleRequisitionCopy) {
1164         this.oleRequisitionCopy = oleRequisitionCopy;
1165     }
1166 
1167     /**
1168      * Gets the oleItemQuantity attribute.
1169      *
1170      * @return Returns the oleItemQuantity.
1171      */
1172     public KualiInteger getOleItemQuantity() {
1173         return new KualiInteger(super.getItemQuantity().intValue());
1174     }
1175 
1176     /**
1177      * Sets the oleItemQuantity attribute value.
1178      *
1179      * @param oleItemQuantity The oleItemQuantity to set.
1180      */
1181     public void setOleItemQuantity(KualiInteger oleItemQuantity) {
1182         super.setItemQuantity(new KualiDecimal(oleItemQuantity.intValue()));
1183     }
1184 
1185     /*
1186      * @Override public void setItemQuantity(KualiDecimal itemQuantity) { super.setItemQuantity(itemQuantity); this.oleItemQuantity
1187      * = itemQuantity.intValue(); }
1188      */
1189 
1190     /**
1191      * Gets the olePatronDocument attribute.
1192      *
1193      * @return Returns the olePatronDocument.
1194      */
1195     public OLERequestorPatronDocument getOlePatronDocument() {
1196         return olePatronDocument;
1197     }
1198 
1199     /**
1200      * Sets the olePatronDocument attribute value.
1201      *
1202      * @param olePatronDocument The olePatronDocument to set.
1203      */
1204     public void setOlePatronDocument(OLERequestorPatronDocument olePatronDocument) {
1205         this.olePatronDocument = olePatronDocument;
1206     }
1207 
1208     /**
1209      * Gets the olePatronId attribute.
1210      *
1211      * @return Returns the olePatronId.
1212      */
1213     public String getOlePatronId() {
1214         return olePatronId;
1215     }
1216 
1217     /**
1218      * Sets the olePatronId attribute value.
1219      *
1220      * @param olePatronId The olePatronId to set.
1221      */
1222     public void setOlePatronId(String olePatronId) {
1223         this.olePatronId = olePatronId;
1224     }
1225 
1226     /**
1227      * Sets the firstName attribute value.
1228      *
1229      * @param firstName The firstName to set.
1230      */
1231     public void setFirstName(String firstName) {
1232         this.firstName = firstName;
1233     }
1234 
1235     /**
1236      * Gets the firstName attribute.
1237      *
1238      * @return Returns the firstName.
1239      */
1240     public String getFirstName() {
1241         return firstName;
1242     }
1243 
1244     public String getCaption() {
1245         return caption;
1246     }
1247 
1248     public void setCaption(String caption) {
1249         this.caption = caption;
1250     }
1251 
1252     public String getVolumeNumber() {
1253         return volumeNumber;
1254     }
1255 
1256     public void setVolumeNumber(String volumeNumber) {
1257         this.volumeNumber = volumeNumber;
1258     }
1259 
1260     public String getEnumeration() {
1261         return enumeration;
1262     }
1263 
1264     public void setEnumeration(String enumeration) {
1265         this.enumeration = enumeration;
1266     }
1267 
1268     public String getLocation() {
1269         return location;
1270     }
1271 
1272     public void setLocation(String location) {
1273         this.location = location;
1274     }
1275 
1276     public String getCopyNumber() {
1277         return copyNumber;
1278     }
1279 
1280     public void setCopyNumber(String copyNumber) {
1281         this.copyNumber = copyNumber;
1282     }
1283 
1284     public String getReceiptStatus() {
1285         return receiptStatus;
1286     }
1287 
1288     public void setReceiptStatus(String receiptStatus) {
1289         this.receiptStatus = receiptStatus;
1290     }
1291 
1292     public List<OleCopy> getCopyList() {
1293         return copyList;
1294     }
1295 
1296     public void setCopyList(List<OleCopy> copyList) {
1297         this.copyList = copyList;
1298     }
1299 
1300     public List<OleCopy> getDeletedCopiesList() {
1301         return deletedCopiesList;
1302     }
1303 
1304     public void setDeletedCopiesList(List<OleCopy> deletedCopiesList) {
1305         this.deletedCopiesList = deletedCopiesList;
1306     }
1307 
1308     public List<OleInvoiceDocument> getInvoiceDocuments() {
1309         return invoiceDocuments;
1310     }
1311 
1312     public void setInvoiceDocuments(List<OleInvoiceDocument> invoiceDocuments) {
1313         this.invoiceDocuments = invoiceDocuments;
1314     }
1315 
1316     public BibId getBibTree() {
1317         return bibTree;
1318     }
1319 
1320     public void setBibTree(BibId bibTree) {
1321         this.bibTree = bibTree;
1322     }
1323 
1324     public BibInfoRecord getBibInfoRecord() {
1325         return bibInfoRecord;
1326     }
1327 
1328     public void setBibInfoRecord(BibInfoRecord bibInfoRecord) {
1329         this.bibInfoRecord = bibInfoRecord;
1330     }
1331 }