mirror of
https://github.com/pretix/pretix.git
synced 2025-12-05 21:32:28 +00:00
* Allow to round taxes on order-level * Rename get_cart_total * Persist rounding mode with order * Add general docs * Order creation API * Update fee algorithm * Rounding on payment method change * Round when splitting order * Fix failing tests * Add settings page * Add tests * Replace algorithm * Add test case for currency rounding * Improve order change * Update flowchart * Update discount logic (more hypothetical, we don't store rounding on cart positions atm) * Rename internal method * Fix typo * Update help text * Apply suggestions from code review Co-authored-by: luelista <weller@rami.io> * Order rounding refactor (#5571) * Add RoundingCorrectionMixin providing before-rounding-values as properties * Use gross_price_before_rounding in more places * Update doc/development/algorithms/pricing.rst Co-authored-by: Martin Gross <gross@rami.io> * Allow to override on perform_order * Rebase migration * Fix event cancellation --------- Co-authored-by: luelista <weller@rami.io> Co-authored-by: Martin Gross <gross@rami.io>
30 lines
881 B
Plaintext
30 lines
881 B
Plaintext
@startuml
|
|
|
|
partition "For every cart position" {
|
|
(*) --> "Get default price from product"
|
|
--> if "Product has variations?" then
|
|
-->[yes] "Override with price from variation"
|
|
--> if "Event series?" then
|
|
-->[yes] "Override with price from subevent"
|
|
-down-> "Store as listed_price"
|
|
else
|
|
-down->[no] "Store as listed_price"
|
|
endif
|
|
else
|
|
-down->[no] "Store as listed_price"
|
|
endif
|
|
--> if "Voucher applied?" then
|
|
-->[yes] "Apply voucher pricing"
|
|
--> "Store as price_after_voucher"
|
|
else
|
|
-->[no] "Store as price_after_voucher"
|
|
endif
|
|
--> "Apply custom price if product allows\nApply tax rule\nSubtract bundled products"
|
|
--> "Store as line_price (gross), tax_rate"
|
|
}
|
|
--> "Apply discount engine"
|
|
--> "Apply tax rounding"
|
|
--> "Store as price (gross)"
|
|
|
|
@enduml
|