原材料仓逻辑、看板调整
This commit is contained in:
@@ -63,6 +63,19 @@ namespace Tnb.WarehouseMgr
|
||||
return await Task.FromResult(sss);
|
||||
}
|
||||
|
||||
public override async Task ModifyAsync(WareHouseUpInput input)
|
||||
{
|
||||
if (input == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(input));
|
||||
}
|
||||
|
||||
//if (!isOk)
|
||||
//{
|
||||
// throw Oops.Oh(ErrorCode.COM1001);
|
||||
//}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 采购收货
|
||||
/// </summary>
|
||||
@@ -284,6 +297,7 @@ namespace Tnb.WarehouseMgr
|
||||
throw new AppFriendlyException("条码已生成", 500);
|
||||
};
|
||||
WmsPurchaseD WmsPurchaseD = await _db.Queryable<WmsPurchaseD>().Where(it => input.BillId == it.id).FirstAsync();
|
||||
WmsPurchaseH WmsPurchaseH = await _db.Queryable<WmsPurchaseH>().Where(it => WmsPurchaseD.bill_id == it.id).FirstAsync();
|
||||
|
||||
if (WmsPurchaseD.purchase_arriveqty == 0)
|
||||
{
|
||||
@@ -324,9 +338,10 @@ namespace Tnb.WarehouseMgr
|
||||
is_lock = 0,
|
||||
is_end = 0,
|
||||
require_id = WmsPurchaseD.id,
|
||||
require_code = WmsPurchaseD.id,
|
||||
require_code = WmsPurchaseH.bill_code,
|
||||
create_id = _userManager.UserId,
|
||||
create_time = DateTime.Now
|
||||
create_time = DateTime.Now,
|
||||
required_type = WmsWareHouseConst.BILLTYPE_PURCHASE_ID
|
||||
};
|
||||
if (index == codeNum)
|
||||
barCode.codeqty = mod == 0 ? minPacking : mod;
|
||||
|
||||
Reference in New Issue
Block a user