AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Acumatica Report De...
Subreport works for...
 
Notifications
Clear all

Questions Subreport works for Invoices but not Credit Memos

 
Acumatica Report Designer
Last Post by acheesman 11 months ago
11 Posts
3 Users
1 Reactions
3,988 Views
RSS
DWS253
Posts: 33
 DWS253
Topic starter
October 4, 2017 1:37 pm
(@dws253)
Member
Joined: 8 years ago

Our AR Invoice report uses a subreport to get the descriptive information to print in the body of the Invoice.  We do not print the description from every line item and in the case of Invoices with Installment Terms, we print the information from the master invoice on the child invoices instead of the one line description that is on the generated child invoices.

The subreport works just fine for Invoice type documents.  For Credit Memos, the subreport prints blanks.  I thought it might be that the parameters passed to the subreport might not be working correctly, but in my testing, I was not able to identify if that was the cause or not.  I modified the sub report to print the parameters, but couldn't get that to work either.

Hit a dead end.  Looking for ideas on how to diagnose the problem.


10 Replies
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
October 4, 2017 1:39 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Can you attach the .rpx file?


Reply
DWS253
Posts: 33
 DWS253
Topic starter
October 4, 2017 1:52 pm
(@dws253)
Member
Joined: 8 years ago

Invoice and subreport attached.

 

ar641000.rpx

ar641005.rpx


Reply
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
October 4, 2017 2:54 pm
(@timrodman)
Famed Member
Joined: 10 years ago

At first glance, are you sure that it works if MasterRefNbr in the screenshot below is blank, but not null?

I'm wondering if it could be blank on a Credit Memo and a blank value gets passed to the Subreport since technically it isn't NULL.


Reply
DWS253
Posts: 33
 DWS253
Topic starter
November 9, 2017 6:31 pm
(@dws253)
Member
Joined: 8 years ago

Finally got a chance to look at this again.  ALL CRMs in the database have NULL as the value for MasterRefNbr.  Any other ideas?


Reply
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
November 9, 2017 10:44 pm
(@timrodman)
Famed Member
Joined: 10 years ago

The only other thing that I can think of is the filter in the subreport. Are you sure that Credit Memos have COMMENT items on them?

 


Reply
DWS253
 DWS253
(@dws253)
Joined: 8 years ago

Member
Posts: 33
November 10, 2017 9:31 am
Reply toTim RodmanTim Rodman

I tested the subreport using "/Frames/ReportLauncher.aspx?ID=AR641005.rpx".  When I ran it with a CRM that had a COMMENT item code, it did return data in the subreport correctly.  When I ran the main report for the same CRM, no data in the subreport.  Again, it works fine for INV documents.


Reply
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
November 13, 2017 5:38 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Hmmm, so it definitely has to do with passing the parameters.

Using the same CRM that you tested with, can you try changing the formula below temporarily to remove the IsNull so it only has the following:

=[ARInvoice.RefNbr]

Also, if you could email me credentials to the environment that you are using, I could try testing on my end.


Reply
acheesman reacted
DWS253
 DWS253
(@dws253)
Joined: 8 years ago

Member
Posts: 33
November 13, 2017 6:56 pm
Reply toTim RodmanTim Rodman

Acumatica support found the answer.  Here are the parameters I was passing to the subreport from the main:

DOC TYPE  "=[ARInvoice.DocType]"
REF NBR    "=IsNull( [ARInvoice.MasterRefNbr], [ARInvoice.RefNbr] )"

Here's what works:

DOC TYPE  "=[@DocType]"
REF NBR    "=IsNull( [ARInvoice.MasterRefNbr], [@RefNbr] )"


Reply
acheesman
 acheesman
(@acheesman)
Joined: 5 years ago

New Member
Posts: 2
December 20, 2024 12:27 pm
Reply toDWS253DWS253
Tim Rodman

@dws253 Thanks for offering this solution! We got our subreport to show credit memo data, so thank you!


Reply
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
November 13, 2017 8:50 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Thanks for sharing. I guess that makes sense.

=[@DocType] was probably passing something like "Credit Memo" and =[ARInvoice.DocType] was probably passing something like "CRM".


Reply
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 12 Online
  • 2,412 Members
Our newest member: thollings
Latest Post: Attribute Input Mask
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×