|
|
@ -198,6 +198,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
{ |
|
|
|
inv.Qty = itm.Qty - first.Qty;//发票总数中去除
|
|
|
|
inv.Amt = Math.Round((itm.Qty - first.Qty) * itm.PRICE, 2); |
|
|
|
inv.Extend2 = $"C{invoiceGrp.ClientCode}"; |
|
|
|
} |
|
|
|
//inv.BussiessType = EnumBusinessType.MaiDanJianBBAC;
|
|
|
|
//if (invoiceGrp.Site == "1046")
|
|
|
@ -221,7 +222,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
var first= invoiceGrpDetailsCopy.FirstOrDefault(p=>p.PartCode==itm.PartCode); |
|
|
|
inv.InjectFrom(first); |
|
|
|
inv.LU = itm.LU; |
|
|
|
inv.PartCode = itm.RealPartCode; |
|
|
|
inv.PartCode = itm.PartCode; |
|
|
|
inv.Qty = itm.Qty; |
|
|
|
inv.PRICE = first.PRICE; |
|
|
|
inv.Amt = Math.Round(itm.Qty * first.PRICE, 2); |
|
|
|