"Lotserial nbr ('anyNumber') can not found in the system", why am I getting this?

问题描述 投票:0回答:1

"Lotserial nbr ('anyNumber')can not found in the system", why am I getting this when transfer inventory from a location to another?1) Transferred inventory from SHIPMENT locationwarehouse to another location warehouse.2) then transferring again from above location warehouse to another warehouselocation.then got error.

        INTransferEntry transferGraph = PXGraph.CreateInstance<INTransferEntry>();
        INRegister reg = new INRegister();
        reg.SiteID = lotDetail.WarehouseID;
        reg.ToSiteID = distribution.ToWarehouseID;
        reg.TransferType = Order.Current.TranType;
        reg.DocType = INDocType.Transfer;
        reg.TranDate = DateTime.Now;
        reg.TotalQty = distribution.Qty;

        reg = transferGraph.transfer.Insert(reg);

        INTran tran = new INTran();

        tran.INTransitQty = distribution.Qty;
        tran.InventoryID = Order.Current.InventoryID;
        tran.ToLocationID = distribution.ToLocationID;
        tran.ToSiteID = distribution.ToWarehouseID;
        tran.TranType = INTranType.Transfer;
        tran.InvtMult = INTranType.InvtMult(tran.TranType);
        tran.Qty = distribution.Qty;
        tran.ReasonCode = distribution.ReasonCode;
        tran.SiteID = lotDetail.WarehouseID;
        tran.LocationID = lotDetail.LocationID;
        tran.TranDesc = distribution.Description;
        tran.LotSerialNbr = lotDetail.LotSerNumVal;
        tran = transferGraph.transactions.Insert(tran);
acumatica acumatica-kb
1个回答
0
投票

你需要看一下INTranSplit DAC,它把Lot Tracking和INTran DAC联系起来,管理现有的Lots链接到INItem

© www.soinside.com 2019 - 2024. All rights reserved.