fixes #5633 Reutilizar accountShortToStandard en un nuevo componente #1541
|
@ -63,6 +63,7 @@
|
||||||
label="Account"
|
label="Account"
|
||||||
vn-name="account"
|
vn-name="account"
|
||||||
ng-model="$ctrl.supplier.account"
|
ng-model="$ctrl.supplier.account"
|
||||||
|
on-change="ctrl.accountShortToStandard(value)"
|
||||||
insertable="true"
|
insertable="true"
|
||||||
max-length="10"
|
max-length="10"
|
||||||
rule>
|
rule>
|
||||||
|
|
|
@ -75,6 +75,11 @@ export default class Controller extends Section {
|
||||||
this.supplier.provinceFk = response.provinceFk;
|
this.supplier.provinceFk = response.provinceFk;
|
||||||
this.supplier.countryFk = response.countryFk;
|
this.supplier.countryFk = response.countryFk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
accountShortToStandard(value) {
|
||||||
|
this.accountNumber = value.replace('.', '0'.repeat(11 - value.length));
|
||||||
|
this.$.$emit('accountShortToStandard', this.accountNumber);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ngModule.vnComponent('vnSupplierFiscalData', {
|
ngModule.vnComponent('vnSupplierFiscalData', {
|
||||||
|
|
Loading…
Reference in New Issue