X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Finquiry%2Fsupplier_allocation_inquiry.php;h=84fb2e12a9d3b2ca1d50ad6f8433dfc5b4e36792;hb=bd8f517d30d1edd3261e26e582ddd9e11c555616;hp=98b630833725db76db536ffd6e543971087fb34c;hpb=574560928e6d43007858a8655d71c9055739f986;p=fa-stable.git diff --git a/purchasing/inquiry/supplier_allocation_inquiry.php b/purchasing/inquiry/supplier_allocation_inquiry.php index 98b63083..84fb2e12 100644 --- a/purchasing/inquiry/supplier_allocation_inquiry.php +++ b/purchasing/inquiry/supplier_allocation_inquiry.php @@ -16,9 +16,9 @@ include($path_to_root . "/includes/session.inc"); include($path_to_root . "/purchasing/includes/purchasing_ui.inc"); $js = ""; -if ($use_popup_windows) +if ($SysPrefs->use_popup_windows) $js .= get_js_open_window(900, 500); -if ($use_date_picker) +if (user_use_date_picker()) $js .= get_js_date_picker(); page(_($help_context = "Supplier Allocation Inquiry"), false, false, "", $js); @@ -47,7 +47,7 @@ start_row(); supplier_list_cells(_("Select a supplier: "), 'supplier_id', $_POST['supplier_id'], true); -date_cells(_("From:"), 'TransAfterDate', '', null, -30); +date_cells(_("From:"), 'TransAfterDate', '', null, -user_transaction_days()); date_cells(_("To:"), 'TransToDate', '', null, 1); supp_allocations_list_cell("filterType", null); @@ -120,7 +120,8 @@ function fmt_credit($row) } //------------------------------------------------------------------------------------------------ -$sql = get_sql_for_supplier_allocation_inquiry(); +$sql = get_sql_for_supplier_allocation_inquiry(get_post('TransAfterDate'),get_post('TransToDate'), + get_post('filterType'), get_post('supplier_id'), check_value('showSettled')); $cols = array( _("Type") => array('fun'=>'systype_name'), @@ -153,4 +154,3 @@ display_db_pager($table); end_form(); end_page(); -?>