Skip to content

Commit

Permalink
fixup! [ADD] beesdoo_posorder_amount: by year
Browse files Browse the repository at this point in the history
  • Loading branch information
mclaeysb committed Sep 17, 2020
1 parent 1eae153 commit df29f3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions beesdoo_website_posorder_amount/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ def _prepare_portal_layout_values(self):
)
values["posorder_amount_by_year"] = [
{
"year": key,
"amount": sum(element.amount_total for element in group),
"year": year,
"amount": sum(pos_order.amount_total for pos_order in grouped_pos_orders),
}
for key, group in groupby(
owned_posorder, key=lambda element: element.date_order.year
for year, grouped_pos_orders in groupby(
owned_posorder, key=lambda pos_order: pos_order.date_order.year
)
]
values["company_currency"] = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
t-esc-options='{"widget": "monetary", "display_currency": "company_currency"}'/>
.
</p>
<table class="table table-striped">
<table name="posorder_amount_by_year" class="table table-striped">
<tr>
<th>
Year
Expand Down

0 comments on commit df29f3f

Please sign in to comment.