diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs index 4f808942..8da86936 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs @@ -171,8 +171,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ var first = _detail.FirstOrDefault(p => p.ContractDocID == itm.Extend1 && p.PartCode == itm.PartCode); if (first == null) { - inv.SetProperty("ErpToLoc", $"C{invoiceGrp.ClientCode}"); - invdetials.Add(itm);//添加发票明细 + inv.Extend2= $"C{invoiceGrp.ClientCode}"; + invdetials.Add(inv);//添加发票明细 continue; } else @@ -185,14 +185,15 @@ namespace Win.Sfs.SettleAccount.Entities.BQ inv.BussiessType = EnumBusinessType.MaiDanJianBBAC; if (invoiceGrp.Site == "1046") { - inv.SetProperty("ErpToLoc", "CC16"); + inv.Extend2 = "CC16"; } if (invoiceGrp.Site == "1040") { - inv.SetProperty("ErpToLoc", "CC11"); + inv.Extend2 ="CC11"; } invdetials.Add(inv); } + } for (var i = 0; i < invdetials.Count; i++) { @@ -214,7 +215,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ InvoiceNetAmount = invoiceGrpDetail.Amt, InvoiceTaxAmount = Math.Round(invoiceGrpDetail.Amt * 0.13m, 2), TaxRate = 0.13m, - Location = invoiceGrpDetail.GetProperty("ErpToLoc", string.Empty), + Location = invoiceGrpDetail.Extend2, begintime = invoiceGrpDetail.BeginDate, endtime = invoiceGrpDetail.EndDate, domain = "BJBMPT",