fixed multiple sheets import

This commit is contained in:
Denis Duliçi 2021-04-18 02:47:02 +03:00
parent baf243505a
commit 2bf1a19338
3 changed files with 9 additions and 0 deletions

View File

@ -4,10 +4,13 @@ namespace App\Imports\Common;
use App\Imports\Common\Sheets\Items as Base; use App\Imports\Common\Sheets\Items as Base;
use App\Imports\Common\Sheets\ItemTaxes; use App\Imports\Common\Sheets\ItemTaxes;
use Maatwebsite\Excel\Concerns\Importable;
use Maatwebsite\Excel\Concerns\WithMultipleSheets; use Maatwebsite\Excel\Concerns\WithMultipleSheets;
class Items implements WithMultipleSheets class Items implements WithMultipleSheets
{ {
use Importable;
public function sheets(): array public function sheets(): array
{ {
return [ return [

View File

@ -8,10 +8,13 @@ use App\Imports\Purchases\Sheets\BillItemTaxes;
use App\Imports\Purchases\Sheets\BillHistories; use App\Imports\Purchases\Sheets\BillHistories;
use App\Imports\Purchases\Sheets\BillTotals; use App\Imports\Purchases\Sheets\BillTotals;
use App\Imports\Purchases\Sheets\BillTransactions; use App\Imports\Purchases\Sheets\BillTransactions;
use Maatwebsite\Excel\Concerns\Importable;
use Maatwebsite\Excel\Concerns\WithMultipleSheets; use Maatwebsite\Excel\Concerns\WithMultipleSheets;
class Bills implements WithMultipleSheets class Bills implements WithMultipleSheets
{ {
use Importable;
public function sheets(): array public function sheets(): array
{ {
return [ return [

View File

@ -8,10 +8,13 @@ use App\Imports\Sales\Sheets\InvoiceItemTaxes;
use App\Imports\Sales\Sheets\InvoiceHistories; use App\Imports\Sales\Sheets\InvoiceHistories;
use App\Imports\Sales\Sheets\InvoiceTotals; use App\Imports\Sales\Sheets\InvoiceTotals;
use App\Imports\Sales\Sheets\InvoiceTransactions; use App\Imports\Sales\Sheets\InvoiceTransactions;
use Maatwebsite\Excel\Concerns\Importable;
use Maatwebsite\Excel\Concerns\WithMultipleSheets; use Maatwebsite\Excel\Concerns\WithMultipleSheets;
class Invoices implements WithMultipleSheets class Invoices implements WithMultipleSheets
{ {
use Importable;
public function sheets(): array public function sheets(): array
{ {
return [ return [