2273 - Fixed transfer sales
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-05-25 14:45:26 +02:00
parent f4984c142f
commit 73a6148a77
2 changed files with 7 additions and 1 deletions

View File

@ -42,7 +42,7 @@
</vn-button>
<vn-button
disabled="!$ctrl.isChecked || !$ctrl.isEditable"
ng-click="transfer.show()"
ng-click="$ctrl.showTransferPopover($event)"
vn-tooltip="Transfer lines"
icon="call_split">
</vn-button>

View File

@ -228,6 +228,12 @@ class Controller extends Section {
}
}
showTransferPopover(event) {
this.setTransferParams();
this.$.transfer.parent = event.target;
this.$.transfer.show();
}
setTransferParams() {
const checkedSales = JSON.stringify(this.checkedLines());
const sales = JSON.parse(checkedSales);