$_POST['Comments'] = $cart->Comments;
$_POST['StkLocation'] = $cart->Location;
$_POST['delivery_address'] = $cart->delivery_address;
+ foreach($cart->tax_overrides as $id => $value)
+ $_POST['mantax'][$id] = price_format($value);
}
function copy_to_cart()
$cart->Comments = $_POST['Comments'];
$cart->Location = $_POST['StkLocation'];
$cart->delivery_address = $_POST['delivery_address'];
+ if (isset($_POST['mantax'])) {
+ foreach($_POST['mantax'] as $id => $tax) {
+ $cart->tax_overrides[$id] = user_numeric($_POST['mantax'][$id]); }
+ }
}
// ------------------------------------------------------------------------------
$_POST['OrderDate'] = end_fiscalyear();
$cart->due_date = $cart->orig_order_date = $_POST['OrderDate'];
-
$cart->trans_type = $trans_type;
$cart->order_no = $trans_no;
/*read in all the selected order into the Items cart */
$taxes = $order->get_taxes(input_num('freight_cost'));
- $tax_total = display_edit_tax_items($taxes, $colspan, $order->tax_included, 2);
+ $tax_total = display_edit_tax_items($taxes, $colspan, $order->tax_included, 2, $order->trans_type==ST_SUPPINVOICE);
$display_total = price_format(($total + input_num('freight_cost') + $tax_total));