fixed import export
This commit is contained in:
@@ -4,10 +4,12 @@ namespace App\Imports\Common;
|
||||
|
||||
use App\Imports\Common\Sheets\Items as Base;
|
||||
use App\Imports\Common\Sheets\ItemTaxes;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Maatwebsite\Excel\Concerns\Importable;
|
||||
use Maatwebsite\Excel\Concerns\WithChunkReading;
|
||||
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
||||
|
||||
class Items implements WithMultipleSheets
|
||||
class Items implements ShouldQueue, WithChunkReading, WithMultipleSheets
|
||||
{
|
||||
use Importable;
|
||||
|
||||
@@ -18,4 +20,9 @@ class Items implements WithMultipleSheets
|
||||
'item_taxes' => new ItemTaxes(),
|
||||
];
|
||||
}
|
||||
|
||||
public function chunkSize(): int
|
||||
{
|
||||
return 100;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,10 +8,12 @@ use App\Imports\Purchases\Sheets\BillItemTaxes;
|
||||
use App\Imports\Purchases\Sheets\BillHistories;
|
||||
use App\Imports\Purchases\Sheets\BillTotals;
|
||||
use App\Imports\Purchases\Sheets\BillTransactions;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Maatwebsite\Excel\Concerns\Importable;
|
||||
use Maatwebsite\Excel\Concerns\WithChunkReading;
|
||||
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
||||
|
||||
class Bills implements WithMultipleSheets
|
||||
class Bills implements ShouldQueue, WithChunkReading, WithMultipleSheets
|
||||
{
|
||||
use Importable;
|
||||
|
||||
@@ -26,4 +28,9 @@ class Bills implements WithMultipleSheets
|
||||
'bill_transactions' => new BillTransactions(),
|
||||
];
|
||||
}
|
||||
|
||||
public function chunkSize(): int
|
||||
{
|
||||
return 100;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,10 +8,12 @@ use App\Imports\Sales\Sheets\InvoiceItemTaxes;
|
||||
use App\Imports\Sales\Sheets\InvoiceHistories;
|
||||
use App\Imports\Sales\Sheets\InvoiceTotals;
|
||||
use App\Imports\Sales\Sheets\InvoiceTransactions;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Maatwebsite\Excel\Concerns\Importable;
|
||||
use Maatwebsite\Excel\Concerns\WithChunkReading;
|
||||
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
||||
|
||||
class Invoices implements WithMultipleSheets
|
||||
class Invoices implements ShouldQueue, WithChunkReading, WithMultipleSheets
|
||||
{
|
||||
use Importable;
|
||||
|
||||
@@ -26,4 +28,9 @@ class Invoices implements WithMultipleSheets
|
||||
'invoice_transactions' => new InvoiceTransactions(),
|
||||
];
|
||||
}
|
||||
|
||||
public function chunkSize(): int
|
||||
{
|
||||
return 100;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user