Files
netdeploy2/services/totals.py
2026-02-03 17:41:29 -06:00

7 lines
189 B
Python

from decimal import Decimal
def compute_quote_totals(quote):
subtotal = sum([Decimal(str(i.line_total)) for i in quote.items])
quote.subtotal = subtotal
quote.total = subtotal