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

$creditHistory = new CreditHistory; $creditHistory = new CreditHistory;
$creditHistory->id_user = $idUser; $creditHistory->id_user = $idUser;
$creditHistory->id_order = $this->id; $creditHistory->id_order = $this->id;
$creditHistory->amount = $amount;
$creditHistory->amount = round($amount, 2);
$creditHistory->type = $type; $creditHistory->type = $type;
$creditHistory->id_producer = $idProducer; $creditHistory->id_producer = $idProducer;
$creditHistory->id_user_action = $idUserAction; $creditHistory->id_user_action = $idUserAction;

Loading…
Cancel
Save