From 162f2bd33c40c418fe668c9995843bba659cbf4b Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Tue, 11 May 2010 11:30:09 +0000 Subject: [PATCH] Fixed typo and small bug. --- reporting/includes/doctext.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/reporting/includes/doctext.inc b/reporting/includes/doctext.inc index db0e8a88..e0b1e83e 100644 --- a/reporting/includes/doctext.inc +++ b/reporting/includes/doctext.inc @@ -127,12 +127,13 @@ if (isset($header2type) || isset($linetype)) ($doctype == ST_CUSTPAYMENT ? _("Receipt No.") : ($doctype == ST_SUPPAYMENT ? _("Remittance No.") : (($doctype==ST_SALESQUOTE || $doctype==ST_PURCHORDER || $doctype==ST_SALESORDER) ? _("Order No.") : - ($doctype==ST_SALESINVOICE ? _("Invoice No.") : ($doctype==ST_WORKORDER ? _("Word Order No.") : _("Credit No."))))))); + ($doctype==ST_SALESINVOICE ? _("Invoice No.") : ($doctype==ST_WORKORDER ? _("Work Order No.") : _("Credit No."))))))); $doc_Delivery_no = _("Delivery Note No."); $doc_Order_no = _("Order No."); } if (isset($linetype)) { + if ($doctype == ST_SALESQUOTE || $doctype == ST_PURCHORDER || $doctype == ST_SALESORDER || $doctype == ST_SALESINVOICE || $doctype == ST_CUSTCREDIT || $doctype == ST_CUSTDELIVERY) { @@ -146,7 +147,7 @@ if (isset($linetype)) $doc_TOTAL_PO = _("TOTAL PO EX VAT"); $doc_TOTAL_DELIVERY = _("TOTAL DELIVERY INCL. VAT"); } - elseif ($doctype == ST_SUPPAYMENT || ST_CUSTPAYMENT) + elseif ($doctype == ST_SUPPAYMENT || $doctype == ST_CUSTPAYMENT) { $doc_Towards = _("As advance / full / part / payment towards:"); $doc_by_Cheque = _("By Cash / Cheque* / Draft No."); @@ -172,4 +173,4 @@ if (isset($linetype)) $doc_Over = _("Over"); } } -?> \ No newline at end of file +?> -- 2.30.2