This commit is contained in:
parent
d832899258
commit
f6e27add6f
|
@ -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>
|
||||
|
|
|
@ -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', {
|
||||
|
|
Loading…
Reference in New Issue