Skip to content

Commit

Permalink
Fix: [ bug #1043 ] Bad interventions ref numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
simnandez committed Aug 27, 2013
1 parent 9cf2d8c commit dfd14f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion htdocs/core/modules/fichinter/mod_arctic.php
Expand Up @@ -3,6 +3,7 @@
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2009 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2008 Raphael Bertrand (Resultic) <raphael.bertrand@resultic.fr>
* Copyright (C) 2013 Juanjo Menent <jmenent@2byte.es>
*
* 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
Expand Down Expand Up @@ -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;
}
Expand Down
3 changes: 2 additions & 1 deletion htdocs/core/modules/fichinter/mod_pacific.php
@@ -1,6 +1,7 @@
<?php
/* Copyright (C) 2005-2008 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2009 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2013 Juanjo Menent <jmenent@2byte.es>
*
* 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
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit dfd14f4

Please sign in to comment.