diff --git a/app/Jobs/Company/CompanyExport.php b/app/Jobs/Company/CompanyExport.php index fecfb3b03c5b..406ac09e9984 100644 --- a/app/Jobs/Company/CompanyExport.php +++ b/app/Jobs/Company/CompanyExport.php @@ -163,14 +163,14 @@ $x = $this->writer->collection('clients'); $x->addItems($this->export_data['clients']); $this->export_data = null; - $this->export_data['company'] = $this->company->toArray(); - $this->export_data['company']['company_key'] = $this->createHash(); + // $this->export_data['company'] = $this->company->toArray(); + // $this->export_data['company']['company_key'] = $this->createHash(); - - -$x = $this->writer->collection('company'); -$x->addItems($this->export_data['company']); -$this->export_data = null; +$this->writer->value('company', $this->company->toJson(), encode: false); + +// $x = $this->writer->collection('company'); +// $x->addItems($this->export_data['company']); +// $this->export_data = null; $this->export_data['company_gateways'] = $this->company->company_gateways()->withTrashed()->cursor()->map(function ($company_gateway) { diff --git a/app/Jobs/Util/Import.php b/app/Jobs/Util/Import.php index e1bcfd757aa3..06edfa791b30 100644 --- a/app/Jobs/Util/Import.php +++ b/app/Jobs/Util/Import.php @@ -1952,6 +1952,10 @@ class Import implements ShouldQueue $modified['vendor_id'] = $this->transformId('vendors', $resource['vendor_id']); } + $modified['tax_amount1'] = 0; + $modified['tax_amount2'] = 0; + $modified['tax_amount3'] = 0; + /** @var \App\Models\Expense $expense **/ $expense = Expense::create($modified); diff --git a/psalm.xml b/psalm.xml deleted file mode 100644 index 629a6cb49156..000000000000 --- a/psalm.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -