Changed hardcoded trans days in inquiries (30) to be a user preference.
[fa-stable.git] / purchasing / inquiry / po_search.php
index 220b1e1a325d62e2c36d2452ee939ca1dd268f34..2cd7223a59635e7bdc654441127a9f83544a469f 100644 (file)
@@ -61,7 +61,7 @@ start_table(TABLESTYLE_NOBORDER);
 start_row();
 ref_cells(_("#:"), 'order_number', '',null, '', true);
 
-date_cells(_("from:"), 'OrdersAfterDate', '', null, -30);
+date_cells(_("from:"), 'OrdersAfterDate', '', null, -$_SESSION["wa_current_user"]->prefs->transaction_days());
 date_cells(_("to:"), 'OrdersToDate');
 
 locations_list_cells(_("Location:"), 'StockLocation', null, true);