updated reports

This commit is contained in:
franknstayn
2022-03-12 20:17:57 +08:00
parent a94ef951a3
commit a24e016b85
4 changed files with 91 additions and 55 deletions

View File

@@ -276,6 +276,13 @@ desired effect
// hash && $('ul.nav a[href="' + hash + '"]').tab('show');
// $.fn.dataTable.moment( 'DD/M/YYYY' );
var date = new Date();
var firstDay = new Date(date.getFullYear(), date.getMonth(), 1);
var lastDay = new Date(date.getFullYear(), date.getMonth() + 1, 0);
// console.log(firstDay.toString("MM/dd/yyyy"), lastDay)
$('#min').val(moment(firstDay).format('MM/DD/YYYY'))
$('#max').val(moment(lastDay).format('MM/DD/YYYY'))
// console.log();
callSpectrumApi();
$('#orders_table').DataTable({
columnDefs: [{
@@ -345,7 +352,7 @@ desired effect
var startDate = new Date(data[5]);
}
if (min == null && max == null) {