Skip to content

Commit

Permalink
Merge pull request #62 from bluedynamics/template_discount_calculatio…
Browse files Browse the repository at this point in the history
…n_bug

fix discount calculation bug in templates - decimals everywhere
  • Loading branch information
rnixx authored Aug 25, 2021
2 parents f87e474 + b840f93 commit b791c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bda/plone/orders/mailnotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def order_item_data(context, booking):
data["currency"] = safe_unicode(booking.attrs["currency"])
data["buyable_count"] = booking.attrs["buyable_count"]
data["net"] = booking.attrs["net"]
data["discount_net"] = float(booking.attrs["discount_net"])
data["discount_net"] = booking.attrs["discount_net"]
data["state"] = state = safe_unicode(booking.attrs.get("state"))
brain = get_catalog_brain(context, booking.attrs["buyable_uid"])
buyable = brain.getObject()
Expand Down

0 comments on commit b791c17

Please sign in to comment.