|
@@ -168,6 +168,10 @@ function monthly_purchases(widget) {
|
|
|
// modal
|
|
|
showCustomers: function (e) {
|
|
|
var self = this;
|
|
|
+ if (self.accountVoucher.length === 0) {
|
|
|
+ model.web.notification.do_warn("Atención","Sin datos");
|
|
|
+ return
|
|
|
+ }
|
|
|
var hoy =moment().format('YYYY-MM-DD');
|
|
|
var desde =moment().format('YYYY-MM-01');
|
|
|
var hasta =moment().add(1,'months').format('YYYY-MM-01');
|