mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
Add a test suite
This commit is contained in:
@@ -113,6 +113,9 @@ class AccountStatementOperationRule(models.Model):
|
||||
balance = statement_line.amount
|
||||
for move_line in move_lines:
|
||||
balance += move_line.credit - move_line.debit
|
||||
# TODO use is_zero
|
||||
if not balance:
|
||||
return self.browse()
|
||||
|
||||
rules = self.search([])
|
||||
# return the first applicable rule
|
||||
|
||||
Reference in New Issue
Block a user