Fixed a bug when trying to back the inv.date and due date in Direct Invoicing
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 24 Jun 2008 13:01:32 +0000 (13:01 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 24 Jun 2008 13:01:32 +0000 (13:01 +0000)
sales/sales_order_entry.php

index 4d85035946d618611016c262871251a0f653d610..aaad352b018adcbdc5ae4fa5f8c72b1ffc99db3e 100644 (file)
@@ -232,7 +232,8 @@ function can_process() {
                set_focus('delivery_date');
                return false;
        }
-       if (date1_greater_date2($_SESSION['Items']->document_date, $_POST['delivery_date'])) {
+       //if (date1_greater_date2($_SESSION['Items']->document_date, $_POST['delivery_date'])) {
+       if (date1_greater_date2($_POST['OrderDate'], $_POST['delivery_date'])) {
                display_error(_("The requested delivery date is before the date of the order."));
                set_focus('delivery_date');
                return false;