|
@@ -105,6 +105,7 @@ function report_expired (reporting){
|
|
|
var defer = $.Deferred();
|
|
|
var MoveLine = new instance.web.Model('account.move.line');
|
|
|
var fields = ['id','amount_residual', 'credit','date_maturity', 'invoice','ref', 'invoice', 'amount_residual_currency', 'currency_id'];
|
|
|
+ // ,['amount_residual', '>', 0]
|
|
|
var domain =[['credit', '<=', 0], ['date_maturity', '<=', hoy]];
|
|
|
MoveLine.query(fields).filter(domain).all().then(function(results){
|
|
|
defer.resolve(results);
|
|
@@ -317,7 +318,7 @@ function report_expired (reporting){
|
|
|
pdfDoc.setFontSize(15);
|
|
|
pdfDoc.setFontStyle('bold');
|
|
|
pdfDoc.setTextColor(40);
|
|
|
- pdfDoc.text('Analisis de cuotas vencidas', data.settings.margin.left, 10);
|
|
|
+ pdfDoc.text('Informe de cuotas vencidas', data.settings.margin.left, 10);
|
|
|
|
|
|
if(desde.length > 0 || hasta.length > 0){
|
|
|
var fecha='';
|
|
@@ -365,7 +366,7 @@ function report_expired (reporting){
|
|
|
if (typeof pdfDoc.putTotalPages === 'function') {
|
|
|
pdfDoc.putTotalPages(totalPagesExp);
|
|
|
}
|
|
|
- pdfDoc.save('Analisis de cuotas vencidas')
|
|
|
+ pdfDoc.save('Informe de cuotas vencidas')
|
|
|
},
|
|
|
});
|
|
|
}
|