I'm working in Acumatica Report Designer and building a report that joins ARTran with ARTax. The issue I'm facing is that when a transaction line has multiple tax records (i.e., multiple ARTax rows per ARTran), the detail section repeats the same ARTran line for each tax row.
I only want to show one line per transaction (ARTran), and conditionally add the tax amount only when the TaxCategoryID is 'OTP'. Additionally, the ARTax.TaxID can vary by state (e.g., MSOTP, AROTP, TNOTP66SALES, etc.).
I’ve used this expression in the detail section:
=$DrCrSign * ( [ARTran.CuryTranAmt] + IIF(InStr([ARTax.TaxID], 'OTP') > 0, [ARTax.TaxAmt], 0) )
Please guide thanks