Changeset - e144ebf41d69
[Not reviewed]
0 1 0
Christopher Neugebauer - 3 years ago 2017-10-31 17:34:26
_@chrisjrn.com
Update nbpy_tags.py

Fixes donation amount
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templatetags/nbpy_tags.py
Show inline comments
...
 
@@ -40,5 +40,5 @@ def donation_income(context, invoice):
 
        elif line.product.category.name == "T-Shirt":
 
            rbi.append(line.total_price * fsa_rate)
 

	
 
    donation = (invoice.value - sum(rbi))
 
    donation = max(Decimal('0'), (invoice.value - sum(rbi)))
 
    return donation.quantize(Decimal('.01'))
0 comments (0 inline, 0 general)