Mira
541b8f5bd6
Discounts: Fix edge case in computation ( #4126 )
...
* Add new test case for discounts:
Two discounts:
- "For every 1 item1, you get three item2 for 10 % off."
- "For every 1 item1, you get five item3 for 10 % off."
Cart: 2x item1, 2x item2, 6x item3
Expected result: 2x item1 full price, 2x item2 discounted, 5x item3 discounted, 1x item3 full price
* Fix discount calculation bug
* Update src/pretix/base/models/discount.py
Co-authored-by: Raphael Michel <michel@rami.io >
* Update src/pretix/base/models/discount.py
Co-authored-by: Richard Schreiber <schreiber@rami.io >
---------
Co-authored-by: Raphael Michel <michel@rami.io >
Co-authored-by: Richard Schreiber <schreiber@rami.io >
2024-05-02 18:21:56 +02:00
dependabot[bot]
d2b96b2425
Bump @babel/core from 7.24.3 to 7.24.5 in /src/pretix/static/npm_dir ( #4125 )
...
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) from 7.24.3 to 7.24.5.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.24.5/packages/babel-core )
---
updated-dependencies:
- dependency-name: "@babel/core"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-02 18:21:30 +02:00
dependabot[bot]
04d4c4f8f1
Bump @babel/preset-env from 7.24.3 to 7.24.5 in /src/pretix/static/npm_dir ( #4124 )
...
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env ) from 7.24.3 to 7.24.5.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.24.5/packages/babel-preset-env )
---
updated-dependencies:
- dependency-name: "@babel/preset-env"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-02 16:31:55 +02:00
Raphaël Deux
f4da94cbcd
Translations: Update French
...
Currently translated at 96.7% (5424 of 5607 strings)
Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/fr/
powered by weblate
2024-05-02 16:31:45 +02:00
Serhii Horichenko
97e3d5387f
Translations: Update Ukrainian
...
Currently translated at 98.2% (225 of 229 strings)
Translation: pretix/pretix (JavaScript parts)
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix-js/uk/
powered by weblate
2024-05-02 16:31:45 +02:00
Serhii Horichenko
8fc07523a9
Translations: Update Ukrainian
...
Currently translated at 62.8% (3526 of 5607 strings)
Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/uk/
powered by weblate
2024-05-02 16:31:45 +02:00
Nikolai
f18b0ae187
Translations: Update Danish
...
Currently translated at 31.1% (1744 of 5607 strings)
Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/da/
powered by weblate
2024-05-02 16:31:45 +02:00
Martin Gross
8c2a1d58f4
Templates: Add Herma 4515 (Acetatesilk) to repository
2024-05-02 13:57:46 +02:00
Raphael Michel
0b05eb34f4
Fix style of buttons in alerts
2024-04-30 12:44:41 +02:00
Raphael Michel
be48c5f94c
Bump version to 2024.5.0.dev0
2024-04-30 11:11:13 +02:00
Raphael Michel
cebb6d3b43
Introduce locking to prevent duplicate invoices (Z#23150548) ( #4067 )
...
* Introduce locking to prevent duplicate invoices
This is not a perfect solution as it does not handle all code paths to
create invoices, but it handles all that seem likely to be triggered
concurrently
* Review note
2024-04-30 10:43:13 +02:00
Richard Schreiber
0de96ed066
Add links to invalid inputs on error alert (Z#23149061) ( #4114 )
...
* Add links to invalid inputs on error alert
* add errors in sub-forms to message, fix issues with multi-checkboxes labels and inputs
* add scrollTarget.scrollIntoView
* add missing semi-colon
* improve comment
* add style for links in alert-danger
* fix link color for all alert-boxes
* Update src/pretix/static/pretixcontrol/js/ui/main.js
---------
Co-authored-by: Raphael Michel <michel@rami.io >
2024-04-30 10:18:32 +02:00
Serhii Horichenko
7a01057429
Translations: Update Ukrainian
...
Currently translated at 89.9% (206 of 229 strings)
Translation: pretix/pretix (JavaScript parts)
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix-js/uk/
powered by weblate
2024-04-30 10:14:00 +02:00
Serhii Horichenko
64e1a602d6
Translations: Update Ukrainian
...
Currently translated at 62.9% (3527 of 5607 strings)
Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/uk/
powered by weblate
2024-04-30 10:14:00 +02:00
Nikolai
fe060c387a
Translations: Update Danish
...
Currently translated at 31.0% (1741 of 5607 strings)
Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/da/
powered by weblate
2024-04-30 10:14:00 +02:00
Richard Schreiber
20b2a3d2aa
Control: add link to orders for each subevent in list of subevents (Z#23129436) ( #3566 )
2024-04-29 18:44:42 +02:00
Raphael Michel
044f0c5480
Fix N+1 query in event calendar found by sentry ( #4104 )
...
* Fix N+1 query in event calendar found by sentry
* isort
---------
Co-authored-by: Mira Weller <weller@rami.io >
2024-04-29 18:41:50 +02:00
Raphael Michel
4d394f9e8a
Answer file export: Allow to filter by subevent (Z#23150581) ( #4066 )
...
* Answer file export: Allow to filter by subevent (Z#23150581)
* Update src/pretix/base/exporters/answers.py
Co-authored-by: Mira <weller@rami.io >
* Fix isort
---------
Co-authored-by: Mira <weller@rami.io >
2024-04-29 18:12:58 +02:00
Raphael Michel
247c4c6c9c
Do not remove unavailable addons when changing order (Z#23150855) ( #4086 )
2024-04-29 18:11:20 +02:00
Raphael Michel
11a038feb3
Allow secret generators to access order datetime ( #4110 )
2024-04-26 15:09:01 +02:00
Raphael Michel
9d57ea8534
API: Do not write log entry for events when no changes are made ( #4090 )
2024-04-26 13:56:46 +02:00
Raphael Michel
189c77207f
Bump version to 2024.4.0
2024-04-26 13:53:49 +02:00
Raphael Michel
3422003a9c
Translations: Update German (informal) (de_Informal)
...
Currently translated at 100.0% (5607 of 5607 strings)
Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/de_Informal/
powered by weblate
2024-04-26 13:53:17 +02:00
Raphael Michel
8da38ba99d
Translations: Update German
...
Currently translated at 100.0% (5607 of 5607 strings)
Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/de/
powered by weblate
2024-04-26 13:53:17 +02:00
Raphael Michel
3ba818336e
Update po files
...
[CI skip]
Signed-off-by: Raphael Michel <michel@rami.io >
2024-04-26 11:26:25 +02:00
Raphael Michel
8aecf4f98f
Voucher import: Validate code not empty
2024-04-26 11:25:49 +02:00
Martin Gross
42f3ca9661
SecHelper: Fix typo in logging statement
2024-04-24 18:13:27 +02:00
Raphael Michel
f7b405b210
Voucher import: Do not allow to keep min/max usages empty
2024-04-24 14:20:54 +02:00
Raphael Michel
11a6390cfc
Voucher import: Fix quota name check
2024-04-24 10:28:10 +02:00
Raphael Michel
44294110fe
Translations: Update German (informal) (de_Informal)
...
Currently translated at 100.0% (5606 of 5606 strings)
Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/de_Informal/
powered by weblate
2024-04-23 14:59:03 +02:00
Raphael Michel
ce1078a783
Translations: Update German
...
Currently translated at 100.0% (5606 of 5606 strings)
Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/de/
powered by weblate
2024-04-23 14:59:03 +02:00
Raphael Michel
0e0cede0ee
Update po files
...
[CI skip]
Signed-off-by: Raphael Michel <michel@rami.io >
2024-04-23 14:41:20 +02:00
Martin Gross
5c833cd493
Add special input widgets for markdown fields ( #1577 )
...
* Add markdown text input widgets
* Update src/pretix/static/pretixcontrol/scss/_forms.scss
* Improvements
---------
Co-authored-by: Raphael Michel <michel@rami.io >
2024-04-23 14:40:30 +02:00
Raphael Michel
64d6a34039
Ensure correct language of invoice attachment file name (Z#23150936) ( #4094 )
2024-04-23 14:07:30 +02:00
Mira
cf380069b4
Translations: Update German (informal) (de_Informal)
...
Currently translated at 100.0% (5598 of 5598 strings)
Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/de_Informal/
powered by weblate
2024-04-23 14:07:17 +02:00
Mira
48168a4c68
Translations: Update German
...
Currently translated at 100.0% (5598 of 5598 strings)
Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/de/
powered by weblate
2024-04-23 14:07:17 +02:00
Raphael Michel
6482fe79b0
Add force to log entry in extend_order()
2024-04-22 21:34:46 +02:00
Raphael Michel
0f696f42f6
Do not allow currency codes that to not represent money ( #4056 )
...
* Do not allow currency codes that to not represent money
* Rebase migration
* Fix blacklist
2024-04-22 16:22:30 +02:00
Martin Gross
79d59553d7
POS: Do not fail when rendering ZVT-transactions without a cardName or cardType
2024-04-22 13:52:18 +02:00
Raphael Michel
b6a42ac8d2
Widget: Document and improve situation around COEP (Z#23149909) ( #4051 )
2024-04-22 13:15:33 +02:00
Raphael Michel
5f5001edb5
File upload: Fix thumbnailing of current image (Z#23151293) ( #4098 )
2024-04-22 13:14:28 +02:00
Raphael Michel
fb403dad88
Add comment field to subevents (Z#23148472) ( #4099 )
...
* Add comment field to subevents (Z#23148472)
* Review fix
2024-04-22 12:56:29 +02:00
Christiaan de Die le Clercq
a73c8f580d
Translations: Update Dutch
...
Currently translated at 88.1% (4937 of 5598 strings)
Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/nl/
powered by weblate
2024-04-22 11:38:27 +02:00
Raphael Michel
f490c89e98
Seating plans: Do not allow GUIDs starting or ending with spaces ( #4093 )
2024-04-22 11:31:34 +02:00
Raphael Michel
159658ae46
Fix typo in attribute name
2024-04-19 17:34:38 +02:00
Raphael Michel
b2842ec3a0
Checkin: Allow to use presence state in rules ( #4061 )
2024-04-18 13:15:31 +02:00
Richard Schreiber
cff073f0d6
Fix: show human-readable country name in profile description for custom country-code questions ( #4078 )
2024-04-18 11:08:21 +02:00
Shiiko
7ee957cff0
Translations: Update Chinese (Simplified)
...
Currently translated at 52.5% (2940 of 5598 strings)
Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/zh_Hans/
powered by weblate
2024-04-17 17:18:31 +02:00
Raphael Michel
ac2fe4b62d
Fix crash in placeholder samples (PRETIXEU-9YP)
2024-04-17 16:37:40 +02:00
Raphael Michel
577e276df3
Fix voucher import validation issue (PRETIXEU-9YF)
2024-04-17 15:42:05 +02:00