Sfoglia il codice sorgente

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

dev
parent
commit
2a8599ef20
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. +3
    -0
      common/models/Order.php

+ 3
- 0
common/models/Order.php Vedi File

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

Loading…
Annulla
Salva