Merged changes form stabel branch up to the current state (2.3.22+).
[fa-stable.git] / sales / inquiry / sales_deliveries_view.php
index b10d084c6b1255584c99f6dbb934d7e14b549793..f6ac03fa01f95394c30e908c7f4b304f62535598 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);