bug fixed
This commit is contained in:
parent
19c89ec7d3
commit
81988e0753
|
@ -33,6 +33,6 @@ module.exports = Self => {
|
|||
});
|
||||
let mana = await Self.app.models.WorkerMana.findOne({where: {workerFk: ticket[0].client().salesPersonFk}, fields: 'amount'});
|
||||
|
||||
return mana.amount | 0;
|
||||
return mana ? mana.amount : 0;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue