X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fview%2Fview_invoice.php;h=3cbd78dfd7284b6b88e30b67dd954af9ba21240e;hb=0e9e4cf4f01431531dfed299bb501955bb0818ed;hp=ead1bd3a4a30193a10c9b012cea682c679406ead;hpb=89e8ca2be9235215ac2e2bf5e58d7eedd2dda84d;p=fa-stable.git diff --git a/sales/view/view_invoice.php b/sales/view/view_invoice.php index ead1bd3a..3cbd78df 100644 --- a/sales/view/view_invoice.php +++ b/sales/view/view_invoice.php @@ -42,7 +42,7 @@ $branch = get_branch($myrow["branch_code"]); $sales_order = get_sales_order_header($myrow["order_"], ST_SALESORDER); display_heading(sprintf($myrow['prep_amount'] > 0 ? ( - $paym['days_before_due']>=0 ? _("FINAL INVOICE #%d") : _("PREPAYMENT INVOICE #%d")) : _("SALES INVOICE #%d"),$trans_id)); + $paym['type'] == PTT_PREPAY ? _("FINAL INVOICE #%d") : _("PREPAYMENT INVOICE #%d")) : _("SALES INVOICE #%d"),$trans_id)); echo "
"; start_table(TABLESTYLE2, "width='95%'");