Skip to content

Commit

Permalink
declaratie zonder cash toestaan
Browse files Browse the repository at this point in the history
i.e. restant via de bank
  • Loading branch information
raboof committed Oct 8, 2024
1 parent 59d34b3 commit 2493090
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/declaratie.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def runascash(self, text):
return True
try:
value = float(text)
if 0 < value < 5000:
if 0 <= value < 5000:
if value > (self.value - self.asbar):
return self.askcash(
"E %.2f is larger than E %.2f ; "
Expand All @@ -194,7 +194,7 @@ def runascash(self, text):
if (self.ascash + self.asbar) == self.value:
return self.final()
return self.askbank("")
return self.askcash("Not between 0.01 and 4999.99; ")
return self.askcash("Not between 0 and 4999.99; ")
except:
traceback.print_exc()
return self.askcash("")
Expand Down

0 comments on commit 2493090

Please sign in to comment.