offset stuff

This commit is contained in:
2021-08-02 02:23:47 -05:00
parent 75390f10cd
commit 8bc1289206

View File

@@ -182,10 +182,16 @@ class MiningTaxesAdminController extends Controller
$tempObserverInfo = $structure->GetStructureInfo($item['observer_id']); $tempObserverInfo = $structure->GetStructureInfo($item['observer_id']);
if(isset($tempObserverInfo->name)) { if(isset($tempObserverInfo->name)) {
dd($tempObserverInfo); array_push($moons, [
} 'character_nanme' => $item['character_name'],
'observer_name' => $tempObserverInfo->name,
//Create the array for the line by line 'type_id' =. $item['type_id'],
'ore_name' => $item['ore_name'],
'quantity' => $item['quantity'],
'amount' => $item['amount'],
'tax_amount' => $item['amount'] * $config['public_mining_tax'],
]);
} else {
array_push($moons, [ array_push($moons, [
'character_name' => $item['character_name'], 'character_name' => $item['character_name'],
'observer_name' => $tempObserverInfo->structure_name, 'observer_name' => $tempObserverInfo->structure_name,
@@ -197,6 +203,8 @@ class MiningTaxesAdminController extends Controller
]); ]);
} }
}
return view('miningtax.admin.display.details.invoice')->with('ores', $ores) return view('miningtax.admin.display.details.invoice')->with('ores', $ores)
->with('moons', $moons) ->with('moons', $moons)
->with('invoice', $invoice) ->with('invoice', $invoice)