! -> Note
$ -> Affected files
+19-Jun-2008 Joe Hunt
+! changed so the due date is updated when changing customer in direct invoice.
+$ /sales/includes/ui/sales_order_ui.inc
+
19-Jun-2008 Joe Hunt
# Minor layout bug at Credit Shipping Costs in customer_credit_invoice.php
$ /sales/customer_credit_invoice.php
$order->set_location($myrow["default_location"], $myrow["location_name"]);
$order->set_delivery($myrow["default_ship_via"], $myrow["br_name"],
$address);
+ if ($order->trans_type == 10)
+ $order->due_date = get_invoice_duedate($customer_id, $order->document_date);
}
return $ret_error;
$_POST['deliver_to'] = $order->deliver_to;
$_POST['delivery_address'] = $order->delivery_address;
$_POST['phone'] = $order->phone;
+ if ($order->trans_type == 10)
+ {
+ $_POST['delivery_date'] = $order->due_date;
+ $Ajax->activate('delivery_date');
+ }
$Ajax->activate('Location');
$Ajax->activate('deliver_to');
$Ajax->activate('phone');