Merge pull request #693 from akaunting/remove-demo-tax

Removed demo tax rates
This commit is contained in:
Denis Duliçi 2018-12-21 15:14:39 +03:00 committed by GitHub
commit 0441010999
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 58 deletions

View File

@ -18,6 +18,5 @@ class CompanySeeder extends Seeder
$this->call(Database\Seeds\InvoiceStatuses::class);
$this->call(Database\Seeds\Modules::class);
$this->call(Database\Seeds\Settings::class);
$this->call(Database\Seeds\Taxes::class);
}
}

View File

@ -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);
}
}
}

View File

@ -9,8 +9,5 @@ return [
'currencies_eur' => 'Euro',
'currencies_gbp' => 'British Pound',
'currencies_try' => 'Turkish Lira',
'taxes_exempt' => 'Tax Exempt',
'taxes_normal' => 'Normal Tax',
'taxes_sales' => 'Sales Tax',
];