title | issue | author | author_email | author_github |
---|---|---|---|---|
Implement cash rounding |
NEXT-10004 |
Oliver Skroblin |
Oliver Skroblin |
- Added new required fields
item_rounding
andtotal_rounding
field toorder
andcurrency
entity - Added new
currency_country_rounding
which contains country specific cash rounding configuration - Added new
CashRoundingField
which stores the cash rounding inorder
,currency
andcurrency_country_rounding
- Added new
CashRoundingConfig
class which will be decoded by the correspondingCashRoundingField
- Removed
RoundingInterface
andRounding
class, useCashRounding
class instead - Changed
CalculatedTaxCollection::round
parameter, the function requires now aCashRounding
andCashRoundingConfig
- Deprecated
Context::getCurrencyPrecision
, useContext::getRounding
instead - Removed
currencyPrecision
parameter ofContext::__construct()
- Added
itemRounding
andtotalRounding
toSalesChannelContext
- Added
AbstractElasticsearchDefinition::extendDocuments
which allows to add not related entity data to an indexed document - Fixed currency price indexing and usage in elasticsearch
- Changed
__construct
of all price definitions:AbsolutePriceDefinition
,PercentagePriceDefinition
andQuantityPriceDefinition
, use*Definition::create
instead - Removed
precision
parameter of price definition, a specific precision for each definition is no longer supported - Added
CartPrice::rawTotal
which contains the un-rounded total value - Removed
\Shopware\Core\Checkout\Cart\Price\ReferencePriceCalculator
- Removed
\Shopware\Core\Checkout\Cart\Tax\TaxRuleCalculator
useTaxCalculator
instead - Deprecated
\Shopware\Core\System\Currency\CurrencyEntity::$decimalPrecision
useitemRounding
ortotalRounding
instead