fixes #5633 Reutilizar accountShortToStandard en un nuevo componente #1541

Closed
alexandre wants to merge 20 commits from 5633-accountShortToStandard into dev
2 changed files with 6 additions and 0 deletions
Showing only changes of commit f6e27add6f - Show all commits

View File

@ -63,6 +63,7 @@
label="Account"
vn-name="account"
ng-model="$ctrl.supplier.account"
on-change="ctrl.accountShortToStandard(value)"
insertable="true"
max-length="10"
rule>

View File

@ -75,6 +75,11 @@ export default class Controller extends Section {
this.supplier.provinceFk = response.provinceFk;
this.supplier.countryFk = response.countryFk;
}
accountShortToStandard(value) {
this.accountNumber = value.replace('.', '0'.repeat(11 - value.length));
this.$.$emit('accountShortToStandard', this.accountNumber);
}
}
ngModule.vnComponent('vnSupplierFiscalData', {