From b54fdb00859af85c72742d32ebc628ef52b81cec Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sun, 27 Jun 2010 13:07:51 +0000 Subject: [PATCH] Removed bank payment print links (not implemented yet). --- sales/inquiry/customer_inquiry.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sales/inquiry/customer_inquiry.php b/sales/inquiry/customer_inquiry.php index 5f17730d..92c640d4 100644 --- a/sales/inquiry/customer_inquiry.php +++ b/sales/inquiry/customer_inquiry.php @@ -189,10 +189,12 @@ function edit_link($row) function prt_link($row) { - if ($row['type'] != ST_CUSTPAYMENT && $row['type'] != ST_BANKDEPOSIT) // customer payment or bank deposit printout not defined yet. - return print_document_link($row['trans_no']."-".$row['type'], _("Print"), true, $row['type'], ICON_PRINT); - else + if ($row['type'] == ST_CUSTPAYMENT || $row['type'] == ST_BANKDEPOSIT) return print_document_link($row['trans_no']."-".$row['type'], _("Print Receipt"), true, ST_CUSTPAYMENT, ICON_PRINT); + elseif ($row['type'] == ST_BANKPAYMENT) // bank payment printout not defined yet. + return ''; + else + return print_document_link($row['trans_no']."-".$row['type'], _("Print"), true, $row['type'], ICON_PRINT); } function check_overdue($row) -- 2.30.2