From: Joe Hunt Date: Tue, 24 Jun 2008 13:01:32 +0000 (+0000) Subject: Fixed a bug when trying to back the inv.date and due date in Direct Invoicing X-Git-Tag: v2.4.2~19^2~1975 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=c83aa30168823c6205cbd48e09657549e50ad45b;p=fa-stable.git Fixed a bug when trying to back the inv.date and due date in Direct Invoicing --- diff --git a/sales/sales_order_entry.php b/sales/sales_order_entry.php index 4d850359..aaad352b 100644 --- a/sales/sales_order_entry.php +++ b/sales/sales_order_entry.php @@ -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;