#256 TIN validation only when isTaxDataChecked is set to true
This commit is contained in:
parent
518a82bf26
commit
ab60e78d1c
|
@ -52,6 +52,9 @@ module.exports = Self => {
|
|||
});
|
||||
let validateTin = require('../validations/validateTin');
|
||||
async function tinIsValid(err, done) {
|
||||
if (!this.isTaxDataChecked)
|
||||
return done();
|
||||
|
||||
let filter = {
|
||||
fields: ['code'],
|
||||
where: {id: this.countryFk}
|
||||
|
|
Loading…
Reference in New Issue