Prechádzať zdrojové kódy

ADD FIX Extensión eiru_reports informe especial para radio positiva - suceso

Sebas 6 rokov pred
rodič
commit
cdc4f557ac
2 zmenil súbory, kde vykonal 5 pridanie a 11 odobranie
  1. 4 3
      models.py
  2. 1 8
      static/src/js/reports/report_account_pay.js

+ 4 - 3
models.py

@@ -10,7 +10,7 @@ class AccountInvoice(models.Model):
 	############################################################
 
 	@api.model
-	def getAccountInvoiceDental(self,domain):
+	def getAccountInvoice(self,domain):
 		AccountInvoice = self.env['account.invoice'].search(domain)
 		decimal_precision = self.env['decimal.precision'].precision_get('Account')
 		values = []
@@ -35,6 +35,7 @@ class AccountInvoice(models.Model):
 					invoice.company_id.currency_id.rate
 				],
 				'date_invoice': invoice.date_invoice,
+				'date_due': invoice.date_invoice,
 				'partner_id': [
 					invoice.partner_id.id,
 					invoice.partner_id.name,
@@ -75,7 +76,7 @@ class AccountInvoiceLine(models.Model):
 	############################################################
 
 	@api.model
-	def getAccountInvoiceLineDental(self,domain):
+	def getAccountInvoiceLine(self,domain):
 		AccountInvoiceLine = self.env['account.invoice.line'].search(domain)
 		decimal_precision = self.env['decimal.precision'].precision_get('Account')
 		values = []
@@ -102,7 +103,7 @@ class AccountVoucher(models.Model):
 	############################################################
 
 	@api.model
-	def getAccountVoucherDental(self,domain):
+	def getAccountVoucher(self,domain):
 		AccountVoucher = self.env['account.voucher'].search(domain)
 		values = []
 		for voucher in AccountVoucher:

+ 1 - 8
static/src/js/reports/report_account_pay.js

@@ -642,15 +642,8 @@ function report_account_pay(reporting){
                             state : state,
                             date : "",
                         });
-                        }
+                    }
 
-                    // info.push({
-                    //     date : date,
-                    //     name : 'Cuota ' + i +' / ' + x,
-                    //     state : state,
-                    //     amount: amount,
-                    // });
-                    // i--;
                 });
 
                 var residual_total = 0;