Skip to content

Commit

Permalink
Fix calcul fret
Browse files Browse the repository at this point in the history
Bug si compte vide (techno hyp = 0)
  • Loading branch information
machine62 committed Apr 20, 2024
1 parent b1c5b39 commit 3e9b197
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cdr_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,14 @@
// On récupère les technos pourle Fret
$user_empire = user_get_empire($user_data['user_id']);
$user_technology = $user_empire["technology"];
$fret_recycleur = (20000 * (1 + 0.05 * $user_technology['Hyp']));

// todo utiliser formule de pitch
$fret_recycleur = 20000;
if ($user_technology['Hyp'] !=0)
{
$fret_recycleur = (20000 * (1 + 0.05 * $user_technology['Hyp']));
}
?>

<br>

<table id="trier" class="og-table og-medium-table">
Expand Down

0 comments on commit 3e9b197

Please sign in to comment.