mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-03-06 16:18:14 -05:00
@@ -78,21 +78,7 @@ $(document).ready(function()
|
||||
|
||||
$("#generate_report").click(function()
|
||||
{
|
||||
var input_type = $("#input_type").val();
|
||||
var location_id = $("#location_id").val();
|
||||
var location = window.location + '/' + start_date + '/' + end_date;
|
||||
|
||||
if (input_type)
|
||||
{
|
||||
location += '/' + input_type;
|
||||
}
|
||||
|
||||
if (location_id)
|
||||
{
|
||||
location += '/' + location_id;
|
||||
}
|
||||
|
||||
window.location = location;
|
||||
window.location = [window.location, start_date, end_date, $("#input_type").val() || 0, $("#location_id").val()].join("/");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -57,11 +57,7 @@ $(document).ready(function()
|
||||
|
||||
$("#generate_report").click(function()
|
||||
{
|
||||
var sale_type = $("#sale_type").val();
|
||||
var location = window.location + '/' + start_date + '/' + end_date + '/' + sale_type;
|
||||
location += '/' + $("input[name='export_excel']:checked").val();
|
||||
|
||||
window.location = location;
|
||||
window.location = [window.location, start_date, end_date, $("#sale_type").val() || 0, $("input[name='export_excel']:checked").val()].join("/");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -39,13 +39,7 @@ $(document).ready(function()
|
||||
{
|
||||
$("#generate_report").click(function()
|
||||
{
|
||||
var export_excel = 0;
|
||||
if ($("#export_excel_yes").attr('checked'))
|
||||
{
|
||||
export_excel = 1;
|
||||
}
|
||||
|
||||
window.location = window.location+'/' + export_excel;
|
||||
window.location = [window.location, $("input[name='export_excel']").val()].join("/");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -53,13 +53,7 @@ $(document).ready(function()
|
||||
{
|
||||
$("#generate_report").click(function()
|
||||
{
|
||||
var export_excel = 0;
|
||||
if ($("#export_excel_yes").attr('checked'))
|
||||
{
|
||||
export_excel = 1;
|
||||
}
|
||||
|
||||
window.location = window.location+'/' + export_excel + '/' + $("#location_id").val() + '/' + $("#item_count").val();
|
||||
window.location = [window.location, $("input[name='export_excel']").is(':checked'), $("#location_id").val(), $("#item_count").val()].join("/");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -64,19 +64,7 @@ $(document).ready(function()
|
||||
|
||||
$("#generate_report").click(function()
|
||||
{
|
||||
var sale_type = $("#sale_type").val();
|
||||
var location = window.location + '/' + start_date + '/' + end_date + '/' + $('#specific_input_data').val() + '/' + sale_type;
|
||||
|
||||
if ($("#export_excel_yes").attr('checked'))
|
||||
{
|
||||
location += '/' + 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
location += '/' + 0;
|
||||
}
|
||||
|
||||
window.location = location;
|
||||
window.location = [window.location, start_date, end_date, $('#specific_input_data').val(), $("#sale_type").val(), $("input[name='export_excel']").val()].join("/");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user