Skip to content

Commit

Permalink
Fixes static tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
hostep committed Jul 24, 2023
1 parent f7343fb commit 2de99b0
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions app/code/Magento/Tax/Model/Calculation/AbstractCalculator.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,54 +22,44 @@ abstract class AbstractCalculator
/**#@+
* Constants for delta rounding key
*/
const KEY_REGULAR_DELTA_ROUNDING = 'regular';
public const KEY_REGULAR_DELTA_ROUNDING = 'regular';

const KEY_APPLIED_TAX_DELTA_ROUNDING = 'applied_tax_amount';
public const KEY_APPLIED_TAX_DELTA_ROUNDING = 'applied_tax_amount';

const KEY_TAX_BEFORE_DISCOUNT_DELTA_ROUNDING = 'tax_before_discount';
public const KEY_TAX_BEFORE_DISCOUNT_DELTA_ROUNDING = 'tax_before_discount';
/**#@-*/

/**#@-*/
/**
* @var TaxDetailsItemInterfaceFactory
*/
protected $taxDetailsItemDataObjectFactory;

/**
* Tax calculation tool
*
* @var Calculation
*/
protected $calculationTool;

/**
* Store id
*
* @var int
*/
protected $storeId;

/**
* Customer tax class id
*
* @var int
*/
protected $customerTaxClassId;

/**
* Customer id
*
* @var int
*/
protected $customerId;

/**
* Shipping Address
*
* @var CustomerAddress
*/
protected $shippingAddress;

/**
* Billing Address
*
* @var CustomerAddress
*/
protected $billingAddress;
Expand Down Expand Up @@ -424,8 +414,9 @@ protected function deltaRound($price, $rate, $direction, $type = self::KEY_REGUL
}

/**
* Given a store price that includes tax at the store rate, this function will back out the store's tax, and add in
* the customer's tax. Returns this new price which is the customer's price including tax.
* Given a store price that includes tax at the store rate, this function will back out the store's tax, ...
*
* ... and add in the customer's tax. Returns this new price which is the customer's price including tax.
*
* @param float $storePriceInclTax
* @param float $storeRate
Expand Down

0 comments on commit 2de99b0

Please sign in to comment.