testing invoiceAmount

This commit is contained in:
2021-05-31 18:11:16 +09:00
parent 9e963d581e
commit e8bbcfcfad
2 changed files with 109 additions and 4 deletions
@@ -187,6 +187,9 @@ class SendMiningTaxesInvoices implements ShouldQueue
//Create an invoice id
$invoiceId = "M" . uniqid();
//Collect the total price of all of the ledgers
$totalPrice = round((float)$ledgers->sum('amount'), 2);
//Get the sum of all the ledgers
$invoiceAmount = round(((float)$ledgers->sum('amount') * (float)$config['mining_tax']), 2);