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); super($element, $, $transclude);
this.receipt = { this.receipt = {
payed: new Date(), payed: new Date()
clientFk: this.$params.id
}; };
} }
@ -99,7 +98,7 @@ class Controller extends Dialog {
if (response !== 'accept') if (response !== 'accept')
return super.responseHandler(response); 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(() => super.responseHandler(response))
.then(() => this.vnApp.showSuccess(this.$t('Data saved!'))); .then(() => this.vnApp.showSuccess(this.$t('Data saved!')));
} }

View File

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