Changed hardcoded trans days in inquiries (30) to be a user preference.
[fa-stable.git] / sales / inquiry / customer_allocation_inquiry.php
index e7b0ca27c5a5ec1ecf3cc7cd8147c5ce825e75fa..45815855d05b5c4471fd73730b2e8d0f271e8519 100644 (file)
@@ -41,7 +41,7 @@ start_row();
 
 customer_list_cells(_("Select a customer: "), 'customer_id', $_POST['customer_id'], true);
 
-date_cells(_("from:"), 'TransAfterDate', '', null, -30);
+date_cells(_("from:"), 'TransAfterDate', '', null, -$_SESSION["wa_current_user"]->prefs->transaction_days());
 date_cells(_("to:"), 'TransToDate', '', null, 1);
 
 cust_allocations_list_cells(_("Type:"), 'filterType', null);