Quellcode durchsuchen

Merge branch 'dev'

prodstable
Guillaume Bourgeois vor 5 Jahren
Ursprung
Commit
00fea1d81f
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. +2
    -2
      producer/controllers/OrderController.php

+ 2
- 2
producer/controllers/OrderController.php Datei anzeigen

@@ -326,9 +326,9 @@ class OrderController extends ProducerBaseController

$unit = (!is_null($order) && isset($unitsArray[$product->id])) ? $unitsArray[$product->id] : $product->unit ;
$coefficient = Product::$unitsArray[$unit]['coefficient'] ;
$quantity = ((int) $posts['products'][$product->id]) / $coefficient ;
$quantity = ((float) $posts['products'][$product->id]) / $coefficient ;
if ($availableProducts[$product->id]['quantity_max'] && $quantity > $availableProducts[$product->id]['quantity_remaining']) {
$quantity = $availableProducts[$product->id]['quantity_remaining'];
$quantity = $availableProducts[$product->id]['quantity_remaining'] ;
}
$productOrder->quantity = $quantity;

Laden…
Abbrechen
Speichern