3888-ticket.expedition_moveExpedition #1097

Merged
vicent merged 26 commits from 3888-ticket.expedition_moveExpedition into dev 2022-11-02 13:54:11 +00:00
2 changed files with 20 additions and 4 deletions
Showing only changes of commit c4649352a9 - Show all commits

View File

@ -12,12 +12,11 @@
<vn-horizontal class="header">
<vn-tool-bar class="vn-mb-md">
<vn-button icon="keyboard_arrow_down"
label="More"
label="Move"
ng-click="moreOptions.show($event)"
ng-show="$ctrl.hasSelectedSales()">
ng-show="$ctrl.totalChecked">
</vn-button>
<vn-button
disabled="!$ctrl.hasSelectedSales() || !$ctrl.isEditable"
icon="delete"
ng-click="deleteExpedition.show(expedition.id)"
vn-tooltip="Delete expedition">
@ -135,3 +134,16 @@
vn-id="workerDescriptor">
</vn-worker-descriptor-popover>
</vn-popup>
<vn-menu vn-id="moreOptions">
<vn-item translate
name="sms"
ng-click="$ctrl.showSMSDialog()">
New ticket without route
</vn-item>
<vn-item translate
name="calculatePrice"
ng-click="$ctrl.calculateSalePrice()">
New ticket with route
</vn-item>
</vn-menu>

View File

@ -22,6 +22,10 @@ class Controller extends Section {
return checkedRows;
}
get totalChecked() {
return this.checked.length;
}
}
ngModule.vnComponent('vnTicketExpedition', {