From: Janusz Dobrowolski Date: Thu, 23 Jul 2015 08:07:08 +0000 (+0200) Subject: [0003245] Invoice/Quotation Report: fixed option for printing order as quotation. X-Git-Tag: v2.4.2~19^2~156 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=1f791242a00fa0766f0452ba68024c45490c2960;p=fa-stable.git [0003245] Invoice/Quotation Report: fixed option for printing order as quotation. --- 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');