refs #5836 fix fk
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Satorres 2023-07-03 11:45:05 +02:00
parent e6ed834bf0
commit c3ef642017
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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;
}