Wunderbyte-GmbH / moodle-local_shopping_cart

Other
4 stars 6 forks source link

Extend test for cancellations #89

Open eynimeni opened 3 weeks ago

eynimeni commented 3 weeks ago

We need to cover the cancel all booked users functions better with tests to see if the quota and the cancellation fee is correctly applied here. Quota is defined in Cancellation Settings, there are two options: calculateconsumationfixedpercentage or calculateconsumation. The second one needs a callback function in the plugin of the item (i.e. mod_booking) returning a float value to for the price to be multiplied with (i.e 0.2 if 20% of the option in consumed).

Screenshot 2024-11-06 at 09 05 43

given some users have booked a bookingoption