X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fview%2Fview_invoice.php;fp=sales%2Fview%2Fview_invoice.php;h=d6a6cb7aba96ed7b5874430f4309d74b1299fb37;hb=4528afda32783ab1b4e5e88fe19e2136a3f060e1;hp=61fc0b56fb88f0974ba980dd1bf2d0f7d67413ac;hpb=d310e2d17d5aa54ce118b9e70890ce1f257737fd;p=fa-stable.git diff --git a/sales/view/view_invoice.php b/sales/view/view_invoice.php index 61fc0b56..d6a6cb7a 100644 --- a/sales/view/view_invoice.php +++ b/sales/view/view_invoice.php @@ -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);