1
0

show expired status in invoices tab

This commit is contained in:
ThomasV
2014-06-13 16:53:43 +02:00
parent 38e7d8ebe5
commit 47c491624e
2 changed files with 11 additions and 4 deletions

View File

@@ -256,6 +256,9 @@ class PaymentRequest:
def has_expired(self):
return self.details.expires and self.details.expires < int(time.time())
def get_expiration_date(self):
return self.details.expires
def get_amount(self):
return sum(map(lambda x:x[1], self.outputs))