Skip to content

Commit

Permalink
fix: pld price_per_unit for tarifs
Browse files Browse the repository at this point in the history
  • Loading branch information
diegosteiner committed May 19, 2024
1 parent 2548496 commit 2c64903
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/tarif.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ def update_booking_conditions

def breakdown_options(usage)
{
unit:,
used_units: number_to_rounded(usage.used_units || 0, precision: 2, strip_insignificant_zeros: true),
price_per_unit: number_to_currency(usage.price_per_unit || 0, unit: organisation.currency),
unit:
price_per_unit: number_to_currency(usage.price_per_unit.presence || 0, unit: organisation.currency)
}
end

Expand Down

0 comments on commit 2c64903

Please sign in to comment.