1
This commit is contained in:
@@ -317,13 +317,13 @@ namespace Tnb.WarehouseMgr
|
||||
item.actual_quantity += outsource_arriveqty;
|
||||
if (item.actual_quantity > item.outsource_quantity)
|
||||
{
|
||||
throw Oops.Bah($"委外收货单明细行物料{item.matcode} 批次{item.code_batch} 到货数量不能超过采购数量!");
|
||||
//throw Oops.Bah($"委外收货单明细行物料{item.matcode} 批次{item.code_batch} 到货数量不能超过采购数量!");
|
||||
}
|
||||
WmsOutsourceOrderD wmsOutsourceOrderD = wmsOutsourceOrderDs.Where(r => r.erp_line_pk == item.erp_outsource_order_d_pk).First();
|
||||
wmsOutsourceOrderD.actual_quantity += outsource_arriveqty;
|
||||
if (wmsOutsourceOrderD.actual_quantity > wmsOutsourceOrderD.outsource_quantity)
|
||||
{
|
||||
throw Oops.Bah($"采购订单明细行物料{wmsOutsourceOrderD.matcode} 批次{wmsOutsourceOrderD.code_batch} 到货数量不能超过采购数量!");
|
||||
//throw Oops.Bah($"采购订单明细行物料{wmsOutsourceOrderD.matcode} 批次{wmsOutsourceOrderD.code_batch} 到货数量不能超过采购数量!");
|
||||
}
|
||||
}
|
||||
await _db.Updateable(dList).UpdateColumns(r => r.actual_quantity).ExecuteCommandAsync();
|
||||
|
||||
Reference in New Issue
Block a user