96 lines
4.7 KiB
HTML
96 lines
4.7 KiB
HTML
<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>
|
|
<vn-label-value label="Currency" value="{{$ctrl.summary.currency.code}}">
|
|
</vn-label-value>
|
|
<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>
|
|
<vn-label-value label="Sage withholding" value="{{$ctrl.summary.sageWithholding.withholding}}">
|
|
</vn-label-value>
|
|
<vn-label-value label="Undeductible VAT" value="{{$ctrl.summary.expenseDeductible.name}}">
|
|
</vn-label-value>
|
|
<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>
|
|
<vn-one tbody class="taxes">
|
|
<span td class="chip"><vn-label translate>taxable base</vn-label> {{1 | currency: 'EUR':2}}</spant>
|
|
<p><vn-label translate>total</vn-label> {{3 | currency: $ctrl.summary.currency.code:2}}</p>
|
|
<vn-label>Due day</vn-label>
|
|
<vn-chip
|
|
class="transparent"
|
|
translate-attr=" 1 != 2 && 2 != 3 ? {title: 'No coinciden'} : {title: 'Vencimiento'}"
|
|
ng-class="{'alert': 1 != 2 && 2 != 3}">{{2 | currency: 'EUR':2}}
|
|
</vn-chip>
|
|
</vn-one>
|
|
</vn-horizontal>
|
|
</vn-auto>
|
|
|
|
<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>
|
|
<vn-th number>Rate</vn-th>
|
|
<vn-th number>Foreign value</vn-th>
|
|
</vn-tr>
|
|
</vn-thead>
|
|
<vn-tbody>
|
|
<vn-tr ng-repeat="tax in $ctrl.summary.invoiceInTax">
|
|
<vn-td number expand>{{::tax.expenseFk}}</vn-td>
|
|
<vn-td>{{::tax.taxableBase | currency: 'EUR':2}}</vn-td>
|
|
<vn-td>{{::tax.taxTypeSage.vat}}</vn-td>
|
|
<vn-td>{{::tax.transactionTypeSage.transaction}}</vn-td>
|
|
<vn-td number shrink>{{::0.2 | percentage}}</vn-td>
|
|
<vn-td number shrink>{{::tax.foreignValue | currency: 'USD':2}}</vn-td>
|
|
</vn-tr>
|
|
</vn-tbody>
|
|
</vn-table>
|
|
</vn-one>
|
|
</vn-horizontal>
|
|
</vn-card>
|
|
<vn-supplier-descriptor-popover
|
|
vn-id="supplierDescriptor">
|
|
</vn-supplier-descriptor-popover> |