|
@ -90,6 +90,11 @@ namespace Win_in.Sfs.Scp.WebApi |
|
|
var accumQty = 0;//TODO 如何计算
|
|
|
var accumQty = 0;//TODO 如何计算
|
|
|
var loadQty = b.BarcodeAndBatchs.Count; |
|
|
var loadQty = b.BarcodeAndBatchs.Count; |
|
|
var unitQty = b.PackQty; |
|
|
var unitQty = b.PackQty; |
|
|
|
|
|
if (unitQty != b.Qty) |
|
|
|
|
|
{ |
|
|
|
|
|
unitQty = b.Qty; |
|
|
|
|
|
loadQty = 1; |
|
|
|
|
|
} |
|
|
var item = CreateItem(b.PartCode, loadQty * unitQty, b.PoUnit, accumQty, |
|
|
var item = CreateItem(b.PartCode, loadQty * unitQty, b.PoUnit, accumQty, |
|
|
b.PoBillNum, loadQty, unitQty, b.BarcodeAndBatchs); |
|
|
b.PoBillNum, loadQty, unitQty, b.BarcodeAndBatchs); |
|
|
items.Add(item); |
|
|
items.Add(item); |
|
|