Netdeploy2 Babyyyy

This commit is contained in:
Ben Mosley
2026-02-03 17:41:29 -06:00
commit c77674b86d
23 changed files with 659 additions and 0 deletions

6
services/totals.py Normal file
View File

@@ -0,0 +1,6 @@
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