moon goo pricing

This commit is contained in:
2019-02-14 11:45:36 -06:00
parent f67d0de239
commit 52709e3d01
2 changed files with 6 additions and 6 deletions

View File

@@ -57,9 +57,9 @@ class MoonsController extends Controller
$html .= '<td>' . $moon->FourthOre . '</td>'; $html .= '<td>' . $moon->FourthOre . '</td>';
$html .= '<td>' . $moon->FourthQuantity . '</td>'; $html .= '<td>' . $moon->FourthQuantity . '</td>';
if($type == 'W4RP') { if($type == 'W4RP') {
$html .= '<td>' . number_format($price['alliance'], 0, ".", ",") . '</td>'; $html .= '<td>' . $price['alliance'] . '</td>';
} else if ($type == 'Legacy') { } else if ($type == 'Legacy') {
$html .= '<td>' . number_format($price['outofalliance'], 0, ".", ",") . '</td>'; $html .= '<td>' . $price['outofalliance'] . '</td>';
} else { } else {
$html .= '<td>N/A</td>'; $html .= '<td>N/A</td>';
} }

View File

@@ -213,8 +213,8 @@ class MoonCalc {
$rentalPrice['alliance'] = $totalPriceMined * ($config[0]->RentalTax / 100.00); $rentalPrice['alliance'] = $totalPriceMined * ($config[0]->RentalTax / 100.00);
$rentalPrice['outofalliance'] = $totalPriceMined * ($config[0]->AllyRentalTax / 100.00); $rentalPrice['outofalliance'] = $totalPriceMined * ($config[0]->AllyRentalTax / 100.00);
//Format the rental price to the appropriate number //Format the rental price to the appropriate number
$rentalPrice['alliance'] = number_format($rentalPrice['alliance'], "2", ".", ","); $rentalPrice['alliance'] = number_format($rentalPrice['alliance'], 0, ".", ",");
$rentalPrice['outofalliance'] = number_format($rentalPrice['outofalliance'], "2", ".", ","); $rentalPrice['outofalliance'] = number_format($rentalPrice['outofalliance'], 0, ".", ",");
//Return the rental price to the caller //Return the rental price to the caller
return $rentalPrice; return $rentalPrice;
@@ -272,8 +272,8 @@ class MoonCalc {
$rentalPrice['alliance'] = $totalPriceMined * ($config[0]->RentalTax / 100.00); $rentalPrice['alliance'] = $totalPriceMined * ($config[0]->RentalTax / 100.00);
$rentalPrice['outofalliance'] = $totalPriceMined * ($config[0]->AllyRentalTax / 100.00); $rentalPrice['outofalliance'] = $totalPriceMined * ($config[0]->AllyRentalTax / 100.00);
//Format the rental price to the appropriate number //Format the rental price to the appropriate number
$rentalPrice['alliance'] = number_format($rentalPrice['alliance'], "2", ".", ","); $rentalPrice['alliance'] = number_format($rentalPrice['alliance'], 0, ".", ",");
$rentalPrice['outofalliance'] = number_format($rentalPrice['outofalliance'], "2", ".", ","); $rentalPrice['outofalliance'] = number_format($rentalPrice['outofalliance'], 0, ".", ",");
//Return the rental price to the caller //Return the rental price to the caller
return $rentalPrice; return $rentalPrice;