tax
This commit is contained in:
parent
db2ebdb8da
commit
71705ae9d6
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* TaxClass.php
|
||||||
|
*
|
||||||
|
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||||
|
* @link http://www.guangdawangluo.com
|
||||||
|
* @author Edward Yang <yangjin@opencart.cn>
|
||||||
|
* @created 2022-07-21 18:39:28
|
||||||
|
* @modified 2022-07-21 18:39:28
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Beike\Models;
|
||||||
|
|
||||||
|
class TaxClass extends Base
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* TaxRate.php
|
||||||
|
*
|
||||||
|
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||||
|
* @link http://www.guangdawangluo.com
|
||||||
|
* @author Edward Yang <yangjin@opencart.cn>
|
||||||
|
* @created 2022-07-21 18:39:38
|
||||||
|
* @modified 2022-07-21 18:39:38
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Beike\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||||
|
|
||||||
|
class TaxRate extends Base
|
||||||
|
{
|
||||||
|
public function region(): BelongsTo
|
||||||
|
{
|
||||||
|
return $this->belongsTo(Region::class);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,27 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* TaxRule.php
|
||||||
|
*
|
||||||
|
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||||
|
* @link http://www.guangdawangluo.com
|
||||||
|
* @author Edward Yang <yangjin@opencart.cn>
|
||||||
|
* @created 2022-07-21 18:39:48
|
||||||
|
* @modified 2022-07-21 18:39:48
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Beike\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||||
|
|
||||||
|
class TaxRule extends Base
|
||||||
|
{
|
||||||
|
public function taxClass(): BelongsTo
|
||||||
|
{
|
||||||
|
return $this->belongsTo(TaxClass::class);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function taxRate(): BelongsTo
|
||||||
|
{
|
||||||
|
return $this->belongsTo(TaxRate::class);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue