From 0e15ca861655a6403f12a90f187c3fc00f35949d Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Thu, 5 Nov 2015 15:02:50 +0100 Subject: [PATCH] Print Deliveries: Fixed not working print as packing slip option. --- reporting/includes/doctext.inc | 2 +- reporting/rep110.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/reporting/includes/doctext.inc b/reporting/includes/doctext.inc index 1234fc3e..c9011b45 100644 --- a/reporting/includes/doctext.inc +++ b/reporting/includes/doctext.inc @@ -78,7 +78,7 @@ break; case ST_CUSTDELIVERY: - $this->title = ($packing_slip==1 ? _("PACKING SLIP") : _("DELIVERY NOTE")); + $this->title = ($this->params['packing_slip'] ? _("PACKING SLIP") : _("DELIVERY NOTE")); $this->formData['document_name'] = _("Delivery Note No."); if (@$packing_slip) $Payment_Terms = ''; diff --git a/reporting/rep110.php b/reporting/rep110.php index 7044153d..9fc2780a 100644 --- a/reporting/rep110.php +++ b/reporting/rep110.php @@ -16,7 +16,6 @@ $page_security = $_POST['PARAM_0'] == $_POST['PARAM_1'] ? // Creator: Janusz Dobrwolski // date_: 2008-01-14 // Title: Print Delivery Notes -// draft version! // ---------------------------------------------------------------- $path_to_root=".."; @@ -59,7 +58,7 @@ function print_deliveries() // $headers in doctext.inc $aligns = array('left', 'left', 'right', 'left', 'right', 'right', 'right'); - $params = array('comments' => $comments); + $params = array('comments' => $comments, 'packing_slip' => $packing_slip); $cur = get_company_Pref('curr_default'); -- 2.30.2