diff --git a/modules/client/front/balance/create/index.js b/modules/client/front/balance/create/index.js index f1474e10c..c0bc11c0b 100644 --- a/modules/client/front/balance/create/index.js +++ b/modules/client/front/balance/create/index.js @@ -7,6 +7,10 @@ class Controller extends Dialog { this.vnReport = vnReport; this.vnEmail = vnEmail; this.receipt = {}; + + this.$.$watch(() => this.clientFk, (newVal, oldVal) => { + if (!this.receipt.amountPaid && newVal != oldVal) this.getAmountPaid(); + }); } set payed(value) { @@ -51,7 +55,6 @@ class Controller extends Dialog { set companyFk(value) { this.receipt.companyFk = value; - this.getAmountPaid(); } set description(value) {