From cb1acf6a1b94adaed1c69e90735acd3a60775cb6 Mon Sep 17 00:00:00 2001 From: sez Date: Wed, 30 Oct 2024 17:45:54 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=8F=91=E7=A5=A8=E8=AF=86=E5=88=AB=E5=8D=95?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=91=E7=A5=A8=E6=98=8E=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../formplugin/UploadAttachmentsFormPlugin.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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);