-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7a75fd
commit 642d3f5
Showing
18 changed files
with
856 additions
and
7 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
|
||
|
||
$(function() { | ||
$('#dateRange').daterangepicker({locale: {format: "DD/MM/YYYY"} | ||
}, function(start, end, label) { | ||
|
||
let dataInicio = new Date(moment(start.format("DD/MM/YYYY"), "DD/MM/YYYY")); | ||
let dataFim = new Date(moment(end.format("DD/MM/YYYY"), "DD/MM/YYYY")); | ||
|
||
let options = { year: 'numeric', month: '2-digit', day: '2-digit' }; | ||
|
||
dataInicio = dataInicio.toLocaleDateString('pt-BR', options); | ||
dataFim = dataFim.toLocaleDateString('pt-BR', options); | ||
|
||
if ($("#checkBoxReceitas").prop("checked")) { | ||
let urlReceitas = "relatorio?action=redirect&tipo=receitas&dataInicio=" + dataInicio + "&dataFim=" + dataFim; | ||
location.href = urlReceitas; | ||
} | ||
|
||
}); | ||
}); | ||
|
||
|
||
$('#dateRange').on("keypress paste", function() { | ||
return false; | ||
}); | ||
|
||
|
||
|
||
|
||
$(function() { | ||
$('#dateRange2').daterangepicker({locale: {format: "DD/MM/YYYY"} | ||
}, function(start, end, label) { | ||
|
||
var dataInicio = new Date(moment(start.format("DD/MM/YYYY"), "DD/MM/YYYY")); | ||
var dataFim = new Date(moment(end.format("DD/MM/YYYY"), "DD/MM/YYYY")); | ||
|
||
let options = { year: 'numeric', month: '2-digit', day: '2-digit' }; | ||
|
||
dataInicio = dataInicio.toLocaleDateString('pt-BR', options); | ||
dataFim = dataFim.toLocaleDateString('pt-BR', options); | ||
|
||
if ($("#checkBoxPedidos").prop("checked")) { | ||
let urlPedidos = "relatorio?action=redirect&tipo=pedidos&dataInicio=" + dataInicio + "&dataFim=" + dataFim; | ||
location.href = urlPedidos; | ||
} | ||
|
||
}); | ||
}); | ||
|
||
|
||
$('#dateRange2').on("keypress paste", function() { | ||
return false; | ||
}); |
Binary file not shown.
Oops, something went wrong.