2650 add links to edit on summaries

This commit is contained in:
Jorge Padawan 2021-01-08 15:43:33 +01:00
parent ef4f7d7ca9
commit 5a30bf5fa4
9 changed files with 120 additions and 73 deletions

View File

@ -10,7 +10,11 @@
</h5>
<vn-horizontal class="vn-pa-md">
<vn-one>
<h4 translate>Basic data</h4>
<h4>
<a ui-sref="account.card.basicData">
<span translate vn-tooltip="Edit basic data">Basic Data</span>
</a>
</h4>
<vn-label-value
label="Id"
value="{{summary.id}}">

View File

@ -12,15 +12,10 @@
</h5>
<vn-horizontal>
<vn-one>
<h4 translate >
<!-- <span>Basic data</span> -->
<append>
<vn-icon-button
icon="open_in_new"
vn-tooltip="Edit basic data"
ui-sref="client.card.basicData">
</vn-icon-button>
</append>
<h4>
<a ui-sref="client.card.basicData">
<span translate vn-tooltip="Edit basic data">Basic data</span>
</a>
</h4>
<vn-label-value label="Id"
value="{{$ctrl.summary.id}}">
@ -52,15 +47,10 @@
</vn-label-value>
</vn-one>
<vn-one>
<h4 translate>
<!-- <span>Fiscal address</span> -->
<append>
<vn-icon-button
icon="open_in_new"
vn-tooltip="Edit fiscal address"
ui-sref="client.card.fiscalData">
</vn-icon-button>
</append>
<h4>
<a ui-sref="client.card.fiscalData">
<span translate vn-tooltip="Edit address data">Fiscal address</span>
</a>
</h4>
<vn-label-value label="Social name"
value="{{$ctrl.summary.socialName}}">
@ -85,15 +75,10 @@
</vn-label-value>
</vn-one>
<vn-one>
<h4 translate>
<!-- <span>Fiscal data</span> -->
<append>
<vn-icon-button
icon="open_in_new"
vn-tooltip="Edit fiscal data"
ui-sref="client.card.fiscalData">
</vn-icon-button>
</append>
<h4>
<a ui-sref="client.card.fiscalData">
<span translate vn-tooltip="Edit fiscal data">Fiscal data</span>
</a>
</h4>
<vn-vertical>
<vn-check
@ -134,15 +119,10 @@
</vn-vertical>
</vn-one>
<vn-one>
<h4 translate>
<!-- <span>Billing data</span> -->
<append>
<vn-icon-button
icon="open_in_new"
vn-tooltip="Edit Billing data"
ui-sref="client.card.billingData">
</vn-icon-button>
</append>
<h4>
<a ui-sref="client.card.billingData">
<span translate vn-tooltip="Edit billing data">Billing data</span>
</a>
</h4>
<vn-label-value label="Pay method"
value="{{$ctrl.summary.payMethod.name}}">
@ -172,15 +152,10 @@
</vn-vertical>
</vn-one>
<vn-one>
<h4 translate>
<!-- <span>Default address</span> -->
<append>
<vn-icon-button
icon="open_in_new"
vn-tooltip="Edit Default address"
ui-sref="client.card.address.index">
</vn-icon-button>
</append>
<h4>
<a ui-sref="client.card.address.index">
<span translate vn-tooltip="Edit default address">Address</span>
</a>
</h4>
<vn-label-value label="Name"
value="{{$ctrl.summary.defaultAddress.nickname}}">
@ -193,15 +168,10 @@
</vn-label-value>
</vn-one>
<vn-one>
<h4 translate>
<!-- <span>Web access</span> -->
<append>
<vn-icon-button
icon="open_in_new"
vn-tooltip="Edit Web access"
ui-sref="client.card.webAccess">
</vn-icon-button>
</append>
<h4>
<a ui-sref="client.card.webAccess">
<span translate vn-tooltip="Edit web access">Web access</span>
</a>
</h4>
<vn-label-value label="User"
value="{{$ctrl.summary.account.name}}">

View File

@ -7,6 +7,7 @@ Secured credit: Crédito asegurado
Average invoiced: Consumo medio
Sales person: Comercial
Recovery: Recobro
Basic data: Datos básicos
Balance due: Saldo vencido
Rate: Tarifa
Business data: Datos comerciales

View File

@ -25,7 +25,11 @@
</vn-horizontal>
</vn-one>
<vn-one name="basicData">
<h4 translate>Basic data</h4>
<h4>
<a ui-sref="item.card.basicData">
<span translate vn-tooltip="Edit basic data">Basic data</span>
</a>
</h4>
<vn-label-value label="Name"
value="{{$ctrl.summary.item.name}}">
</vn-label-value>
@ -53,7 +57,11 @@
</vn-label-value>
</vn-one>
<vn-one name="otherData">
<h4 translate>Other data</h4>
<h4>
<a ui-sref="item.card.basicData">
<span translate vn-tooltip="Edit other data">Other data</span>
</a>
</h4>
<vn-label-value label="Intrastat code"
value="{{$ctrl.summary.item.intrastat.id}}">
</vn-label-value>
@ -77,7 +85,11 @@
</vn-label-value>
</vn-one>
<vn-one name="tags">
<h4 translate>Tags</h4>
<h4>
<a ui-sref="item.card.tags">
<span translate vn-tooltip="Edit tags">Tags</span>
</a>
</h4>
<vn-label-value
label="{{tag.priority}} {{tag.tag.name}}"
ng-repeat="tag in $ctrl.summary.tags track by tag.id"
@ -85,21 +97,33 @@
</vn-label-value>
</vn-one>
<vn-one name="tax">
<h4 translate>Tax</h4>
<h4>
<a ui-sref="item.card.tax">
<span translate vn-tooltip="Edit tax">Tax</span>
</a>
</h4>
<vn-label-value label="{{tax.country.country}}"
ng-repeat="tax in $ctrl.summary.item.taxes"
value="{{tax.taxClass.description}}">
</vn-label-value>
</vn-one>
<vn-one name="niche">
<h4 translate>Niche</h4>
<h4>
<a ui-sref="item.card.niche">
<span translate vn-tooltip="Edit niche">Niche</span>
</a>
</h4>
<vn-label-value label="{{niche.warehouse.name}}"
ng-repeat="niche in $ctrl.summary.niches"
value="{{niche.code}}">
</vn-label-value>
</vn-one>
<vn-one name="botanical">
<h4 translate>Botanical</h4>
<h4>
<a ui-sref="item.card.botanical">
<span translate vn-tooltip="Edit botanical">Botanical</span>
</a>
</h4>
<vn-label-value label="Botanical"
value="{{$ctrl.summary.botanical.botanical}}">
</vn-label-value>
@ -111,7 +135,11 @@
</vn-label-value>
</vn-one>
<vn-one name="barcode">
<h4 translate>Barcode</h4>
<h4>
<a ui-sref="item.card.itemBarcode">
<span translate vn-tooltip="Edit barcode">Barcode</span>
</a>
</h4>
<p ng-repeat="barcode in $ctrl.summary.item.itemBarcode track by $index">
<b>{{barcode.code}}</b>
</p>

View File

@ -61,7 +61,11 @@
</vn-textarea>
</vn-one>
<vn-auto>
<h4 translate>Ticket</h4>
<h4>
<a ui-sref="route.card.tickets">
<span translate vn-tooltip="Edit ticket">Ticket</span>
</a>
</h4>
<vn-table model="model">
<vn-thead>
<vn-tr>

View File

@ -10,7 +10,11 @@
</h5>
<vn-horizontal>
<vn-one>
<h4 translate>Basic data</h4>
<h4>
<a ui-sref="supplier.card.basicData">
<span translate vn-tooltip="Edit basic data">Basic data</span>
</a>
</h4>
<vn-vertical>
<vn-label-value
label="Id"
@ -37,7 +41,11 @@
</vn-vertical>
</vn-one>
<vn-one>
<h4 translate>Billing data</h4>
<h4>
<a ui-sref="supplier.card.billingData">
<span translate vn-tooltip="Edit billing data">Billing data</span>
</a>
</h4>
<vn-label-value
label="Pay method"
value="{{::$ctrl.summary.payMethod.name}}">
@ -63,7 +71,11 @@
</vn-horizontal>
<vn-horizontal>
<vn-one>
<h4 translate>Fiscal data</h4>
<h4>
<a ui-sref="supplier.card.fiscalData">
<span translate vn-tooltip="Edit fiscal data">Fiscal data</span>
</a>
</h4>
<vn-label-value
label="Sage tax type"
value="{{::$ctrl.summary.sageTaxType.vat}}">
@ -82,7 +94,11 @@
</vn-horizontal>
<vn-horizontal>
<vn-one>
<h4 translate>Fiscal address</h4>
<h4>
<a ui-sref="supplier.card.fiscalData">
<span translate vn-tooltip="Edit fiscal address">Fiscal address</span>
</a>
</h4>
<vn-label-value
label="Social name"
value="{{::$ctrl.summary.name}}">

View File

@ -103,7 +103,11 @@
<p><vn-label><strong>Total</strong></vn-label> <strong>{{$ctrl.summary.total | currency: 'EUR':2}}</strong></p>
</vn-one>
<vn-auto name="sales">
<h4 translate>Sale</h4>
<h4>
<a ui-sref="ticket.card.sale">
<span translate vn-tooltip="Edit sale">Sale</span>
</a>
</h4>
<vn-table>
<vn-thead>
<vn-tr>
@ -158,7 +162,11 @@
</vn-table>
</vn-auto>
<vn-one ng-if="$ctrl.summary.packagings.length != 0">
<h4 translate>Packages</h4>
<h4>
<a ui-sref="ticket.card.package">
<span translate vn-tooltip="Edit packages">Packages</span>
</a>
</h4>
<vn-table model="model">
<vn-thead>
<vn-tr>
@ -177,7 +185,11 @@
</vn-table>
</vn-one>
<vn-one class="services" ng-if="$ctrl.summary.services.length != 0">
<h4 translate>Service</h4>
<h4>
<a ui-sref="ticket.card.service">
<span translate vn-tooltip="Edit service">Service</span>
</a>
</h4>
<vn-table model="model">
<vn-thead>
<vn-tr>
@ -202,7 +214,11 @@
</vn-horizontal>
<vn-horizontal>
<vn-auto ng-if="$ctrl.summary.requests.length != 0">
<h4 translate>Purchase request</h4>
<h4>
<a ui-sref="ticket.card.request.index">
<span translate vn-tooltip="Edit purchase request">Purchase request</span>
</a>
</h4>
<vn-table model="model">
<vn-thead>
<vn-tr>

View File

@ -10,7 +10,11 @@
</h5>
<vn-horizontal class="vn-pa-md">
<vn-one>
<h4 translate>Basic data</h4>
<h4>
<a ui-sref="worker.card.basicData">
<span translate vn-tooltip="Edit basic data">Basic data</span>
</a>
</h4>
<vn-label-value label="Id"
value="{{worker.id}}">
</vn-label-value>

View File

@ -36,7 +36,11 @@
</vn-horizontal>
<vn-horizontal class="vn-pa-md">
<vn-auto>
<h4 translate>Warehouses</h4>
<h4>
<a ui-sref="zone.card.warehouses">
<span translate vn-tooltip="Edit warehouse">Warehouse</span>
</a>
</h4>
<vn-table model="model" auto-load="false">
<vn-thead>
<vn-tr>