Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

discount with type DiscountType.PERCENTAGE are not applied to additional services #651

Closed
syjer opened this issue Jun 7, 2019 · 0 comments
Labels
Milestone

Comments

@syjer
Copy link
Member

syjer commented Jun 7, 2019

The discount code with % are not applied to additional services.

Example:

ticket: 1 at 10chf
additional service: 1 at 20 chf
discount at 20% applied

the UI show that it will be applied to both.

Expected price: 8chf + 16chf = 24chf

Instead the discount in the end is only applied to the ticket, thus -> 26chf.

Note: the discount must not be applied in case of donations. Only those with type: AdditionalServiceType.SUPPLEMENT

see https://github.com/alfio-event/alf.io/blob/master/src/main/java/alfio/manager/TicketReservationManager.java#L1056 .

Additionally, we have an issue with the fixed amount of discount:

If the DiscountType.FIXED_AMOUNT amount is bigger than the price of a ticket (for example: 20chf discount, but ticket cost 10chf): both in the UI and in the calculation we have a ticket cost of -10chf instead of 0chf

@syjer syjer added the bug label Jun 7, 2019
@syjer syjer added this to the 2.0-M2 milestone Jun 7, 2019
cbellone added a commit that referenced this issue Jun 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant