From 716a71d6806f0422546325a2c3e9562e39be1ce5 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Fri, 26 Feb 2021 00:55:21 +0900 Subject: [PATCH] mining taxes invoices --- app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php b/app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php index 90ad10272..62002d60a 100644 --- a/app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php +++ b/app/Console/Commands/MiningTaxes/MiningTaxesInvoices.php @@ -91,20 +91,20 @@ class MiningTaxesInvoices extends Command } //Reduce the total price by the take percentage - $totalPrice = $totalPrice * $config['mining_tax']; + $invoiceAmount = $totalPrice * 0.10; //Get the character name from the character id $charName = $lookup->CharacterIdToName($charId); //Generate a unique invoice id $invoiceId = uniqid(); - + dd($invoiceId); //Save the invoice model $invoice = new Invoice; $invoice->character_id = $charId; $invoice->character_name = $charName; $invoice->invoice_id = $invoiceId; - $invoice->invoice_amount = $totalPrice; + $invoice->invoice_amount = $invoiceAmount; $invoice->date_issued = Carbon::now(); $invoice->date_due = Carbon::now()->addDays(7); $invoice->status = 'Pending';