if (!isset($_POST['ref']))
$_POST['ref'] = references::get_next(11);
if ($_SESSION['Items']->trans_no==0)
if (!isset($_POST['ref']))
$_POST['ref'] = references::get_next(11);
if ($_SESSION['Items']->trans_no==0)
label_row(_("Sub-total"), $display_sub_total, "colspan=6 align=right", "align=right");
if (!isset($_POST['ChargeFreightCost']) OR ($_POST['ChargeFreightCost'] == ""))
label_row(_("Sub-total"), $display_sub_total, "colspan=6 align=right", "align=right");
if (!isset($_POST['ChargeFreightCost']) OR ($_POST['ChargeFreightCost'] == ""))
- text_row(_("Shipping"), 'ChargeFreightCost', $_POST['ChargeFreightCost'], 8, 8, "colspan=6 align=right");
+ amount_cells_ex(_("Shipping"), 'ChargeFreightCost', 8, 8, $_POST['ChargeFreightCost'], "colspan=6 align=right");
$taxes = $order->get_taxes($_POST['ChargeFreightCost']);
$tax_total = display_edit_tax_items($taxes, 6, $_SESSION['Items']->tax_included);
$taxes = $order->get_taxes($_POST['ChargeFreightCost']);
$tax_total = display_edit_tax_items($taxes, 6, $_SESSION['Items']->tax_included);
- $display_total = number_format2(($subtotal + $_POST['ChargeFreightCost'] + $tax_total), user_price_dec());
- label_row(_("Credit Note Total"), $display_total, "colspan=6 align=right","align=right");
+ $display_total = price_format(($subtotal + $_POST['ChargeFreightCost'] + $tax_total));
+
+ label_row(_("Credit Note Total"), $display_total, "colspan=6 align=right","class='amount'");
if (!isset($_POST['stock_id']))
$_POST['stock_id'] = $order->line_items[$_GET['Edit']]->stock_id;
if (!isset($_POST['qty']) || ($_POST['qty']==""))
if (!isset($_POST['stock_id']))
$_POST['stock_id'] = $order->line_items[$_GET['Edit']]->stock_id;
if (!isset($_POST['qty']) || ($_POST['qty']==""))
text_cells(null, "StockID2", "", 12, 10, "", "", "onkeyup='recalcAccounts();' onKeyDown='if (event.keyCode==13) event.keyCode=9;' onblur='return setAccount(0, true);'");
stock_items_list_cells(null, 'stock_id', null, false, false, "onchange='return setAccount(1, true)'");
}
text_cells(null, "StockID2", "", 12, 10, "", "", "onkeyup='recalcAccounts();' onKeyDown='if (event.keyCode==13) event.keyCode=9;' onblur='return setAccount(0, true);'");
stock_items_list_cells(null, 'stock_id', null, false, false, "onchange='return setAccount(1, true)'");
}
$_POST['price'] = get_price($_POST['stock_id'],
$order->customer_currency, $order->sales_type);
// default to the customer's discount %
$_POST['price'] = get_price($_POST['stock_id'],
$order->customer_currency, $order->sales_type);
// default to the customer's discount %
- text_cells(null, 'qty', $_POST['qty'], 13, 15);
+ qty_cells(null, 'qty', $_POST['qty']);
// if ($order->trans_no!=0) {
// amount_cell($line_no==-1 ? 0 :$order->line_items[$line_no]->qty_done);
// }
label_cell($_POST['units']);
// if ($order->trans_no!=0) {
// amount_cell($line_no==-1 ? 0 :$order->line_items[$line_no]->qty_done);
// }
label_cell($_POST['units']);
- text_cells(null, 'price', null, 13, 15);
- text_cells(null, 'Disc', $_POST['Disc'], 7, 5);
+ amount_cells(null, 'price', null);
+ small_amount_cells(null, 'Disc', percent_format(0), null, null, user_percent_dec());