5120-reports_loopback #1389

Merged
joan merged 8 commits from 5120-reports_loopback into dev 2023-03-16 06:34:52 +00:00
2 changed files with 9 additions and 5 deletions
Showing only changes of commit da5886243e - Show all commits

View File

@ -7,18 +7,18 @@
<h3 style="text-align: center; margin-top: 8%">{{$t('Compensation') | uppercase}}</h3>
<p style="margin-top: 8%">{{$t('In one hand')}}:</p>
<p style="text-align: justify">
{{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}}.
</p>
<p style="margin-top: 5%">{{$t('In other hand')}}:</p>
<p style="text-align: justify">
{{$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}}.
</p>
<h4 style="text-align: center; margin-top: 10%">{{$t('Agree') | uppercase}}</h4>
<p style="margin-top: 8%; text-align: justify">
{{$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}}.
</p>
<p style="margin-top: 8%">
{{$t('Reception')}} <span style="color: blue">administracion@verdnatura.es</span>

View File

@ -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: {