$_SESSION['Items']->order_no = $order_no;
$_SESSION['Items']->src_docs = array($order_no);
$_SESSION['Items']->trans_no = 0;
$_SESSION['Items']->trans_type = ST_SALESINVOICE;
$_SESSION['Items']->order_no = $order_no;
$_SESSION['Items']->src_docs = array($order_no);
$_SESSION['Items']->trans_no = 0;
$_SESSION['Items']->trans_type = ST_SALESINVOICE;
}
if (check_num('Line'.$line_no, $min, $max)) {
$_SESSION['Items']->line_items[$line_no]->qty_dispatched =
}
if (check_num('Line'.$line_no, $min, $max)) {
$_SESSION['Items']->line_items[$line_no]->qty_dispatched =
if (isset($_POST['process_invoice']) && check_data()) {
$newinvoice= $_SESSION['Items']->trans_no == 0;
copy_to_cart();
if (isset($_POST['process_invoice']) && check_data()) {
$newinvoice= $_SESSION['Items']->trans_no == 0;
copy_to_cart();
label_row(_("Payments received:"), implode(',', $list));
label_row(_("Invoiced here:"), price_format($_SESSION['Items']->prep_amount), 'class=label');
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);
}
textarea_row(_("Memo:"), 'Comments', null, 50, 4);