Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
calculateTax (\Magento\Tax\Api\Data\QuoteDetailsInterface $quoteDetails, $storeId=null, $round=true) | |
getDefaultCalculatedRate ($productTaxClassID, $customerId=null, $storeId=null) | |
getCalculatedRate ($productTaxClassID, $customerId=null, $storeId=null) | |
Data Fields | |
const | CALC_UNIT_BASE = 'UNIT_BASE_CALCULATION' |
const | CALC_ROW_BASE = 'ROW_BASE_CALCULATION' |
const | CALC_TOTAL_BASE = 'TOTAL_BASE_CALCULATION' |
Tax calculation interface. @api
Definition at line 14 of file TaxCalculationInterface.php.
calculateTax | ( | \Magento\Tax\Api\Data\QuoteDetailsInterface | $quoteDetails, |
$storeId = null , |
|||
$round = true |
|||
) |
#- Calculate Tax
\Magento\Tax\Api\Data\QuoteDetailsInterface | $quoteDetails | |
null | int | $storeId | |
bool | $round |
getCalculatedRate | ( | $productTaxClassID, | |
$customerId = null , |
|||
$storeId = null |
|||
) |
Get rate request
int | $productTaxClassID | |
int | $customerId | |
string | $storeId |
Implemented in TaxCalculation.
getDefaultCalculatedRate | ( | $productTaxClassID, | |
$customerId = null , |
|||
$storeId = null |
|||
) |
Get default rate request
int | $productTaxClassID | |
int | $customerId | |
string | $storeId |
Implemented in TaxCalculation.
const CALC_ROW_BASE = 'ROW_BASE_CALCULATION' |
Definition at line 20 of file TaxCalculationInterface.php.
const CALC_TOTAL_BASE = 'TOTAL_BASE_CALCULATION' |
Definition at line 21 of file TaxCalculationInterface.php.
const CALC_UNIT_BASE = 'UNIT_BASE_CALCULATION' |
#+ Type of calculation used
Definition at line 19 of file TaxCalculationInterface.php.