Commit 767db7ff authored by Jérome Perrin's avatar Jérome Perrin

Third party and bank accounts were reversed in the validation scripts, as a...

Third party and bank accounts were reversed in the validation scripts, as a result, wrong error messages were shown to the user

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19617 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f7d9e9c5
......@@ -91,11 +91,12 @@ for line in transaction.contentValues(filter=dict(\n
\n
for account, third_party, bank_account in (\n
( line.getSourceValue(portal_type=\'Account\'),\n
line.getSourcePaymentValue(portal_type=bank_account_portal_type),\n
line.getDestinationSectionValue(portal_type=section_portal_type_list),),\n
line.getDestinationSectionValue(portal_type=section_portal_type_list),\n
line.getSourcePaymentValue(portal_type=bank_account_portal_type),),\n
( line.getDestinationValue(portal_type=\'Account\'),\n
line.getDestinationPaymentValue(portal_type=bank_account_portal_type),\n
line.getSourceSectionValue(portal_type=section_portal_type_list),), ):\n
line.getSourceSectionValue(portal_type=section_portal_type_list),\n
line.getDestinationPaymentValue(portal_type=bank_account_portal_type),),\n
):\n
\n
if account is not None and account.getValidationState() != \'validated\':\n
raise ValidationFailed, N_(\n
......
624
\ No newline at end of file
626
\ 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