Skip to content

Commit

Permalink
Merge branch '3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Dec 11, 2012
2 parents ba135c9 + d8aa805 commit cdebb62
Show file tree
Hide file tree
Showing 91 changed files with 2,813 additions and 2,025 deletions.
2 changes: 1 addition & 1 deletion build/debian/changelog
@@ -1,4 +1,4 @@
dolibarr (3.2.2+nmu1) unstable; urgency=low
dolibarr (3.2.3+nmu1) unstable; urgency=low

* Non-maintainer upload.
* New upstream release.
Expand Down
8 changes: 7 additions & 1 deletion build/debian/dolibarr.postrm
Expand Up @@ -180,11 +180,17 @@ case "$1" in

# Now run the drop user
if eval $mysqlcmd -f -e "\"DROP USER '$dbuser'@'localhost';\"" ; then
echo postrm Database login $dbuser removed
echo postrm Database login $dbuser@localhost removed
else
error="Unable to run $mysqlcmd -f -e \"DROP USER '$dbuser'@'localhost';\""
echo postrm $error
fi
if eval $mysqlcmd -f -e "\"DROP USER '$dbuser'@'%';\"" ; then
echo postrm Database login $dbuser@% removed
else
error="Unable to run $mysqlcmd -f -e \"DROP USER '$dbuser'@'%';\""
echo postrm $error
fi

# Now run the drop commands
if eval $mysqlcmd -f -e "\"show databases;\"" | grep -e "^$dbname" > /dev/null 2>&1 ; then
Expand Down
2 changes: 1 addition & 1 deletion build/doxygen/dolibarr-doxygen.doxyfile
Expand Up @@ -31,7 +31,7 @@ PROJECT_NAME = dolibarr
# This could be handy for archiving the generated documentation or
# if some version control system is used.

PROJECT_NUMBER = 3.2.0
PROJECT_NUMBER = 3.2.3

# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
# base path where the generated documentation will be put.
Expand Down
4 changes: 2 additions & 2 deletions build/exe/doliwamp/doliwamp.iss
Expand Up @@ -17,9 +17,9 @@
; ----- Change this -----
AppName=DoliWamp
; DoliWamp-x.x.x or DoliWamp-x.x.x-alpha or DoliWamp-x.x.x-beta or DoliWamp-x.x.x-rc or DoliWamp-x.x.x
AppVerName=DoliWamp-3.2.2
AppVerName=DoliWamp-3.2.3
; DoliWamp-x.x x or DoliWamp-x.x.x-alpha or DoliWamp-x.x.x-beta or DoliWamp-x.x.x-rc or DoliWamp-x.x.x
OutputBaseFilename=DoliWamp-3.2.2
OutputBaseFilename=DoliWamp-3.2.3
; Define full path from wich all relative path are defined
; You must modify this to put here your dolibarr root directory
;SourceDir=C:\Documents and Settings\ldestail\git\dolibarr_old
Expand Down
2 changes: 1 addition & 1 deletion build/makepack-dolibarr.pl
Expand Up @@ -10,7 +10,7 @@
$PROJECT="dolibarr";
$MAJOR="3";
$MINOR="2";
$BUILD="2"; # Mettre x pour release, x-dev pour dev, x-beta pour beta, x-rc pour release candidate
$BUILD="3"; # Mettre x pour release, x-dev pour dev, x-beta pour beta, x-rc pour release candidate
$RPMSUBVERSION="auto"; # auto use value found into BUILD

@LISTETARGET=("TGZ","ZIP","RPM_GENERIC","RPM_FEDORA","RPM_MANDRIVA","RPM_OPENSUSE","DEB","APS","EXEDOLIWAMP","SNAPSHOT"); # Possible packages
Expand Down
2 changes: 1 addition & 1 deletion build/makepack-howto.txt
Expand Up @@ -34,7 +34,7 @@ This files describe steps made by Dolibarr packaging team to make a
complete release of Dolibarr, step by step.

- Check all files are commited.
- Update version/info in /ChangeLog and /filefunc.inc.php
- Update version/info in /ChangeLog
- Update version number with x.x.x-y in build/makepack-dolibarr.pl
- Update version number with x.x.x-y in build/exe/doliwamp/doliwamp.iss
- Update version number with x.x.x-y in htdocs/filefunc.inc.php
Expand Down
4 changes: 2 additions & 2 deletions build/pad/pad_dolibarr.xml
Expand Up @@ -34,9 +34,9 @@
</Company_Info>
<Program_Info>
<Program_Name>Dolibarr</Program_Name>
<Program_Version>3.2.2</Program_Version>
<Program_Version>3.2.3</Program_Version>
<Program_Release_Month>09</Program_Release_Month>
<Program_Release_Day>10</Program_Release_Day>
<Program_Release_Day>24</Program_Release_Day>
<Program_Release_Year>2012</Program_Release_Year>
<Program_Cost_Dollars />
<Program_Cost_Other_Code />
Expand Down
4 changes: 2 additions & 2 deletions build/pad/pad_doliwamp.xml
Expand Up @@ -34,9 +34,9 @@
</Company_Info>
<Program_Info>
<Program_Name>DoliWamp</Program_Name>
<Program_Version>3.2.2</Program_Version>
<Program_Version>3.2.3</Program_Version>
<Program_Release_Month>09</Program_Release_Month>
<Program_Release_Day>10</Program_Release_Day>
<Program_Release_Day>24</Program_Release_Day>
<Program_Release_Year>2012</Program_Release_Year>
<Program_Cost_Dollars />
<Program_Cost_Other_Code />
Expand Down
2 changes: 1 addition & 1 deletion build/rpm/dolibarr_fedora.spec
Expand Up @@ -312,5 +312,5 @@ fi


%changelog
* Mon Jul 23 2012 Laurent Destailleur 3.2.2-0.3
* Mon Sep 24 2012 Laurent Destailleur 3.2.3-0.3
- Initial version (#723326)
2 changes: 1 addition & 1 deletion build/rpm/dolibarr_generic.spec
Expand Up @@ -368,5 +368,5 @@ fi


%changelog
* Mon Jul 23 2012 Laurent Destailleur 3.2.2-0.3
* Mon Sep 24 2012 Laurent Destailleur 3.2.3-0.3
- Initial version (#723326)
2 changes: 1 addition & 1 deletion build/rpm/dolibarr_mandriva.spec
Expand Up @@ -301,5 +301,5 @@ fi


%changelog
* Mon Jul 23 2012 Laurent Destailleur 3.2.2-0.3
* Mon Sep 24 2012 Laurent Destailleur 3.2.3-0.3
- Initial version (#723326)
2 changes: 1 addition & 1 deletion build/rpm/dolibarr_opensuse.spec
Expand Up @@ -306,5 +306,5 @@ fi


%changelog
* Mon Jul 23 2012 Laurent Destailleur 3.2.2-0.3
* Mon Sep 24 2012 Laurent Destailleur 3.2.3-0.3
- Initial version (#723326)
284 changes: 0 additions & 284 deletions dev/initdata/mysqldump_dolibarr_3.2.0.sql

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion htdocs/adherents/card_subscriptions.php
Expand Up @@ -400,12 +400,16 @@
if (! $error)
{
$bank_line_id=$paiement->addPaymentToBank($user,'payment','(SubscriptionPayment)',$accountid,$emetteur_nom,$emetteur_banque);
if (! $bank_line_id > 0)
if (! ($bank_line_id > 0))
{
$errmsg=$paiement->error;
$errmsgs=$paiement->errors;
$error++;
}
}

if (! $error)
{
// Update fk_bank for subscriptions
$sql = 'UPDATE '.MAIN_DB_PREFIX.'cotisation SET fk_bank='.$bank_line_id;
$sql.= ' WHERE rowid='.$crowid;
Expand Down
26 changes: 20 additions & 6 deletions htdocs/adherents/index.php
Expand Up @@ -213,7 +213,7 @@
*/
$max=5;

$sql = "SELECT a.rowid, a.statut, a.nom as lastname, a.prenom as firstname,";
$sql = "SELECT a.rowid, a.statut, a.nom as lastname, a.prenom as firstname, a.societe as company, a.fk_soc,";
$sql.= " a.tms as datem, datefin as date_end_subscription,";
$sql.= " ta.rowid as typeid, ta.libelle, ta.cotisation";
$sql.= " FROM ".MAIN_DB_PREFIX."adherent as a, ".MAIN_DB_PREFIX."adherent_type as ta";
Expand Down Expand Up @@ -242,11 +242,18 @@
$staticmember->id=$obj->rowid;
$staticmember->lastname=$obj->lastname;
$staticmember->firstname=$obj->firstname;
if (! empty($obj->fk_soc)) {
$staticmember->socid = $obj->fk_soc;
$staticmember->fetch_thirdparty();
$staticmember->name=$staticmember->thirdparty->name;
} else {
$staticmember->name=$obj->company;
}
$staticmember->ref=$staticmember->getFullName($langs);
$statictype->id=$obj->typeid;
$statictype->libelle=$obj->libelle;
print '<td>'.$staticmember->getNomUrl(1,24).'</td>';
print '<td>'.$statictype->getNomUrl(1,16).'</td>';
print '<td>'.$staticmember->getNomUrl(1,32).'</td>';
print '<td>'.$statictype->getNomUrl(1,32).'</td>';
print '<td>'.dol_print_date($db->jdate($obj->datem),'dayhour').'</td>';
print '<td align="right">'.$staticmember->LibStatut($obj->statut,($obj->cotisation=='yes'?1:0),$db->jdate($obj->date_end_subscription),5).'</td>';
print '</tr>';
Expand All @@ -266,7 +273,7 @@
*/
$max=5;

$sql = "SELECT a.rowid, a.statut, a.nom as lastname, a.prenom as firstname,";
$sql = "SELECT a.rowid, a.statut, a.nom as lastname, a.prenom as firstname, a.societe as company, a.fk_soc,";
$sql.= " datefin as date_end_subscription,";
$sql.= " c.rowid as cid, c.tms as datem, c.datec as datec, c.dateadh as date_start, c.datef as date_end, c.cotisation";
$sql.= " FROM ".MAIN_DB_PREFIX."adherent as a, ".MAIN_DB_PREFIX."cotisation as c";
Expand Down Expand Up @@ -297,9 +304,16 @@
$staticmember->id=$obj->rowid;
$staticmember->lastname=$obj->lastname;
$staticmember->firstname=$obj->firstname;
if (! empty($obj->fk_soc)) {
$staticmember->socid = $obj->fk_soc;
$staticmember->fetch_thirdparty();
$staticmember->name=$staticmember->thirdparty->name;
} else {
$staticmember->name=$obj->company;
}
$staticmember->ref=$staticmember->getFullName($langs);
print '<td>'.$subscriptionstatic->getNomUrl(1).'</td>';
print '<td>'.$staticmember->getNomUrl(1,24,'subscription').'</td>';
print '<td>'.$staticmember->getNomUrl(1,32,'subscription').'</td>';
print '<td>'.get_date_range($db->jdate($obj->date_start),$db->jdate($obj->date_end)).'</td>';
print '<td align="right">'.price($obj->cotisation).'</td>';
//print '<td align="right">'.$staticmember->LibStatut($obj->statut,($obj->cotisation=='yes'?1:0),$db->jdate($obj->date_end_subscription),5).'</td>';
Expand Down Expand Up @@ -330,7 +344,7 @@
{
$var=!$var;
print "<tr $bc[$var]>";
print '<td><a href="type.php?rowid='.$adhtype->id.'">'.img_object($langs->trans("ShowType"),"group").' '.$adhtype->getNomUrl(0,dol_size(16)).'</a></td>';
print '<td>'.$adhtype->getNomUrl(1, dol_size(32)).'</td>';
print '<td align="right">'.(isset($MemberToValidate[$key]) && $MemberToValidate[$key] > 0?$MemberToValidate[$key]:'').' '.$staticmember->LibStatut(-1,$adhtype->cotisation,0,3).'</td>';
print '<td align="right">'.(isset($MembersValidated[$key]) && ($MembersValidated[$key]-$MemberUpToDate[$key] > 0) ? $MembersValidated[$key]-$MemberUpToDate[$key]:'').' '.$staticmember->LibStatut(1,$adhtype->cotisation,0,3).'</td>';
print '<td align="right">'.(isset($MemberUpToDate[$key]) && $MemberUpToDate[$key] > 0 ? $MemberUpToDate[$key]:'').' '.$staticmember->LibStatut(1,$adhtype->cotisation,$now,3).'</td>';
Expand Down
29 changes: 17 additions & 12 deletions htdocs/adherents/liste.php
Expand Up @@ -82,7 +82,7 @@

$now=dol_now();

$sql = "SELECT d.rowid, d.login, d.nom as lastname, d.prenom as firstname, d.societe, ";
$sql = "SELECT d.rowid, d.login, d.nom as lastname, d.prenom as firstname, d.societe as company, d.fk_soc,";
$sql.= " d.datefin,";
$sql.= " d.email, d.fk_adherent_type as type_id, d.morphy, d.statut,";
$sql.= " t.libelle as type, t.cotisation";
Expand Down Expand Up @@ -130,7 +130,7 @@
}
if ($filter == 'outofdate')
{
$sql.=" AND datefin < '".$db->idate($now)."'";
$sql.=" AND (datefin IS NULL OR datefin < '".$db->idate($now)."')";
}
// Insert categ filter
if ($search_categ)
Expand Down Expand Up @@ -237,7 +237,7 @@

print '<td class="liste_titre">';
$listetype=$membertypestatic->liste_array();
print $form->selectarray("type", $listetype, $type, 1, 0, 0, '', 0, 12);
print $form->selectarray("type", $listetype, $type, 1, 0, 0, '', 0, 32);
print '</td>';

print '<td class="liste_titre">&nbsp;</td>';
Expand Down Expand Up @@ -267,6 +267,14 @@
$memberstatic->lastname=$objp->lastname;
$memberstatic->firstname=$objp->firstname;

if (! empty($objp->fk_soc)) {
$memberstatic->socid = $objp->fk_soc;
$memberstatic->fetch_thirdparty();
$companyname=$memberstatic->thirdparty->name;
} else {
$companyname=$objp->company;
}

$var=!$var;
print "<tr ".$bc[$var].">";

Expand All @@ -276,14 +284,11 @@
print "</td>\n";

// Lastname
if ($objp->societe != '')
{
print "<td><a href=\"fiche.php?rowid=$objp->rowid\">".dol_trunc($memberstatic->getFullName($langs))." / ".dol_trunc($objp->societe,12)."</a></td>\n";
}
else
{
print "<td><a href=\"fiche.php?rowid=$objp->rowid\">".dol_trunc($memberstatic->getFullName($langs))."</a></td>\n";
}
print "<td><a href=\"fiche.php?rowid=$objp->rowid\">";
print ((! empty($objp->lastname) || ! empty($objp->firstname)) ? dol_trunc($memberstatic->getFullName($langs)) : '');
print (((! empty($objp->lastname) || ! empty($objp->firstname)) && ! empty($companyname)) ? ' / ' : '');
print (! empty($companyname) ? dol_trunc($companyname, 32) : '');
print "</a></td>\n";

// Login
print "<td>".$objp->login."</td>\n";
Expand All @@ -292,7 +297,7 @@
$membertypestatic->id=$objp->type_id;
$membertypestatic->libelle=$objp->type;
print '<td nowrap="nowrap">';
print $membertypestatic->getNomUrl(1,12);
print $membertypestatic->getNomUrl(1,32);
print '</td>';

// Moral/Physique
Expand Down
17 changes: 11 additions & 6 deletions htdocs/admin/modules.php
Expand Up @@ -31,9 +31,14 @@
$langs->load("errors");
$langs->load("admin");

$mode=isset($_GET["mode"])?GETPOST("mode"):(isset($_SESSION['mode'])?$_SESSION['mode']:0);
$mode=GETPOST('mode', 'alpha');
if (!isset($mode)) {
if (isset($_SESSION['mode'])) { $mode=$_SESSION['mode'];}
else {$mode=0;}
}
$mesg=GETPOST("mesg");
$action=GETPOST('action');
$action=GETPOST('action', 'alpha');
$value=GETPOST('value', 'alpha');

if (!$user->admin) accessforbidden();

Expand All @@ -44,7 +49,7 @@

if ($action == 'set' && $user->admin)
{
$result=activateModule($_GET["value"]);
$result=activateModule($value);
$mesg='';
if ($result) $mesg=$result;
Header("Location: modules.php?mode=".$mode."&mesg=".urlencode($mesg));
Expand All @@ -53,7 +58,7 @@

if ($action == 'reset' && $user->admin)
{
$result=unActivateModule($_GET["value"]);
$result=unActivateModule($value);
$mesg='';
if ($result) $mesg=$result;
Header("Location: modules.php?mode=".$mode."&mesg=".urlencode($mesg));
Expand Down Expand Up @@ -128,9 +133,9 @@
{
$mesg="Error: Module ".$modName." was found twice: Into ".$modNameLoaded[$modName]." and ".$dir.". You probably have an old file on your disk.<br>";
dol_syslog($mesg, LOG_ERR);
continue;
continue;
}

try
{
$res=include_once($dir.$file);
Expand Down
1 change: 1 addition & 0 deletions htdocs/categories/categorie.php
Expand Up @@ -61,6 +61,7 @@
$elementtype = 'fournisseur';
$objecttype = 'societe&categorie';
$objectid = isset($id)?$id:(isset($socid)?$socid:'');
$dbtablename = '&societe';
$fieldid = 'rowid';
}
if ($type == 2) {
Expand Down
2 changes: 1 addition & 1 deletion htdocs/comm/propal/class/propal.class.php
Expand Up @@ -2163,7 +2163,7 @@ function initAsSpecimen()
$this->mode_reglement_id = 7;
$this->mode_reglement_code = 'CHQ';
$this->availability_id = 1;
$this->availability_code = 'DSP';
$this->availability_code = 'AV_NOW';
$this->demand_reason_id = 1;
$this->demand_reason_code = 'SRC_00';
$this->note_public='This is a comment (public)';
Expand Down
12 changes: 6 additions & 6 deletions htdocs/comm/propal/index.php
Expand Up @@ -193,7 +193,7 @@
$companystatic->client=$obj->client;
$companystatic->canvas=$obj->canvas;
print '<td>'.$companystatic->getNomUrl(1,'customer',24).'</td>';

print '</tr>';
$i++;
}
Expand Down Expand Up @@ -260,7 +260,7 @@
$filename=dol_sanitizeFileName($obj->ref);
$filedir=$conf->propal->dir_output . '/' . dol_sanitizeFileName($obj->ref);
$urlsource=$_SERVER['PHP_SELF'].'?id='.$obj->rowid;
$formfile->show_documents('commande',$filename,$filedir,$urlsource,'','','',1,'',1);
$formfile->show_documents('propal',$filename,$filedir,$urlsource,'','','',1,'',1);
print '</td></tr></table>';

print '</td>';
Expand All @@ -270,7 +270,7 @@
$companystatic->client=$obj->client;
$companystatic->canvas=$obj->canvas;
print '<td>'.$companystatic->getNomUrl(1,'customer').'</td>';

print '<td>'.dol_print_date($db->jdate($obj->datec),'day').'</td>';
print '<td align="right">'.$propalstatic->LibStatut($obj->fk_statut,5).'</td>';
print '</tr>';
Expand Down Expand Up @@ -339,7 +339,7 @@
print '</td></tr></table>';

print "</td>";

$companystatic->id=$obj->socid;
$companystatic->name=$obj->socname;
$companystatic->client=$obj->client;
Expand Down Expand Up @@ -419,7 +419,7 @@
$filename=dol_sanitizeFileName($obj->ref);
$filedir=$conf->commande->dir_output . '/' . dol_sanitizeFileName($obj->ref);
$urlsource=$_SERVER['PHP_SELF'].'?id='.$obj->rowid;
$formfile->show_documents('commande',$filename,$filedir,$urlsource,'','','',1,'',1);
$formfile->show_documents('propal',$filename,$filedir,$urlsource,'','','',1,'',1);
print '</td></tr></table>';
print '</td>';
Expand Down Expand Up @@ -491,7 +491,7 @@
$filename=dol_sanitizeFileName($obj->ref);
$filedir=$conf->commande->dir_output . '/' . dol_sanitizeFileName($obj->ref);
$urlsource=$_SERVER['PHP_SELF'].'?id='.$obj->rowid;
$formfile->show_documents('commande',$filename,$filedir,$urlsource,'','','',1,'',1);
$formfile->show_documents('propal',$filename,$filedir,$urlsource,'','','',1,'',1);
print '</td></tr></table>';
print '</td>';
Expand Down

0 comments on commit cdebb62

Please sign in to comment.