11
This commit is contained in:
@@ -288,12 +288,13 @@ namespace MyCode.Project.Services.Implementation
|
||||
int yu = (int)Math.Ceiling(zongQty % act.CuseQty);
|
||||
int baoShu = 0;
|
||||
baoShu = (int)(zongQty / act.CuseQty);
|
||||
|
||||
|
||||
// 条码 :物料编码,数量,收料通知单号,供应商批号,key
|
||||
// 条码 :物料编码,数量,收料通知单号,供应商批号,美塞斯批号,key
|
||||
for (int i = 0; i < baoShu; i++)
|
||||
{
|
||||
|
||||
string FBarCode = $@"{orderItem.MaterialCode}*{act.CuseQty.ToString("F2")}*{order.FBillNo}*{orderItem.FSupplierLot}";
|
||||
string FBarCode = $@"{orderItem.MaterialCode}*{act.CuseQty.ToString("F2")}*{order.FBillNo}*{orderItem.FSupplierLot}*{orderItem.MSSSupplierLot}";
|
||||
TiaoMaList tiaoMa = new TiaoMaList();
|
||||
tiaoMa = AutoMapperHelper.AutoMappToSingle<TiaoMaList, InvoiceOrderItem>(orderItem);
|
||||
tiaoMa.Id = Guid.NewGuid();
|
||||
@@ -309,7 +310,7 @@ namespace MyCode.Project.Services.Implementation
|
||||
}
|
||||
if (yu > 0)
|
||||
{
|
||||
string FBarCode = $@"{orderItem.MaterialCode}*{decimal.Parse(yu.ToString()).ToString("F2")}*{order.FBillNo}*{orderItem.FSupplierLot}";
|
||||
string FBarCode = $@"{orderItem.MaterialCode}*{decimal.Parse(yu.ToString()).ToString("F2")}*{order.FBillNo}*{orderItem.FSupplierLot}*{orderItem.MSSSupplierLot}";
|
||||
TiaoMaList tiaoMa = new TiaoMaList();
|
||||
tiaoMa = AutoMapperHelper.AutoMappToSingle<TiaoMaList, InvoiceOrderItem>(orderItem);
|
||||
tiaoMa.Id = Guid.NewGuid();
|
||||
|
||||
Reference in New Issue
Block a user