From 13aa48ccc9265df336a1805d2e4709365f19c956 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sun, 19 Oct 2008 19:59:31 +0000 Subject: [PATCH] More sales documents available for printing from inquiry page. --- reporting/includes/header2.inc | 3 ++- sales/inquiry/customer_inquiry.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/reporting/includes/header2.inc b/reporting/includes/header2.inc index 84d93e1e..07c73f96 100644 --- a/reporting/includes/header2.inc +++ b/reporting/includes/header2.inc @@ -215,7 +215,8 @@ if (isset($bankaccount['bank_name'])) $this->Text($mcol, $bankaccount['bank_name'], $mcol2); $this->NewLine(); - $this->TextWrapLines($mcol, $mcol2 - $mcol, $bankaccount['bank_address']); + if (isset($bankaccount['bank_address'])) + $this->TextWrapLines($mcol, $mcol2 - $mcol, $bankaccount['bank_address']); $this->row = $adrline; if (isset($bankaccount['bank_account_name'])) $this->Text($mcol2, $bankaccount['bank_account_name']); diff --git a/sales/inquiry/customer_inquiry.php b/sales/inquiry/customer_inquiry.php index 1e2aa7f1..bbe6f9a8 100644 --- a/sales/inquiry/customer_inquiry.php +++ b/sales/inquiry/customer_inquiry.php @@ -264,7 +264,7 @@ if (db_num_rows($result) == 0) echo $gl_trans_str; label_cell($edit_page=='' ? '' : "" . _('Edit') . ''); - if ($myrow['type'] == 10 || $myrow['type'] == 11) + if ($myrow['type'] != 12) // customer payment printout not defined yet. label_cell(print_document_link($myrow['trans_no'], _("Print"), true, $myrow['type'])); else label_cell(""); -- 2.30.2