delete console.log
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
parent
84a4b049f0
commit
85761043cd
|
@ -50,7 +50,6 @@ module.exports = Self => {
|
||||||
let buyerDiscount = await model.ComponentRate.findOne({where: {code: 'buyerDiscount'}});
|
let buyerDiscount = await model.ComponentRate.findOne({where: {code: 'buyerDiscount'}});
|
||||||
let usesMana = await model.WorkerMana.findOne({where: {workerFk: ticket.client().salesPersonFk}, fields: 'amount'});
|
let usesMana = await model.WorkerMana.findOne({where: {workerFk: ticket.client().salesPersonFk}, fields: 'amount'});
|
||||||
let componentId = buyerDiscount.id;
|
let componentId = buyerDiscount.id;
|
||||||
console.log(usesMana);
|
|
||||||
if (usesMana) {
|
if (usesMana) {
|
||||||
manaDiscount = await model.ComponentRate.findOne({where: {code: 'mana'}});
|
manaDiscount = await model.ComponentRate.findOne({where: {code: 'mana'}});
|
||||||
componentId = manaDiscount.id;
|
componentId = manaDiscount.id;
|
||||||
|
|
Loading…
Reference in New Issue