Switching to cash sales in documents didn't preserve the delivery date.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 27 Jan 2012 08:39:15 +0000 (09:39 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 27 Jan 2012 08:39:15 +0000 (09:39 +0100)
sales/includes/ui/sales_order_ui.inc

index 272429289287d13e1e5f3c07bbbb9d4ee2a80e4e..c9e63a1523c6f68a951687a14631c4642901c861 100644 (file)
@@ -588,6 +588,7 @@ function display_delivery_details(&$order)
                label_row(_("Cash account:"), $order->pos['bank_account_name']);
                textarea_row(_("Comments:"), "Comments", $order->Comments, 31, 5);
                end_table();
+               hidden('delivery_date', $order->due_date);
        } else {
                if ($order->trans_type==ST_SALESINVOICE)
                {