Changed hardcoded trans days in inquiries (30) to be a user preference.
[fa-stable.git] / sales / inquiry / sales_deliveries_view.php
index 5a29b43401ad61c6d46cb32ac79cff88e464fa5d..4da4d98b5ca06798cf0e60cd5a7029942171141d 100644 (file)
@@ -101,7 +101,7 @@ start_form(false, false, $_SERVER['PHP_SELF'] ."?OutstandingOnly=".$_POST['Outst
 start_table(TABLESTYLE_NOBORDER);
 start_row();
 ref_cells(_("#:"), 'DeliveryNumber', '',null, '', true);
-date_cells(_("from:"), 'DeliveryAfterDate', '', null, -30);
+date_cells(_("from:"), 'DeliveryAfterDate', '', null, -$_SESSION["wa_current_user"]->prefs->transaction_days());
 date_cells(_("to:"), 'DeliveryToDate', '', null, 1);
 
 locations_list_cells(_("Location:"), 'StockLocation', null, true);