error de ruta arreglado
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Javi Gallego 2021-02-01 10:51:17 +01:00
parent 4424235bd8
commit a08c5c6ff7
2 changed files with 4 additions and 4 deletions

View File

@ -6,8 +6,7 @@ class Controller extends Dialog {
super($element, $, $transclude);
this.receipt = {
payed: new Date(),
clientFk: this.$params.id
payed: new Date()
};
}
@ -99,7 +98,7 @@ class Controller extends Dialog {
if (response !== 'accept')
return super.responseHandler(response);
return this.$http.post(`Clients/${this.$params.id}/createReceipt`, this.receipt)
return this.$http.post(`Clients/${this.clientFk}/createReceipt`, this.receipt)
.then(() => super.responseHandler(response))
.then(() => this.vnApp.showSuccess(this.$t('Data saved!')));
}

View File

@ -139,7 +139,8 @@
<vn-client-balance-create
vn-id="balance-create"
on-accept="$ctrl.getData()"
company-fk="$ctrl.companyId">
company-fk="$ctrl.companyId"
client-fk="$ctrl.$params.id">
</vn-client-balance-create>
<vn-worker-descriptor-popover
vn-id="workerDescriptor">