invoice stuff

This commit is contained in:
2021-03-18 00:08:14 +09:00
parent 3fcceb0649
commit 36ae8f27bb

View File

@@ -87,6 +87,8 @@ class MiningTaxesInvoices extends Command
$totalPrice = $totalPrice + $row['amount'];
}
dd($totalPrice);
//Reduce the total price by the take percentage
$invoiceAmount = $totalPrice * $config['mining_tax'];
$invoiceAmount = round($invoiceAmount, 2);