Skip to main content
Question

Could not able to Generate next Lot Serial Nbr

  • 28 September 2022
  • 0 replies
  • 75 views

Forum|alt.badge.img

I have did a customization where using the pre assigned lot serial nbr feature to show the next lot serial nbr. i have did using the below code

 PXResult<InventoryItem, INLotSerClass> result = new PXResult<InventoryItem, INLotSerClass>(invitm.Current, iNLotSerClass);
                                    ILotSerNumVal numVal = INLotSerialNbrAttribute.ReadLotSerNumVal(this, result);
                                    numVal.LotSerNumVal = numVal.LotSerNumVal + iNLotSerClass.AutoNextNbr;
                                    string autoincrementnbr   = INLotSerialNbrAttribute.GetNextNumber(invsetting.Cache, iNLotSerClass, numVal);
                                    // invsetting.Current.LotSerNumVal = INLotSerialNbrAttribute.GetNextNumber(invsetting.Cache, iNLotSerClass, numVal);

 

Where it was working fine in 21R1 but when i check these in the 22R1 its not generating the next lot serial nbr  using INLotSerialNbrAttribute.GetNextNumber(invsetting.Cache, iNLotSerClass, numVal);
all the time the lotserialnbr = LREX0000
 

 

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings