app/models/dorsale/billing_machine/quotation.rb in dorsale-3.17.0 vs app/models/dorsale/billing_machine/quotation.rb in dorsale-3.18.0

- old
+ new

@@ -59,10 +59,10 @@ def update_totals assign_default_values lines.each(&:update_total) apply_vat_rate_to_lines - lines_sum = lines.map(&:total).sum + lines_sum = lines.sum(&:total) self.total_excluding_taxes = lines_sum - commercial_discount if commercial_discount.nonzero? && lines_sum.nonzero? discount_rate = commercial_discount / lines_sum