sov bill journals

This commit is contained in:
2020-04-04 03:16:13 -05:00
parent f2b11b038e
commit 649e9cff13

View File

@@ -130,13 +130,11 @@ class SovBillsCommand extends Command
$wallet = json_decode($journals->raw, true);
dd($wallet);
foreach($wallet as $entry) {
if($entry['amount'] > 0) {
if($entry['ref_type'] == 'infrastructure_hub_maintenance' && $entry['first_party_id'] == 98287666) {
$sovBill->InsertSovBillExpense($entry, $corpId, $division);
}
}
}
}
//Mark the job as finished
$task->SetStopStatus();