7631_testToMaster_2426 #2634
|
@ -364,5 +364,6 @@
|
|||
"This PDA is already assigned to another user": "Este PDA ya está asignado a otro usuario",
|
||||
"You can only have one PDA": "Solo puedes tener un PDA",
|
||||
"It has been invoiced but the PDF could not be generated": "Se ha facturado pero no se ha podido generar el PDF",
|
||||
"It has been invoiced but the PDF of refund not be generated": "Se ha facturado pero no se ha podido generar el PDF del abono"
|
||||
"It has been invoiced but the PDF of refund not be generated": "Se ha facturado pero no se ha podido generar el PDF del abono",
|
||||
"Payment method is required": "El método de pago es obligatorio"
|
||||
}
|
|
@ -129,8 +129,7 @@ module.exports = Self => {
|
|||
const nickname = firstName.concat(' ', lastNames);
|
||||
const {roleFk, businessTypeFk} = await models.WorkerConfig.findOne({fields: ['roleFk', 'businessTypeFk']});
|
||||
|
||||
if (!isFreelance)
|
||||
if (!payMethodFk) throw new UserError('Payment method is required');
|
||||
if (!isFreelance && !payMethodFk) throw new UserError('Payment method is required');
|
||||
|
||||
if (isFreelance || !client) {
|
||||
const [{password}] = await models.Worker.rawSql('SELECT account.passwordGenerate() as password;');
|
||||
|
|
Loading…
Reference in New Issue