1.相关业务增加source_id和source_code

2.入库申请查询明细单增加仓库名称回传字段
This commit is contained in:
FanLian
2023-08-03 15:23:28 +08:00
parent 981662037e
commit 5defa98b47
15 changed files with 115 additions and 20 deletions

View File

@@ -96,6 +96,12 @@ namespace Tnb.WarehouseMgr
ko.carry_id = firstCarry?.id;
ko.carry_code = firstCarry?.carry_code;
await _db.Updateable(ko).UpdateColumns(it => new { it.status, it.carry_id, it.carry_code }).ExecuteCommandAsync();
if (firstCarry != null)
{
firstCarry.source_id = ko.source_id;
firstCarry.source_code = ko.source_code;
await _db.Updateable(firstCarry).UpdateColumns(it => new { it.source_id, it.source_code }).ExecuteCommandAsync();
}
}
else
{
@@ -206,7 +212,9 @@ namespace Tnb.WarehouseMgr
require_id = ko.id,
require_code = ko.bill_code,
create_id = _userManager.UserId,
create_time = DateTime.Now
create_time = DateTime.Now,
source_id = ko.source_id,
source_code = ko.source_code
};
return preTask;
}).ToList();
@@ -381,7 +389,6 @@ namespace Tnb.WarehouseMgr
await _db.Ado.CommitTranAsync();
await KittingOutByAdd();
isSuccessFul = true;
}
catch (Exception ex)