Fix discount support #37

Merged
bilal.catic merged 2 commits from fix-discount-support into master 2019-08-14 14:36:58 +02:00
Showing only changes of commit 8a80321fe3 - Show all commits

View File

@@ -358,7 +358,10 @@ const getMembersFeesForDateRange = (dateRange, memberIds) => {
//add discount
memberIds.forEach((memberId) => {
allFees.push(createNegativeFeeForDiscount(membersMap[memberId], dateRange));
const discountFee = createNegativeFeeForDiscount(membersMap[memberId], dateRange);
if (discountFee){
allFees.push(discountFee);
}
});
allFees.forEach((fee) => {