error de ruta arreglado
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
4424235bd8
commit
a08c5c6ff7
|
@ -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!')));
|
||||
}
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue