发货和收货确认后生成单据时增加审核状态和同步状态

This commit is contained in:
2023-11-16 14:06:21 +08:00
parent 98d0fd1004
commit e1920db0bb
4 changed files with 27 additions and 4 deletions

View File

@@ -75,6 +75,15 @@ namespace Tnb.WarehouseMgr
instock.create_id = _userManager.UserId;
instock.create_time = DateTime.Now;
instock.org_id = _userManager.User.OrganizeId;
if (instock.source_code != null) {
instock.sync_status = WmsWareHouseConst.SYNC_STATUS__NOTSYNC;
}
else {
instock.sync_status = WmsWareHouseConst.SYNC_STATUS_NONEEDSYNC;
}
instock.audit_status = 0;
instock.print_status = "0";
instock.is_check = 0;
await _db.Insertable(instock).ExecuteCommandAsync();
instockDs = purchaseDs.Adapt<List<WmsInstockD>>();