1.发票识别单添加发票明细
This commit is contained in:
parent
95df5e1ec6
commit
cb1acf6a1b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue