26 lines
501 B
PHP
Raw Normal View History

2019-11-16 10:21:14 +03:00
<?php
namespace App\Exports\Common;
use App\Exports\Common\Sheets\Items as Base;
use App\Exports\Common\Sheets\ItemTaxes;
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
2019-11-16 10:21:14 +03:00
class Items implements WithMultipleSheets
2019-11-16 10:21:14 +03:00
{
public $ids;
2019-11-16 10:21:14 +03:00
public function __construct($ids = null)
2020-01-20 23:18:47 +03:00
{
$this->ids = $ids;
2020-01-20 23:18:47 +03:00
}
public function sheets(): array
2019-11-16 10:21:14 +03:00
{
return [
'items' => new Base($this->ids),
'item_taxes' => new ItemTaxes($this->ids),
2019-11-16 10:21:14 +03:00
];
}
2020-01-20 00:21:37 +03:00
}