diff --git a/client/client/src/create/create.html b/client/client/src/create/create.html index 5d1f62db9..aa999bbe2 100644 --- a/client/client/src/create/create.html +++ b/client/client/src/create/create.html @@ -20,13 +20,20 @@ - + - - + diff --git a/services/client/common/methods/client/before-save.js b/services/client/common/methods/client/before-save.js index 74b9ce7a6..470b7ba3f 100644 --- a/services/client/common/methods/client/before-save.js +++ b/services/client/common/methods/client/before-save.js @@ -29,9 +29,9 @@ module.exports = function(Client) { && instance.dueDay == ctx.data.dueDay) ctx.data.dueDay = 5; - if (instance.fi && ctx.data.equalizationTax && !canMarkEqualizationTax(instance)){ + if (instance.fi && ctx.data.equalizationTax && !canMarkEqualizationTax(instance)) { next(generateErrorEqualizationTax()); - } else if (instance.equalizationTax !== undefined && instance.equalizationTax && ctx.data.fi && canMarkEqualizationTax(ctx.data)){ + } else if (instance.equalizationTax !== undefined && instance.equalizationTax && ctx.data.fi && canMarkEqualizationTax(ctx.data)) { next(generateErrorEqualizationTax()); } else { next(); diff --git a/services/client/common/methods/client/create.js b/services/client/common/methods/client/create.js index 58e947e3f..fcf85c0bc 100644 --- a/services/client/common/methods/client/create.js +++ b/services/client/common/methods/client/create.js @@ -38,7 +38,8 @@ module.exports = function(Client) { fi: data.fi, socialName: data.socialName, id: account.id, - email: data.email + email: data.email, + salesPersonFk: data.salesPersonFk }; Client.create(client, {transaction}, (error, newClient) => {