self.total_submitted = Money(0)
self.submitted_date = None
self.paid_date = None
+ self.not_submitted = []
summary_state = None
for payment in self.payments:
if summary_state is None:
self.total_paid += payment.amount
else:
assert payment.state is PayeeState.NotYetSubmitted
+ self.not_submitted.append(payment.node.bug.id)
if summary_state is None:
self.state = PaymentSummaryState.NotYetSubmitted
else:
self.state = summary_state
+ def get_not_submitted(self):
+ return self.not_submitted
+
def __repr__(self) -> str:
return (f"PaymentSummary(total={self.total}, "
f"total_paid={self.total_paid}, "
print(f"{milestone.identifier}")
print(f"\t{summary.total} submitted: "
f"{summary.total_submitted} paid: {summary.total_paid}")
+ not_submitted = summary.get_not_submitted()
+ if not_submitted:
+ print ("not submitted", not_submitted)
# and one to display people
for person in budget_graph.milestone_people[milestone]: