process mining taxes ledgers job
This commit is contained in:
@@ -77,7 +77,11 @@ class ProcessMiningTaxesLedgersJob implements ShouldQueue
|
|||||||
$amount = $price * $this->ledger->quantity;
|
$amount = $price * $this->ledger->quantity;
|
||||||
|
|
||||||
$found = Ledger::where([
|
$found = Ledger::where([
|
||||||
|
'character_id' => $this->ledger->character_id,
|
||||||
|
'observer_id' => $this->observerId,
|
||||||
|
'type_id' => $this->ledger->type_id,
|
||||||
|
'quantity' => $this->ledger->quantity,
|
||||||
|
'last_updated' => $this->ledger->last_updated,
|
||||||
])->count();
|
])->count();
|
||||||
|
|
||||||
if($found > 0) {
|
if($found > 0) {
|
||||||
@@ -86,7 +90,8 @@ class ProcessMiningTaxesLedgersJob implements ShouldQueue
|
|||||||
'character_name' => $charName,
|
'character_name' => $charName,
|
||||||
'observer_id' => $this->observerId,
|
'observer_id' => $this->observerId,
|
||||||
'type_id' => $this->ledger->type_id,
|
'type_id' => $this->ledger->type_id,
|
||||||
'ore_name' => $typeName,
|
'quantity' => $this->ledger->quantity,
|
||||||
|
'last_updated' => $this->ledger->last_updated,
|
||||||
])->update([
|
])->update([
|
||||||
'character_id' => $this->ledger->character_id,
|
'character_id' => $this->ledger->character_id,
|
||||||
'character_name' => $charName,
|
'character_name' => $charName,
|
||||||
|
|||||||
Reference in New Issue
Block a user