2020-12-21 11:14:47 +03:00

26 lines
501 B
PHP

<?php
namespace App\Exports\Common;
use App\Exports\Common\Sheets\Items as Base;
use App\Exports\Common\Sheets\ItemTaxes;
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
class Items implements WithMultipleSheets
{
public $ids;
public function __construct($ids = null)
{
$this->ids = $ids;
}
public function sheets(): array
{
return [
'items' => new Base($this->ids),
'item_taxes' => new ItemTaxes($this->ids),
];
}
}