refs #5633 move component
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Satorres 2023-07-05 11:33:30 +02:00
parent d832899258
commit f6e27add6f
2 changed files with 6 additions and 0 deletions

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', {