Display payments on view invoice like display allocation on view payments. Chaitanya.
[fa-stable.git] / sales / view / view_invoice.php
index 61fc0b56fb88f0974ba980dd1bf2d0f7d67413ac..d6a6cb7aba96ed7b5874430f4309d74b1299fb37 100644 (file)
@@ -165,7 +165,12 @@ label_row(_("TOTAL INVOICE"), $display_total, "colspan=6 align=right",
        "nowrap align=right");
 end_table(1);
 
-is_voided_display(ST_SALESINVOICE, $trans_id, _("This invoice has been voided."));
+$voided = is_voided_display(ST_SALESINVOICE, $trans_id, _("This invoice has been voided."));
+
+if (!$voided)
+{
+       display_allocations_to(PT_CUSTOMER, $myrow['debtor_no'], ST_SALESINVOICE, $trans_id, $myrow['Total']);
+}
 
 end_page(true, false, false, ST_SALESINVOICE, $trans_id);