Explorar el Código

Modification d'un document : bug montant total document #166

dev
Guillaume Bourgeois hace 4 años
padre
commit
2a8599ef20
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. +3
    -0
      common/models/Order.php

+ 3
- 0
common/models/Order.php Ver fichero

@@ -209,6 +209,9 @@ class Order extends ActiveRecordCommon
*/
public function initAmount()
{
$this->amount = 0 ;
$this->weight = 0 ;

if (isset($this->productOrder)) {
foreach ($this->productOrder as $productOrder) {
$this->amount += $productOrder->price * $productOrder->quantity;

Cargando…
Cancelar
Guardar