I want to update the unit price field in the detail section of the Invoices and Memos (AR301000) screen. I've tried the below method that updates the unit price for each line correctly. However, the problem is that other fields based on the unit price are not being recalculated. What should I do to update these other fields as well?
PXResultset<ARTran> TransactionLines = PXSelect<ARTran,
Where<ARTran.refNbr, Equal<Required<ARTran.refNbr>>,
And<ARTran.tranType, Equal<Required<ARTran.tranType>>>>>
.Select(this.Base, currentView.RefNbr, currentView.DocType)
if (TransactionLines != null){
foreach (ARTran TransactionLine in TransactionLines)
{
TransactionLine.CuryUnitPrice = 100;
}
}
this.base.persist();
Any detailed instructions, tips, or code snippets would be greatly appreciated. Thank you!