Allow to refund currencies with zero decimals (#3583)

This commit is contained in:
Martin Gross
2023-09-07 17:55:43 +02:00
committed by GitHub
parent 3f07050d42
commit 45b9a705e2
3 changed files with 11 additions and 11 deletions

View File

@@ -1472,7 +1472,7 @@ class OrderTransition(OrderView):
'organizer': self.request.event.organizer.slug,
'code': self.order.code
}) + '?start-action=do_nothing&start-mode=partial&start-partial_amount={}&giftcard={}&comment={}'.format(
round_decimal(self.order.pending_sum * -1),
round_decimal(self.order.pending_sum * -1, self.order.event.currency),
'true' if self.req and self.req.refund_as_giftcard else 'false',
quote(gettext('Order canceled'))
))