From 5847c9f59a907dca7891d85d5b1e8a54c711c6fc Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Wed, 16 Jan 2019 01:34:30 -0600 Subject: [PATCH] modified model for corp tax ratios --- app/Library/Structures/StructureTaxHelper.php | 1 + app/Models/Corporation/CorpTaxRatio.php | 30 +++++++++++++++++++ ...16_071621_create_corp_tax_ratios_table.php | 1 + 3 files changed, 32 insertions(+) create mode 100644 app/Models/Corporation/CorpTaxRatio.php diff --git a/app/Library/Structures/StructureTaxHelper.php b/app/Library/Structures/StructureTaxHelper.php index e3db9d406..c0494238a 100644 --- a/app/Library/Structures/StructureTaxHelper.php +++ b/app/Library/Structures/StructureTaxHelper.php @@ -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, diff --git a/app/Models/Corporation/CorpTaxRatio.php b/app/Models/Corporation/CorpTaxRatio.php new file mode 100644 index 000000000..6297edfa3 --- /dev/null +++ b/app/Models/Corporation/CorpTaxRatio.php @@ -0,0 +1,30 @@ +increments('id'); $table->string('corporation_id'); + $table->string('corporation_name'); $table->string('structure_type'); $table->string('ratio'); $table->timestamps();