X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Finquiry%2Fcustomer_inquiry.php;h=4674989f729a5309669e483c321ed1ea2f9f473b;hb=97c5e11dd178b2b10edd2b99276b3347470fafc8;hp=eb98d3dad278b040f247b8df3a2f75d7d4dd7bb7;hpb=9a101a373c2b0575d65c481724d857298ec06fe9;p=fa-stable.git diff --git a/sales/inquiry/customer_inquiry.php b/sales/inquiry/customer_inquiry.php index eb98d3da..4674989f 100644 --- a/sales/inquiry/customer_inquiry.php +++ b/sales/inquiry/customer_inquiry.php @@ -70,9 +70,15 @@ function credit_link($row) if ($page_nested) return ''; - return $row['type'] == ST_SALESINVOICE && $row["Outstanding"] > 0 ? - pager_link(_("Credit This") , - "/sales/customer_credit_invoice.php?InvoiceNumber=". $row['trans_no'], ICON_CREDIT):''; + if ($row["Outstanding"] > 0) + { + if ($row['type'] == ST_CUSTDELIVERY) + return pager_link(_('Invoice'), "/sales/customer_invoice.php?DeliveryNumber=" + .$row['trans_no'], ICON_DOC); + else if ($row['type'] == ST_SALESINVOICE) + return pager_link(_("Credit This") , + "/sales/customer_credit_invoice.php?InvoiceNumber=". $row['trans_no'], ICON_CREDIT); + } } function edit_link($row)