Skip to main content
Answer

Update document header total

  • August 19, 2022
  • 1 reply
  • 175 views

Forum|alt.badge.img

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

Best answer by Dmitrii Naumov

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);

1 reply

Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • Answer
  • August 19, 2022

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);