mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 04:31:49 +02:00
commit
8b966c806f
2 changed files with 2 additions and 3 deletions
|
@ -158,7 +158,6 @@ class Project(db.Model):
|
||||||
"""
|
"""
|
||||||
monthly = defaultdict(lambda: defaultdict(float))
|
monthly = defaultdict(lambda: defaultdict(float))
|
||||||
for bill in self.get_bills_unordered().all():
|
for bill in self.get_bills_unordered().all():
|
||||||
monthly[bill.date.year][bill.date.month] += bill.converted_amount
|
|
||||||
if (bill.is_reimbursement == False):
|
if (bill.is_reimbursement == False):
|
||||||
# if (not bill.what.startswith("R-")):
|
# if (not bill.what.startswith("R-")):
|
||||||
monthly[bill.date.year][bill.date.month] += bill.converted_amount
|
monthly[bill.date.year][bill.date.month] += bill.converted_amount
|
||||||
|
|
|
@ -175,8 +175,8 @@
|
||||||
<label class="col-3" for="payed_for">{{ _("For whom?") }}</label>
|
<label class="col-3" for="payed_for">{{ _("For whom?") }}</label>
|
||||||
<div id="payed_for" class="controls col-9">
|
<div id="payed_for" class="controls col-9">
|
||||||
<p>
|
<p>
|
||||||
<a class="badge badge-secondary" href="#" classid="selectall" onclick="selectCheckboxes(true)">{{ _("Everyone!!!!!!!") }}</a>
|
<a class="badge badge-secondary" href="#" classid="selectall" onclick="selectCheckboxes(true)">{{ _("Everyone") }}</a>
|
||||||
<a class="badge badge-secondary" href="#" id="selectnone" onclick="selectCheckboxes(false)">{{_("No one!!!")}}</a>
|
<a class="badge badge-secondary" href="#" id="selectnone" onclick="selectCheckboxes(false)">{{_("No one")}}</a>
|
||||||
</p>
|
</p>
|
||||||
<div class="d-flex flex-column flex-wrap overflow-auto" style="max-height: 20em;">
|
<div class="d-flex flex-column flex-wrap overflow-auto" style="max-height: 20em;">
|
||||||
{% for key, value, checked in form.payed_for.iter_choices() | sort(attribute='1') %}
|
{% for key, value, checked in form.payed_for.iter_choices() | sort(attribute='1') %}
|
||||||
|
|
Loading…
Reference in a new issue