|
|
@ -133,9 +133,15 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
|
itm2.SetGroupNum(billNum); |
|
|
|
billDetails.Add(itm2); |
|
|
|
} |
|
|
|
|
|
|
|
var test = details.Sum(p => p.Price * p.Qty); |
|
|
|
|
|
|
|
var count = details.Count; |
|
|
|
|
|
|
|
details = new List<BBAC_CAN_SA_DETAIL>(); |
|
|
|
sum = 0; |
|
|
|
sum = itm1.Qty * itm1.Price; |
|
|
|
} |
|
|
|
|
|
|
|
var _detailEntity = new BBAC_CAN_SA_DETAIL( |
|
|
|
guid: GuidGenerator.Create(), |
|
|
|
keyCode: itm1.KeyCode, |
|
|
@ -159,6 +165,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
|
_detailEntity.RealPartCode = itm1.RealPartCode; |
|
|
|
details.Add(_detailEntity); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
var billNum1 = OrderNumberGenerator.GenerateOrderNumber("N"); |
|
|
|
var bbac_sa1 = new BBAC_CAN_SA(); |
|
|
@ -271,6 +278,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
|
List<BBAC_CAN_SA_DETAIL> details = new List<BBAC_CAN_SA_DETAIL>(); |
|
|
|
foreach (var itm1 in ls) |
|
|
|
{ |
|
|
|
sum += (itm1.Qty * itm1.Price); |
|
|
|
|
|
|
|
if (sum > 10000000) |
|
|
|
{ |
|
|
@ -291,11 +299,14 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
|
itm2.SetGroupNum(billNum); |
|
|
|
billDetails.Add(itm2); |
|
|
|
} |
|
|
|
|
|
|
|
var test = details.Sum(p => p.Price * p.Qty); |
|
|
|
|
|
|
|
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( |
|
|
|
guid: GuidGenerator.Create(), |
|
|
|
keyCode: itm1.KeyCode, |
|
|
@ -527,7 +538,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
|
billDetails.Add(itm2); |
|
|
|
} |
|
|
|
details = new List<HBPO_CAN_SA_DETAIL>(); |
|
|
|
sum = 0; |
|
|
|
sum = itm1.Qty * itm1.Price; |
|
|
|
} |
|
|
|
var _detailEntity = new HBPO_CAN_SA_DETAIL( |
|
|
|
guid: GuidGenerator.Create(), |
|
|
|