Add new pricing system (#65)

This commit is contained in:
Fredrik Ringqvist
2023-05-05 10:33:02 +02:00
committed by GitHub
parent 1c5bcd4471
commit 4556155a84
5 changed files with 319 additions and 12 deletions
+1
View File
@@ -42,6 +42,7 @@ class Inquiry(db.Model):
return 0
price = float(self.price_retouch)
price *= self.market.exchange_rate
# Todo: review if the retouch price should no longer use the price_adjustments value
price *= self.market.price_adjustments
if inc_vat:
price *= self.market.vat