From 31f18db72d6a25e26065515baf88d1099483497b Mon Sep 17 00:00:00 2001 From: Jorge Padawan Date: Thu, 7 Jan 2021 15:14:50 +0100 Subject: [PATCH] first step bankEntity --- modules/supplier/front/account/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/supplier/front/account/index.js b/modules/supplier/front/account/index.js index 069601a207..e72e6d0db7 100644 --- a/modules/supplier/front/account/index.js +++ b/modules/supplier/front/account/index.js @@ -38,6 +38,13 @@ class Controller extends Section { return this.$http.patch(query, this.newBankEntity) .then(res => this.supplierAccount.bankEntityFk = res.data.id); } + + onResponse(response) { + this.supplier.postcode = response.code; + this.supplier.city = response.city; + this.supplier.provinceFk = response.provinceFk; + this.supplier.countryFk = response.countryFk; + } } ngModule.vnComponent('vnSupplierAccount', {