diff --git a/ChangeLog b/ChangeLog
index 91ed5220c44..179ee126a70 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,44 +15,47 @@ For users:
(Save 2 clicks).
- In commercial main menu, left menu are already opened. This save one click
to open a proposal or order.
-- New: First graph using javascripts.
-- New: Can add a discount for third party, during invoice edition (and we
- saved clicks again).
-- New: Add status for third parties.
+ - Can add a discount for third party, during invoice edition (and we
+ saved clicks again).
+- New: Add graph using Jquery Flot.
+- New: Usage of Jquery Notify to show result or error messages on action.
+- New: Add status for third parties to disable a third party.
- New: Can send interventions cards by email.
- New: Add option MAIN_FIRST_TO_UPPER to force upper case of first
letters for names and firstname.
- New: Can filter of payment type in bank transaction list.
-- New: Status is visible into user list.
+- New: Status of users is visible into user list.
- New: Support BSB code for bank account in australia.
- New: Can set date of payment for autocreate invoice/payment when
creating a foundation subscription.
- New: Can edit note of payment.
- New: Login is not mandatory in member module.
-- New: Add box last members for foundation module.
-- New: A specialized menu is now used when using smartphones.
+- New: Add box for last members for foundation module.
+- New: A specialized menu can now be used when using smartphones.
- New: Can add information on current user on odt generation
- New: Prefix on third party is not used by default. Hidden option
SOCIETE_USEPREFIX can restore old feature.
- New: Standing orders module use bank account from banks module.
- New: Ask password when creating a user from a contact.
-- New: task #10577: Use a numbering module for shipment and contract
+- New: task #10577: Use a numbering module for shipment and contract.
+- New: Can create manually order from proposal.
- New: Add a first workflow module to create automatic action on some
events (create order on proposal closing).
-- New: Can create manually order from proposal.
- New: Use autocompletion on invoice select when creating replacement
or credit note invoice.
-- New: task #10885: Add a week view for calendar
-- New: task #11018 : Add a status "not applicable" on event
+- New: task #10885: Add a week view for calendar.
+- New: task #11018: Add a status "not applicable" on events.
- New: Add country/region/town statistics for member module.
- New: Can define a proxy for external web access.
- New: task #11003: checkbox on checks to deposit
-- New: Numbering module for invoice use same number for invoice
- and credit note if mask is same.
- New: Add status into export. Add default language into export.
- New: Can remove a project if project has tasks.
- New: Can filter on date when building cheque receipts.
+- New: Paypal module can show paypal list of transaction and convert one
+ into an order.
- Fix: Better Postgresql compatibility.
+- Fix: Numbering module for invoices use same number for invoice
+ and credit note if mask is same.
For developers:
- New: External modules can add tabs on agenda views.
diff --git a/htdocs/adherents/index.php b/htdocs/adherents/index.php
index 37d673bcd45..bb0f145dc54 100644
--- a/htdocs/adherents/index.php
+++ b/htdocs/adherents/index.php
@@ -136,50 +136,58 @@ print $langs->trans("Other").':
";
-print ' ';
-print '';
-print ''.$langs->trans("Statistics").' ';
-print '';
-$SommeA=0;
-$SommeB=0;
-$SommeC=0;
-$SommeD=0;
-$dataval=array();
-$datalabels=array();
-$dataseries=array();
-foreach ($AdherentType as $key => $adhtype)
-{
- $datalabels[]=$adhtype->getNomUrl(0,dol_size(16));
- $dataval['draft'][]=isset($MemberToValidate[$key])?$MemberToValidate[$key]:0;
- $dataval['notuptodate'][]=isset($MembersValidated[$key])?$MembersValidated[$key]-$MemberUpToDate[$key]:0;
- $dataval['uptodate'][]=isset($MemberUpToDate[$key])?$MemberUpToDate[$key]:0;
- $dataval['resiliated'][]=isset($MembersResiliated[$key])?$MembersResiliated[$key]:0;
- $SommeA+=isset($MemberToValidate[$key])?$MemberToValidate[$key]:0;
- $SommeB+=isset($MembersValidated[$key])?$MembersValidated[$key]-$MemberUpToDate[$key]:0;
- $SommeC+=isset($MemberUpToDate[$key])?$MemberUpToDate[$key]:0;
- $SommeD+=isset($MembersResiliated[$key])?$MembersResiliated[$key]:0;
-}
/*
-$dataseries[]=array('label'=>$langs->trans("MembersStatusToValid"),'values'=> $dataval['draft']);
-$dataseries[]=array('label'=>$langs->trans("MenuMembersNotUpToDate"),'values'=> $dataval['notuptodate']);
-$dataseries[]=array('label'=>$langs->trans("MenuMembersUpToDate"),'values'=> $dataval['uptodate']);
-$dataseries[]=array('label'=>$langs->trans("MembersStatusResiliated"),'values'=> $dataval['resiliated']);
-$data=array('series'=>$dataseries,'xlabel'=>$datalabels);
-dol_print_graph('stats2',300,180,$data,1,'bar');
-$dataseries=array();
-*/
-$dataseries[]=array('label'=>$langs->trans("MenuMembersNotUpToDate"),'values'=>array(round($SommeB)));
-$dataseries[]=array('label'=>$langs->trans("MenuMembersUpToDate"),'values'=>array(round($SommeC)));
-$dataseries[]=array('label'=>$langs->trans("MembersStatusResiliated"),'values'=>array(round($SommeD)));
-$dataseries[]=array('label'=>$langs->trans("MembersStatusToValid"),'values'=>array(round($SommeA)));
-$data=array('series'=>$dataseries);
-dol_print_graph('stats',300,180,$data,1,'pie');
-print ' ';
-print ''.$langs->trans("Total").' ';
-print $SommeA+$SommeB+$SommeC+$SommeD;
-print ' ';
-print '
';
+ * Statistics
+ */
+
+if ($conf->use_javascript_ajax)
+{
+ print ' ';
+ print '';
+ print ''.$langs->trans("Statistics").' ';
+ print '';
+
+ $SommeA=0;
+ $SommeB=0;
+ $SommeC=0;
+ $SommeD=0;
+ $dataval=array();
+ $datalabels=array();
+ $dataseries=array();
+ foreach ($AdherentType as $key => $adhtype)
+ {
+ $datalabels[]=$adhtype->getNomUrl(0,dol_size(16));
+ $dataval['draft'][]=isset($MemberToValidate[$key])?$MemberToValidate[$key]:0;
+ $dataval['notuptodate'][]=isset($MembersValidated[$key])?$MembersValidated[$key]-$MemberUpToDate[$key]:0;
+ $dataval['uptodate'][]=isset($MemberUpToDate[$key])?$MemberUpToDate[$key]:0;
+ $dataval['resiliated'][]=isset($MembersResiliated[$key])?$MembersResiliated[$key]:0;
+ $SommeA+=isset($MemberToValidate[$key])?$MemberToValidate[$key]:0;
+ $SommeB+=isset($MembersValidated[$key])?$MembersValidated[$key]-$MemberUpToDate[$key]:0;
+ $SommeC+=isset($MemberUpToDate[$key])?$MemberUpToDate[$key]:0;
+ $SommeD+=isset($MembersResiliated[$key])?$MembersResiliated[$key]:0;
+ }
+ /*
+ $dataseries[]=array('label'=>$langs->trans("MembersStatusToValid"),'values'=> $dataval['draft']);
+ $dataseries[]=array('label'=>$langs->trans("MenuMembersNotUpToDate"),'values'=> $dataval['notuptodate']);
+ $dataseries[]=array('label'=>$langs->trans("MenuMembersUpToDate"),'values'=> $dataval['uptodate']);
+ $dataseries[]=array('label'=>$langs->trans("MembersStatusResiliated"),'values'=> $dataval['resiliated']);
+ $data=array('series'=>$dataseries,'xlabel'=>$datalabels);
+ dol_print_graph('stats2',300,180,$data,1,'bar');
+ $dataseries=array();
+ */
+ $dataseries[]=array('label'=>$langs->trans("MenuMembersNotUpToDate"),'values'=>array(round($SommeB)));
+ $dataseries[]=array('label'=>$langs->trans("MenuMembersUpToDate"),'values'=>array(round($SommeC)));
+ $dataseries[]=array('label'=>$langs->trans("MembersStatusResiliated"),'values'=>array(round($SommeD)));
+ $dataseries[]=array('label'=>$langs->trans("MembersStatusToValid"),'values'=>array(round($SommeA)));
+ $data=array('series'=>$dataseries);
+ dol_print_graph('stats',300,180,$data,1,'pie');
+ print ' ';
+ print ''.$langs->trans("Total").' ';
+ print $SommeA+$SommeB+$SommeC+$SommeD;
+ print ' ';
+ print '
';
+}
print '';
diff --git a/htdocs/commande/index.php b/htdocs/commande/index.php
index 733bf54e00b..bbd23cedfb5 100644
--- a/htdocs/commande/index.php
+++ b/htdocs/commande/index.php
@@ -1,6 +1,6 @@
- * Copyright (C) 2004-2009 Laurent Destailleur
+ * Copyright (C) 2004-2011 Laurent Destailleur
* Copyright (C) 2005-2009 Regis Houssin
*
* This program is free software; you can redistribute it and/or modify
@@ -77,7 +77,82 @@ print " \n";
/*
- * Commandes brouillons
+ * Statistics
+ */
+
+$sql = "SELECT count(cf.rowid), cf.fk_statut, cf.facture";
+$sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
+$sql.= ", ".MAIN_DB_PREFIX."commande as cf";
+if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
+$sql.= " WHERE cf.fk_soc = s.rowid";
+$sql.= " AND s.entity = ".$conf->entity;
+if ($user->societe_id) $sql.=' AND cf.fk_soc = '.$user->societe_id;
+if (!$user->rights->societe->client->voir && !$socid) $sql.= " AND s.rowid = sc.fk_soc AND sc.fk_user = " .$user->id;
+$sql.= " GROUP BY cf.fk_statut, cf.facture";
+$resql = $db->query($sql);
+if ($resql)
+{
+ $num = $db->num_rows($resql);
+ $i = 0;
+
+ $var=True;
+
+ $total=0;
+ $totalinprocess=0;
+ $dataseries=array();
+ $vals=array();
+ // -1=Canceled, 0=Draft, 1=Validated, (2=Accepted/On process not managed for customer orders), 3=Closed (Sent/Received, billed or not)
+ while ($i < $num)
+ {
+ $row = $db->fetch_row($resql);
+ if ($row)
+ {
+ if ($row[1]!=3 || $row[2]!=1)
+ {
+ $vals[$row[1]]=$row[0];
+ $totalinprocess+=$row[0];
+ }
+ $total+=$row[0];
+ }
+ $i++;
+ }
+ $db->free($resql);
+
+ print '';
+ print ''.$langs->trans("Statistics").' ';
+ print "\n";
+ foreach (array(1,2,3,-1) as $statut)
+ {
+ $dataseries[]=array('label'=>$commandestatic->LibStatut($statut,0),'values'=>array(0=>(isset($vals[$statut])?$vals[$statut]:0)));
+ if (! $conf->use_javascript_ajax)
+ {
+ $var=!$var;
+ print "";
+ print ''.$commandestatic->LibStatut($statut,0).' ';
+ print ''.(isset($vals[$statut])?$vals[$statut]:0).' ';
+ print " \n";
+ }
+ }
+ if ($conf->use_javascript_ajax)
+ {
+ print '';
+ $data=array('series'=>$dataseries);
+ dol_print_graph('stats',300,180,$data,1,'pie');
+ print ' ';
+ }
+ //if ($totalinprocess != $total)
+ print ''.$langs->trans("Total").' ('.$langs->trans("CustomersOrdersRunning").') '.$totalinprocess.' ';
+ print ''.$langs->trans("Total").' ('.$langs->trans("CustomersOrders").') '.$total.' ';
+ print "
";
+}
+else
+{
+ dol_print_error($db);
+}
+
+
+/*
+ * Draft orders
*/
if ($conf->commande->enabled)
{
diff --git a/htdocs/fourn/commande/index.php b/htdocs/fourn/commande/index.php
index cbcaed453bd..25e0e3e2b52 100644
--- a/htdocs/fourn/commande/index.php
+++ b/htdocs/fourn/commande/index.php
@@ -40,8 +40,8 @@ $langs->load("orders");
/*
-* View
-*/
+ * View
+ */
llxHeader('',$langs->trans("SuppliersOrdersArea"));
@@ -71,7 +71,7 @@ print " \n";
/*
- * Legends / Status
+ * Statistics
*/
$sql = "SELECT count(cf.rowid), fk_statut";
@@ -87,34 +87,65 @@ $sql.= " GROUP BY cf.fk_statut";
$resql = $db->query($sql);
if ($resql)
{
- $num = $db->num_rows($resql);
- $i = 0;
+ $num = $db->num_rows($resql);
+ $i = 0;
- print '';
+ $var=True;
- print ''.$langs->trans("Status").' ';
- print ''.$langs->trans("Nb").' ';
- print " \n";
- $var=True;
-
- while ($i < $num)
+ $total=0;
+ $totalinprocess=0;
+ $dataseries=array();
+ $vals=array();
+ // 0=Draft -> 1=Validated -> 2=Approved -> 3=Process runing -> 4=Received partially -> 5=Received totally -> (reopen) 4=Received partially
+ // -> 7=Canceled/Never received -> (reopen) 3=Process runing
+ // -> 6=Canceled -> (reopen) 2=Approved
+ while ($i < $num)
{
- $row = $db->fetch_row($resql);
- $var=!$var;
-
- print "";
- print ''.$langs->trans($commandestatic->statuts[$row[1]]).' ';
- print ''.$row[0].' '.$commandestatic->LibStatut($row[1],3).' ';
-
- print " \n";
- $i++;
+ $row = $db->fetch_row($resql);
+ if ($row)
+ {
+ if ($row[1]!=7 && $row[1]!=6 && $row[1]!=5)
+ {
+ $vals[$row[1]]=$row[0];
+ $totalinprocess+=$row[0];
+ }
+ $total+=$row[0];
+ }
+ $i++;
}
- print "
";
- $db->free($resql);
+ $db->free($resql);
+
+ print '';
+ print ''.$langs->trans("Statistics").' ';
+ print "\n";
+ foreach (array(0,1,2,3,4) as $statut)
+ {
+ $dataseries[]=array('label'=>$commandestatic->LibStatut($statut,0),'values'=>array(0=>(isset($vals[$statut])?$vals[$statut]:0)));
+ if (! $conf->use_javascript_ajax)
+ {
+ $var=!$var;
+ print "";
+ print ''.$commandestatic->LibStatut($statut,0).' ';
+ print ''.(isset($vals[$statut])?$vals[$statut]:0).' ';
+ print " \n";
+ }
+ }
+ if ($conf->use_javascript_ajax)
+ {
+ print '';
+ $data=array('series'=>$dataseries);
+ dol_print_graph('stats',300,180,$data,1,'pie');
+ print ' ';
+ }
+ //if ($totalinprocess != $total)
+ print ''.$langs->trans("Total").' ('.$langs->trans("SuppliersOrdersRunning").') '.$totalinprocess.' ';
+ print ''.$langs->trans("Total").' ('.$langs->trans("SuppliersOrders").') '.$total.' ';
+
+ print "
";
}
else
{
- dol_print_error($db);
+ dol_print_error($db);
}
/*
@@ -122,41 +153,41 @@ else
*/
if ($conf->fournisseur->enabled)
{
- $sql = "SELECT c.rowid, c.ref, s.nom, s.rowid as socid";
- $sql.= " FROM ".MAIN_DB_PREFIX."commande_fournisseur as c";
- $sql.= ", ".MAIN_DB_PREFIX."societe as s";
- if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
- $sql.= " WHERE c.fk_soc = s.rowid";
- $sql.= " AND c.entity = ".$conf->entity;
- $sql.= " AND c.fk_statut = 0";
- if ($socid) $sql.= " AND c.fk_soc = ".$socid;
- if (!$user->rights->societe->client->voir && !$socid) $sql.= " AND s.rowid = sc.fk_soc AND sc.fk_user = " .$user->id;
+ $sql = "SELECT c.rowid, c.ref, s.nom, s.rowid as socid";
+ $sql.= " FROM ".MAIN_DB_PREFIX."commande_fournisseur as c";
+ $sql.= ", ".MAIN_DB_PREFIX."societe as s";
+ if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
+ $sql.= " WHERE c.fk_soc = s.rowid";
+ $sql.= " AND c.entity = ".$conf->entity;
+ $sql.= " AND c.fk_statut = 0";
+ if ($socid) $sql.= " AND c.fk_soc = ".$socid;
+ if (!$user->rights->societe->client->voir && !$socid) $sql.= " AND s.rowid = sc.fk_soc AND sc.fk_user = " .$user->id;
$resql=$db->query($sql);
- if ($resql)
- {
- print ' ";
- }
+ if ($resql)
+ {
+ print ' ";
+ }
}
@@ -178,35 +209,35 @@ $sql.= " AND subperms = 'approuver'";
$resql = $db->query($sql);
if ($resql)
{
- $num = $db->num_rows($resql);
- $i = 0;
+ $num = $db->num_rows($resql);
+ $i = 0;
- print '';
- print ''.$langs->trans("UserWithApproveOrderGrant").' ';
- print " \n";
- $var=True;
+ print '';
+ print ''.$langs->trans("UserWithApproveOrderGrant").' ';
+ print " \n";
+ $var=True;
- while ($i < $num)
+ while ($i < $num)
{
- $obj = $db->fetch_object($resql);
- $var=!$var;
+ $obj = $db->fetch_object($resql);
+ $var=!$var;
- print "";
- print '';
- $userstatic->id=$obj->rowid;
- $userstatic->nom=$obj->name;
- $userstatic->prenom=$obj->firstname;
- print $userstatic->getNomUrl(1);
- print ' ';
- print " \n";
- $i++;
+ print "";
+ print '';
+ $userstatic->id=$obj->rowid;
+ $userstatic->nom=$obj->name;
+ $userstatic->prenom=$obj->firstname;
+ print $userstatic->getNomUrl(1);
+ print ' ';
+ print " \n";
+ $i++;
}
- print "
";
- $db->free($resql);
+ print "
";
+ $db->free($resql);
}
else
{
- dol_print_error($db);
+ dol_print_error($db);
}
@@ -234,52 +265,52 @@ $sql.= $db->plimit($max, 0);
$resql=$db->query($sql);
if ($resql)
{
- print '';
- print '';
- print ''.$langs->trans("LastModifiedOrders",$max).' ';
+ print '';
+ print '';
+ print ''.$langs->trans("LastModifiedOrders",$max).' ';
- $num = $db->num_rows($resql);
- if ($num)
- {
- $i = 0;
- $var = True;
- while ($i < $num)
- {
- $var=!$var;
- $obj = $db->fetch_object($resql);
+ $num = $db->num_rows($resql);
+ if ($num)
+ {
+ $i = 0;
+ $var = True;
+ while ($i < $num)
+ {
+ $var=!$var;
+ $obj = $db->fetch_object($resql);
- print "";
- print '';
+ print " ";
+ print '';
- $commandestatic->id=$obj->rowid;
- $commandestatic->ref=$obj->ref;
+ $commandestatic->id=$obj->rowid;
+ $commandestatic->ref=$obj->ref;
- print '';
- print '';
- print $commandestatic->getNomUrl(1);
- print ' ';
+ print '';
+ print '';
+ print $commandestatic->getNomUrl(1);
+ print ' ';
- print '';
- print ' ';
- print ' ';
+ print '';
+ print ' ';
+ print ' ';
- print '';
- $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);
- print '
';
+ print '';
+ $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);
+ print '
';
- print ' ';
+ print '';
- print ''.img_object($langs->trans("ShowCompany"),"company").' '.$obj->nom.' ';
- print ''.dol_print_date($db->jdate($obj->datec)).' ';
- print ''.$commandestatic->LibStatut($obj->fk_statut,5).' ';
- print ' ';
- $i++;
- }
- }
- print "
";
+ print ''.img_object($langs->trans("ShowCompany"),"company").' '.$obj->nom.' ';
+ print ''.dol_print_date($db->jdate($obj->datec)).' ';
+ print ''.$commandestatic->LibStatut($obj->fk_statut,5).' ';
+ print '';
+ $i++;
+ }
+ }
+ print "
";
}
else dol_print_error($db);
@@ -288,70 +319,70 @@ else dol_print_error($db);
* Orders to process
*/
/*
-$sql = "SELECT c.rowid, c.ref, c.fk_statut, s.nom, s.rowid as socid";
-$sql.=" FROM ".MAIN_DB_PREFIX."commande_fournisseur as c";
-$sql.= ", ".MAIN_DB_PREFIX."societe as s";
-if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
-$sql.= " WHERE c.fk_soc = s.rowid";
-$sql.= " AND c.entity = ".$conf->entity;
-$sql.= " AND c.fk_statut = 1";
-if ($socid) $sql.= " AND c.fk_soc = ".$socid;
-if (!$user->rights->societe->client->voir && !$socid) $sql.= " AND s.rowid = sc.fk_soc AND sc.fk_user = " .$user->id;
-$sql.= " ORDER BY c.rowid DESC";
+ $sql = "SELECT c.rowid, c.ref, c.fk_statut, s.nom, s.rowid as socid";
+ $sql.=" FROM ".MAIN_DB_PREFIX."commande_fournisseur as c";
+ $sql.= ", ".MAIN_DB_PREFIX."societe as s";
+ if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
+ $sql.= " WHERE c.fk_soc = s.rowid";
+ $sql.= " AND c.entity = ".$conf->entity;
+ $sql.= " AND c.fk_statut = 1";
+ if ($socid) $sql.= " AND c.fk_soc = ".$socid;
+ if (!$user->rights->societe->client->voir && !$socid) $sql.= " AND s.rowid = sc.fk_soc AND sc.fk_user = " .$user->id;
+ $sql.= " ORDER BY c.rowid DESC";
-$resql=$db->query($sql);
-if ($resql)
-{
- $num = $db->num_rows($resql);
+ $resql=$db->query($sql);
+ if ($resql)
+ {
+ $num = $db->num_rows($resql);
- print '';
- print '';
- print ''.$langs->trans("OrdersToProcess").' ('.$num.') ';
+ print '';
+ print '';
+ print ''.$langs->trans("OrdersToProcess").' ('.$num.') ';
- if ($num)
- {
- $i = 0;
- $var = True;
- while ($i < $num)
- {
- $var=!$var;
- $obj = $db->fetch_object($resql);
- print "";
- print '';
+ if ($num)
+ {
+ $i = 0;
+ $var = True;
+ while ($i < $num)
+ {
+ $var=!$var;
+ $obj = $db->fetch_object($resql);
+ print " ";
+ print '';
- $commandestatic->id=$obj->rowid;
- $commandestatic->ref=$obj->ref;
+ $commandestatic->id=$obj->rowid;
+ $commandestatic->ref=$obj->ref;
- print '';
- print '';
- print $commandestatic->getNomUrl(1);
- print ' ';
+ print '';
+ print '';
+ print $commandestatic->getNomUrl(1);
+ print ' ';
- print '';
- print ' ';
- print ' ';
+ print '';
+ print ' ';
+ print ' ';
- print '';
- $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);
- print '
';
+ print '';
+ $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);
+ print '
';
- print ' ';
+ print '';
- print ''.img_object($langs->trans("ShowCompany"),"company").' '.dol_trunc($obj->nom,24).' ';
+ print ''.img_object($langs->trans("ShowCompany"),"company").' '.dol_trunc($obj->nom,24).' ';
- print ''.$commandestatic->LibStatut($obj->fk_statut,$obj->facture,5).' ';
+ print ''.$commandestatic->LibStatut($obj->fk_statut,$obj->facture,5).' ';
- print ' ';
- $i++;
- }
- }
+ print '';
+ $i++;
+ }
+ }
- print "
";
-}
-*/
+ print "
";
+ }
+ */
print ' ';
diff --git a/htdocs/theme/auguria/graph-color.php b/htdocs/theme/auguria/graph-color.php
index 19476d82813..cda44d58255 100755
--- a/htdocs/theme/auguria/graph-color.php
+++ b/htdocs/theme/auguria/graph-color.php
@@ -26,7 +26,7 @@
global $theme_bordercolor, $theme_datacolor, $theme_bgcolor, $theme_bgcoloronglet;
$theme_bordercolor = array(235,235,224);
-$theme_datacolor = array(array(120,130,150), array(200,160,180), array(190,190,220), array(140,170,150));
+$theme_datacolor = array(array(125,135,150), array(200,160,180), array(190,190,220), array(170,140,190), array(190,190,170));
$theme_bgcolor = array(hexdec('F4'),hexdec('F4'),hexdec('F4'));
$theme_bgcoloronglet = array(hexdec('DE'),hexdec('E7'),hexdec('EC'));
diff --git a/htdocs/theme/eldy/graph-color.php b/htdocs/theme/eldy/graph-color.php
index 126cab37a0a..1419de38977 100755
--- a/htdocs/theme/eldy/graph-color.php
+++ b/htdocs/theme/eldy/graph-color.php
@@ -26,7 +26,7 @@
global $theme_bordercolor, $theme_datacolor, $theme_bgcolor, $theme_bgcoloronglet;
$theme_bordercolor = array(235,235,224);
-$theme_datacolor = array(array(120,130,150), array(200,160,180), array(190,190,220), array(140,170,150));
+$theme_datacolor = array(array(125,135,150), array(200,160,180), array(190,190,220), array(170,140,190), array(190,190,170));
$theme_bgcolor = array(hexdec('F4'),hexdec('F4'),hexdec('F4'));
$theme_bgcoloronglet = array(hexdec('DE'),hexdec('E7'),hexdec('EC'));