diff --git a/app/models/price_line.rb b/app/models/price_line.rb index f28c388..b46babc 100644 --- a/app/models/price_line.rb +++ b/app/models/price_line.rb @@ -198,7 +198,7 @@ class PriceLine < ApplicationRecord def ca_tot_line_ht - (self.price_u_ht * self.qte.to_f).round(2) + (self.price_u_ht * self.qte.to_f).round(2) + self.ship_price_ht.to_f end def ca_tot_line_tva @@ -301,7 +301,7 @@ class PriceLine < ApplicationRecord def ca_tot_amount_ht - (self.ca_price_u_ht * self.qte.to_f).round(2) + (self.ca_price_u_ht * self.qte.to_f).round(2)+ self.ship_price_ht.to_f end def ca_tot_amount_tva