Commit Graph

11139 Commits

Author SHA1 Message Date
Mira Weller
9337ad1f70 add prefetching, add test cases checking number of queries 2024-07-25 14:37:19 +02:00
Raphael Michel
9138464896 Translations: Delete Abron 2024-07-24 14:38:38 +02:00
Raphael Michel
b2841e5c61 SSO Providers: Use redacted field for secret key 2024-07-23 16:26:37 +02:00
Raphael Michel
19f3fbc7e8 Order data export: Include ID of parent position of add-ons 2024-07-23 15:52:55 +02:00
dependabot[bot]
d7f6befb5b Bump @babel/preset-env from 7.24.6 to 7.24.7 in /src/pretix/static/npm_dir (#4281)
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.6 to 7.24.7.
- [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.7/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-07-23 13:30:58 +02:00
dependabot[bot]
711f08c9e8 Update python-bidi requirement from ==0.4.* to ==0.5.* (#4325)
* Update python-bidi requirement from ==0.4.* to ==0.5.*

Updates the requirements on [python-bidi](https://github.com/MeirKriheli/python-bidi) to permit the latest version.
- [Release notes](https://github.com/MeirKriheli/python-bidi/releases)
- [Changelog](https://github.com/MeirKriheli/python-bidi/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/MeirKriheli/python-bidi/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: python-bidi
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update import

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raphael Michel <michel@rami.io>
2024-07-23 13:27:15 +02:00
Alberto Ortega
d18914fcca Translations: Update Spanish
Currently translated at 88.5% (5041 of 5690 strings)

Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/es/

powered by weblate
2024-07-23 13:27:07 +02:00
Raphael Michel
2411144262 Ignore a deprecation warning in pypdf 2024-07-23 13:06:00 +02:00
test\"img src=x onerror=prompt(document.cookie)
2f02d35a52 Translations: Add Abron 2024-07-23 11:56:05 +02:00
Richard Schreiber
71e82fda81 Auto-fill questions from invoice address (Z#23143497) (#4303)
* Match invoice address to questions by id, placeholder and label

* make label-text extraction more robust

* match actual label as well
2024-07-23 11:54:10 +02:00
Raphael Michel
ca3802da90 ListExporter: Do not create excel sheets with more than 30 characters 2024-07-23 09:35:34 +02:00
Mira Weller
5087e654e2 cleanup 2024-07-22 11:26:14 +02:00
JnnisCanis
2c68b9e895 Translations: Update German (informal) (de_Informal)
Currently translated at 100.0% (5690 of 5690 strings)

Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/de_Informal/

powered by weblate
2024-07-22 10:07:01 +02:00
bokor-rami-io
01092498f4 Translations: Update German (informal) (de_Informal)
Currently translated at 100.0% (5690 of 5690 strings)

Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/de_Informal/

powered by weblate
2024-07-22 10:07:01 +02:00
Raphael Michel
fd841ed66d Translations: Update German (informal) (de_Informal)
Currently translated at 100.0% (5690 of 5690 strings)

Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/de_Informal/

powered by weblate
2024-07-22 10:07:01 +02:00
Raphael Michel
04cbccb536 Translations: Update German
Currently translated at 100.0% (5690 of 5690 strings)

Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/de/

powered by weblate
2024-07-22 10:07:01 +02:00
Raphael Michel
b8ea93de1e Fix ticket_download_require_validated_email after sales channel change 2024-07-22 09:38:35 +02:00
Mira Weller
dac2209243 rebase migration 2024-07-19 14:21:24 +02:00
Mira Weller
9cb708cf6f fix typing 2024-07-19 14:21:24 +02:00
Mira Weller
e18c699529 formatting, refactoring 2024-07-19 14:21:24 +02:00
Mira Weller
9c3150ccde add license header 2024-07-19 14:21:24 +02:00
Mira Weller
923798ea5f fix cross-selling recommendation logic bug 2024-07-19 14:21:24 +02:00
Mira Weller
b8d2372cf6 store apply_discounts result for use in test cases 2024-07-19 14:21:24 +02:00
Mira Weller
e01e9151c3 correct type annotation 2024-07-19 14:21:24 +02:00
Mira Weller
09398ad7c7 add more test cases 2024-07-19 14:21:24 +02:00
Mira Weller
d1de8f5863 remove redundant check
(this is already checked using the 'if not self.condition_min_count or self.condition_min_value' condition directly above)
2024-07-19 14:21:24 +02:00
Mira Weller
bee0eaa2fa add some unit tests for cross-selling logic 2024-07-19 14:21:24 +02:00
Mira Weller
ac771b8ca8 refactor cross-selling logic into its own module 2024-07-19 14:21:24 +02:00
Mira Weller
cb635b2c37 add TODO for known error 2024-07-19 14:21:24 +02:00
Mira Weller
3fe6919bef add typing 2024-07-19 14:21:24 +02:00
Mira Weller
8cfb69c265 clarifications 2024-07-19 14:21:24 +02:00
Mira Weller
77fc13605e new sales channel compat 2024-07-19 14:21:24 +02:00
Mira Weller
a95976ed50 translate comments 2024-07-19 14:21:24 +02:00
Mira Weller
2e3a611498 isort 2024-07-19 14:21:24 +02:00
Mira Weller
6bf16f1510 Use namedtuple 2024-07-19 14:21:24 +02:00
Mira Weller
d29b183801 fix test case 2024-07-19 14:21:24 +02:00
Mira Weller
188ef5f463 isort 2024-07-19 14:21:24 +02:00
Mira Weller
a7e292ea58 fix case 2024-07-19 14:21:24 +02:00
Mira Weller
d04b855cce category_type refactoring 2024-07-19 14:21:24 +02:00
Mira Weller
01b535a0af cache potential discount information
relevant if shop has multiple categories with cross_selling_condition=discounts
2024-07-19 14:21:23 +02:00
Mira Weller
d9f31aae8c better var names 2024-07-19 14:21:23 +02:00
Mira Weller
715347cb35 filter non-buyable items from list 2024-07-19 14:21:23 +02:00
Mira Weller
32cc45f19a make cross-selling-applicable more specific and cache state
(only show if really applicable, e.g. don't show if product can't be bought due to order_max)
2024-07-19 14:21:23 +02:00
Mira Weller
cadf8dd39d better order_max handling 2024-07-19 14:21:23 +02:00
Mira Weller
b136ac37c8 Hide addon text if only cross-selling, no addons in addon step 2024-07-19 14:21:23 +02:00
Mira Weller
8627eefebc first round of cleanup 2024-07-19 14:21:23 +02:00
Mira Weller
e71d3e21ca display discounted prices, limit number of products according to discount rule 2024-07-19 14:21:23 +02:00
Mira Weller
a18adb8a88 wip 2024-07-19 14:21:23 +02:00
Mira Weller
f56d67ec9c add todo notes 2024-07-19 14:21:23 +02:00
Mira Weller
c156581ad1 fix discount collection (?) 2024-07-19 14:21:23 +02:00