fixed item tax import
This commit is contained in:
parent
2766674358
commit
ae4c0a2eea
@ -1,13 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Imports\Sales\Sheets;
|
namespace App\Imports\Common\Sheets;
|
||||||
|
|
||||||
use App\Abstracts\Import;
|
use App\Abstracts\Import;
|
||||||
use App\Http\Requests\Common\ItemTax as Request;
|
use App\Http\Requests\Common\ItemTax as Request;
|
||||||
use App\Models\Common\Item;
|
use App\Models\Common\Item;
|
||||||
use App\Models\Sale\ItemTax as Model;
|
use App\Models\Common\ItemTax as Model;
|
||||||
|
|
||||||
class InvoiceItemTaxes extends Import
|
class ItemTaxes extends Import
|
||||||
{
|
{
|
||||||
public function model(array $row)
|
public function model(array $row)
|
||||||
{
|
{
|
||||||
@ -20,10 +20,6 @@ class InvoiceItemTaxes extends Import
|
|||||||
|
|
||||||
$row['tax_id'] = $this->getTaxId($row);
|
$row['tax_id'] = $this->getTaxId($row);
|
||||||
|
|
||||||
if (empty($row['name']) && !empty($row['item_name'])) {
|
|
||||||
$row['name'] = $row['item_name'];
|
|
||||||
}
|
|
||||||
|
|
||||||
return $row;
|
return $row;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user