新增批号

This commit is contained in:
2025-12-15 17:01:01 +08:00
parent 0210aeacb9
commit 00f11185ba
4 changed files with 26 additions and 1 deletions

View File

@@ -105,6 +105,14 @@ namespace Gatedge.NewOrientLandMark.BOS.PlugIn.PUR_PurchaseOrder.ConvertPlugIn
var SecRealQty = unitService.GetQtyByUtilConverRate(materialId, unitId, remainInStockUnitId, qty);
item["RemainInStockQty"] = SecRealQty;
}
var lotId = CustomParams["FLot_Id"].ToString();
var lotText = CustomParams["FLot_Text"].ToString();
// 如果批号不为空,则赋值
if (!lotText.IsNullOrEmpty())
{
}
//if (snUnitId != 0)
//{
// var snQty = unitService.GetQtyByUtilConverRate(materialId, unitId, snUnitId, qty);

View File

@@ -0,0 +1,8 @@
namespace Gatedge.ScanCode.Models.K3Request.BaseData
{
public class Lot
{
public int? FLotId { get; set; }
public string? FNumber { get; set; }
}
}

View File

@@ -110,6 +110,10 @@ namespace Gatedge.ScanCode.Models.K3Request.SaveModel
/// 源单分录Id
/// </summary>
public string FSrcEntryId { get; set; }
/// <summary>
/// 批号
/// </summary>
public Lot? FLot { get; set; }
}
/// <summary>

View File

@@ -156,7 +156,12 @@ namespace Gatedge.ScanCode.Services
FBarQty = n.FBarQty,
FSrcBillId = n.FSrcBillId,
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,
}
}),
};