fixed tests
This commit is contained in:
@@ -4,10 +4,13 @@ namespace App\Exports\Common;
|
||||
|
||||
use App\Exports\Common\Sheets\Items as Base;
|
||||
use App\Exports\Common\Sheets\ItemTaxes;
|
||||
use Maatwebsite\Excel\Concerns\Exportable;
|
||||
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
||||
|
||||
class Items implements WithMultipleSheets
|
||||
{
|
||||
use Exportable;
|
||||
|
||||
public $ids;
|
||||
|
||||
public function __construct($ids = null)
|
||||
|
||||
@@ -8,10 +8,13 @@ use App\Exports\Purchases\Sheets\BillItemTaxes;
|
||||
use App\Exports\Purchases\Sheets\BillHistories;
|
||||
use App\Exports\Purchases\Sheets\BillTotals;
|
||||
use App\Exports\Purchases\Sheets\BillTransactions;
|
||||
use Maatwebsite\Excel\Concerns\Exportable;
|
||||
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
||||
|
||||
class Bills implements WithMultipleSheets
|
||||
{
|
||||
use Exportable;
|
||||
|
||||
public $ids;
|
||||
|
||||
public function __construct($ids = null)
|
||||
|
||||
@@ -8,10 +8,13 @@ use App\Exports\Sales\Sheets\InvoiceItemTaxes;
|
||||
use App\Exports\Sales\Sheets\InvoiceHistories;
|
||||
use App\Exports\Sales\Sheets\InvoiceTotals;
|
||||
use App\Exports\Sales\Sheets\InvoiceTransactions;
|
||||
use Maatwebsite\Excel\Concerns\Exportable;
|
||||
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
||||
|
||||
class Invoices implements WithMultipleSheets
|
||||
{
|
||||
use Exportable;
|
||||
|
||||
public $ids;
|
||||
|
||||
public function __construct($ids = null)
|
||||
|
||||
@@ -441,9 +441,9 @@ class Company extends Eloquent
|
||||
return $this->getMedia('company_logo')->last();
|
||||
}
|
||||
|
||||
public function makeCurrent()
|
||||
public function makeCurrent($force = false)
|
||||
{
|
||||
if ($this->isCurrent()) {
|
||||
if (!$force && $this->isCurrent()) {
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user