Errores en validación solucionados

This commit is contained in:
Juan Ferrer Toribio 2017-05-26 14:39:59 +02:00
parent 3d71f454a0
commit 64813b3fd3
1 changed files with 0 additions and 2 deletions

View File

@ -51,8 +51,6 @@ module.exports = function(Client) {
if(this.payMethod && !this.salesPerson) err(); if(this.payMethod && !this.salesPerson) err();
}; };
// vfalco. A mirar ya que no funciona el validar campos de diferentes modelos.
Client.validateAsync('payMethodFk', hasIban, { Client.validateAsync('payMethodFk', hasIban, {
message: 'Tiene que rellenar el IBAN' message: 'Tiene que rellenar el IBAN'
}); });