fix: refs #7524 load after get client
gitea/salix/pipeline/pr-master This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-09-05 14:50:36 +02:00
parent 95d4c706d4
commit c1e086072b
1 changed files with 4 additions and 3 deletions

View File

@ -23,6 +23,7 @@ class Controller extends Dialog {
}
set clientFk(value) {
if (!value) return;
this.receipt.clientFk = value;
const filter = {
@ -32,6 +33,7 @@ class Controller extends Dialog {
}
};
this.getAmountPaid();
this.$http.get(`Clients/findOne`, {filter})
.then(res => {
this.receipt.email = res.data.email;
@ -50,7 +52,6 @@ class Controller extends Dialog {
set companyFk(value) {
this.receipt.companyFk = value;
this.getAmountPaid();
}
set description(value) {
@ -152,7 +153,7 @@ class Controller extends Dialog {
getAmountPaid() {
const filter = {
where: {
clientFk: this.$params.id,
clientFk: this.$params.id ?? this.clientFk,
companyFk: this.receipt.companyFk
}
};
@ -210,8 +211,8 @@ ngModule.vnComponent('vnClientBalanceCreate', {
payed: '<?',
bankFk: '<?',
amountPaid: '<?',
clientFk: '<?',
companyFk: '<?',
description: '<?',
clientFk: '<?'
}
});