we create a customization button that change line property of all lines on PO then create or update accounting distribution but not working if PO credit line
which method should I call to fix this ?
fix that accounting distribution doesn't update if we click on this button in credit note case
when we click on this button will change line property so what's missing to work all logic of accounting distribution
select forupdate _PurchLine where _PurchLine.PurchId == PurchTable.PurchId;
if (_PurchLine)
{
_PurchLine.ProjLinePropertyId = 'Noncharge';
purchLineType = _PurchLine.type();
_PurchLine.update();
}