depositAmountOn function
Pfandbetrag in Cent am Wiener Tag day (YYYY-MM-DD): letzter Eintrag mit
from <= day, sonst null.
Implementation
int? depositAmountOn(DepositType type, String day) {
int? cents;
for (final e in type.amounts) {
if (e.from.compareTo(day) <= 0) {
cents = e.cents;
} else {
break;
}
}
return cents;
}