Solved

Subreport works for type INV but not CRM

  • 21 June 2023
  • 5 replies
  • 52 views

Userlevel 5
Badge +2

A client, in Canada, needs to have some TaxIds grouped together on the printed AR Invoice
I created a subreport to do the calculations & return the calculated total. 

This is what the calculation is: =$GST + IIF ( [ARTaxTran.TaxID]='FREIGHT13' OR [ARTaxTran.TaxID]='FREIGHT15' OR [ARTaxTran.TaxID]= 'FREIGHT5' OR [ARTaxTran.TaxID]='GST' OR [ARTaxTran.TaxID]='GSTNOPST' OR [ARTaxTran.TaxID]='HST13' OR [ARTaxTran.TaxID]='HST15', [ARTaxTran.TaxAmt] , 0)

This works perfectly for Invoices. 
When a Credit Memo is printed the result returns zero. 
I set the subreport up in the site map & ran it & the totals appeared as expected. 

I have no idea why the Credit Memo is not returning the results. 
Any assistance would be great!

The 2 reports are attached. 
 

icon

Best answer by wfilipiak67 24 July 2023, 22:43

View original

5 replies

Userlevel 5
Badge +2

I was wondering if anyone had a chance to review this. It is very strange!

Userlevel 7
Badge

Hi @wfilipiak67 were you able to find a solution? Thank you!

Userlevel 5
Badge +2

@Chris Hackett ,
There has been no replies and I have not been able to figure this out yet. 

 

Userlevel 5
Badge +2

The solution turned out to be using ARInvoice.DocType.Raw instead of ARInvoice.DocType. 

I am not sure why the latter worked for Invoices & not Credit Memos.

Userlevel 7
Badge

Thank you for sharing your solution with the community @wfilipiak67!

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved