新增批号
This commit is contained in:
@@ -105,6 +105,14 @@ namespace Gatedge.NewOrientLandMark.BOS.PlugIn.PUR_PurchaseOrder.ConvertPlugIn
|
|||||||
var SecRealQty = unitService.GetQtyByUtilConverRate(materialId, unitId, remainInStockUnitId, qty);
|
var SecRealQty = unitService.GetQtyByUtilConverRate(materialId, unitId, remainInStockUnitId, qty);
|
||||||
item["RemainInStockQty"] = SecRealQty;
|
item["RemainInStockQty"] = SecRealQty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var lotId = CustomParams["FLot_Id"].ToString();
|
||||||
|
var lotText = CustomParams["FLot_Text"].ToString();
|
||||||
|
// 如果批号不为空,则赋值
|
||||||
|
if (!lotText.IsNullOrEmpty())
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
//if (snUnitId != 0)
|
//if (snUnitId != 0)
|
||||||
//{
|
//{
|
||||||
// var snQty = unitService.GetQtyByUtilConverRate(materialId, unitId, snUnitId, qty);
|
// var snQty = unitService.GetQtyByUtilConverRate(materialId, unitId, snUnitId, qty);
|
||||||
|
|||||||
8
Gatedge.ScanCode/Models/K3Request/BaseData/Lot.cs
Normal file
8
Gatedge.ScanCode/Models/K3Request/BaseData/Lot.cs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
namespace Gatedge.ScanCode.Models.K3Request.BaseData
|
||||||
|
{
|
||||||
|
public class Lot
|
||||||
|
{
|
||||||
|
public int? FLotId { get; set; }
|
||||||
|
public string? FNumber { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -110,6 +110,10 @@ namespace Gatedge.ScanCode.Models.K3Request.SaveModel
|
|||||||
/// 源单分录Id
|
/// 源单分录Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string FSrcEntryId { get; set; }
|
public string FSrcEntryId { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 批号
|
||||||
|
/// </summary>
|
||||||
|
public Lot? FLot { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -156,7 +156,12 @@ namespace Gatedge.ScanCode.Services
|
|||||||
FBarQty = n.FBarQty,
|
FBarQty = n.FBarQty,
|
||||||
FSrcBillId = n.FSrcBillId,
|
FSrcBillId = n.FSrcBillId,
|
||||||
FSrcEntryId = n.FSrcEntryId,
|
FSrcEntryId = n.FSrcEntryId,
|
||||||
FBarAuxPropId = n.FBarAuxpropId == 0 ? null : n.FBarAuxpropId
|
FBarAuxPropId = n.FBarAuxpropId == 0 ? null : n.FBarAuxpropId,
|
||||||
|
FLot = new Lot()
|
||||||
|
{
|
||||||
|
FLotId = n.FLot_Id == 0 ? null : n.FLot_Id,
|
||||||
|
FNumber = n.FLot_Text,
|
||||||
|
}
|
||||||
|
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user