Skip to content

Commit ddbbcdb

Browse files
authored
Merge pull request #18 from raboof/declaratie-alleen-via-bank-toestaan
declaratie zonder cash toestaan (review door squirl)
2 parents 59d34b3 + 2493090 commit ddbbcdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/declaratie.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def runascash(self, text):
184184
return True
185185
try:
186186
value = float(text)
187-
if 0 < value < 5000:
187+
if 0 <= value < 5000:
188188
if value > (self.value - self.asbar):
189189
return self.askcash(
190190
"E %.2f is larger than E %.2f ; "
@@ -194,7 +194,7 @@ def runascash(self, text):
194194
if (self.ascash + self.asbar) == self.value:
195195
return self.final()
196196
return self.askbank("")
197-
return self.askcash("Not between 0.01 and 4999.99; ")
197+
return self.askcash("Not between 0 and 4999.99; ")
198198
except:
199199
traceback.print_exc()
200200
return self.askcash("")

0 commit comments

Comments
 (0)