fixes
This commit is contained in:
@@ -18,7 +18,7 @@ class BasketController extends Controller
|
||||
$offer_id = $request->input('offer_id');
|
||||
$quantity = $request->input('quantity');
|
||||
$price = Offers::getPrice($offer_id, $quantity)->price_taxed;
|
||||
return $quantity * $price;
|
||||
return number_format($quantity * $price, 2);
|
||||
}
|
||||
|
||||
public function addBasket(Request $request)
|
||||
|
||||
@@ -40,7 +40,7 @@ class Offers
|
||||
{
|
||||
$sale_channel_id = $sale_channel_id ? $sale_channel_id : SaleChannels::getDefaultID();
|
||||
$offer = Offer::withPriceBySaleChannelByQuantity($sale_channel_id, $quantity)->find($id);
|
||||
return $offer->price_lists->first()->price_list_values->first();
|
||||
return number_format($offer->price_lists->first()->price_list_values->first(),2);
|
||||
}
|
||||
|
||||
public static function getBasket()
|
||||
|
||||
Reference in New Issue
Block a user