diff --git a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransaction.xml b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransaction.xml index bbf773da4ae6ae728c49643475093f35b1460e9a..c98d16a3fca03dca0c771387213b5ac760e252b2 100644 --- a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransaction.xml +++ b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransaction.xml @@ -123,7 +123,7 @@ if not skip_period_validation :\n if apd.getStartDate().Date() <= transaction_date.Date() <= apd.getStopDate().Date():\n valid_date = True\n if not valid_date:\n - raise ValidationFailed(translateString("Date is not in an opened Accounting Period "\n + raise ValidationFailed(translateString("Date is not in a started Accounting Period "\n "for source section."))\n # do the same for destination section \n if destination_section is not None:\n @@ -147,7 +147,7 @@ if not skip_period_validation :\n if apd.getStartDate().Date() <= transaction_date.Date() <= apd.getStopDate().Date():\n valid_date = True\n if not valid_date:\n - raise ValidationFailed(translateString("Date is not in an opened Accounting Period "\n + raise ValidationFailed(translateString("Date is not in an started Accounting Period "\n "for destination section."))\n 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 8206f3cc3695c404ab37879cda3ab775fa95fc93..c7ccbde3a61ad6e4a743cc4f17a83566e1209f79 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 @@ -89,7 +89,7 @@ for line in transaction.contentValues(filter=dict(\n \n if account is not None and account.getValidationState() != \'validated\':\n raise ValidationFailed, translateString(\n - "Account ${account_title} is not opened.",\n + "Account ${account_title} is not validated.",\n mapping=dict(account_title=unicode(\n account.Account_getFormattedTitle(), \'utf8\')))\n \n diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index 6d706ee9468b3e8a460e59b0fe78008ee1d70cb3..9c574c95386ccbd814a27b1a634f4169bad6c734 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -892 \ No newline at end of file +893 \ No newline at end of file