Browse Source

更新版本

master
zhaoxinyu 10 months ago
parent
commit
f69d0418ae
  1. 63
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/MakeCanSettlementService.cs
  2. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/PUB_NOT_SA_MNG.cs

63
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/MakeCanSettlementService.cs

@ -133,31 +133,38 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
itm2.SetGroupNum(billNum); itm2.SetGroupNum(billNum);
billDetails.Add(itm2); billDetails.Add(itm2);
} }
var test = details.Sum(p => p.Price * p.Qty);
var count = details.Count;
details = new List<BBAC_CAN_SA_DETAIL>(); details = new List<BBAC_CAN_SA_DETAIL>();
sum = 0; sum = itm1.Qty * itm1.Price;
} }
var _detailEntity = new BBAC_CAN_SA_DETAIL(
guid: GuidGenerator.Create(), var _detailEntity = new BBAC_CAN_SA_DETAIL(
keyCode: itm1.KeyCode, guid: GuidGenerator.Create(),
version: itm1.Version, keyCode: itm1.KeyCode,
billNum: string.Empty, version: itm1.Version,
settleBillNum: itm1.SettleBillNum, billNum: string.Empty,
lU: itm1.LU, settleBillNum: itm1.SettleBillNum,
pN: itm1.PN, lU: itm1.LU,
site: itm1.Site, pN: itm1.PN,
qty: itm1.Qty, site: itm1.Site,
price: itm1.Price, qty: itm1.Qty,
category: itm1.BusinessType, price: itm1.Price,
isReturn: itm1.IsReturn, category: itm1.BusinessType,
settleDate: itm1.SettleDate, isReturn: itm1.IsReturn,
groupNum: itm1.GroupNum, settleDate: itm1.SettleDate,
invGroupNum: string.Empty, groupNum: itm1.GroupNum,
contactid: itm1.ContractDocID, invGroupNum: string.Empty,
invbillnum: string.Empty, contactid: itm1.ContractDocID,
partcode: itm1.PartCode invbillnum: string.Empty,
); partcode: itm1.PartCode
_detailEntity.RealPartCode = itm1.RealPartCode; );
details.Add(_detailEntity); _detailEntity.RealPartCode = itm1.RealPartCode;
details.Add(_detailEntity);
} }
var billNum1 = OrderNumberGenerator.GenerateOrderNumber("N"); var billNum1 = OrderNumberGenerator.GenerateOrderNumber("N");
@ -271,6 +278,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
List<BBAC_CAN_SA_DETAIL> details = new List<BBAC_CAN_SA_DETAIL>(); List<BBAC_CAN_SA_DETAIL> details = new List<BBAC_CAN_SA_DETAIL>();
foreach (var itm1 in ls) foreach (var itm1 in ls)
{ {
sum += (itm1.Qty * itm1.Price);
if (sum > 10000000) if (sum > 10000000)
{ {
@ -291,11 +299,14 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
itm2.SetGroupNum(billNum); itm2.SetGroupNum(billNum);
billDetails.Add(itm2); billDetails.Add(itm2);
} }
var test = details.Sum(p => p.Price * p.Qty);
details = new List<BBAC_CAN_SA_DETAIL>(); details = new List<BBAC_CAN_SA_DETAIL>();
sum = 0; sum = itm1.Qty * itm1.Price;
} }
sum += (itm1.Qty * itm1.Price);
var _detailEntity = new BBAC_CAN_SA_DETAIL( var _detailEntity = new BBAC_CAN_SA_DETAIL(
guid: GuidGenerator.Create(), guid: GuidGenerator.Create(),
keyCode: itm1.KeyCode, keyCode: itm1.KeyCode,
@ -527,7 +538,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
billDetails.Add(itm2); billDetails.Add(itm2);
} }
details = new List<HBPO_CAN_SA_DETAIL>(); details = new List<HBPO_CAN_SA_DETAIL>();
sum = 0; sum = itm1.Qty * itm1.Price;
} }
var _detailEntity = new HBPO_CAN_SA_DETAIL( var _detailEntity = new HBPO_CAN_SA_DETAIL(
guid: GuidGenerator.Create(), guid: GuidGenerator.Create(),

2
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/PUB_NOT_SA_MNG.cs

@ -367,7 +367,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
billDetails.Add(itm2); billDetails.Add(itm2);
} }
details = new List<PUB_CAN_SA_DETAIL>(); details = new List<PUB_CAN_SA_DETAIL>();
sum = 0; sum = (itm1.Qty * itm1.Price);
} }
} }
var billNum1 = OrderNumberGenerator.GenerateOrderNumber("N"); var billNum1 = OrderNumberGenerator.GenerateOrderNumber("N");

Loading…
Cancel
Save