Skip to content
Snippets Groups Projects
Commit 463f3f48 authored by Frédéric van der Essen's avatar Frédéric van der Essen
Browse files

[IMP] pos_loyalty: resale rewards should not be available to customers without points

parent ebeb3caa
Branches
Tags
No related merge requests found
......@@ -234,7 +234,9 @@ models.Order = models.Order.extend({
continue;
} else if(reward.type === 'gift' && reward.point_cost > this.get_spendable_points()) {
continue;
}
} else if(reward.type === 'resale' && this.get_spendable_points() <= 0) {
continue;
}
rewards.push(reward);
}
return rewards;
......@@ -424,7 +426,6 @@ screens.OrderWidget.include({
}
if (this.pos.loyalty &&
order.get_client() &&
this.getParent().action_buttons &&
this.getParent().action_buttons.loyalty) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment