Browse Source

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

refactoring
Guillaume Bourgeois 5 years ago
parent
commit
2a8599ef20
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      common/models/Order.php

+ 3
- 0
common/models/Order.php View 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…
Cancel
Save