removed demo tax rates
This commit is contained in:
parent
1e4e6b4a39
commit
579ee31c5f
@ -18,6 +18,5 @@ class CompanySeeder extends Seeder
|
|||||||
$this->call(Database\Seeds\InvoiceStatuses::class);
|
$this->call(Database\Seeds\InvoiceStatuses::class);
|
||||||
$this->call(Database\Seeds\Modules::class);
|
$this->call(Database\Seeds\Modules::class);
|
||||||
$this->call(Database\Seeds\Settings::class);
|
$this->call(Database\Seeds\Settings::class);
|
||||||
$this->call(Database\Seeds\Taxes::class);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,54 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace Database\Seeds;
|
|
||||||
|
|
||||||
use App\Models\Model;
|
|
||||||
use App\Models\Setting\Tax;
|
|
||||||
use Illuminate\Database\Seeder;
|
|
||||||
|
|
||||||
class Taxes extends Seeder
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Run the database seeds.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function run()
|
|
||||||
{
|
|
||||||
Model::unguard();
|
|
||||||
|
|
||||||
$this->create();
|
|
||||||
|
|
||||||
Model::reguard();
|
|
||||||
}
|
|
||||||
|
|
||||||
private function create()
|
|
||||||
{
|
|
||||||
$company_id = $this->command->argument('company');
|
|
||||||
|
|
||||||
$rows = [
|
|
||||||
[
|
|
||||||
'company_id' => $company_id,
|
|
||||||
'name' => trans('demo.taxes_exempt'),
|
|
||||||
'rate' => '0',
|
|
||||||
'enabled' => '1'
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'company_id' => $company_id,
|
|
||||||
'name' => trans('demo.taxes_normal'),
|
|
||||||
'rate' => '5',
|
|
||||||
'enabled' => '1'
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'company_id' => $company_id,
|
|
||||||
'name' => trans('demo.taxes_sales'),
|
|
||||||
'rate' => '15',
|
|
||||||
'enabled' => '1'
|
|
||||||
],
|
|
||||||
];
|
|
||||||
|
|
||||||
foreach ($rows as $row) {
|
|
||||||
Tax::create($row);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -9,8 +9,5 @@ return [
|
|||||||
'currencies_eur' => 'Euro',
|
'currencies_eur' => 'Euro',
|
||||||
'currencies_gbp' => 'British Pound',
|
'currencies_gbp' => 'British Pound',
|
||||||
'currencies_try' => 'Turkish Lira',
|
'currencies_try' => 'Turkish Lira',
|
||||||
'taxes_exempt' => 'Tax Exempt',
|
|
||||||
'taxes_normal' => 'Normal Tax',
|
|
||||||
'taxes_sales' => 'Sales Tax',
|
|
||||||
|
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user