This commit is contained in:
parent
319c6af354
commit
454cf30de7
|
@ -175,6 +175,7 @@
|
|||
"Pass expired": "The password has expired, change it from Salix",
|
||||
"Can't transfer claimed sales": "Can't transfer claimed sales",
|
||||
"Invalid quantity": "Invalid quantity",
|
||||
"Failed to upload delivery note": "Error to upload delivery note {{id}}",
|
||||
"Mail not sent": "There has been an error sending the invoice to the client [{{clientId}}]({{{clientUrl}}}), please check the email address"
|
||||
"Failed to upload delivery note": "Error to upload delivery note {{id}}",
|
||||
"Mail not sent": "There has been an error sending the invoice to the client [{{clientId}}]({{{clientUrl}}}), please check the email address",
|
||||
"Tickets with associated refunds can't be deleted. This ticket is associated with refund Nº 3": "Tickets with associated refunds can't be deleted. This ticket is associated with refund Nº 3"
|
||||
}
|
|
@ -27,7 +27,7 @@
|
|||
<vn-card class="vn-pa-lg">
|
||||
<vn-button-bar>
|
||||
<vn-button
|
||||
disabled="!watcher.dataChanged() || !$ctrl.hasSelectedServices()"
|
||||
disabled="!watcher.dataChanged() || !$ctrl.hasSelectedServices() || !$ctrl.isDataSaved"
|
||||
label="Pay"
|
||||
ng-click="$ctrl.createRefund()"
|
||||
vn-acl="invoicing, claimManager, salesAssistant"
|
||||
|
@ -60,7 +60,8 @@
|
|||
label="Quantity"
|
||||
info="To create services with negative amounts mark the service on the source ticket and press the pay button."
|
||||
ng-model="service.quantity"
|
||||
rule="TicketService">
|
||||
rule="TicketService"
|
||||
min="0">
|
||||
</vn-input-number>
|
||||
<vn-input-number
|
||||
vn-one
|
||||
|
|
|
@ -6,6 +6,7 @@ class Controller extends Section {
|
|||
$onInit() {
|
||||
this.services = [];
|
||||
this.getDefaultTaxClass();
|
||||
this.isDataSaved = false;
|
||||
}
|
||||
|
||||
getDefaultTaxClass() {
|
||||
|
@ -47,7 +48,10 @@ class Controller extends Section {
|
|||
|
||||
this.$.model.save()
|
||||
.then(() => this.$.model.refresh())
|
||||
.then(() => this.$.watcher.notifySaved());
|
||||
.then(() => this.$.watcher.notifySaved())
|
||||
.then(() => {
|
||||
this.isDataSaved = true;
|
||||
});
|
||||
}
|
||||
|
||||
selectedServices() {
|
||||
|
|
Loading…
Reference in New Issue