Topic: Rep109 in Print Profiles

I am not sure if this is a bug but would like to know why this looks the way it is. Rep109 works perfectly though.
But in FA2.4.10

Setup->Print profiles

Produces ???1) in the description field against Report Id 109.
Whereas ???1) means  - no title was found in this report definition file.

Can someone explain why this is the case? I went thru rep109 code but could not find the problem.

Note: I copied rep109 from 2.4.8 and the display is as expected (SALES ORDERS)

Please see attached screen shot from fa2.4.10.

Post's attachments

shot_211012_182704.png 74.3 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Re: Rep109 in Print Profiles

@rafat it's good finding.

While creating $rep object, the frontreport has some parameters, the first parameter is the title of the report, that comes in that list. For rep109.php , the first parameter in the FrontReport, it's empty there. There it comes as empty string.

Subscription service based on FA
HRM CRM POS batch Themes

Re: Rep109 in Print Profiles

Hi @kvvaradha
Any suggestion on how to repair this?

Re: Rep109 in Print Profiles

open the rep209.php and find this line

$rep = new FrontReport("", "", user_pagesize(), 9, $orientation);

and replace with a title like this

$rep = new FrontReport(_('PURCHASE ORDER'), "PurchaseOrderBulk", user_pagesize(), 9, $orientation);

and it will work for you.

@joe consider updating the FrontReport Headers same for email and non email headers

Subscription service based on FA
HRM CRM POS batch Themes

Re: Rep109 in Print Profiles

Thanks @kvvaradha

You meant

open the rep109.php and find this line

$rep = new FrontReport("", "", user_pagesize(), 9, $orientation);

and replace with a title like this

$rep = new FrontReport(_('SALES ORDER'), "SalesOrderBulk", user_pagesize(), 9, $orientation);

and it will work for you.

@joe consider updating the FrontReport Headers same for email and non email headers

Re: Rep109 in Print Profiles

This has been fixed and committed to stable repo. A fixed file can be downloaded here.

Joe