modified model for corp tax ratios

This commit is contained in:
2019-01-16 01:34:30 -06:00
parent 79d2f377a1
commit 5847c9f59a
3 changed files with 32 additions and 0 deletions

View File

@@ -96,6 +96,7 @@ class StructureTaxHelper {
private function CalculateTaxRatio($corpId, $overallTax, $type) {
//Get the ratio based on what was decided upon for the ratio of taxes.
//Default rate is 2.5 ratio.
//The alliance will get a ratio of the tax.
//We need to calculate the correct ratio based on structure tax,

View File

@@ -0,0 +1,30 @@
<?php
namespace App\Models\Corporation;
use Illuminate\Database\Eloquent\Model;
class CorpTaxRatio extends Model
{
/**
* Table Name
*/
protected $table = 'corp_tax_ratios';
/**
* Timestamps
*/
public $timestamps = true;
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'corporation_id',
'corporation_name',
'structure_type',
'ratio',
];
}

View File

@@ -17,6 +17,7 @@ class CreateCorpTaxRatiosTable extends Migration
Schema::create('corp_tax_ratios', function (Blueprint $table) {
$table->increments('id');
$table->string('corporation_id');
$table->string('corporation_name');
$table->string('structure_type');
$table->string('ratio');
$table->timestamps();