Skip to main content
Solved

Inventory Receipt Serial Numbers

  • October 9, 2023
  • 1 reply
  • 181 views

Currently in Acumatica, when you are trying to receive an item with serial numbers from a 2 step transfer, the document already comes with the serial numbers from the original transfer.

I’ve tried to remove them from the Cache objects and views y different ways but ultimately it doesn’t work.  Is there a way to clear or remove all line details records when the Transfer number is selected? This way the user validates the physical serial number and enters it in the system.

 

 

Here is my code with all the ways I’ve tried. Any help will be much appreciated. 

protected void INRegister_TransferNbr_FieldUpdated(PXCache cache, PXFieldUpdatedEventArgs e)
        {

            var row = (INRegister)e.Row;
            // this.Base.Caches<PX.Objects.IN.INTranSplit>().Clear();
            //this.Base.Caches<PX.Objects.IN.INCostStatus>().Clear();
            // this.Base.Caches<PX.Objects.IN.Overrides.INDocumentRelease.ItemLotSerial>().Clear();
            //this.Base.Caches<PX.Objects.IN.INItemPlan>().Clear();
            //this.Base.Caches<PX.Objects.IN.Overrides.INDocumentRelease.LotSerialStatus>().Clear();
            //this.Base.Caches<PX.Objects.IN.Overrides.INDocumentRelease.SiteLotSerial>().Clear();

            //foreach (var d in Base.Caches< PX.Objects.IN.INTranSplit>().Cached)
            //{

            //    Base.splits.View.Cache.Delete(d);
            //}

              //this.Base.splits.View.Cache.Clear();

            // this.Base.splits.View.RequestRefresh();
            //this.Base.Caches.Clear();

            //foreach(INTranSplit sp in Base.splits.Select())
            //{
            //    Base.splits.Delete(sp);
            //    //Base.splits.UpdateCurrent();
            //}



            // this.Base.splits.Cache.Clear();
            //this.Base.splits.Cache.Clear();
            //this.Base.splits.View.RequestRefresh();

        }

 

Best answer by ChandraM

Hi @kora Here is a post on the sample for the IN receipts line details code. Please review.

 

View original
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+8
  • Semi-Pro I
  • 715 replies
  • Answer
  • October 13, 2023

Hi @kora Here is a post on the sample for the IN receipts line details code. Please review.

 


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