HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //proc/thread-self/cwd/pm/plugins/Warehouse/assets/js/reports/warranty_period_report_js.php
<script>
	(function($) {
		"use strict";
		$('.select2').select2();
		setDatePicker(".datePickerInput");

		var ProposalServerParams = {
			"commodity_filter": "select[name='commodity_filter[]']",
			"customer_name_filter": "select[name='customer_name_filter[]']",
			"to_date_filter": "input[name='to_date_filter']",
			"status_filter": "select[name='status_filter[]']",
		};

		var table_warranty_period = $('table.table-table_warranty_period');
		var _table_api = initDataTable(table_warranty_period, "<?php echo get_uri("warehouse/table_warranty_period") ?>", [0], [0], ProposalServerParams, [8, 'asc']);

		$('input[name="to_date_filter"], select[name="commodity_filter[]"], select[name="customer_name_filter[]"], select[name="status_filter[]"]').on('change', function() {
			table_warranty_period.DataTable().ajax.reload();
		});

	// Maybe items ajax search
	init_ajax_search('items','#commodity_filter.ajax-search',undefined,"<?php echo get_uri("warehouse/wh_commodity_code_search_all") ?>");


})(jQuery);

function stock_submit(invoker){
	"use strict";
	$('#print_report').submit(); 
}

</script>