refs #4764 boton save
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Satorres 2023-06-29 08:27:20 +02:00
parent 319c6af354
commit 454cf30de7
3 changed files with 12 additions and 6 deletions

View File

@ -175,6 +175,7 @@
"Pass expired": "The password has expired, change it from Salix", "Pass expired": "The password has expired, change it from Salix",
"Can't transfer claimed sales": "Can't transfer claimed sales", "Can't transfer claimed sales": "Can't transfer claimed sales",
"Invalid quantity": "Invalid quantity", "Invalid quantity": "Invalid quantity",
"Failed to upload delivery note": "Error to upload delivery note {{id}}", "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" "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"
} }

View File

@ -27,7 +27,7 @@
<vn-card class="vn-pa-lg"> <vn-card class="vn-pa-lg">
<vn-button-bar> <vn-button-bar>
<vn-button <vn-button
disabled="!watcher.dataChanged() || !$ctrl.hasSelectedServices()" disabled="!watcher.dataChanged() || !$ctrl.hasSelectedServices() || !$ctrl.isDataSaved"
label="Pay" label="Pay"
ng-click="$ctrl.createRefund()" ng-click="$ctrl.createRefund()"
vn-acl="invoicing, claimManager, salesAssistant" vn-acl="invoicing, claimManager, salesAssistant"
@ -60,7 +60,8 @@
label="Quantity" label="Quantity"
info="To create services with negative amounts mark the service on the source ticket and press the pay button." info="To create services with negative amounts mark the service on the source ticket and press the pay button."
ng-model="service.quantity" ng-model="service.quantity"
rule="TicketService"> rule="TicketService"
min="0">
</vn-input-number> </vn-input-number>
<vn-input-number <vn-input-number
vn-one vn-one

View File

@ -6,6 +6,7 @@ class Controller extends Section {
$onInit() { $onInit() {
this.services = []; this.services = [];
this.getDefaultTaxClass(); this.getDefaultTaxClass();
this.isDataSaved = false;
} }
getDefaultTaxClass() { getDefaultTaxClass() {
@ -47,7 +48,10 @@ class Controller extends Section {
this.$.model.save() this.$.model.save()
.then(() => this.$.model.refresh()) .then(() => this.$.model.refresh())
.then(() => this.$.watcher.notifySaved()); .then(() => this.$.watcher.notifySaved())
.then(() => {
this.isDataSaved = true;
});
} }
selectedServices() { selectedServices() {