Hi,
I am trying to override sales tax on a free text invoice. FTI has two lines - with same sales tax and Item sales tax groups(hence picking only one sales tax code).
I am writing the logic in extension to CustInvoiceCalcTax_Table.calcTax() method as below:
The issue is its not overriding the sales tax amount (115.00 in my case) and still using the standard calculation using the sales tax code.
Couple of options I tried:
1) Used taxRegulation.allocateAmount(115.00)
2) Tried updating TmpTaxWorkTrans.SourceRegulateAmountCur values for the records to the tax amounts to be overridden with.
3) Tried updating TmpTaxRegulation.SourceRegulateAmountCur and TmpTaxRegulation.OverrideCalculatesSalesTax to 'Yes'.
This is a very urgent issue - tried to debug standard code but no luck.
Any help is much appreciated!!
thanks,
Padmaja