updated reports
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user