Solved

Update document header total

  • 19 August 2022
  • 1 reply
  • 126 views

Userlevel 2
Badge

Hi,

In the POReceiptLines I added a new action that open an smart panel with a grid. In the grid the user can add multiple lines and when the user click the ok button, I have a custom logic, that select all lines from the smart panel and recalculate receipt quantity for the selected line.  

The problem that I have is that the header of the receipt is not refreshing. Do I need to calculate and update the poreceipt table?

I'm updating the line with this code.

     Base.transactions.Cache.SetValueExt<POReceiptLine.receiptQty>(row, NewQty);

Thanks,

ed

icon

Best answer by Dmitrii Naumov 19 August 2022, 20:01

View original

1 reply

Userlevel 7
Badge +5

Hello Ed, 

You also need to have Update method executed when you update the lines:

 

     Base.transactions.Cache.SetValueExt<POReceiptLine.receiptQty>(row, NewQty);

+  Base.transactions.Update(row);

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved