test invoice

This commit is contained in:
2021-05-31 19:51:43 +09:00
parent 0df5bc06fe
commit d474c71c88
2 changed files with 7 additions and 5 deletions

View File

@@ -42,6 +42,7 @@ class TestController extends Controller
$mains = new Collection; $mains = new Collection;
$perms = null; $perms = null;
$config = config('esi'); $config = config('esi');
$bodies = new Collection;
/** /**
* This section will determine if users are mains or alts of a main. * This section will determine if users are mains or alts of a main.
@@ -142,12 +143,13 @@ class TestController extends Controller
* Send the collected information over to the function to send the actual mail * Send the collected information over to the function to send the actual mail
*/ */
if($ledgers->count() > 0) { if($ledgers->count() > 0) {
$this->CreateInvoice($main, $ledgers, $mailDelay); $body = $this->CreateInvoice($main, $ledgers, $mailDelay);
$bodies->push($body);
} }
} }
return view('test.miningtax.invoice')->with('perms', $perms); return view('test.miningtax.invoice')->with('bodies', $bodies);
} }
/** /**
@@ -247,12 +249,12 @@ class TestController extends Controller
$body .= "<br>Sincerely,<br>Warped Intentions Leadership<br>"; $body .= "<br>Sincerely,<br>Warped Intentions Leadership<br>";
} }
var_dump($body);
/** /**
* Increment the mail delay for the next cycle * Increment the mail delay for the next cycle
*/ */
$mailDelay += 20; $mailDelay += 20;
return $body;
} }
public function DebugMiningObservers() { public function DebugMiningObservers() {

View File

@@ -1,4 +1,4 @@
@extends('layouts.user.dashb4'); @extends('layouts.user.dashb4');
@section('content') @section('content')
{{ var_dump($perms) }} {{ var_dump($bodies) }}
@endsection @endsection