← Back to team overview

credativ team mailing list archive

[Merge] lp:~credativ/account-banking/upgrade-6.0-refresh into lp:~therp-nl/account-banking/upgrade-6.0

 

Dmitrijs Ledkovs (credativ) has proposed merging lp:~credativ/account-banking/upgrade-6.0-refresh into lp:~therp-nl/account-banking/upgrade-6.0.

Requested reviews:
  Therp (therp-nl)

For more details, see:
https://code.launchpad.net/~credativ/account-banking/upgrade-6.0-refresh/+merge/81759

[FIX] Recompute statement end balance at the end of the import.

Otherwise, it may be "stuck" with an old balance and appearing as red to
the user.

-- 
https://code.launchpad.net/~credativ/account-banking/upgrade-6.0-refresh/+merge/81759
Your team credativ is subscribed to branch lp:~credativ/account-banking/upgrade-6.0-refresh.
=== modified file 'account_banking/wizard/bank_import.py'
--- account_banking/wizard/bank_import.py	2011-11-01 14:57:39 +0000
+++ account_banking/wizard/bank_import.py	2011-11-09 17:51:41 +0000
@@ -842,7 +842,10 @@
                     i += 1
 
             results.stat_loaded_cnt += 1
-            
+
+        #recompute statement end_balance for validation
+        statement_obj.button_dummy(cursor, uid, imported_statement_ids)
+    
         if payment_lines:
             # As payments lines are treated as individual transactions, the
             # batch as a whole is only marked as 'done' when all payment lines


Follow ups