X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fcustomer_invoice.php;h=3bf5a6bbb7e147e5f0e1d3ccc5723995fe4d2f61;hb=f7093d7dde32fcccbe14b828ccdcf80bc652d7c3;hp=e4ab5158322f95ef6fffea1a7f20fdf724a76317;hpb=e4cef39a7672370a7ae2e61c94e5267825fd1c5c;p=fa-stable.git diff --git a/sales/customer_invoice.php b/sales/customer_invoice.php index e4ab5158..3bf5a6bb 100644 --- a/sales/customer_invoice.php +++ b/sales/customer_invoice.php @@ -649,10 +649,10 @@ if ($prepaid) $allocs += $pmt['amt']; } } - label_row(_("Payments received:"), implode(',', $list)); label_row(_("Invoiced here:"), price_format($_SESSION['Items']->prep_amount), 'class=label'); - label_row(_("Left to be invoiced:"), price_format($_SESSION['Items']->get_trans_total()-max($_SESSION['Items']->prep_amount, $allocs)), 'class=label'); + label_row($_SESSION['Items']->payment_terms['days_before_due'] == -1 ? _("Left to be invoiced:") : _("Invoiced so far:"), + price_format($_SESSION['Items']->get_trans_total()-max($_SESSION['Items']->prep_amount, $allocs)), 'class=label'); } textarea_row(_("Memo:"), 'Comments', null, 50, 4);