Add balance command to leclercmobile

This commit is contained in:
Florent 2012-08-29 16:41:36 +02:00
commit 681b83e4b3
4 changed files with 20 additions and 1 deletions

View file

@ -80,6 +80,14 @@ class PdfPage():
details.append(detail)
return details
def get_balance(self):
for calls in self.get_calls():
if "Votre solde" in calls.label:
detail = Detail()
detail.price = calls.price
detail.label = u"Balance"
return detail
# Standard pdf text extractor take text line by line
# But the position in the file is not always the "real" position to display...
# It produce some unsorted and unparsable data