5043-mock_Date #1260
|
@ -12,11 +12,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
- (Trabajadores -> Nuevo trabajador) Nueva sección
|
- (Trabajadores -> Nuevo trabajador) Nueva sección
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
-
|
- (Entradas -> Compras) Cambiados los campos "Precio Grouping/Packing" por "PVP" y "Precio" por "Coste"
|
||||||
|
- (Artículos -> Últimas entradas) Cambiados los campos "P.P.U." y "P.P.P." por "PVP"
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- (Artículos -> Etiquetas) Permite intercambiar la relevancia entre dos etiquetas.
|
- (Artículos -> Etiquetas) Permite intercambiar la relevancia entre dos etiquetas.
|
||||||
|
- (Tickets -> Añadir pago) Eliminado "null" en las referencias
|
||||||
|
|
||||||
## [2302.01] - 2023-01-26
|
## [2302.01] - 2023-01-26
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@ describe('Worker time control path', () => {
|
||||||
|
|
||||||
it('should go to the next month, go to current month and go 1 month in the past', async() => {
|
it('should go to the next month, go to current month and go 1 month in the past', async() => {
|
||||||
let date = Date.vnNew();
|
let date = Date.vnNew();
|
||||||
|
date.setDate(1);
|
||||||
date.setMonth(date.getMonth() + 1);
|
date.setMonth(date.getMonth() + 1);
|
||||||
let month = date.toLocaleString('default', {month: 'long'});
|
let month = date.toLocaleString('default', {month: 'long'});
|
||||||
|
|
||||||
|
@ -32,6 +33,7 @@ describe('Worker time control path', () => {
|
||||||
expect(result).toContain(month);
|
expect(result).toContain(month);
|
||||||
|
|
||||||
date = Date.vnNew();
|
date = Date.vnNew();
|
||||||
|
date.setDate(1);
|
||||||
month = date.toLocaleString('default', {month: 'long'});
|
month = date.toLocaleString('default', {month: 'long'});
|
||||||
|
|
||||||
await page.click(selectors.workerTimeControl.previousMonthButton);
|
await page.click(selectors.workerTimeControl.previousMonthButton);
|
||||||
|
@ -40,6 +42,7 @@ describe('Worker time control path', () => {
|
||||||
expect(result).toContain(month);
|
expect(result).toContain(month);
|
||||||
|
|
||||||
date = Date.vnNew();
|
date = Date.vnNew();
|
||||||
|
date.setDate(1);
|
||||||
date.setMonth(date.getMonth() - 1);
|
date.setMonth(date.getMonth() - 1);
|
||||||
const timestamp = Math.round(date.getTime() / 1000);
|
const timestamp = Math.round(date.getTime() / 1000);
|
||||||
month = date.toLocaleString('default', {month: 'long'});
|
month = date.toLocaleString('default', {month: 'long'});
|
||||||
|
|
|
@ -87,6 +87,7 @@ ngModule.vnComponent('vnButtonMenu', {
|
||||||
selectFields: '<?',
|
selectFields: '<?',
|
||||||
initialData: '<?',
|
initialData: '<?',
|
||||||
showFilter: '<?',
|
showFilter: '<?',
|
||||||
|
fields: '<?',
|
||||||
field: '=?',
|
field: '=?',
|
||||||
url: '@?',
|
url: '@?',
|
||||||
data: '<?',
|
data: '<?',
|
||||||
|
|
|
@ -42,6 +42,7 @@ vn-log {
|
||||||
& > td.after,
|
& > td.after,
|
||||||
& > th.after {
|
& > th.after {
|
||||||
width: 40%;
|
width: 40%;
|
||||||
|
white-space: pre-line;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,13 +59,11 @@ class Controller extends Dialog {
|
||||||
|
|
||||||
if (value) {
|
if (value) {
|
||||||
const accountingType = value.accountingType;
|
const accountingType = value.accountingType;
|
||||||
if (this.originalDescription) {
|
if (accountingType.receiptDescription != null) {
|
||||||
this.receipt.description =
|
this.receipt.description = accountingType.receiptDescription;
|
||||||
`${accountingType && accountingType.receiptDescription}, ${this.originalDescription}`;
|
if (this.originalDescription) this.receipt.description += `, ${this.originalDescription}`;
|
||||||
} else {
|
} else if (this.originalDescription)
|
||||||
this.receipt.description =
|
this.receipt.description = this.originalDescription;
|
||||||
`${accountingType && accountingType.receiptDescription}`;
|
|
||||||
}
|
|
||||||
this.maxAmount = accountingType && accountingType.maxAmount;
|
this.maxAmount = accountingType && accountingType.maxAmount;
|
||||||
|
|
||||||
this.receipt.payed = Date.vnNew();
|
this.receipt.payed = Date.vnNew();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Edit buy(s): Editar compra(s)
|
Edit buy(s): Editar compra(s)
|
||||||
Buying value: Precio
|
Buying value: Coste
|
||||||
Freight value: Porte
|
Freight value: Porte
|
||||||
Commission value: Comisión
|
Commission value: Comisión
|
||||||
Package value: Embalaje
|
Package value: Embalaje
|
||||||
|
@ -16,4 +16,4 @@ Field to edit: Campo a editar
|
||||||
PackageName: Cubo
|
PackageName: Cubo
|
||||||
Edit: Editar
|
Edit: Editar
|
||||||
buy(s): compra(s)
|
buy(s): compra(s)
|
||||||
Package out: Embalaje envíos
|
Package out: Embalaje envíos
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
</vn-one>
|
</vn-one>
|
||||||
<vn-one>
|
<vn-one>
|
||||||
<vn-label-value label="Reference">
|
<vn-label-value label="Reference">
|
||||||
<span
|
<span
|
||||||
ng-click="travelDescriptor.show($event, $ctrl.entryData.travel.id)"
|
ng-click="travelDescriptor.show($event, $ctrl.entryData.travel.id)"
|
||||||
class="link">
|
class="link">
|
||||||
{{$ctrl.entryData.travel.ref}}
|
{{$ctrl.entryData.travel.ref}}
|
||||||
|
@ -114,8 +114,7 @@
|
||||||
<th translate center field="grouping">Grouping</th>
|
<th translate center field="grouping">Grouping</th>
|
||||||
<th translate center field="buyingValue">Buying value</th>
|
<th translate center field="buyingValue">Buying value</th>
|
||||||
<th translate center field="price3">Import</th>
|
<th translate center field="price3">Import</th>
|
||||||
<th translate center expand field="price2">Grouping price</th>
|
<th translate center expand field="price">PVP</th>
|
||||||
<th translate center expand field="price3">Packing price</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody ng-repeat="line in buys">
|
<tbody ng-repeat="line in buys">
|
||||||
|
@ -125,19 +124,18 @@
|
||||||
<td center title="{{::line.packageFk | dashIfEmpty}}">{{::line.packageFk | dashIfEmpty}}</td>
|
<td center title="{{::line.packageFk | dashIfEmpty}}">{{::line.packageFk | dashIfEmpty}}</td>
|
||||||
<td center title="{{::line.weight}}">{{::line.weight}}</td>
|
<td center title="{{::line.weight}}">{{::line.weight}}</td>
|
||||||
<td center>
|
<td center>
|
||||||
<vn-chip class="transparent" translate-attr="line.groupingMode == 2 ? {title: 'Minimun amount'} : {title: 'Packing'}" ng-class="{'message': line.groupingMode == 2}">
|
<vn-chip class="transparent" translate-attr="line.groupingMode == 2 ? {title: 'Minimun amount'} : {title: 'Packing'}" ng-class="{'message': line.groupingMode == 2}">
|
||||||
<span>{{::line.packing | dashIfEmpty}}</span>
|
<span>{{::line.packing | dashIfEmpty}}</span>
|
||||||
</vn-chip>
|
</vn-chip>
|
||||||
</td>
|
</td>
|
||||||
<td center>
|
<td center>
|
||||||
<vn-chip class="transparent" translate-attr="line.groupingMode == 1 ? {title: 'Minimun amount'} : {title: 'Grouping'}" ng-class="{'message': line.groupingMode == 1}">
|
<vn-chip class="transparent" translate-attr="line.groupingMode == 1 ? {title: 'Minimun amount'} : {title: 'Grouping'}" ng-class="{'message': line.groupingMode == 1}">
|
||||||
<span>{{::line.grouping | dashIfEmpty}}</span>
|
<span>{{::line.grouping | dashIfEmpty}}</span>
|
||||||
</vn-chip>
|
</vn-chip>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
<td center title="{{::line.buyingValue | currency: 'EUR':2}}">{{::line.buyingValue | currency: 'EUR':2}}</td>
|
<td center title="{{::line.buyingValue | currency: 'EUR':2}}">{{::line.buyingValue | currency: 'EUR':2}}</td>
|
||||||
<td center title="{{::line.quantity * line.buyingValue | currency: 'EUR':2}}">{{::line.quantity * line.buyingValue | currency: 'EUR':2}}</td>
|
<td center title="{{::line.quantity * line.buyingValue | currency: 'EUR':2}}">{{::line.quantity * line.buyingValue | currency: 'EUR':2}}</td>
|
||||||
<td center title="{{::line.price2 | currency: 'EUR':2}}">{{::line.price2 | currency: 'EUR':2}}</td>
|
<td center title="Grouping / Packing">{{::line.price2 | currency: 'EUR':2 | dashIfEmpty}} / {{::line.price3 | currency: 'EUR':2 | dashIfEmpty}}</td>
|
||||||
<td center title="{{::line.price3 | currency: 'EUR':2}}">{{::line.price3 | currency: 'EUR':2}}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="dark-row">
|
<tr class="dark-row">
|
||||||
<td shrink>
|
<td shrink>
|
||||||
|
@ -195,7 +193,7 @@
|
||||||
vn-id="item-descriptor"
|
vn-id="item-descriptor"
|
||||||
warehouse-fk="$ctrl.vnConfig.warehouseFk">
|
warehouse-fk="$ctrl.vnConfig.warehouseFk">
|
||||||
</vn-item-descriptor-popover>
|
</vn-item-descriptor-popover>
|
||||||
<vn-travel-descriptor-popover
|
<vn-travel-descriptor-popover
|
||||||
vn-id="travelDescriptor">
|
vn-id="travelDescriptor">
|
||||||
</vn-travel-descriptor-popover>
|
</vn-travel-descriptor-popover>
|
||||||
|
|
||||||
|
|
|
@ -9,15 +9,15 @@
|
||||||
</vn-crud-model>
|
</vn-crud-model>
|
||||||
|
|
||||||
<vn-card class="vn-w-md vn-pa-md">
|
<vn-card class="vn-w-md vn-pa-md">
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-date-picker class="vn-pa-xs"
|
<vn-date-picker class="vn-pa-xs"
|
||||||
vn-one
|
vn-one
|
||||||
label="Since"
|
label="Since"
|
||||||
ng-model="$ctrl.dateFrom">
|
ng-model="$ctrl.dateFrom">
|
||||||
</vn-date-picker>
|
</vn-date-picker>
|
||||||
<vn-date-picker class="vn-pa-xs"
|
<vn-date-picker class="vn-pa-xs"
|
||||||
vn-one
|
vn-one
|
||||||
label="To"
|
label="To"
|
||||||
ng-model="$ctrl.dateTo">
|
ng-model="$ctrl.dateTo">
|
||||||
</vn-date-picker>
|
</vn-date-picker>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
|
@ -35,8 +35,7 @@
|
||||||
<vn-th field="warehouseFk">Warehouse</vn-th>
|
<vn-th field="warehouseFk">Warehouse</vn-th>
|
||||||
<vn-th field="landed">Landed</vn-th>
|
<vn-th field="landed">Landed</vn-th>
|
||||||
<vn-th number>Entry</vn-th>
|
<vn-th number>Entry</vn-th>
|
||||||
<vn-th number vn-tooltip="Price Per Unit">P.P.U</vn-th>
|
<vn-th vn-tooltip="Grouping / Packing">PVP</vn-th>
|
||||||
<vn-th number vn-tooltip="Price Per Package">P.P.P</vn-th>
|
|
||||||
<vn-th number class="expendable">Label</vn-th>
|
<vn-th number class="expendable">Label</vn-th>
|
||||||
<vn-th number>Packing</vn-th>
|
<vn-th number>Packing</vn-th>
|
||||||
<vn-th number>Grouping</vn-th>
|
<vn-th number>Grouping</vn-th>
|
||||||
|
@ -51,7 +50,7 @@
|
||||||
<vn-tbody>
|
<vn-tbody>
|
||||||
<vn-tr ng-repeat="entry in entries">
|
<vn-tr ng-repeat="entry in entries">
|
||||||
<vn-td center>
|
<vn-td center>
|
||||||
<vn-check
|
<vn-check
|
||||||
ng-model="entry.isIgnored"
|
ng-model="entry.isIgnored"
|
||||||
disabled="true">
|
disabled="true">
|
||||||
</vn-check>
|
</vn-check>
|
||||||
|
@ -65,30 +64,31 @@
|
||||||
{{::entry.entryFk | dashIfEmpty}}
|
{{::entry.entryFk | dashIfEmpty}}
|
||||||
</span>
|
</span>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
<vn-td number>{{::entry.price2 | dashIfEmpty}}</vn-td>
|
<vn-td title="{{::entry.price2 | currency: 'EUR':2 | dashIfEmpty}} / {{::entry.price3 | currency: 'EUR':2 | dashIfEmpty}}">
|
||||||
<vn-td number>{{::entry.price3 | dashIfEmpty}}</vn-td>
|
{{::entry.price2 | currency: 'EUR':2 | dashIfEmpty}} / {{::entry.price3 | currency: 'EUR':2 | dashIfEmpty}}
|
||||||
|
</vn-td>
|
||||||
<vn-td number class="expendable">{{entry.stickers | dashIfEmpty}}</vn-td>
|
<vn-td number class="expendable">{{entry.stickers | dashIfEmpty}}</vn-td>
|
||||||
<vn-td number>
|
<vn-td number>
|
||||||
<vn-chip translate-attr="{title: 'Packing'}" ng-class="{'message': entry.groupingMode == 2}">
|
<vn-chip translate-attr="{title: 'Packing'}" ng-class="{'message': entry.groupingMode == 2}">
|
||||||
<span>{{::entry.packing | dashIfEmpty}}</span>
|
<span>{{::entry.packing | dashIfEmpty}}</span>
|
||||||
</vn-chip>
|
</vn-chip>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
<vn-td number>
|
<vn-td number>
|
||||||
<vn-chip translate-attr="{title: 'Grouping'}" ng-class="{'message': entry.groupingMode == 1}">
|
<vn-chip translate-attr="{title: 'Grouping'}" ng-class="{'message': entry.groupingMode == 1}">
|
||||||
<span>{{::entry.grouping | dashIfEmpty}}</span>
|
<span>{{::entry.grouping | dashIfEmpty}}</span>
|
||||||
</vn-chip>
|
</vn-chip>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
<vn-td number class="expendable">{{::entry.stems | dashIfEmpty}}</vn-td>
|
<vn-td number class="expendable">{{::entry.stems | dashIfEmpty}}</vn-td>
|
||||||
<vn-td number>{{::entry.quantity}}</vn-td>
|
<vn-td number>{{::entry.quantity}}</vn-td>
|
||||||
<vn-td number
|
<vn-td number
|
||||||
class="expendable">
|
class="expendable">
|
||||||
<span
|
<span
|
||||||
vn-tooltip="
|
vn-tooltip="
|
||||||
{{::$ctrl.$t('Cost')}}: {{::entry.buyingValue| dashIfEmpty}}<br>
|
{{::$ctrl.$t('Cost')}}: {{::entry.buyingValue | currency: 'EUR':2 | dashIfEmpty}}<br>
|
||||||
{{::$ctrl.$t('Package')}}: {{::entry.packageValue| dashIfEmpty}}<br>
|
{{::$ctrl.$t('Package')}}: {{::entry.packageValue | currency: 'EUR':2 | dashIfEmpty}}<br>
|
||||||
{{::$ctrl.$t('Freight')}}: {{::entry.freightValue| dashIfEmpty}}<br>
|
{{::$ctrl.$t('Freight')}}: {{::entry.freightValue | currency: 'EUR':2 | dashIfEmpty}}<br>
|
||||||
{{::$ctrl.$t('Comission')}}: {{::entry.comissionValue| dashIfEmpty}}">
|
{{::$ctrl.$t('Comission')}}: {{::entry.comissionValue | currency: 'EUR':2 | dashIfEmpty}}">
|
||||||
{{::entry.cost | dashIfEmpty}}
|
{{::entry.cost | currency: 'EUR':2 | dashIfEmpty}}
|
||||||
</span>
|
</span>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
<vn-td number>{{::entry.weight | dashIfEmpty}}</vn-td>
|
<vn-td number>{{::entry.weight | dashIfEmpty}}</vn-td>
|
||||||
|
@ -113,24 +113,24 @@
|
||||||
ng-click="contextmenu.filterBySelection()">
|
ng-click="contextmenu.filterBySelection()">
|
||||||
Filter by selection
|
Filter by selection
|
||||||
</vn-item>
|
</vn-item>
|
||||||
<vn-item translate
|
<vn-item translate
|
||||||
ng-if="contextmenu.isFilterAllowed()"
|
ng-if="contextmenu.isFilterAllowed()"
|
||||||
ng-click="contextmenu.excludeSelection()">
|
ng-click="contextmenu.excludeSelection()">
|
||||||
Exclude selection
|
Exclude selection
|
||||||
</vn-item>
|
</vn-item>
|
||||||
<vn-item translate
|
<vn-item translate
|
||||||
ng-if="contextmenu.isFilterAllowed()"
|
ng-if="contextmenu.isFilterAllowed()"
|
||||||
ng-click="contextmenu.removeFilter()">
|
ng-click="contextmenu.removeFilter()">
|
||||||
Remove filter
|
Remove filter
|
||||||
</vn-item>
|
</vn-item>
|
||||||
<vn-item translate
|
<vn-item translate
|
||||||
ng-click="contextmenu.removeAllFilters()">
|
ng-click="contextmenu.removeAllFilters()">
|
||||||
Remove all filters
|
Remove all filters
|
||||||
</vn-item>
|
</vn-item>
|
||||||
<vn-item translate
|
<vn-item translate
|
||||||
ng-if="contextmenu.isActionAllowed()"
|
ng-if="contextmenu.isActionAllowed()"
|
||||||
ng-click="contextmenu.copyValue()">
|
ng-click="contextmenu.copyValue()">
|
||||||
Copy value
|
Copy value
|
||||||
</vn-item>
|
</vn-item>
|
||||||
</slot-menu>
|
</slot-menu>
|
||||||
</vn-contextmenu>
|
</vn-contextmenu>
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
disabled="!$ctrl.isEditable"
|
disabled="!$ctrl.isEditable"
|
||||||
label="State"
|
label="State"
|
||||||
value-field="code"
|
value-field="code"
|
||||||
|
fields="['id', 'name', 'alertLevel', 'code']"
|
||||||
url="States/editableStates"
|
url="States/editableStates"
|
||||||
on-change="$ctrl.changeState(value)">
|
on-change="$ctrl.changeState(value)">
|
||||||
</vn-button-menu>
|
</vn-button-menu>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<vn-card class="summary">
|
<vn-card class="summary">
|
||||||
<h5>
|
<h5>
|
||||||
<a
|
<a
|
||||||
ng-if="::$ctrl.summary.id"
|
ng-if="::$ctrl.summary.id"
|
||||||
vn-tooltip="Go to the ticket"
|
vn-tooltip="Go to the ticket"
|
||||||
ui-sref="ticket.card.summary({id: {{::$ctrl.summary.id}}})"
|
ui-sref="ticket.card.summary({id: {{::$ctrl.summary.id}}})"
|
||||||
|
@ -8,36 +8,37 @@
|
||||||
<vn-icon-button icon="launch"></vn-icon-button>
|
<vn-icon-button icon="launch"></vn-icon-button>
|
||||||
</a>
|
</a>
|
||||||
<span>
|
<span>
|
||||||
Ticket #{{$ctrl.summary.id}} - {{$ctrl.summary.client.name}}
|
Ticket #{{$ctrl.summary.id}} - {{$ctrl.summary.client.name}}
|
||||||
({{$ctrl.summary.client.id}}) - {{$ctrl.summary.nickname}}
|
({{$ctrl.summary.client.id}}) - {{$ctrl.summary.nickname}}
|
||||||
</span>
|
</span>
|
||||||
<vn-button-menu
|
<vn-button-menu
|
||||||
disabled="!$ctrl.isEditable"
|
disabled="!$ctrl.isEditable"
|
||||||
class="message"
|
class="message"
|
||||||
label="Change state"
|
label="Change state"
|
||||||
value-field="code"
|
value-field="code"
|
||||||
|
fields="['id', 'name', 'alertLevel', 'code']"
|
||||||
url="States/editableStates"
|
url="States/editableStates"
|
||||||
on-change="$ctrl.changeState(value)">
|
on-change="$ctrl.changeState(value)">
|
||||||
</vn-button-menu>
|
</vn-button-menu>
|
||||||
<vn-ticket-descriptor-menu
|
<vn-ticket-descriptor-menu
|
||||||
ng-if="!$ctrl.isOnTicketCard"
|
ng-if="!$ctrl.isOnTicketCard"
|
||||||
ticket-id="$ctrl.summary.id"
|
ticket-id="$ctrl.summary.id"
|
||||||
parent-reload="$ctrl.reload()"
|
parent-reload="$ctrl.reload()"
|
||||||
/>
|
/>
|
||||||
</h5>
|
</h5>
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-one>
|
<vn-one>
|
||||||
<vn-label-value label="State"
|
<vn-label-value label="State"
|
||||||
value="{{$ctrl.summary.ticketState.state.name}}">
|
value="{{$ctrl.summary.ticketState.state.name}}">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Salesperson">
|
<vn-label-value label="Salesperson">
|
||||||
<span
|
<span
|
||||||
ng-click="workerDescriptor.show($event, $ctrl.summary.client.salesPersonFk)"
|
ng-click="workerDescriptor.show($event, $ctrl.summary.client.salesPersonFk)"
|
||||||
class="link">
|
class="link">
|
||||||
{{$ctrl.summary.client.salesPersonUser.name}}
|
{{$ctrl.summary.client.salesPersonUser.name}}
|
||||||
</span>
|
</span>
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Agency"
|
<vn-label-value label="Agency"
|
||||||
value="{{$ctrl.summary.agencyMode.name}}">
|
value="{{$ctrl.summary.agencyMode.name}}">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Zone">
|
<vn-label-value label="Zone">
|
||||||
|
@ -47,11 +48,11 @@
|
||||||
{{$ctrl.summary.zone.name}}
|
{{$ctrl.summary.zone.name}}
|
||||||
</span>
|
</span>
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Warehouse"
|
<vn-label-value label="Warehouse"
|
||||||
value="{{$ctrl.summary.warehouse.name}}">
|
value="{{$ctrl.summary.warehouse.name}}">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Route">
|
<vn-label-value label="Route">
|
||||||
<span
|
<span
|
||||||
ng-click="routeDescriptor.show($event, $ctrl.summary.routeFk)"
|
ng-click="routeDescriptor.show($event, $ctrl.summary.routeFk)"
|
||||||
class="link">
|
class="link">
|
||||||
{{$ctrl.summary.routeFk}}
|
{{$ctrl.summary.routeFk}}
|
||||||
|
@ -66,17 +67,17 @@
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
</vn-one>
|
</vn-one>
|
||||||
<vn-two>
|
<vn-two>
|
||||||
<vn-label-value label="Shipped"
|
<vn-label-value label="Shipped"
|
||||||
value="{{$ctrl.summary.shipped | date: 'dd/MM/yyyy HH:mm'}}">
|
value="{{$ctrl.summary.shipped | date: 'dd/MM/yyyy HH:mm'}}">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Landed"
|
<vn-label-value label="Landed"
|
||||||
value="{{$ctrl.summary.landed | date: 'dd/MM/yyyy'}}">
|
value="{{$ctrl.summary.landed | date: 'dd/MM/yyyy'}}">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Package size"
|
<vn-label-value label="Package size"
|
||||||
value="{{$ctrl.summary.packages}}">
|
value="{{$ctrl.summary.packages}}">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Address phone"
|
<vn-label-value label="Address phone"
|
||||||
ng-if="$ctrl.summary.address.phone != null"
|
ng-if="$ctrl.summary.address.phone != null"
|
||||||
value="{{$ctrl.summary.address.phone}}">
|
value="{{$ctrl.summary.address.phone}}">
|
||||||
</vn-label-value>
|
</vn-label-value>
|
||||||
<vn-label-value label="Address mobile"
|
<vn-label-value label="Address mobile"
|
||||||
|
@ -109,7 +110,7 @@
|
||||||
</vn-one>
|
</vn-one>
|
||||||
<vn-auto name="sales">
|
<vn-auto name="sales">
|
||||||
<h4>
|
<h4>
|
||||||
<a
|
<a
|
||||||
ui-sref="ticket.card.sale({id:$ctrl.ticket.id})"
|
ui-sref="ticket.card.sale({id:$ctrl.ticket.id})"
|
||||||
target="_self">
|
target="_self">
|
||||||
<span translate vn-tooltip="Go to">Sale</span>
|
<span translate vn-tooltip="Go to">Sale</span>
|
||||||
|
@ -146,13 +147,13 @@
|
||||||
vn-tooltip="{{::$ctrl.$t('Claim')}}: {{::sale.claimBeginning.claimFk}}">
|
vn-tooltip="{{::$ctrl.$t('Claim')}}: {{::sale.claimBeginning.claimFk}}">
|
||||||
</vn-icon>
|
</vn-icon>
|
||||||
</a>
|
</a>
|
||||||
<vn-icon
|
<vn-icon
|
||||||
ng-show="::(sale.visible < 0)"
|
ng-show="::(sale.visible < 0)"
|
||||||
color-main
|
color-main
|
||||||
icon="warning"
|
icon="warning"
|
||||||
vn-tooltip="Visible: {{::sale.visible || 0}}">
|
vn-tooltip="Visible: {{::sale.visible || 0}}">
|
||||||
</vn-icon>
|
</vn-icon>
|
||||||
<vn-icon ng-show="sale.reserved"
|
<vn-icon ng-show="sale.reserved"
|
||||||
icon="icon-reserve"
|
icon="icon-reserve"
|
||||||
translate-attr="{title: 'Reserved'}">
|
translate-attr="{title: 'Reserved'}">
|
||||||
</vn-icon>
|
</vn-icon>
|
||||||
|
@ -170,22 +171,22 @@
|
||||||
</vn-icon>
|
</vn-icon>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
<vn-td number shrink>
|
<vn-td number shrink>
|
||||||
<span
|
<span
|
||||||
ng-click="itemDescriptor.show($event, sale.itemFk, sale.id, $ctrl.ticket.shipped)"
|
ng-click="itemDescriptor.show($event, sale.itemFk, sale.id, $ctrl.ticket.shipped)"
|
||||||
class="link">
|
class="link">
|
||||||
{{sale.itemFk | zeroFill:6}}
|
{{sale.itemFk | zeroFill:6}}
|
||||||
</span>
|
</span>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
<vn-td number shrink>
|
<vn-td number shrink>
|
||||||
<vn-chip
|
<vn-chip
|
||||||
class="transparent"
|
class="transparent"
|
||||||
ng-class="{'alert': sale.visible < 0}">
|
ng-class="{'alert': sale.visible < 0}">
|
||||||
{{::sale.visible}}
|
{{::sale.visible}}
|
||||||
</vn-chip>
|
</vn-chip>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
<vn-td number shrink>
|
<vn-td number shrink>
|
||||||
<vn-chip
|
<vn-chip
|
||||||
class="transparent"
|
class="transparent"
|
||||||
ng-class="{'alert': sale.available < 0}">
|
ng-class="{'alert': sale.available < 0}">
|
||||||
{{::sale.available}}
|
{{::sale.available}}
|
||||||
</vn-chip>
|
</vn-chip>
|
||||||
|
@ -216,7 +217,7 @@
|
||||||
</vn-auto>
|
</vn-auto>
|
||||||
<vn-one ng-if="$ctrl.summary.packagings.length != 0">
|
<vn-one ng-if="$ctrl.summary.packagings.length != 0">
|
||||||
<h4>
|
<h4>
|
||||||
<a
|
<a
|
||||||
ui-sref="ticket.card.package({id:$ctrl.ticket.id})"
|
ui-sref="ticket.card.package({id:$ctrl.ticket.id})"
|
||||||
target="_self">
|
target="_self">
|
||||||
<span translate vn-tooltip="Go to">Packages</span>
|
<span translate vn-tooltip="Go to">Packages</span>
|
||||||
|
@ -241,7 +242,7 @@
|
||||||
</vn-one>
|
</vn-one>
|
||||||
<vn-one class="services" ng-if="$ctrl.summary.services.length != 0">
|
<vn-one class="services" ng-if="$ctrl.summary.services.length != 0">
|
||||||
<h4>
|
<h4>
|
||||||
<a
|
<a
|
||||||
ui-sref="ticket.card.service({id:$ctrl.ticket.id})"
|
ui-sref="ticket.card.service({id:$ctrl.ticket.id})"
|
||||||
target="_self">
|
target="_self">
|
||||||
<span translate vn-tooltip="Go to">Service</span>
|
<span translate vn-tooltip="Go to">Service</span>
|
||||||
|
@ -276,7 +277,7 @@
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-auto ng-if="$ctrl.summary.requests.length != 0">
|
<vn-auto ng-if="$ctrl.summary.requests.length != 0">
|
||||||
<h4>
|
<h4>
|
||||||
<a
|
<a
|
||||||
ui-sref="ticket.card.request.index({id:$ctrl.ticket.id})"
|
ui-sref="ticket.card.request.index({id:$ctrl.ticket.id})"
|
||||||
target="_self">
|
target="_self">
|
||||||
<span translate vn-tooltip="Go to">Purchase request</span>
|
<span translate vn-tooltip="Go to">Purchase request</span>
|
||||||
|
@ -304,7 +305,7 @@
|
||||||
<vn-td number>{{::request.quantity}}</vn-td>
|
<vn-td number>{{::request.quantity}}</vn-td>
|
||||||
<vn-td number>{{::request.price}}</vn-td>
|
<vn-td number>{{::request.price}}</vn-td>
|
||||||
<vn-td number>
|
<vn-td number>
|
||||||
<span
|
<span
|
||||||
ng-show="::request.saleFk"
|
ng-show="::request.saleFk"
|
||||||
ng-click="itemDescriptor.show($event, request.sale.itemFk, request.sale.id)"
|
ng-click="itemDescriptor.show($event, request.sale.itemFk, request.sale.id)"
|
||||||
class="link">
|
class="link">
|
||||||
|
@ -336,9 +337,9 @@
|
||||||
<vn-invoice-out-descriptor-popover
|
<vn-invoice-out-descriptor-popover
|
||||||
vn-id="invoice-out-descriptor">
|
vn-id="invoice-out-descriptor">
|
||||||
</vn-invoice-out-descriptor-popover>
|
</vn-invoice-out-descriptor-popover>
|
||||||
<vn-worker-descriptor-popover
|
<vn-worker-descriptor-popover
|
||||||
vn-id="workerDescriptor">
|
vn-id="workerDescriptor">
|
||||||
</vn-worker-descriptor-popover>
|
</vn-worker-descriptor-popover>
|
||||||
<vn-zone-descriptor-popover
|
<vn-zone-descriptor-popover
|
||||||
vn-id="zoneDescriptor">
|
vn-id="zoneDescriptor">
|
||||||
</vn-zone-descriptor-popover>
|
</vn-zone-descriptor-popover>
|
||||||
|
|
Loading…
Reference in New Issue