-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add part in incomes for bi-weekly.
- Loading branch information
Showing
4 changed files
with
46 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
<div class="px-5"><%= humanized_money_with_symbol(taxed_income.federal_tax) %></div> | ||
<div class="px-5"><%= humanized_money_with_symbol(taxed_income.state_tax) %></div> | ||
<div class="px-5"><%= humanized_money_with_symbol(taxed_income.total_net_income) %></div> | ||
<div class="px-5"><%= humanized_money_with_symbol(taxed_income.bi_weekly_net_income) %></div> | ||
<!--<div class="px-5"><%#= humanized_money_with_symbol(taxed_income.federal_tax) %></div>--> | ||
<!--<div class="px-5"><%#= humanized_money_with_symbol(taxed_income.fica_tax) %></div>--> | ||
<!--<div class="px-5"><%#= humanized_money_with_symbol(taxed_income.state_tax) %></div>--> | ||
<!--<div class="px-5"><%#= humanized_money_with_symbol(taxed_income.total_net_income) %></div>--> | ||
|
||
<% paid_taxes = [ taxed_income.federal_tax, taxed_income.fica_tax, taxed_income.state_tax, taxed_income.total_net_income ] %> | ||
|
||
<% paid_taxes.each do |tax| %> | ||
<% if annual %> | ||
<div class="px-5"><%= humanized_money_with_symbol(tax) %></div> | ||
<% else %> | ||
<div class="px-5"><%= humanized_money_with_symbol(tax / 26) %></div> | ||
<% end %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,37 @@ | ||
<strong>Gross Income</strong> | ||
<h3>Gross Income Annual</h3> | ||
<div class="grid grid-cols-5"> | ||
<% fixed_headings = ["Income Type", "Federal Tax", "State Tax", "Annual", "Bi-weekly"] %> | ||
<% fixed_headings = ["Income Type", "Federal Tax", "Fica Tax", "State Tax", "Annual"] %> | ||
<% fixed_headings.each do |fixed_heading| %> | ||
<div class="px-5"><strong><%= fixed_heading %></strong></div> | ||
<% end %> | ||
</div> | ||
|
||
<div class="grid grid-cols-5"> | ||
<div class="px-5">Salary</div> | ||
<%= render partial: "shared/taxed_income", locals: { taxed_income: salary_taxed} %> | ||
<%= render partial: "shared/taxed_income", locals: { taxed_income: salary_taxed, annual: true } %> | ||
</div> | ||
|
||
<div class="grid grid-cols-5"> | ||
<div class="px-5">Hourly</div> | ||
<%= render partial: "shared/taxed_income", locals: { taxed_income: hourly_taxed} %> | ||
<%= render partial: "shared/taxed_income", locals: { taxed_income: hourly_taxed, annual: true } %> | ||
</div> | ||
|
||
<br> | ||
|
||
<h3>Gross Income Bi-Weekly</h3> | ||
<div class="grid grid-cols-5"> | ||
<% fixed_headings = ["Income Type", "Federal Tax", "Fica Tax", "State Tax", "Bi-weekly"] %> | ||
<% fixed_headings.each do |fixed_heading| %> | ||
<div class="px-5"><strong><%= fixed_heading %></strong></div> | ||
<% end %> | ||
</div> | ||
|
||
<div class="grid grid-cols-5"> | ||
<div class="px-5">Salary</div> | ||
<%= render partial: "shared/taxed_income", locals: { taxed_income: salary_taxed, annual: false } %> | ||
</div> | ||
|
||
<div class="grid grid-cols-5"> | ||
<div class="px-5">Hourly</div> | ||
<%= render partial: "shared/taxed_income", locals: { taxed_income: hourly_taxed, annual: false } %> | ||
</div> |