bool hasStatementAssignment(const std::string &statementId)
Checks whether a statement id is assigned.
bool statusCanAdvance(int current, int next)
Checks whether a transaction status may advance.
void normalizeIds(std::vector< std::string > &values)
Normalizes and deduplicates relation ids.
bool hasValidBookingDate(const std::string &value)
Checks whether a booking date value is valid.
bool canFinalizeFromDraft(const std::string &bookingDate, double amount, const std::string &statementId)
Checks whether a draft transaction can be finalized.
bool hasValidAmount(double value)
Checks whether a transaction amount value is valid.
bool hasPropertyIds(const std::vector< std::string > &propertyIds)
Checks whether a transaction has any property ids.
std::string normalizeId(std::string value)
Normalizes a relation id.
std::string trimCopy(std::string value)
Trims leading and trailing whitespace from text.
std::string normalizeText(std::string value)
Normalizes free-form transaction text.