From c3ef6420170d22988cb2cf645db8a4819ecfe4bb Mon Sep 17 00:00:00 2001 From: carlossa Date: Mon, 3 Jul 2023 11:45:05 +0200 Subject: [PATCH] refs #5836 fix fk --- modules/client/back/methods/defaulter/filter.js | 2 +- modules/client/front/defaulter/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/client/back/methods/defaulter/filter.js b/modules/client/back/methods/defaulter/filter.js index 16d6929bd..56afb64db 100644 --- a/modules/client/back/methods/defaulter/filter.js +++ b/modules/client/back/methods/defaulter/filter.js @@ -60,7 +60,7 @@ module.exports = Self => { DISTINCT c.id clientFk, c.name clientName, c.salesPersonFk, - c.businessTypeFk businessType, + c.businessTypeFk, u.name salesPersonName, d.amount, co.created, diff --git a/modules/client/front/defaulter/index.js b/modules/client/front/defaulter/index.js index e8cf8def7..47f385d4d 100644 --- a/modules/client/front/defaulter/index.js +++ b/modules/client/front/defaulter/index.js @@ -73,7 +73,7 @@ export default class Controller extends Section { set defaulters(value) { if (!value || !value.length) return; for (let defaulter of value) - defaulter.isWorker = defaulter.businessType === 'worker'; + defaulter.isWorker = defaulter.businessTypeFk === 'worker'; this._defaulters = value; }