Merge pull request #1692 from burakcakirel/seperate-export-import-document-to-invoice-bill

Separate export import document to invoice bill
This commit is contained in:
Denis Duliçi
2020-12-25 20:49:51 +03:00
committed by GitHub
45 changed files with 981 additions and 539 deletions

View File

@@ -15,15 +15,9 @@ abstract class Export implements FromCollection, ShouldAutoSize, WithHeadings, W
{
public $ids;
/**
* @var string
*/
protected $type;
public function __construct($ids = null, string $type = '')
public function __construct($ids = null)
{
$this->ids = $ids;
$this->type = $type;
}
public function title(): string

View File

@@ -25,16 +25,6 @@ abstract class Import implements ToModel, SkipsOnError, SkipsOnFailure, WithBatc
public $empty_field = 'empty---';
/**
* @var string
*/
protected $type;
public function __construct(string $type = '')
{
$this->type = $type;
}
public function map($row): array
{
$row['company_id'] = session('company_id');