From dfd14f44304c8e1ed761c026287b677ad7d25dd2 Mon Sep 17 00:00:00 2001 From: simnandez Date: Tue, 27 Aug 2013 09:44:00 +0200 Subject: [PATCH] Fix: [ bug #1043 ] Bad interventions ref numbering --- ChangeLog | 1 + htdocs/core/modules/fichinter/mod_arctic.php | 3 ++- htdocs/core/modules/fichinter/mod_pacific.php | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e927ee706d9fc..d780fc61e52b7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,7 @@ Fix: User group name do not display in card (view or edit mode) Fix: Link "Show all supplier invoice" on suplier card not working Fix: [ bug #1039 ] Pre-defined invoices conversion Fix: If only service module is activated, it's impossible to delete service +Fix: [ bug #1043 ] Bad interventions ref numbering ***** ChangeLog for 3.4 compared to 3.3.* ***** For users: diff --git a/htdocs/core/modules/fichinter/mod_arctic.php b/htdocs/core/modules/fichinter/mod_arctic.php index d9def0fc01f1d..f2d89bf63c6a7 100644 --- a/htdocs/core/modules/fichinter/mod_arctic.php +++ b/htdocs/core/modules/fichinter/mod_arctic.php @@ -3,6 +3,7 @@ * Copyright (C) 2004-2008 Laurent Destailleur * Copyright (C) 2005-2009 Regis Houssin * Copyright (C) 2008 Raphael Bertrand (Resultic) + * Copyright (C) 2013 Juanjo Menent * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -119,7 +120,7 @@ function getNextValue($objsoc=0,$object='') return 0; } - $numFinal=get_next_value($db,$mask,'fichinter','ref','',$objsoc->code_client,$object->date); + $numFinal=get_next_value($db,$mask,'fichinter','ref','',$objsoc->code_client,$object->datec); return $numFinal; } diff --git a/htdocs/core/modules/fichinter/mod_pacific.php b/htdocs/core/modules/fichinter/mod_pacific.php index 352cab8230714..227d04f5ba5aa 100644 --- a/htdocs/core/modules/fichinter/mod_pacific.php +++ b/htdocs/core/modules/fichinter/mod_pacific.php @@ -1,6 +1,7 @@ * Copyright (C) 2005-2009 Regis Houssin + * Copyright (C) 2013 Juanjo Menent * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -121,7 +122,7 @@ function getNextValue($objsoc=0,$object='') } //$date=time(); - $date=$object->date; + $date=$object->datec; $yymm = strftime("%y%m",$date); $num = sprintf("%04s",$max+1);