[FIX] splitting of transactions was not actually disabled yet

This commit is contained in:
Stefan Rijnhart
2012-02-01 16:36:09 +01:00
parent 83438ea36b
commit fb20ba14a5
2 changed files with 6 additions and 6 deletions

View File

@@ -30,7 +30,7 @@
##############################################################################
{
'name': 'Account Banking',
'version': '0.1.102',
'version': '0.1.106',
'license': 'GPL-3',
'author': 'Banking addons community',
'website': 'https://launchpad.net/banking-addons',

View File

@@ -274,6 +274,10 @@ class banking_import_transaction(osv.osv):
digits = dp.get_precision('Account')(cr)[1]
partial = False
# Disabled splitting transactions for now
# TODO allow splitting in the interactive wizard
allow_splitting = False
# Search invoice on partner
if partner_ids:
candidates = [
@@ -395,11 +399,7 @@ class banking_import_transaction(osv.osv):
elif abs(expected) > abs(found):
# Partial payment, reuse invoice
_cache(move_line, expected - found)
elif abs(expected) < abs(found):
# Disabled splitting transactions for now
# TODO allow splitting in the interactive wizard
pass
elif abs(expected) < abs(found) and allow_splitting:
# Possible combined payments, need to split transaction to
# verify
_cache(move_line)