Import expense and ledger entries #443 (#588)

* Fix rank importing with PIREP pay #443

* Import ledger information #443

* Uncomment out testing importers

* Import expense log and settings #443

* Formatting
This commit is contained in:
Nabeel S
2020-02-25 14:45:23 -05:00
committed by GitHub
parent 07a75de0bf
commit 14aacdfb75
11 changed files with 251 additions and 6 deletions

View File

@@ -72,6 +72,12 @@ abstract class BaseImporter implements ShouldQueue
{
$manifest = [];
// Ensure that the table exists; if it doesn't skip it from the manifest
if (!$this->db->tableExists($this->table)) {
Log::info('Table '.$this->table.' doesn\'t exist');
return [];
}
$start = 0;
$total_rows = $this->db->getTotalRows($this->table);
Log::info('Found '.$total_rows.' rows for '.$this->table);