Netdeploy2 Babyyyy
This commit is contained in:
6
services/totals.py
Normal file
6
services/totals.py
Normal 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
|
||||
Reference in New Issue
Block a user