[0003245] Invoice/Quotation Report: fixed option for printing order as quotation.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 23 Jul 2015 08:07:08 +0000 (10:07 +0200)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 23 Jul 2015 08:07:08 +0000 (10:07 +0200)
reporting/includes/doctext.inc
reporting/rep109.php

index 439d7b8f0e11f44297aea5b74774ec5310b6d92c..98a59c8b0585000a523d85d7e383b89b2f6a5a78 100644 (file)
@@ -61,7 +61,7 @@
                        break;
 
                case ST_SALESORDER:
-                       $this->title = ($print_as_quote==1 ? _("QUOTE") : ($this->formData['prepaid'] ? _("PREPAYMENT ORDER") : _("SALES ORDER")));
+                       $this->title = ($this->params['print_quote'] ? _("QUOTE") : ($this->formData['prepaid'] ? _("PREPAYMENT ORDER") : _("SALES ORDER")));
                        $this->formData['document_name'] =_("Order No.");
                        $this->formData['document_date'] = $this->formData['ord_date'];
                        $this->formData['document_number'] = $SysPrefs->print_invoice_no() == 0 && isset($this->formData['reference'])
index 52df0b7cece00410dcc636afc82efec888859968..dde986674c2e7cfc7315cfb429aa0bcbcade74af 100644 (file)
@@ -53,7 +53,7 @@ function print_sales_orders()
        // $headers in doctext.inc
        $aligns = array('left', 'left', 'right', 'left', 'right', 'right', 'right');
 
-       $params = array('comments' => $comments);
+       $params = array('comments' => $comments, 'print_quote' => $print_as_quote);
 
        $cur = get_company_Pref('curr_default');