Browse Source

Crédit : problème utilisateurs avec crédit pas arrondi #869

refactoring
Guillaume Bourgeois 1 year ago
parent
commit
6b85523a44
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common/models/Order.php

+ 1
- 1
common/models/Order.php View File

@@ -555,7 +555,7 @@ class Order extends ActiveRecordCommon
$creditHistory = new CreditHistory;
$creditHistory->id_user = $idUser;
$creditHistory->id_order = $this->id;
$creditHistory->amount = $amount;
$creditHistory->amount = round($amount, 2);
$creditHistory->type = $type;
$creditHistory->id_producer = $idProducer;
$creditHistory->id_user_action = $idUserAction;

Loading…
Cancel
Save