fixed translations

This commit is contained in:
Gerard 2018-11-29 16:27:27 +01:00
parent 86c05d10e4
commit 59d6238f17
1 changed files with 4 additions and 4 deletions

View File

@ -34,13 +34,13 @@ module.exports = Self => {
throw new UserError(`This address doesn't exist`);
if (address.client().isFreezed)
throw new UserError(`You can't create an order for a frozen client`);
throw new UserError(`You can't create a ticket for a frozen client`);
if (!address.client().isActive)
throw new UserError(`You can't create an order for a inactive client`);
throw new UserError(`You can't create a ticket for a inactive client`);
if (!address.client().isTaxDataChecked)
throw new UserError(`You can't create an order for a client that doesn't has tax data verified`);
throw new UserError(`You can't create a ticket for a client that doesn't has tax data verified`);
let clientFk = address.clientFk;
let agency;
@ -54,7 +54,7 @@ module.exports = Self => {
let clientDebt = await Self.rawSql(query, [clientFk]);
if (address.client().credit - clientDebt[0].debt <= 0)
throw new UserError(`You can't create an order for a client that has a debt`);
throw new UserError(`You can't create a ticket for a client that has a debt`);
}
if (!params.userId && ctx.req && ctx.req.accessToken.userId)