|
38 | 38 | "workload" => medical_shifts.second.workload_humanize, |
39 | 39 | "date" => medical_shifts.second.start_date.strftime("%d/%m/%Y"), |
40 | 40 | "hour" => medical_shifts.second.start_hour.strftime("%H:%M"), |
41 | | - "amount_cents" => medical_shifts.second.amount.format, |
| 41 | + "amount_cents" => medical_shifts.second.amount.format(thousands_separator: ".", decimal_mark: ","), |
42 | 42 | "paid" => medical_shifts.second.paid, |
43 | 43 | "shift" => medical_shifts.second.shift, |
44 | 44 | "title" => "#{second_hospital_name} | #{second_workload} | #{second_shift}", |
|
51 | 51 | "workload" => medical_shifts.first.workload_humanize, |
52 | 52 | "date" => medical_shifts.first.start_date.strftime("%d/%m/%Y"), |
53 | 53 | "hour" => medical_shifts.first.start_hour.strftime("%H:%M"), |
54 | | - "amount_cents" => medical_shifts.first.amount.format, |
| 54 | + "amount_cents" => medical_shifts.first.formatted_amount, |
55 | 55 | "paid" => medical_shifts.first.paid, |
56 | 56 | "shift" => medical_shifts.first.shift, |
57 | 57 | "title" => "#{first_hospital_name} | #{first_workload} | #{first_shift}", |
|
134 | 134 | "workload" => paid_medical_shifts.second.workload_humanize, |
135 | 135 | "date" => paid_medical_shifts.second.start_date.strftime("%d/%m/%Y"), |
136 | 136 | "hour" => paid_medical_shifts.second.start_hour.strftime("%H:%M"), |
137 | | - "amount_cents" => paid_medical_shifts.second.amount.format, |
| 137 | + "amount_cents" => paid_medical_shifts.second.formatted_amount, |
138 | 138 | "paid" => paid_medical_shifts.second.paid, |
139 | 139 | "shift" => paid_medical_shifts.second.shift, |
140 | 140 | "title" => "#{second_hospital_name} | #{second_workload} | #{second_shift}", |
|
147 | 147 | "workload" => paid_medical_shifts.first.workload_humanize, |
148 | 148 | "date" => paid_medical_shifts.first.start_date.strftime("%d/%m/%Y"), |
149 | 149 | "hour" => paid_medical_shifts.first.start_hour.strftime("%H:%M"), |
150 | | - "amount_cents" => paid_medical_shifts.first.amount.format, |
| 150 | + "amount_cents" => paid_medical_shifts.first.formatted_amount, |
151 | 151 | "paid" => paid_medical_shifts.first.paid, |
152 | 152 | "shift" => paid_medical_shifts.first.shift, |
153 | 153 | "title" => "#{first_hospital_name} | #{first_workload} | #{first_shift}", |
|
177 | 177 | "workload" => unpaid_medical_shifts.second.workload_humanize, |
178 | 178 | "date" => unpaid_medical_shifts.second.start_date.strftime("%d/%m/%Y"), |
179 | 179 | "hour" => unpaid_medical_shifts.second.start_hour.strftime("%H:%M"), |
180 | | - "amount_cents" => unpaid_medical_shifts.second.amount.format, |
| 180 | + "amount_cents" => unpaid_medical_shifts.second.formatted_amount, |
181 | 181 | "paid" => unpaid_medical_shifts.second.paid, |
182 | 182 | "shift" => unpaid_medical_shifts.second.shift, |
183 | 183 | "title" => "#{second_hospital_name} | #{second_workload} | #{second_shift}", |
|
190 | 190 | "workload" => unpaid_medical_shifts.first.workload_humanize, |
191 | 191 | "date" => unpaid_medical_shifts.first.start_date.strftime("%d/%m/%Y"), |
192 | 192 | "hour" => unpaid_medical_shifts.first.start_hour.strftime("%H:%M"), |
193 | | - "amount_cents" => unpaid_medical_shifts.first.amount.format, |
| 193 | + "amount_cents" => unpaid_medical_shifts.first.formatted_amount, |
194 | 194 | "paid" => unpaid_medical_shifts.first.paid, |
195 | 195 | "shift" => unpaid_medical_shifts.first.shift, |
196 | 196 | "title" => "#{first_hospital_name} | #{first_workload} | #{first_shift}", |
|
277 | 277 | workload: MedicalShift.last.workload_humanize, |
278 | 278 | date: MedicalShift.last.start_date.strftime("%d/%m/%Y"), |
279 | 279 | hour: MedicalShift.last.start_hour.strftime("%H:%M"), |
280 | | - amount_cents: MedicalShift.last.amount.format, |
| 280 | + amount_cents: MedicalShift.last.formatted_amount, |
281 | 281 | paid: params[:paid], |
282 | 282 | shift: MedicalShift.last.shift, |
283 | 283 | title: "#{hospital_name} | #{workload} | #{shift}", |
|
361 | 361 | workload: workload, |
362 | 362 | date: medical_shift.start_date.strftime("%d/%m/%Y"), |
363 | 363 | hour: medical_shift.start_hour.strftime("%H:%M"), |
364 | | - amount_cents: medical_shift.amount.format, |
| 364 | + amount_cents: medical_shift.formatted_amount, |
365 | 365 | paid: medical_shift.paid, |
366 | 366 | shift: medical_shift.reload.shift, |
367 | 367 | title: "#{hospital_name} | #{workload} | #{shift}" |
|
0 commit comments