Skip to content

Commit 0dd1baf

Browse files
fix line length
1 parent c8bd7e0 commit 0dd1baf

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

lib/mindee/product/fr/payslip/payslip_v2_pay_detail.rb

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,17 @@ def printable_values
6363
printable[:gross_salary] = @gross_salary.nil? ? '' : Field.float_to_string(@gross_salary)
6464
printable[:gross_salary_ytd] = @gross_salary_ytd.nil? ? '' : Field.float_to_string(@gross_salary_ytd)
6565
printable[:income_tax_rate] = @income_tax_rate.nil? ? '' : Field.float_to_string(@income_tax_rate)
66-
printable[:income_tax_withheld] = @income_tax_withheld.nil? ? '' : Field.float_to_string(@income_tax_withheld)
66+
printable[:income_tax_withheld] =
67+
@income_tax_withheld.nil? ? '' : Field.float_to_string(@income_tax_withheld)
6768
printable[:net_paid] = @net_paid.nil? ? '' : Field.float_to_string(@net_paid)
68-
printable[:net_paid_before_tax] = @net_paid_before_tax.nil? ? '' : Field.float_to_string(@net_paid_before_tax)
69+
printable[:net_paid_before_tax] =
70+
@net_paid_before_tax.nil? ? '' : Field.float_to_string(@net_paid_before_tax)
6971
printable[:net_taxable] = @net_taxable.nil? ? '' : Field.float_to_string(@net_taxable)
7072
printable[:net_taxable_ytd] = @net_taxable_ytd.nil? ? '' : Field.float_to_string(@net_taxable_ytd)
71-
printable[:total_cost_employer] = @total_cost_employer.nil? ? '' : Field.float_to_string(@total_cost_employer)
72-
printable[:total_taxes_and_deductions] = @total_taxes_and_deductions.nil? ? '' : Field.float_to_string(@total_taxes_and_deductions)
73+
printable[:total_cost_employer] =
74+
@total_cost_employer.nil? ? '' : Field.float_to_string(@total_cost_employer)
75+
printable[:total_taxes_and_deductions] =
76+
@total_taxes_and_deductions.nil? ? '' : Field.float_to_string(@total_taxes_and_deductions)
7377
printable
7478
end
7579

@@ -79,13 +83,17 @@ def table_printable_values
7983
printable[:gross_salary] = @gross_salary.nil? ? '' : Field.float_to_string(@gross_salary)
8084
printable[:gross_salary_ytd] = @gross_salary_ytd.nil? ? '' : Field.float_to_string(@gross_salary_ytd)
8185
printable[:income_tax_rate] = @income_tax_rate.nil? ? '' : Field.float_to_string(@income_tax_rate)
82-
printable[:income_tax_withheld] = @income_tax_withheld.nil? ? '' : Field.float_to_string(@income_tax_withheld)
86+
printable[:income_tax_withheld] =
87+
@income_tax_withheld.nil? ? '' : Field.float_to_string(@income_tax_withheld)
8388
printable[:net_paid] = @net_paid.nil? ? '' : Field.float_to_string(@net_paid)
84-
printable[:net_paid_before_tax] = @net_paid_before_tax.nil? ? '' : Field.float_to_string(@net_paid_before_tax)
89+
printable[:net_paid_before_tax] =
90+
@net_paid_before_tax.nil? ? '' : Field.float_to_string(@net_paid_before_tax)
8591
printable[:net_taxable] = @net_taxable.nil? ? '' : Field.float_to_string(@net_taxable)
8692
printable[:net_taxable_ytd] = @net_taxable_ytd.nil? ? '' : Field.float_to_string(@net_taxable_ytd)
87-
printable[:total_cost_employer] = @total_cost_employer.nil? ? '' : Field.float_to_string(@total_cost_employer)
88-
printable[:total_taxes_and_deductions] = @total_taxes_and_deductions.nil? ? '' : Field.float_to_string(@total_taxes_and_deductions)
93+
printable[:total_cost_employer] =
94+
@total_cost_employer.nil? ? '' : Field.float_to_string(@total_cost_employer)
95+
printable[:total_taxes_and_deductions] =
96+
@total_taxes_and_deductions.nil? ? '' : Field.float_to_string(@total_taxes_and_deductions)
8997
printable
9098
end
9199

lib/mindee/product/fr/payslip/payslip_v2_pto.rb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,21 @@ def initialize(prediction, page_id)
3232
# @return [Hash]
3333
def printable_values
3434
printable = {}
35-
printable[:accrued_this_period] = @accrued_this_period.nil? ? '' : Field.float_to_string(@accrued_this_period)
36-
printable[:balance_end_of_period] = @balance_end_of_period.nil? ? '' : Field.float_to_string(@balance_end_of_period)
35+
printable[:accrued_this_period] =
36+
@accrued_this_period.nil? ? '' : Field.float_to_string(@accrued_this_period)
37+
printable[:balance_end_of_period] =
38+
@balance_end_of_period.nil? ? '' : Field.float_to_string(@balance_end_of_period)
3739
printable[:used_this_period] = @used_this_period.nil? ? '' : Field.float_to_string(@used_this_period)
3840
printable
3941
end
4042

4143
# @return [Hash]
4244
def table_printable_values
4345
printable = {}
44-
printable[:accrued_this_period] = @accrued_this_period.nil? ? '' : Field.float_to_string(@accrued_this_period)
45-
printable[:balance_end_of_period] = @balance_end_of_period.nil? ? '' : Field.float_to_string(@balance_end_of_period)
46+
printable[:accrued_this_period] =
47+
@accrued_this_period.nil? ? '' : Field.float_to_string(@accrued_this_period)
48+
printable[:balance_end_of_period] =
49+
@balance_end_of_period.nil? ? '' : Field.float_to_string(@balance_end_of_period)
4650
printable[:used_this_period] = @used_this_period.nil? ? '' : Field.float_to_string(@used_this_period)
4751
printable
4852
end

0 commit comments

Comments
 (0)