Skip to content

Commit

Permalink
review comments pt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
aloverso committed Nov 22, 2024
1 parent 5108ebc commit e6241d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/lib/efile/nj/nj1040_calculator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def calculate_line_49

def calculate_line_50
difference = calculate_line_45 - calculate_line_49
difference.positive? ? difference : 0
[difference, 0].max
end

def calculate_line_51
Expand All @@ -325,7 +325,7 @@ def calculate_line_51

def calculate_line_54
sum = calculate_line_50 + calculate_line_51
sum.positive? ? sum : 0
[sum, 0].max
end

def calculate_line_56
Expand Down
2 changes: 1 addition & 1 deletion app/lib/pdf_filler/nj1040_pdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def hash_for_pdf
]))
end

# line 50
# line 54
if @xml_document.at("TotalTaxAndPenalty").present?
total_tax_and_penalty = @xml_document.at("TotalTaxAndPenalty").text.to_i
answers.merge!(insert_digits_into_fields(total_tax_and_penalty, [
Expand Down

0 comments on commit e6241d4

Please sign in to comment.