diff --git a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransactionLines.xml b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransactionLines.xml index 44a15154f4ed782e5895cdf653c6d7263973d9c3..92c5245312d80e2ef0de2a54480d71f89731ff2e 100644 --- a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransactionLines.xml +++ b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransactionLines.xml @@ -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 diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index 823aeb4b44b7f09e1692e625ff87d75f224be3b5..53a274896eb3bd21ade6b46ff50630eab6dbb601 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -624 \ No newline at end of file +626 \ No newline at end of file