Ver código fonte

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

refactoring
Guillaume Bourgeois 4 anos atrás
pai
commit
2a8599ef20
1 arquivos alterados com 3 adições e 0 exclusões
  1. +3
    -0
      common/models/Order.php

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

@@ -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;

Carregando…
Cancelar
Salvar