Log in
Model

Calculation

Magento\Tax\Model\ResourceModel\Calculation

What it does

This resource model handles database operations for tax calculations in Magento 2.

Developers use this class to retrieve tax rates based on customer location, product tax class, and customer tax class, calculate combined tax percentages, and manage tax calculation rules.

It includes sophisticated postcode matching logic and caching mechanisms to optimize tax rate lookups during checkout and price display.

Public Methods

  • deleteByRuleId()
  • getCalculationsById()
  • getRateInfo()
  • getRate()
  • getCalculationProcess()
  • getRateIds()
  • _resetState()