diff --git a/print/templates/reports/balance-compensation/balance-compensation.html b/print/templates/reports/balance-compensation/balance-compensation.html index 4b100b1af..c7448eeb9 100644 --- a/print/templates/reports/balance-compensation/balance-compensation.html +++ b/print/templates/reports/balance-compensation/balance-compensation.html @@ -7,18 +7,18 @@
{{$t('In one hand')}}:
- {{receipt.supplier().name}} {{$t('CIF')}} {{receipt.supplier().nif}} {{$t('Home')}} {{receipt.supplier().street}}, - {{receipt.supplier().city}}. + {{company.name}} {{$t('CIF')}} {{company.nif}} {{$t('Home')}} {{company.street}}, + {{company.city}}.
{{$t('In other hand')}}:
- {{$t('Sr')}} {{receipt.client().name}} {{$t('NIF')}} {{receipt.client().fi}} {{$t('Home')}} {{receipt.client().street}}, - {{receipt.client().city}}. + {{$t('Sr')}} {{client.name}} {{$t('NIF')}} {{client.fi}} {{$t('Home')}} {{client.street}}, + {{client.city}}.
{{$t('Date')}} {{formatDate(receipt.payed, '%d-%m-%Y')}} {{$t('Compensate')}} {{receipt.amountPaid}} € - {{$t('From client')}} {{receipt.client().name}} {{$t('Against the balance of')}}: {{receipt.description}}. + {{$t('From client')}} {{client.name}} {{$t('Against the balance of')}}: {{receipt.description}}.
{{$t('Reception')}} administracion@verdnatura.es diff --git a/print/templates/reports/balance-compensation/balance-compensation.js b/print/templates/reports/balance-compensation/balance-compensation.js index f9fd594db..228cb77d1 100644 --- a/print/templates/reports/balance-compensation/balance-compensation.js +++ b/print/templates/reports/balance-compensation/balance-compensation.js @@ -22,6 +22,10 @@ module.exports = { ], where: {id: this.id} }); + console.log(this.receipt); + this.client = this.receipt.client(); + this.company = this.receipt.supplier(); + this.checkMainEntity(this.receipt); }, props: {