remove constant value

This commit is contained in:
Steffen Mahler 2020-05-05 15:59:13 +02:00
parent de1f75df12
commit 3f160c8fe6
1 changed files with 2 additions and 3 deletions

View File

@ -106,7 +106,6 @@ class expectedCartItem
class expectedCart
{
public const CART_TOTAL_PRECISION = 2;
public const CART_GRAND_TOTAL_PRECISION = 4;
public $customer_id;
public $id;
@ -141,13 +140,13 @@ class expectedCart
$this->tax_total = round($this->tax_total, self::CART_TOTAL_PRECISION);
$this->discount_amount = round($this->discount_amount, self::CART_TOTAL_PRECISION);
$this->grand_total = round($this->sub_total + $this->tax_total - $this->discount_amount,
self::CART_GRAND_TOTAL_PRECISION);
self::CART_TOTAL_PRECISION);
$this->base_sub_total = round($this->base_sub_total, self::CART_TOTAL_PRECISION);
$this->base_tax_total = round($this->base_tax_total, self::CART_TOTAL_PRECISION);
$this->base_discount_amount = round($this->base_discount_amount, self::CART_TOTAL_PRECISION);
$this->base_grand_total = round($this->base_sub_total + $this->base_tax_total - $this->base_discount_amount,
self::CART_GRAND_TOTAL_PRECISION);
self::CART_TOTAL_PRECISION);
}
public function toArray(): array