From 211d4632888b9e74a3be09765b7e5fa7454af46a Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Tue, 25 May 2021 00:28:05 +0900 Subject: [PATCH] created simplified mining tax invoice --- app/Http/Controllers/Test/TestController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/Test/TestController.php b/app/Http/Controllers/Test/TestController.php index 64ce514ef..6ddcb48f2 100644 --- a/app/Http/Controllers/Test/TestController.php +++ b/app/Http/Controllers/Test/TestController.php @@ -94,7 +94,7 @@ class TestController extends Controller //Count the ledgers for the main $mainLedgerCount = Ledger::where([ 'character_id' => $main->character_id, - ])->where('last_updated', '>', '2021-05-01')->count(); + ])->where('last_updated', '>', '2021-03-01')->count(); dd($mainLedgerCount); @@ -103,7 +103,7 @@ class TestController extends Controller $mainLedgers = Ledger::where([ 'character_id' => $main->character_id, 'invoiced' => 'No', - ])->where('last_updated', '>', '2021-05-01')->get(); + ])->where('last_updated', '>', '2021-03-01')->get(); //Cycle through the entries, and add them to the ledger to send with the invoice foreach($mainLedgers as $row) { @@ -131,13 +131,13 @@ class TestController extends Controller $altLedgerCount = Ledger::where([ 'character_id' => 'No', 'invoiced' => 'Yes', - ])->where('last_updated', '>', '2021-05-01')->count(); + ])->where('last_updated', '>', '2021-03-01')->count(); if($altLedgerCount > 0) { $altLedgers = Ledger::where([ 'character_id' => 'No', 'invoiced' => 'Yes', - ])->where('last_updated', '>', '2021-05-01')->get(); + ])->where('last_updated', '>', '2021-03-01')->get(); foreach($altLedgers as $row) { $ledgers->push([