Skip to main content
Solved

Is It Possible to Change the Report Displayed When the Print Button Is Clicked?

  • October 23, 2024
  • 8 replies
  • 82 views

Forum|alt.badge.img

 

Hello po i just want to ask if i can change the report when the print is clicked ? base on Branch

Best answer by arthia98

Hi @jhoncandare04 , Yes we can navigate to different report based on the branch. We have to override the Print action in ARInvoiceEntry graph. Please refer below code

If the branchID is 1, it will navigate to Invoice/Memo report

Else, it will navigate to Sales Order report

 

View original
Did this topic help you find an answer to your question?

8 replies

Manikanta Dhulipudi
Captain II
Forum|alt.badge.img+13

@jhoncandare04 Please provide additional details on this,

 

You can print the report based on the branch and it will displayed once the report is generated.


Forum|alt.badge.img
  • Author
  • Freshman II
  • 55 replies
  • October 23, 2024

@Manikanta Dhulipudi  For example, if I have two branches and click "Print" on the invoice/memo, it will print the invoice/memo report. However, if I switch to a different branch, go to the invoice/memo, and click "Print," it will generate the sales invoice report instead.


Forum|alt.badge.img
  • Varsity I
  • 41 replies
  • October 23, 2024

@jhoncandare04  do you mean filtering the Invoice Line Details to show only those for a specific branch in the Print Invoice?

So, if an invoice has two items—one for Branch1 and one for Branch2—you only want to include the item for Branch1 when printing?


Forum|alt.badge.img
  • Author
  • Freshman II
  • 55 replies
  • October 23, 2024

@jib87 I manage six branches and use two different reports. Five of the branches share the same report, so printing is straightforward. However, for the one branch that requires a different report, I need to ensure that specific report is pulled up when I click print.


Forum|alt.badge.img+1
  • Jr Varsity III
  • 73 replies
  • Answer
  • October 23, 2024

Hi @jhoncandare04 , Yes we can navigate to different report based on the branch. We have to override the Print action in ARInvoiceEntry graph. Please refer below code

If the branchID is 1, it will navigate to Invoice/Memo report

Else, it will navigate to Sales Order report

 


Forum|alt.badge.img
  • Author
  • Freshman II
  • 55 replies
  • October 23, 2024

@arthia98 Is there no basic configuration for this in the preferences section of Acumatica?


Forum|alt.badge.img+1
  • Jr Varsity III
  • 73 replies
  • October 23, 2024

Hi @jhoncandare04 , Not sure about the configuration, we have implemented the same for one of our customization. Based on custom field selection, Print action of Invoice/Memo, navigating to different reports.


  • Freshman I
  • 7 replies
  • October 23, 2024

as an alternative to adding code to a graph extension, you can also use workflow features - for the screen, create conditions for each branch (e.g. isBranchA, isBranchB), and then add actions that are visible based on the branch condition.   it is a bit backwards, as the property on the action is Hidden rather than visible, but it works, and theoretically makes use of the low-code capabilities of Acumatica.

(personally, the c# code is more clear as to what is being accomplished in this case, but if you don’t want to touch the code...)


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings