From 8ff4a733b86168537e883faf9250c377a2caa218 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Sun, 12 Apr 2020 17:01:07 +0200 Subject: [PATCH] suite --- app/models/price_line.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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