salix/print/templates/reports/invoiceIn/invoiceIn.html

215 lines
13 KiB
HTML
Raw Normal View History

2022-10-17 13:13:27 +00:00
<!DOCTYPE html>
<html v-bind:lang="$i18n.locale">
<body>
<table class="grid">
<tbody>
<tr>
<td>
<!-- Header block -->
<report-header v-bind="$props"
v-bind:company-code="invoice.companyCode">
</report-header>
<!-- Block -->
<div class="grid-row">
<div class="grid-block">
<div class="columns vn-mb-lg">
<div class="size50">
<div class="size75 vn-mt-ml">
<h1 class="title uppercase">{{$t('title')}}</h1>
<table class="row-oriented ticket-info">
<tbody>
<tr>
2022-10-18 12:58:38 +00:00
<td class="font gray uppercase">{{$t('supplierId')}}</td>
<th>{{invoice.supplierId}}</th>
2022-10-17 13:13:27 +00:00
</tr>
<tr>
2022-10-18 12:58:38 +00:00
<td class="font gray uppercase">{{$t('invoiceId')}}</td>
<th>{{invoice.id}}</th>
2022-10-17 13:13:27 +00:00
</tr>
<tr>
<td class="font gray uppercase">{{$t('date')}}</td>
2022-10-18 12:58:38 +00:00
<th>{{invoice.created | date('%d-%m-%Y')}}</th>
2022-10-17 13:13:27 +00:00
</tr>
</tbody>
</table>
</div>
</div>
<div class="size50">
<div class="panel">
<div class="header">{{$t('invoiceData')}}</div>
<div class="body">
2022-10-18 12:58:38 +00:00
<h3 class="uppercase">{{invoice.name}}</h3>
<div>
{{invoice.postalAddress}}
</div>
2022-10-17 13:13:27 +00:00
<div>
2022-10-18 12:58:38 +00:00
{{invoice.postcodeCity}}
2022-10-17 13:13:27 +00:00
</div>
2022-10-19 13:15:54 +00:00
<div v-if="invoice.nif">
2022-10-18 12:58:38 +00:00
{{$t('fiscalId')}}: {{invoice.nif}}
2022-10-17 13:13:27 +00:00
</div>
2022-10-19 13:15:54 +00:00
<div v-if="invoice.phone">
2022-10-18 12:58:38 +00:00
{{$t('phone')}}: {{invoice.phone}}
2022-10-17 13:13:27 +00:00
</div>
</div>
</div>
</div>
</div>
2022-10-18 12:58:38 +00:00
<div class="vn-mt-lg" v-for="entry in entries">
2022-10-17 13:13:27 +00:00
<div class="table-title clearfix">
<div class="pull-left">
2022-10-19 13:15:54 +00:00
<h2>{{$t('invoiceId')}}</strong>
2022-10-17 13:13:27 +00:00
</div>
<div class="pull-left vn-mr-md">
<div class="field rectangle">
2022-10-18 12:58:38 +00:00
<span>{{entry.id}}</span>
2022-10-17 13:13:27 +00:00
</div>
</div>
<div class="pull-left">
2022-10-18 12:58:38 +00:00
<h2>{{$t('date')}}</h2>
2022-10-17 13:13:27 +00:00
</div>
<div class="pull-left">
<div class="field rectangle">
2022-10-18 12:58:38 +00:00
<span>{{entry.landed | date}}</span>
2022-10-17 13:13:27 +00:00
</div>
</div>
<span id="nickname" class="pull-right">
2022-10-18 12:58:38 +00:00
<div class="pull-left">
<h2>{{$t('reference')}}</h2>
</div>
<div class="pull-left">
<div class="field rectangle">
<span>{{entry.ref}}</span>
</div>
</div>
2022-10-17 13:13:27 +00:00
</span>
</div>
<table class="column-oriented">
<thead>
<tr>
2022-10-18 12:58:38 +00:00
<th width="50%">{{$t('item')}}</th>
2022-10-17 13:13:27 +00:00
<th class="number">{{$t('quantity')}}</th>
2022-10-18 12:58:38 +00:00
<th class="number">{{$t('buyingValue')}}</th>
2022-10-17 13:13:27 +00:00
<th class="number">{{$t('amount')}}</th>
</tr>
</thead>
2022-10-18 12:58:38 +00:00
<tbody v-for="buy in entry.buys" class="no-page-break">
2022-10-17 13:13:27 +00:00
<tr>
2022-10-18 12:58:38 +00:00
<td width="50%">{{buy.name}}</td>
<td class="number">{{buy.quantity}}</td>
<td class="number">{{buy.buyingValue}}</td>
<td class="number">{{buyImport(buy) | currency('EUR', $i18n.locale)}}</td>
2022-10-17 13:13:27 +00:00
</tr>
<tr class="description font light-gray">
2022-10-18 12:58:38 +00:00
<td colspan="4">
<span v-if="buy.value5">
<strong>{{buy.tag5}}</strong> {{buy.value5}}
</span>
<span v-if="buy.value6">
<strong>{{buy.tag6}}</strong> {{buy.value6}}
</span>
<span v-if="buy.value7">
<strong>{{buy.tag7}}</strong> {{buy.value7}}
</span>
2022-10-17 13:13:27 +00:00
</td>
</tr>
</tbody>
<tfoot>
<tr>
2022-10-18 12:58:38 +00:00
<td colspan="3" class="font bold">
2022-10-17 13:13:27 +00:00
<span class="pull-right">{{$t('subtotal')}}</span>
</td>
2022-10-18 12:58:38 +00:00
<td class="number">{{entrySubtotal(entry) | currency('EUR', $i18n.locale)}}</td>
2022-10-17 13:13:27 +00:00
</tr>
</tfoot>
</table>
</div>
<!-- End of sales block -->
2022-10-18 12:58:38 +00:00
2022-10-17 13:13:27 +00:00
<div class="columns vn-mt-xl">
2022-10-19 13:15:54 +00:00
<!-- Taxes block -->
2022-10-17 13:13:27 +00:00
<div id="taxes" class="size50 pull-right no-page-break" v-if="taxes">
<table class="column-oriented">
<thead>
<tr>
<th colspan="4">{{$t('taxBreakdown')}}</th>
</tr>
</thead>
<thead class="light">
<tr>
<th width="45%">{{$t('type')}}</th>
<th width="25%" class="number">
{{$t('taxBase')}}
</th>
<th>{{$t('tax')}}</th>
<th class="number">{{$t('fee')}}</th>
</tr>
</thead>
<tbody>
<tr v-for="tax in taxes">
<td width="45%">{{tax.name}}</td>
<td width="25%" class="number">
2022-10-19 13:15:54 +00:00
{{tax.taxableBase | currency('EUR', $i18n.locale)}}
2022-10-17 13:13:27 +00:00
</td>
2022-10-19 13:15:54 +00:00
<td>{{tax.rate | percentage}}</td>
2022-10-17 13:13:27 +00:00
<td class="number">{{tax.vat | currency('EUR', $i18n.locale)}}</td>
</tr>
</tbody>
<tfoot>
<tr class="font bold">
<td width="45%">{{$t('subtotal')}}</td>
<td width="20%" class="number">
2022-10-19 13:15:54 +00:00
{{sumTotal(taxes, 'taxableBase') | currency('EUR', $i18n.locale)}}
2022-10-17 13:13:27 +00:00
</td>
<td></td>
<td class="number">{{sumTotal(taxes, 'vat') | currency('EUR', $i18n.locale)}}</td>
</tr>
<tr class="font bold">
<td colspan="2">{{$t('total')}}</td>
2022-10-19 13:15:54 +00:00
<td colspan="2" class="number">{{taxTotal() | currency('EUR', $i18n.locale)}}</td>
2022-10-17 13:13:27 +00:00
</tr>
</tfoot>
</table>
<div class="panel" v-if="invoice.footNotes">
<div class="header">{{$t('notes')}}</div>
<div class="body">
<span>{{invoice.footNotes}}</span>
</div>
</div>
</div>
<!-- End of taxes block -->
2022-10-19 13:15:54 +00:00
<!-- Observations block -->
<div class="columns vn-mt-xl">
2022-10-17 13:13:27 +00:00
<div class="size50 pull-left no-page-break" >
<div class="panel" >
<div class="header">{{$t('observations')}}</div>
<div class="body">
2022-10-19 13:15:54 +00:00
<div>{{$t('payMethod')}}</div>
<div>{{invoice.payMethod}}</div>
2022-10-17 13:13:27 +00:00
</div>
</div>
</div>
</div>
2022-10-19 13:15:54 +00:00
<!-- End of observations block -->
2022-10-17 13:13:27 +00:00
</div>
</div>
2022-10-19 13:15:54 +00:00
</div>
<!-- Footer block -->
<report-footer id="pageFooter"
2022-10-24 13:15:23 +00:00
v-bind:company-code="invoice.companyCode"
2022-10-25 06:19:56 +00:00
v-bind:left-text="$t('invoiceId')"
2022-10-19 13:15:54 +00:00
v-bind:center-text="invoice.name"
v-bind="$props">
</report-footer>
2022-10-17 13:13:27 +00:00
</td>
</tr>
</tbody>
</table>
</body>
2022-10-18 12:58:38 +00:00
</html>