Skip to content

Commit

Permalink
Update invoice.rb: calculate expected_amount also if invoice has no o…
Browse files Browse the repository at this point in the history
…rders
  • Loading branch information
mjavurek authored Nov 17, 2024
1 parent 43e3329 commit e4e416b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/models/invoice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ def deliveries_sum(type = :without_markup)
end

def expected_amount(type = :without_markup)
return net_amount unless orders.any?

orders_sum(type) + orders_transport_sum + deliveries_sum(type)
end

Expand Down

0 comments on commit e4e416b

Please sign in to comment.