From b43b9a60f69dbaa045ec508b94106926d84cd243 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Thu, 7 Jun 2007 16:22:33 +0000 Subject: [PATCH] Use creation date to generate the reference. This makes sure it is generated even if stop (or start) date is not available on the document. This also solve the potential issue of discrepancy between the source data (start or stop date) and the outcome (reference), since creation date is never editable. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14738 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_banking_core/Baobab_getUniqueReference.xml | 2 +- bt5/erp5_banking_core/bt/revision | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getUniqueReference.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getUniqueReference.xml index bcd5877d63..412c9106e2 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getUniqueReference.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getUniqueReference.xml @@ -77,7 +77,7 @@ N_ = context.Base_translateString\n \n # if it\'s not defined, try to generate it\n if reference in (None, \'\') or not str(reference).startswith(application_id):\n - date = context.getStopDate()\n + date = context.getCreationDate()\n if date in (None, \'\'):\n message = N_("No date defined")\n return message\n diff --git a/bt5/erp5_banking_core/bt/revision b/bt5/erp5_banking_core/bt/revision index 4acc65d012..a36df4ef7e 100644 --- a/bt5/erp5_banking_core/bt/revision +++ b/bt5/erp5_banking_core/bt/revision @@ -1 +1 @@ -266 \ No newline at end of file +269 \ No newline at end of file -- 2.30.9