修改了初始入库
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using NPOI.OpenXmlFormats.Dml.Diagram;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
@@ -103,6 +104,8 @@ namespace WMS.Web.Domain.Entitys
|
||||
{
|
||||
if (type == InstockType.Purchase)
|
||||
this.Status = InstockStatus.Wait;
|
||||
else if (type == InstockType.ProduceSotck)
|
||||
this.Status = InstockStatus.Wait;
|
||||
else
|
||||
this.Status = InstockStatus.WaitInStock;
|
||||
this.Type = type;
|
||||
|
||||
@@ -78,6 +78,11 @@ namespace WMS.Web.Domain.Services
|
||||
var result = await this.SsynPurchaseInStock(billNos, isTransaction);
|
||||
if (!result.IsSuccess) isRollback = true;
|
||||
}
|
||||
else if(task.Type==InstockType.ProduceSotck)
|
||||
{
|
||||
var result = await this.SsynProduceSotck(billNos, isTransaction);
|
||||
if (!result.IsSuccess) isRollback = true;
|
||||
}
|
||||
else if (task.Type == InstockType.Miscellaneous)
|
||||
{
|
||||
var result = await this.SysnMiscellaneous(billNos, isTransaction);
|
||||
|
||||
@@ -795,6 +795,7 @@ namespace WMS.Web.Domain.Services.Public
|
||||
lis.ErpDetailId = Convert.ToInt32(item[12]);
|
||||
lis.Type = (int)InstockType.ProduceSotck;
|
||||
lis.SaleBillNo = item[1];
|
||||
|
||||
erp_list.Add(lis);
|
||||
}
|
||||
//_logger.LogInformation("分步式调入条数:" + erp_list.Count);
|
||||
|
||||
Reference in New Issue
Block a user