Merge fixes
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2020-05-08 19:56:39 +02:00
parent 7a1bb7e68d
commit 07cbac7fcd
10 changed files with 36 additions and 25 deletions

View File

@ -442,7 +442,7 @@ export default {
saleLine: 'vn-table div > vn-tbody > vn-tr', saleLine: 'vn-table div > vn-tbody > vn-tr',
saleDescriptorPopover: '.vn-popover.shown vn-item-descriptor', saleDescriptorPopover: '.vn-popover.shown vn-item-descriptor',
saleDescriptorPopoverSummaryButton: '.vn-popover.shown vn-item-descriptor a[ui-sref="item.card.summary({id: $ctrl.item.id})"]', saleDescriptorPopoverSummaryButton: '.vn-popover.shown vn-item-descriptor a[ui-sref="item.card.summary({id: $ctrl.item.id})"]',
descriptorItemDiaryButton: 'vn-item-descriptor .quicklinks.ng-scope > vn-horizontal > a > vn-icon > i', descriptorItemDiaryButton: '.vn-popover vn-item-descriptor vn-quick-link[icon="icon-transaction"] > a',
newItemFromCatalogButton: 'vn-ticket-sale vn-float-button[icon="add"]', newItemFromCatalogButton: 'vn-ticket-sale vn-float-button[icon="add"]',
newItemButton: 'vn-ticket-sale vn-card vn-icon-button[icon="add_circle"]', newItemButton: 'vn-ticket-sale vn-card vn-icon-button[icon="add_circle"]',
moreMenu: 'vn-ticket-sale vn-tool-bar > vn-button-menu[vn-id="more-button"] > div > button', moreMenu: 'vn-ticket-sale vn-tool-bar > vn-button-menu[vn-id="more-button"] > div > button',
@ -569,9 +569,9 @@ export default {
firstSaleItemId: 'vn-claim-summary vn-horizontal > vn-auto:nth-child(4) vn-table > div > vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(1) > span', firstSaleItemId: 'vn-claim-summary vn-horizontal > vn-auto:nth-child(4) vn-table > div > vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(1) > span',
firstSaleDescriptorImage: '.vn-popover.shown vn-item-descriptor img', firstSaleDescriptorImage: '.vn-popover.shown vn-item-descriptor img',
itemDescriptorPopover: '.vn-popover.shown vn-item-descriptor', itemDescriptorPopover: '.vn-popover.shown vn-item-descriptor',
itemDescriptorPopoverItemDiaryButton: '.vn-popover.shown vn-item-descriptor a[href="#!/item/2/diary"]', itemDescriptorPopoverItemDiaryButton: '.vn-popover vn-item-descriptor vn-quick-link[icon="icon-transaction"] > a',
firstDevelopmentWorker: 'vn-claim-summary vn-horizontal > vn-auto:nth-child(5) vn-table > div > vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(4) > span', firstDevelopmentWorker: 'vn-claim-summary vn-horizontal > vn-auto:nth-child(5) vn-table > div > vn-tbody > vn-tr:nth-child(1) > vn-td:nth-child(4) > span',
firstDevelopmentWorkerGoToClientButton: '.vn-popover.shown vn-worker-descriptor .quicklinks a[href="#!/client/21/summary"]', firstDevelopmentWorkerGoToClientButton: '.vn-popover vn-worker-descriptor vn-quick-link[icon="person"] > a',
firstActionTicketId: 'vn-claim-summary > vn-card > vn-horizontal > vn-auto:nth-child(6) vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > span', firstActionTicketId: 'vn-claim-summary > vn-card > vn-horizontal > vn-auto:nth-child(6) vn-table > div > vn-tbody > vn-tr > vn-td:nth-child(2) > span',
firstActionTicketDescriptor: '.vn-popover.shown vn-ticket-descriptor' firstActionTicketDescriptor: '.vn-popover.shown vn-ticket-descriptor'
}, },
@ -847,7 +847,7 @@ export default {
}, },
entryDescriptor: { entryDescriptor: {
agency: 'vn-entry-descriptor div.body vn-label-value:nth-child(2) span', agency: 'vn-entry-descriptor div.body vn-label-value:nth-child(2) span',
travelsQuicklink: 'vn-entry-descriptor .quicklinks > :nth-child(1) a', travelsQuicklink: 'vn-entry-descriptor vn-quick-link[icon="local_airport"] > a',
entriesQuicklink: 'vn-entry-descriptor .quicklinks > :nth-child(2) a' entriesQuicklink: 'vn-entry-descriptor vn-quick-link[icon="icon-entry"] > a'
} }
}; };

View File

@ -16,7 +16,7 @@
</div> </div>
<div class="fix suffix"></div> <div class="fix suffix"></div>
<label> <label>
<span translate>{{::$ctrl.label}}</span> <span translate>{{$ctrl.label}}</span>
<span class="required">*</span> <span class="required">*</span>
</label> </label>
</div> </div>

View File

@ -8,7 +8,7 @@
<div class="control"></div> <div class="control"></div>
<div class="fix suffix"></div> <div class="fix suffix"></div>
<label> <label>
<span translate>{{::$ctrl.label}}</span> <span translate>{{$ctrl.label}}</span>
<span class="required">*</span> <span class="required">*</span>
</label> </label>
</div> </div>

View File

@ -19,7 +19,7 @@
</div> </div>
<div class="fix suffix"></div> <div class="fix suffix"></div>
<label> <label>
<span translate>{{::$ctrl.label}}</span> <span translate>{{$ctrl.label}}</span>
<span class="required">*</span> <span class="required">*</span>
</label> </label>
</div> </div>

View File

@ -8,7 +8,7 @@
<div class="control"></div> <div class="control"></div>
<div class="fix suffix"></div> <div class="fix suffix"></div>
<label> <label>
<span translate>{{::$ctrl.label}}</span> <span translate>{{$ctrl.label}}</span>
<span class="required">*</span> <span class="required">*</span>
</label> </label>
</div> </div>

View File

@ -65,7 +65,7 @@
<vn-tr ng-repeat="saleClaimed in $ctrl.summary.salesClaimed"> <vn-tr ng-repeat="saleClaimed in $ctrl.summary.salesClaimed">
<vn-td number> <vn-td number>
<span <span
ng-click="itemDescriptor.show($event, saleClaimed.sale.itemFk)" ng-click="itemDescriptor.show($event, saleClaimed.sale.itemFk, saleClaimed.sale.id)"
class="link"> class="link">
{{::saleClaimed.sale.itemFk | zeroFill:6}} {{::saleClaimed.sale.itemFk | zeroFill:6}}
</span> </span>
@ -148,7 +148,7 @@
<vn-tr ng-repeat="action in $ctrl.summary.actions"> <vn-tr ng-repeat="action in $ctrl.summary.actions">
<vn-td number> <vn-td number>
<span <span
ng-click="itemDescriptor.show($event, action.sale.itemFk)" ng-click="itemDescriptor.show($event, action.sale.itemFk, action.sale.id)"
class="link"> class="link">
{{::action.sale.itemFk | zeroFill:6}} {{::action.sale.itemFk | zeroFill:6}}
</span> </span>

View File

@ -3,7 +3,7 @@
<btn-three> <btn-three>
<vn-quick-link <vn-quick-link
tooltip="Item diary" tooltip="Item diary"
state="['item.card.diary', {id: $ctrl.id, warehouseFk: $ctrl.warehouseFk, ticketFk: $ctrl.ticketFk}]" state="['item.card.diary', {id: $ctrl.id, warehouseFk: $ctrl.warehouseFk, lineFk: $ctrl.lineFk}]"
icon="icon-transaction"> icon="icon-transaction">
</vn-quick-link> </vn-quick-link>
</btn-three> </btn-three>

View File

@ -1,13 +1,23 @@
import ngModule from '../module'; import ngModule from '../module';
import DescriptorPopover from 'salix/components/descriptor-popover'; import DescriptorPopover from 'salix/components/descriptor-popover';
class Controller extends DescriptorPopover {} class Controller extends DescriptorPopover {
show(parent, id, lineFk) {
super.show(parent, id);
this.lineFk = lineFk;
}
hide() {
super.hide();
this.lineFk = null;
}
}
ngModule.vnComponent('vnItemDescriptorPopover', { ngModule.vnComponent('vnItemDescriptorPopover', {
slotTemplate: require('./index.html'), slotTemplate: require('./index.html'),
controller: Controller, controller: Controller,
bindings: { bindings: {
warehouseFk: '<?', warehouseFk: '<?',
ticketFk: '<?' lineFk: '<?'
} }
}); });

View File

@ -27,15 +27,18 @@
fields="['code','townFk']" fields="['code','townFk']"
order="code, townFk" order="code, townFk"
value-field="geoFk" value-field="geoFk"
show-field="code" show-field="code">
>
<tpl-item> <tpl-item>
{{code}} - {{town.name}} ({{town.province.name}}, <div>
{{town.province.country.country}}) {{code}} {{town.name}}
</div>
<div class="text-caption text-secondary">
{{town.province.name}}, {{town.province.country.country}}
</div>
</tpl-item> </tpl-item>
</vn-autocomplete> </vn-autocomplete>
<vn-autocomplete <vn-autocomplete
label="Agency" label="{{$ctrl.deliveryMethodFk == 'delivery' ? 'Agency' : 'Warehouse'}}"
ng-model="params.agencyModeFk" ng-model="params.agencyModeFk"
url="AgencyModes/isActive" url="AgencyModes/isActive"
where="$ctrl.agencyFilter" where="$ctrl.agencyFilter"

View File

@ -88,15 +88,13 @@
</div> </div>
</vn-data-viewer> </vn-data-viewer>
</vn-side-menu> </vn-side-menu>
<a <vn-float-button
vn-tooltip="Add event"
ng-click="$ctrl.create('weekday')" ng-click="$ctrl.create('weekday')"
icon="add"
vn-tooltip="Add event"
vn-bind="+" vn-bind="+"
fixed-bottom-right> fixed-bottom-right>
<vn-float-button
icon="add">
</vn-float-button> </vn-float-button>
</a>
<vn-dialog <vn-dialog
vn-id="dialog" vn-id="dialog"
on-response="$ctrl.onIncludeResponse($response)" on-response="$ctrl.onIncludeResponse($response)"