modified model for corp tax ratios
This commit is contained in:
@@ -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,
|
||||
|
||||
30
app/Models/Corporation/CorpTaxRatio.php
Normal file
30
app/Models/Corporation/CorpTaxRatio.php
Normal 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',
|
||||
];
|
||||
}
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user