use of org.kuali.kfs.fp.businessobject.InternalBillingItem in project cu-kfs by CU-CommunityApps.
the class InternalBillingDocumentGenerator method buildInternalBillingItem.
protected InternalBillingItem buildInternalBillingItem(AccountingXmlDocumentItem xmlItem, String documentNumber) {
InternalBillingItem item = new InternalBillingItem();
item.setDocumentNumber(documentNumber);
item.setItemStockNumber(xmlItem.getStockNumber());
item.setItemStockDescription(xmlItem.getDescription());
item.setItemQuantity(xmlItem.getQuantity());
item.setUnitOfMeasureCode(xmlItem.getUnitOfMeasureCode());
item.setItemUnitAmount(xmlItem.getItemCost());
if (xmlItem.getServiceDate() != null) {
Timestamp serviceDate = new Timestamp(xmlItem.getServiceDate().getTime());
item.setItemServiceDate(serviceDate);
}
return item;
}
Aggregations