offset stuff
This commit is contained in:
@@ -182,19 +182,27 @@ 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,
|
||||||
|
'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, [
|
||||||
|
'character_name' => $item['character_name'],
|
||||||
|
'observer_name' => $tempObserverInfo->structure_name,
|
||||||
|
'type_id' => $item['type_id'],
|
||||||
|
'ore_name' => $item['ore_name'],
|
||||||
|
'quantity' => $item['quantity'],
|
||||||
|
'amount' => $item['amount'],
|
||||||
|
'tax_amount' => $item['amount'] * $config['public_mining_tax'],
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Create the array for the line by line
|
|
||||||
array_push($moons, [
|
|
||||||
'character_name' => $item['character_name'],
|
|
||||||
'observer_name' => $tempObserverInfo->structure_name,
|
|
||||||
'type_id' => $item['type_id'],
|
|
||||||
'ore_name' => $item['ore_name'],
|
|
||||||
'quantity' => $item['quantity'],
|
|
||||||
'amount' => $item['amount'],
|
|
||||||
'tax_amount' => $item['amount'] * $config['public_mining_tax'],
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('miningtax.admin.display.details.invoice')->with('ores', $ores)
|
return view('miningtax.admin.display.details.invoice')->with('ores', $ores)
|
||||||
|
|||||||
Reference in New Issue
Block a user