[IMP] pos_loyalty: always show the reward before assignation, unless there is only one configured reward
This commit is contained in:
committed by
Frédéric van der Essen
parent
f48f4c68dc
commit
a9abfb5356
@@ -264,7 +264,7 @@ openerp.pos_loyalty = function(instance){
|
||||
'comment': 'There are no rewards available for this customer as part of the loyalty program',
|
||||
});
|
||||
return;
|
||||
} else if (rewards.length === 1) {
|
||||
} else if (rewards.length === 1 && this.pos.loyalty.rewards.length === 1) {
|
||||
order.apply_reward(rewards[0]);
|
||||
return;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user