bug fixed

This commit is contained in:
gerard 2018-06-29 08:07:40 +02:00
parent 19c89ec7d3
commit 81988e0753
1 changed files with 1 additions and 1 deletions

View File

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