mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 19:42:37 +02:00
Add rounding in the generated reports
This commit is contained in:
parent
5e933ec775
commit
14ebdab7c8
1 changed files with 2 additions and 2 deletions
|
@ -52,8 +52,8 @@ def full(delivery):
|
|||
ws.append(row)
|
||||
footer = (
|
||||
["Total", "", ""]
|
||||
+ [o.total(delivery.products) for o in delivery.orders.values()]
|
||||
+ [delivery.total]
|
||||
+ [round(o.total(delivery.products),2) for o in delivery.orders.values()]
|
||||
+ [round(delivery.total, 2)]
|
||||
)
|
||||
ws.append(footer)
|
||||
return save_virtual_workbook(wb)
|
||||
|
|
Loading…
Reference in a new issue