4 Jun 2012 14:40
Lx-Office CRM, branch master updated. release-1.4.2-69-g3407285
Holger Lindemann <m.bunkus <at> linet-services.de>
2012-06-04 12:40:04 GMT
2012-06-04 12:40:04 GMT
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Lx-Office CRM".
The branch master has been updated
via 34072857b18188f8dd1c6f32c0542de68e3dc9cd (commit)
from 298583c357f06d526c4baa31f06b17814aa12558 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 34072857b18188f8dd1c6f32c0542de68e3dc9cd
Author: Holger Lindemann <hli <at> lenny.hoch.ul>
Date: Mon Jun 4 14:39:54 2012 +0200
Führende Nullen in der KD-Nummer erhalten.
Ziffern Zeichen Ziffern nun möglich
-----------------------------------------------------------------------
Summary of changes:
inc/FirmenLib.php | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
Full change list:
diff --git a/inc/FirmenLib.php b/inc/FirmenLib.php
index 0812a66..25cec7a 100644
--- a/inc/FirmenLib.php
+++ b/inc/FirmenLib.php
<at> <at> -761,9 +761,19 <at> <at> global $db;
} else {
$rs=$db->getAll("select ".$typ."number from defaults");
};
- preg_match("/([^0-9]*)([0-9]+)/",$rs[0][$typ."number"],$t);
- if (count($t)==3) { $y=$t[2]+1; $pre=$t[1]; }
- else { $y=$t[1]+1; $pre=""; };
+ preg_match("/([0-9]*)([^0-9]*)([0-9]*)/",$rs[0][$typ."number"],$t);
+ if ( $t[3] != '' ) {
+ $pre = $t[1].$t[2];
+ $nr = $t[3];
+ } else if ( $t[2] != '' ) {
+ $pre = $t[1];
+ $nr = $t[2];
+ } else {
+ $pre = '';
+ $nr = $t[1];
+ };
+ $len = strlen($nr);
+ $y = sprintf("%0".$len."d",$nr+1);
$newnr=$pre.$y;
if ($bid>0) {
$rc=$db->query("update business set customernumberinit='$newnr' where id = $bid");
hooks/post-receive
--
--
Lx-Office CRM
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Lx-office-svn mailing list
Lx-office-svn <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lx-office-svn
RSS Feed