Hi,
When we are in sales order list, upon clicking a sales order and choose SELL tab on the top bar > Sales Tax, we want to plug in/populate value for the Total Actual Sales Tax Amount field without having the user to type into it. How do we do that?
So far we have tried to inject the value before the tax regulation field being populated, but the value still does not get changed.
[PreHandlerFor(formStr(TaxTmpWorkTrans), formMethodStr(TaxTmpWorkTrans, taxRegulationTotalCur))]
public static void TaxTmpWorkTrans_Pre_taxRegulationTotalCur(XppPrePostArgs agrs)
{
boolean set = agrs.getArgs('_set'); //get boolean check whethe we will use regulated/custom tax or not.
TaxRegulationAmountCur taxRegulationCur = args.getArg('_taxRegulationTotalCur'); //get field
set = true;
taxRegulationTotalCur = 19.00;
}
We also attempted with other methods like initTmpTaxRegulationValue, etc. witthout success.
Any insight of how to do this would be very appreciated!
Thank you guys in advance,
TN