diff --git a/fi/shkd-fi-fi/src/main/java/shkd/fi/fi/formplugin/UploadAttachmentsFormPlugin.java b/fi/shkd-fi-fi/src/main/java/shkd/fi/fi/formplugin/UploadAttachmentsFormPlugin.java index a316812..c3f1bb8 100644 --- a/fi/shkd-fi-fi/src/main/java/shkd/fi/fi/formplugin/UploadAttachmentsFormPlugin.java +++ b/fi/shkd-fi-fi/src/main/java/shkd/fi/fi/formplugin/UploadAttachmentsFormPlugin.java @@ -339,8 +339,19 @@ public class UploadAttachmentsFormPlugin extends AbstractFormPlugin { shkd_invoicereceipt.set("shkd_refbill", ap_finapbill);//财务应付单 shkd_invoicereceipt.set("billstatus", "C"); shkd_invoicereceipt.set("creator", RequestContext.get().getCurrUserId()); - - + //发票明细 + for (DetailList list : detailList) { + DynamicObjectCollection shkd_inventry = shkd_invoicereceipt.getDynamicObjectCollection("shkd_inventry"); + DynamicObject addNew = shkd_inventry.addNew(); + addNew.set("shkd_commodityname",list.getCommodityName()); + addNew.set("shkd_specifictionmodel",list.getSpecifictionModel()); + addNew.set("shkd_unit",list.getUnit()); + addNew.set("shkd_quantity",list.getQuantity()); + addNew.set("shkd_unitprice",list.getUnitPrice()); + addNew.set("shkd_totalamount",list.getTotalAmount()); + addNew.set("shkd_i_taxrate",list.getTaxRate()); + addNew.set("shkd_i_tax",list.getTax()); + } // option.setVariableValue(OperateOptionConst.ORM_SAVEOP_REMOVECACHE, "true"); //保存发票识别单据并上传发票附件到发票识别单据 // SaveServiceHelper.save(new DynamicObject[]{shkd_invoicereceipt}, option);