Cleanup. Don't show edit/credit links in popup transactions/inquiry.
[fa-stable.git] / sales / inquiry / customer_allocation_inquiry.php
index f32bd6cbb2c4212b1ef41d81aa7db91bd05fb84f..e7b0ca27c5a5ec1ecf3cc7cd8147c5ce825e75fa 100644 (file)
@@ -112,7 +112,10 @@ function alloc_link($row)
        {
                /*its a negative receipt */
                return '';
-       }
+       } elseif ($row["type"] == ST_SALESINVOICE && ($row['TotalAmount'] - $row['Allocated']) > 0)
+               return pager_link(_("Payment"),
+                       "/sales/customer_payments.php?customer_id=".$row["debtor_no"]."&SInvoice=" . $row["trans_no"], ICON_MONEY);
+
 }
 
 function fmt_debit($row)