Commit 2ab6150b authored by Aurel's avatar Aurel

check balance with sum of check for the same account number

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19545 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 36140d66
......@@ -155,7 +155,7 @@ for check_operation_line in transaction.contentValues(filter = {\'portal_type\'
else:\n
check_price = check_operation_line.getPrice()\n
bank_account_dict[account_path] = check_price\n
error = context.BankAccount_checkBalance(account_path, check_operation_line.getPrice())\n
error = context.BankAccount_checkBalance(account_path, check_price)\n
if error[\'error_code\'] == 1:\n
msg = Message(domain=\'ui\', message="Bank account $account is not sufficient on line $line.",\n
mapping={"account": source_bank_account.getInternalBankAccountNumber(), "line" : check_operation_line.getId()})\n
......
383
\ No newline at end of file
384
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment