转库类型等
This commit is contained in:
@@ -452,17 +452,18 @@ namespace Tnb.WarehouseMgr
|
||||
.InnerJoin<OtherOutstockD>((a, b, c, d) => b.id == d.fk_id)
|
||||
.WhereIF(!string.IsNullOrEmpty(input.warehouse_outstock), (a, b, c) => a.warehouse_outstock == input.warehouse_outstock)
|
||||
.WhereIF(!string.IsNullOrEmpty(input.warehouse_instock), (a, b, c) => a.warehouse_instock == input.warehouse_instock)
|
||||
.Where((a, b, c,d) => d.rk_qty < d.actual_outstock_qty)
|
||||
.Where((a, b, c, d) => d.rk_qty < d.actual_outstock_qty)
|
||||
.OrderBy((a, b, c, d) => b.create_time)
|
||||
.Select((a, b, c, d) => new
|
||||
{
|
||||
materialtransfer_billcode = a.bill_code,
|
||||
otheroutstock_id = b.id,
|
||||
otheroutstock_billcode = b.bill_code,
|
||||
outstock_time = b.create_time,
|
||||
material_id=c.material_id,
|
||||
material_code=c.material_code,
|
||||
material_name=c.material_ex,
|
||||
material_spec=c.material_specification,
|
||||
outstock_time = b.create_time.ToString("yyyy-MM-dd HH:mm:ss"),
|
||||
material_id = c.material_id,
|
||||
material_code = c.material_code,
|
||||
material_name = c.material_ex,
|
||||
material_spec = c.material_specification,
|
||||
unit_code = c.unit_id,
|
||||
code_batch = c.code_batch,
|
||||
remainqty = d.actual_outstock_qty - d.rk_qty
|
||||
@@ -1063,9 +1064,8 @@ namespace Tnb.WarehouseMgr
|
||||
if (input.area_code == "E")
|
||||
await sign(input);
|
||||
|
||||
|
||||
// 其它入库
|
||||
if (input.wmsDistaskH.task_type == WmsWareHouseConst.WMS_PRETASK_INSTOCK_TYPE_ID)
|
||||
if (wmsMaterialTransfer.type == WmsWareHouseConst.MATERIALTRANSFER_WXDBRK_CODE)
|
||||
{
|
||||
Logger.LogInformation("【WmsMaterialTransferService ModifyAsync】同步其它入库单到erp...");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user