projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Gettext switching clenaup.
[fa-stable.git]
/
sales
/
inquiry
/
customer_inquiry.php
diff --git
a/sales/inquiry/customer_inquiry.php
b/sales/inquiry/customer_inquiry.php
index 5f17730d212460b9fba85909c7fdb456360e2544..92c640d49a874ebde9c67a78e80537b4850da325 100644
(file)
--- a/
sales/inquiry/customer_inquiry.php
+++ b/
sales/inquiry/customer_inquiry.php
@@
-189,10
+189,12
@@
function edit_link($row)
function prt_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);
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)
}
function check_overdue($row)