validate method
Implementation
bool validate() {
bool isValid = true;
for (JrlLine entry in preparedLines) {
if (!entry.kminus.valid() || !entry.kplus.valid()) {
print("Error: Account information missing for operation ${entry.desc}");
isValid = false;
}
if (entry.valuta < 0) {
print("Error: Valuta information missing for operation ${entry.desc}");
isValid = false;
}
}
return isValid;
}