From: Janusz Dobrowolski Date: Sun, 27 Jun 2010 13:07:51 +0000 (+0000) Subject: Removed bank payment print links (not implemented yet). X-Git-Tag: v2.4.2~19^2~817 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=b54fdb00859af85c72742d32ebc628ef52b81cec;hp=b7e2cbc5e29032f00d61d1bd5729abc1691b6a3a;p=fa-stable.git Removed bank payment print links (not implemented yet). --- 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)