salix/print/templates/reports/supplier-campaign-metrics/supplier-campaign-metrics.html

92 lines
4.1 KiB
HTML
Raw Permalink Normal View History

2022-11-10 09:38:54 +00:00
<report-body v-bind="$props">
2022-11-10 07:57:42 +00:00
<div class="grid-row">
<div class="grid-block">
<div class="columns">
<div class="size50">
<h1 class="title uppercase">{{$t('title')}}</h1>
<div class="size75">
<table class="row-oriented">
<tbody>
<tr>
<td class="font gray">{{$t('Supplier')}}</td>
<th>{{supplier.id}}</th>
</tr>
<tr>
<td class="font gray">{{$t('From')}}</td>
2023-01-23 12:15:30 +00:00
<th>{{formatDate(from, '%d-%m-%Y')}}</th>
2022-11-10 07:57:42 +00:00
</tr>
<tr>
<td class="font gray">{{$t('To')}}</td>
2023-01-23 12:15:30 +00:00
<th>{{formatDate(to, '%d-%m-%Y')}}</th>
2022-11-10 07:57:42 +00:00
</tr>
</tbody>
</table>
</div>
</div>
<div class="size50">
<div class="panel">
<div class="header">{{$t('supplierData')}}</div>
<div class="body">
<h3 class="uppercase">{{supplier.supplierName}}</h3>
2022-11-10 09:38:54 +00:00
<div>{{supplier.street}}</div>
<div>{{supplier.postcode}}, {{supplier.city}} ({{supplier.province}})</div>
<div>{{supplier.country}}</div>
2020-12-16 07:05:41 +00:00
</div>
2022-11-10 07:57:42 +00:00
</div>
</div>
</div>
<div v-for="entry in entries" v-if="entry.buys">
<h2>
<span>
<span>{{$t('entry')}}</span>
<span class="black"> {{entry.id}}</span>
</span>
2023-01-23 12:15:30 +00:00
<span>{{$t('dated')}} {{formatDate(entry.shipped, '%d-%m-%Y')}}</span>
2022-12-16 09:36:18 +00:00
<span class="pull-right">{{$t('reference')}} {{entry.reference}}</span>
2022-11-10 07:57:42 +00:00
</h2>
<table class="column-oriented repeatable">
<thead>
<tr>
<th width="50%">{{$t('itemName')}}</th>
<th>{{$t('Quantity')}}</th>
<th>{{$t('price')}}</th>
<th>{{$t('total')}}</th>
</tr>
</thead>
<tbody v-for="buy in entry.buys" class="no-page-break">
<tr>
<td width="50%">{{buy.itemName}}</td>
<td>{{buy.quantity}}</td>
<td>{{buy.price | currency('EUR', $i18n.locale)}}</td>
<td>{{buy.quantity * buy.price | currency('EUR', $i18n.locale)}}</td>
</tr>
<tr class="description font light-gray">
<td colspan="7">
2022-11-10 09:38:54 +00:00
<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-11-10 07:57:42 +00:00
</td>
</tr>
</tbody>
</table>
</div>
2024-04-23 08:07:40 +00:00
<table>
<tr class="font bold no-page-break">
<td>{{$t('total')}}</td>
<td class="number">{{total.price | currency('EUR', $i18n.locale)}}</td>
<td></td>
</tr>
</table>
2022-11-10 07:57:42 +00:00
</div>
</div>
2022-11-10 09:38:54 +00:00
<template v-slot:footer>
<report-footer
id="pageFooter"
v-bind:left-text="$t('supplier', [supplier.id])"
v-bind:center-text="supplier.supplierName"
v-bind="$props"
>
</report-footer>
</template>
</report-body>