mining taxes invoices

This commit is contained in:
2021-02-26 00:49:00 +09:00
parent 17bd69bf7c
commit 225e6f74ec
2 changed files with 3 additions and 5 deletions

View File

@@ -84,13 +84,11 @@ class MiningTaxesInvoices extends Command
//Add up the total price from the ledger rows for the report later //Add up the total price from the ledger rows for the report later
$totalPrice = $totalPrice + $row->amount; $totalPrice = $totalPrice + $row->amount;
dd($row->amount);
} }
dd($totalPrice);
//Reduce the total price by the take percentage //Reduce the total price by the take percentage
$totalPrice = $totalPrice * ($config['mining_tax'] / 100.0); $totalPrice = $totalPrice * $config['mining_tax'];
dd($totalPrice);
//Get the character name from the character id //Get the character name from the character id
$charName = $lookup->CharacterIdToName($charId); $charName = $lookup->CharacterIdToName($charId);

View File

@@ -7,6 +7,6 @@
'primary' => env('ESI_PRIMARY_CHAR', 93738489), 'primary' => env('ESI_PRIMARY_CHAR', 93738489),
'alliance' => env('ESI_ALLIANCE', 99004116), 'alliance' => env('ESI_ALLIANCE', 99004116),
'corporation' => env('ESI_CORPORATION', 98287666), 'corporation' => env('ESI_CORPORATION', 98287666),
'mining_tax' => 10.0, 'mining_tax' => 0.10,
]; ];
?> ?>