salix/modules/invoiceIn/front/summary/index.html

157 lines
7.3 KiB
HTML
Raw Permalink Normal View History

2021-04-15 08:46:23 +00:00
<vn-card class="summary">
<h5>
<a
ng-if="::$ctrl.summary.id"
vn-tooltip="Go to the Invoice In"
ui-sref="invoiceIn.card.summary({id: {{::$ctrl.summary.id}}})"
name="goToSummary">
<vn-icon-button icon="launch"></vn-icon-button>
</a>
<span>{{$ctrl.summary.id}} - {{$ctrl.summary.supplier.name}}</span>
</h5>
<vn-horizontal>
<vn-auto>
<h4 translate>Basic data</h4>
<vn-horizontal>
<vn-one>
<vn-label-value label="Supplier" value="{{$ctrl.summary.supplier.name}}">
</vn-label-value>
<vn-label-value label="Supplier ref" value="{{$ctrl.summary.supplierRef}}">
</vn-label-value>
2021-06-15 07:58:21 +00:00
<vn-label-value label="Currency" value="{{$ctrl.summary.currency.code}}">
</vn-label-value>
2021-04-15 08:46:23 +00:00
<vn-label-value label="Doc number" value="{{$ctrl.summary.serial}}/{{$ctrl.summary.serialNumber}}">
</vn-label-value>
</vn-one>
<vn-one>
<vn-label-value label="Expedition date" value="{{$ctrl.summary.issued | date: 'dd/MM/yyyy'}}">
</vn-label-value>
<vn-label-value label="Operation date" value="{{$ctrl.summary.operated | date: 'dd/MM/yyyy'}}">
</vn-label-value>
<vn-label-value label="Entry date" value="{{$ctrl.summary.bookEntried | date: 'dd/MM/yyyy'}}">
</vn-label-value>
<vn-label-value label="Booked date" value="{{$ctrl.summary.booked | date: 'dd/MM/yyyy'}}">
</vn-label-value>
</vn-one>
<vn-one>
2021-04-15 09:54:40 +00:00
<vn-label-value label="Sage withholding" value="{{$ctrl.summary.sageWithholding.withholding}}">
2021-04-15 08:46:23 +00:00
</vn-label-value>
<vn-label-value label="Undeductible VAT" value="{{$ctrl.summary.expenseDeductible.name}}">
</vn-label-value>
2021-04-15 08:46:23 +00:00
<vn-label-value label="Company" value="{{$ctrl.summary.company.code}}">
</vn-label-value>
<vn-vertical>
<vn-check label="Booked" ng-model="$ctrl.summary.isBooked" disabled="true">
</vn-check>
</vn-vertical>
</vn-one>
2021-06-15 07:58:21 +00:00
<vn-one tbody class="taxes">
2021-08-12 07:24:42 +00:00
<span td class="chip"><vn-label translate>Taxable base</vn-label> {{$ctrl.summary.totals.totalTaxableBase | currency: 'EUR':2 | dashIfEmpty}}</span>
<p><vn-label translate>Total</vn-label> {{$ctrl.summary.totals.totalVat | currency: 'EUR':2 | dashIfEmpty}}</p>
2021-06-25 07:30:24 +00:00
<vn-label translate>Due day</vn-label>
2021-06-15 07:58:21 +00:00
<vn-chip
class="transparent"
2021-07-03 07:19:03 +00:00
ng-class="{'alert': $ctrl.amountsNotMatch}"
translate-attr="{title: $ctrl.amountsNotMatch ? 'Do not match' : 'Due day'}"
2021-08-12 07:24:42 +00:00
>{{$ctrl.summary.totals.totalDueDay | currency: 'EUR':2 | dashIfEmpty}}
2021-06-15 07:58:21 +00:00
</vn-chip>
2021-06-15 07:02:00 +00:00
</vn-one>
2021-04-15 08:46:23 +00:00
</vn-horizontal>
</vn-auto>
2022-02-07 11:24:08 +00:00
2021-06-15 07:02:00 +00:00
<vn-one ng-if="$ctrl.summary.invoiceInTax.length != 0">
<h4>
<a
ui-sref="invoiceIn.card.tax({id:$ctrl.invoiceIn.id})"
target="_self">
<span translate vn-tooltip="Go to">Vat</span>
</a>
</h4>
<vn-table model="model">
<vn-thead>
<vn-tr>
<vn-th number>Expense</vn-th>
<vn-th shrink>Taxable base</vn-th>
<vn-th>Sage vat</vn-th>
<vn-th>Sage transaction</vn-th>
2021-06-25 07:30:24 +00:00
<vn-th number shrink>Rate</vn-th>
<vn-th number shrink>Foreign value</vn-th>
2021-06-15 07:02:00 +00:00
</vn-tr>
</vn-thead>
<vn-tbody>
<vn-tr ng-repeat="tax in $ctrl.summary.invoiceInTax">
<vn-td number expand>{{::tax.expenseFk}}</vn-td>
2021-06-25 07:30:24 +00:00
<vn-td shrink>{{::tax.taxableBase | currency: 'EUR':2}}</vn-td>
2021-06-15 07:02:00 +00:00
<vn-td>{{::tax.taxTypeSage.vat}}</vn-td>
<vn-td>{{::tax.transactionTypeSage.transaction}}</vn-td>
2021-06-30 06:26:03 +00:00
<vn-td number shrink>{{::tax.taxRate | percentage}}</vn-td>
2021-06-15 07:02:00 +00:00
<vn-td number shrink>{{::tax.foreignValue | currency: 'USD':2}}</vn-td>
</vn-tr>
</vn-tbody>
</vn-table>
</vn-one>
2021-04-15 08:46:23 +00:00
</vn-horizontal>
2022-02-07 11:24:08 +00:00
<vn-horizontal>
<vn-one ng-if="$ctrl.summary.invoiceInDueDay.length != 0">
<h4>
<a
ui-sref="invoiceIn.card.dueDay({id:$ctrl.invoiceIn.id})"
target="_self">
<span translate vn-tooltip="Go to">Due day</span>
</a>
</h4>
<vn-table model="model">
<vn-thead>
<vn-tr>
<vn-th>Date</vn-th>
<vn-th>Bank</vn-th>
<vn-th>Amount</vn-th>
<vn-th>Foreign value</vn-th>
</vn-tr>
</vn-thead>
<vn-tbody>
<vn-tr ng-repeat="dueDay in $ctrl.summary.invoiceInDueDay">
<vn-td shrink-date>{{::dueDay.dueDated | date:'dd/MM/yyyy'}}</vn-td>
<vn-td>{{::dueDay.bank.bank}}</vn-td>
<vn-td>{{::dueDay.amount | currency: 'EUR':2}}</vn-td>
<vn-td shrink>{{::dueDay.foreignValue}}</vn-td>
</vn-tr>
</vn-tbody>
</vn-table>
</vn-one>
</vn-horizontal>
2022-02-16 09:30:56 +00:00
<vn-horizontal>
<vn-one ng-if="$ctrl.summary.invoiceInIntrastat.length != 0">
<h4>
<a
ui-sref="invoiceIn.card.intrastat({id:$ctrl.invoiceIn.id})"
target="_self">
<span translate vn-tooltip="Go to">Intrastat</span>
</a>
</h4>
<vn-table model="model">
<vn-thead>
<vn-tr>
<vn-th>Code</vn-th>
<vn-th>Amount</vn-th>
<vn-th>Net</vn-th>
2022-03-30 05:55:37 +00:00
<vn-th>Stems</vn-th>
2022-02-16 09:30:56 +00:00
<vn-th>Country</vn-th>
</vn-tr>
</vn-thead>
<vn-tbody>
<vn-tr ng-repeat="intrastat in $ctrl.summary.invoiceInIntrastat">
<vn-td>{{::intrastat.intrastatFk}}: {{::intrastat.intrastat.description}}</vn-td>
2022-02-16 09:30:56 +00:00
<vn-td>{{::intrastat.amount | currency: 'EUR':2}}</vn-td>
<vn-td>{{::intrastat.net}}</vn-td>
<vn-td>{{::intrastat.stems}}</vn-td>
<vn-td>{{::intrastat.country.code}}</vn-td>
</vn-tr>
</vn-tbody>
</vn-table>
</vn-one>
</vn-horizontal>
2021-04-15 08:46:23 +00:00
</vn-card>
<vn-supplier-descriptor-popover
vn-id="supplierDescriptor">
</vn-supplier-descriptor-popover>