From 1f791242a00fa0766f0452ba68024c45490c2960 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Thu, 23 Jul 2015 10:07:08 +0200 Subject: [PATCH] [0003245] Invoice/Quotation Report: fixed option for printing order as quotation. --- reporting/includes/doctext.inc | 2 +- reporting/rep109.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reporting/includes/doctext.inc b/reporting/includes/doctext.inc index 439d7b8f..98a59c8b 100644 --- a/reporting/includes/doctext.inc +++ b/reporting/includes/doctext.inc @@ -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']) diff --git a/reporting/rep109.php b/reporting/rep109.php index 52df0b7c..dde98667 100644 --- a/reporting/rep109.php +++ b/reporting/rep109.php @@ -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'); -- 2.30.2