There is no need to round a balance before calling is_zero().
This commit is contained in:
parent
3dbdeb2917
commit
040255a52b
1 changed files with 5 additions and 8 deletions
|
|
@ -226,9 +226,7 @@ bool entry_base_t::finalize()
|
|||
|
||||
DEBUG("entry.finalize", "final balance = " << balance);
|
||||
|
||||
if (! balance.is_null()) {
|
||||
balance.in_place_round();
|
||||
if (! balance.is_zero()) {
|
||||
if (! balance.is_null() && ! balance.is_zero()) {
|
||||
#if 0
|
||||
new entry_context(*this, "While balancing entry:");
|
||||
#endif
|
||||
|
|
@ -236,7 +234,6 @@ bool entry_base_t::finalize()
|
|||
add_error_context(value_context(balance));
|
||||
throw_(balance_error, "Entry does not balance");
|
||||
}
|
||||
}
|
||||
|
||||
// Add the final calculated totals each to their related account
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue