转库单类型是人工线,状态直接是完成
This commit is contained in:
@@ -62,6 +62,10 @@ namespace Tnb.WarehouseMgr.Entities.Dto.ErpInputs
|
||||
/// 应到货日期
|
||||
/// </summary>
|
||||
public DateTime arrival_date { get; set; }
|
||||
/// <summary>
|
||||
/// 转库单类型(人工线,自动线)
|
||||
/// </summary>
|
||||
public string transfer_type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 主表主键
|
||||
|
||||
@@ -1019,7 +1019,7 @@ namespace Tnb.WarehouseMgr
|
||||
WmsMaterialTransfer wmsMaterialTransfer = new WmsMaterialTransfer();
|
||||
string Code = await _billRuleService.GetBillNumber("MaterialTransfer");
|
||||
wmsMaterialTransfer.bill_code = Code;
|
||||
wmsMaterialTransfer.status = WmsWareHouseConst.BILLSTATUS_ADD_ID;
|
||||
wmsMaterialTransfer.status = input.transfer_type == "0001H11000000000D32H" ? WmsWareHouseConst.BILLSTATUS_COMPLETE_ID : WmsWareHouseConst.BILLSTATUS_ADD_ID;//转库单类型是人工线的,直接是完成状态
|
||||
wmsMaterialTransfer.bill_date = DateTime.Now;
|
||||
wmsMaterialTransfer.warehouse_outstock = warehouse_outstock.id;
|
||||
wmsMaterialTransfer.warehouse_instock = warehouse_instock.id;
|
||||
@@ -1088,7 +1088,7 @@ namespace Tnb.WarehouseMgr
|
||||
WmsPrdReturnH wmsPrdReturnH = new WmsPrdReturnH();
|
||||
string Code = await _billRuleService.GetBillNumber("WMSPRDRETURN");
|
||||
wmsPrdReturnH.bill_code = Code;
|
||||
wmsPrdReturnH.status = WmsWareHouseConst.BILLSTATUS_ADD_ID;
|
||||
wmsPrdReturnH.status = input.transfer_type == "0001H11000000000D32H" ? WmsWareHouseConst.BILLSTATUS_COMPLETE_ID : WmsWareHouseConst.BILLSTATUS_ADD_ID;//转库单类型是人工线的,直接是完成状态
|
||||
wmsPrdReturnH.warehouse_id = warehouse_instock.id;
|
||||
wmsPrdReturnH.create_id = WmsWareHouseConst.ErpUserId;
|
||||
wmsPrdReturnH.create_time = DateTime.Now;
|
||||
|
||||
Reference in New Issue
Block a user