[IMP] pos_loyalty: always show the reward before assignation, unless there is only one configured reward

This commit is contained in:
Frederic van der Essen
2014-11-25 19:16:25 +01:00
committed by Frédéric van der Essen
parent f48f4c68dc
commit a9abfb5356
+1 -1
View File
@@ -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 {