mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 23:51:25 +00:00
Adjusted calcualtion tests need specific discount tests
This commit is contained in:
@@ -480,7 +480,7 @@ class Cart
|
||||
}
|
||||
|
||||
$cartItem->setTaxRate(config('cart.tax'));
|
||||
$cartItem->setDiscountRate( $this->discount );
|
||||
$cartItem->setDiscountRate( $this->discount * 100 );
|
||||
|
||||
return $cartItem;
|
||||
}
|
||||
|
||||
@@ -192,7 +192,7 @@ class CartItem implements Arrayable, Jsonable
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the formatted tax.
|
||||
* Returns the formatted discount.
|
||||
*
|
||||
* @param int $decimals
|
||||
* @param string $decimalPoint
|
||||
@@ -205,7 +205,7 @@ class CartItem implements Arrayable, Jsonable
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the formatted tax.
|
||||
* Returns the formatted total discount for this cart item.
|
||||
*
|
||||
* @param int $decimals
|
||||
* @param string $decimalPoint
|
||||
|
||||
Reference in New Issue
Block a user