diff --git a/htdocs/comm/propal/list.php b/htdocs/comm/propal/list.php
index 7a652631d67..c84111fc951 100644
--- a/htdocs/comm/propal/list.php
+++ b/htdocs/comm/propal/list.php
@@ -289,12 +289,13 @@ if ($result)
print '';
print '';
print '
';
- print '';
+ print '';
print ' | ';
- print ' | ';
+ print ' | ';
print '';
- print $langs->trans('Month').': ';
- print ' '.$langs->trans('Year').': ';
+ //print $langs->trans('Month').': ';
+ print '';
+ //print ' '.$langs->trans('Year').': ';
$syear = $year;
$formother->select_year($syear,'year',1, 20, 5);
print ' | ';
@@ -376,15 +377,8 @@ if ($result)
// Date proposal
print '';
- $y = dol_print_date($db->jdate($objp->dp),'%Y');
- $m = dol_print_date($db->jdate($objp->dp),'%m');
- $mt= dol_print_date($db->jdate($objp->dp),'%b');
- $d = dol_print_date($db->jdate($objp->dp),'%d');
- print $d."\n";
- print ' ';
- print $mt."\n";
- print ' ';
- print $y." | \n";
+ print dol_print_date($db->jdate($obj->dp), 'day');
+ print "\n";
// Date end validity
if ($objp->dfv)
diff --git a/htdocs/commande/liste.php b/htdocs/commande/liste.php
index 2beb0b73b55..f5d7c01ae56 100644
--- a/htdocs/commande/liste.php
+++ b/htdocs/commande/liste.php
@@ -162,15 +162,15 @@ if ($viewstatut <> '')
if ($ordermonth > 0)
{
if ($orderyear > 0 && empty($day))
- $sql.= " AND c.date_valid BETWEEN '".$db->idate(dol_get_first_day($orderyear,$ordermonth,false))."' AND '".$db->idate(dol_get_last_day($orderyear,$ordermonth,false))."'";
+ $sql.= " AND c.date_commande BETWEEN '".$db->idate(dol_get_first_day($orderyear,$ordermonth,false))."' AND '".$db->idate(dol_get_last_day($orderyear,$ordermonth,false))."'";
else if ($orderyear > 0 && ! empty($day))
- $sql.= " AND c.date_valid BETWEEN '".$db->idate(dol_mktime(0, 0, 0, $ordermonth, $day, $orderyear))."' AND '".$db->idate(dol_mktime(23, 59, 59, $ordermonth, $day, $orderyear))."'";
+ $sql.= " AND c.date_commande BETWEEN '".$db->idate(dol_mktime(0, 0, 0, $ordermonth, $day, $orderyear))."' AND '".$db->idate(dol_mktime(23, 59, 59, $ordermonth, $day, $orderyear))."'";
else
- $sql.= " AND date_format(c.date_valid, '%m') = '".$ordermonth."'";
+ $sql.= " AND date_format(c.date_commande, '%m') = '".$ordermonth."'";
}
else if ($orderyear > 0)
{
- $sql.= " AND c.date_valid BETWEEN '".$db->idate(dol_get_first_day($orderyear,1,false))."' AND '".$db->idate(dol_get_last_day($orderyear,12,false))."'";
+ $sql.= " AND c.date_commande BETWEEN '".$db->idate(dol_get_first_day($orderyear,1,false))."' AND '".$db->idate(dol_get_last_day($orderyear,12,false))."'";
}
if ($deliverymonth > 0)
{
@@ -297,8 +297,14 @@ if ($resql)
print '';
print '';
print ' | ';
- print ' ';
- print ' | ';
+ print ' | ';
+ if (! empty($conf->global->MAIN_LIST_FILTER_ON_DAY)) print '';
+ print '';
+ $formother->select_year($orderyear?$orderyear:-1,'orderyear',1, 20, 5);
+ print ' | ';
+ if (! empty($conf->global->MAIN_LIST_FILTER_ON_DAY)) print '';
+ print '';
+ $formother->select_year($deliveryyear?$deliveryyear:-1,'deliveryyear',1, 20, 5);
print ' | ';
print ' | ';
print '';
@@ -370,25 +376,13 @@ if ($resql)
print ' | ';
// Order date
- $y = dol_print_date($db->jdate($objp->date_commande),'%Y');
- $m = dol_print_date($db->jdate($objp->date_commande),'%m');
- $ml = dol_print_date($db->jdate($objp->date_commande),'%B');
- $d = dol_print_date($db->jdate($objp->date_commande),'%d');
print '';
- print $d;
- print ' '.$ml.'';
- print ' '.$y.'';
+ print dol_print_date($db->jdate($objp->date_commande), 'day');
print ' | ';
// Delivery date
- $y = dol_print_date($db->jdate($objp->date_livraison),'%Y');
- $m = dol_print_date($db->jdate($objp->date_livraison),'%m');
- $ml = dol_print_date($db->jdate($objp->date_livraison),'%B');
- $d = dol_print_date($db->jdate($objp->date_livraison),'%d');
print '';
- print $d;
- print ' '.$ml.'';
- print ' '.$y.'';
+ print dol_print_date($db->jdate($objp->date_delivery), 'day');
print ' | ';
// Amount HT
diff --git a/htdocs/compta/facture/list.php b/htdocs/compta/facture/list.php
index 42d08c3b02c..01c06fee19a 100644
--- a/htdocs/compta/facture/list.php
+++ b/htdocs/compta/facture/list.php
@@ -218,10 +218,10 @@ if ($search_user > 0)
}
if (! $sall)
{
- $sql.= ' GROUP BY f.rowid, f.facnumber, f.type, f.increment, f.total,f.tva, f.total_ttc,';
+ $sql.= ' GROUP BY f.rowid, f.facnumber, ref_client, f.type, f.note_private, f.increment, f.total, f.tva, f.total_ttc,';
$sql.= ' f.datef, f.date_lim_reglement,';
$sql.= ' f.paye, f.fk_statut,';
- $sql.= ' s.nom, s.rowid, f.note_private';
+ $sql.= ' s.nom, s.rowid, s.code_client, s.client';
}
else
{