Removed bank payment print links (not implemented yet).
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 27 Jun 2010 13:07:51 +0000 (13:07 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 27 Jun 2010 13:07:51 +0000 (13:07 +0000)
sales/inquiry/customer_inquiry.php

index 5f17730d212460b9fba85909c7fdb456360e2544..92c640d49a874ebde9c67a78e80537b4850da325 100644 (file)
@@ -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)