Unnecessary Tax models removed from core, were originally moved from core to Tax module
This commit is contained in:
parent
ca7a5e4a6f
commit
af88e8951a
|
|
@ -19,4 +19,4 @@ return [
|
||||||
\Webkul\Tax\Providers\ModuleServiceProvider::class,
|
\Webkul\Tax\Providers\ModuleServiceProvider::class,
|
||||||
\Webkul\User\Providers\ModuleServiceProvider::class
|
\Webkul\User\Providers\ModuleServiceProvider::class
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Webkul\Core\Models;
|
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
|
||||||
use Webkul\Core\Models\TaxRate;
|
|
||||||
use Webkul\Core\Models\TaxMap;
|
|
||||||
use Webkul\Core\Contracts\TaxCategory as TaxCategoryContract;
|
|
||||||
|
|
||||||
class TaxCategory extends Model implements TaxCategoryContract
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* The attributes that are mass assignable.
|
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
|
|
||||||
protected $table = 'tax_categories';
|
|
||||||
|
|
||||||
protected $fillable = [
|
|
||||||
'channel_id' ,'code', 'name' ,'description'
|
|
||||||
];
|
|
||||||
|
|
||||||
//for joining the two way pivot table
|
|
||||||
public function tax_rates() {
|
|
||||||
return $this->belongsToMany(TaxRateProxy::modelClass(), 'tax_categories_tax_rates', 'tax_category_id')->withPivot('id');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Webkul\Core\Models;
|
|
||||||
|
|
||||||
use Konekt\Concord\Proxies\ModelProxy;
|
|
||||||
|
|
||||||
class TaxCategoryProxy extends ModelProxy
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Webkul\Core\Models;
|
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
|
||||||
use Webkul\Core\Models\TaxCategory;
|
|
||||||
use Webkul\Core\Models\TaxRate;
|
|
||||||
use Webkul\Core\Contracts\TaxMap as TaxMapContract;
|
|
||||||
|
|
||||||
class TaxMap extends Model implements TaxMapContract
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* The attributes that are mass assignable.
|
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
|
|
||||||
protected $table = 'tax_categories_tax_rates';
|
|
||||||
|
|
||||||
protected $fillable = [
|
|
||||||
'tax_category_id', 'tax_rate_id'
|
|
||||||
];
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Webkul\Core\Models;
|
|
||||||
|
|
||||||
use Konekt\Concord\Proxies\ModelProxy;
|
|
||||||
|
|
||||||
class TaxMapProxy extends ModelProxy
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Webkul\Core\Models;
|
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
|
||||||
use Webkul\Core\Models\TaxCategory;
|
|
||||||
use Webkul\Core\Contracts\TaxRate as TaxRateContract;
|
|
||||||
|
|
||||||
class TaxRate extends Model implements TaxRateContract
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* The attributes that are mass assignable.
|
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
|
|
||||||
protected $table = 'tax_rates';
|
|
||||||
|
|
||||||
protected $fillable = [
|
|
||||||
'identifier', 'is_zip_from', 'zip_code', 'zip_from', 'zip_to', 'state', 'country', 'tax_rate'
|
|
||||||
];
|
|
||||||
|
|
||||||
public function tax_categories() {
|
|
||||||
return $this->belongsToMany(TaxCategoryProxy::modelClass(), 'tax_categories_tax_rates', 'tax_rate_id', 'id');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Webkul\Core\Models;
|
|
||||||
|
|
||||||
use Konekt\Concord\Proxies\ModelProxy;
|
|
||||||
|
|
||||||
class TaxRateProxy extends ModelProxy
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue