Topic: Quote vs Sales Order text on documents

I noticed an option in the sales order report rep109.php to $print_as_quote.

When this is set to 1, the sales order document is meant to say 'QUOTE' or whatever you've got in your language, instead of 'SALES ORDER'.

Very useful, however there's a line of code that says
$print_as_quote = 0;
but when I changed it to 1, it did nothing.

Then I found out it doesn't work because the code picks up the option from

reporting/includes/reporting.inc
as PARAM_5.

I set that to '1' and the report now correctly says 'QUOTE'.

Question: is the $print_as_quote redundant in rep109.php? Maybe it's there as a declaration, not sure, but it would seem that PARAM_5 is the place to change it in
reporting.inc.

Re: Quote vs Sales Order text on documents

Yes, I see we are talking release 2.1. The PARAM_5 sets the value of $print_as_quote. It is there only as a declaration.

In release 2.2 you can create quotations just like sales orders as well.

/Joe