This commit is contained in:
Nicolas Bally 2020-04-12 17:01:07 +02:00
parent cf5a66d7e0
commit 8ff4a733b8

View File

@ -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