Added due date to due invoices boxes and re-ordered by due date instead of invoice date
This commit is contained in:
parent
69eb5d9af9
commit
433be914bf
@ -83,7 +83,7 @@ class box_factures_fourn_imp extends ModeleBoxes {
|
||||
{
|
||||
$sql .= " AND s.rowid = ".$user->societe_id;
|
||||
}
|
||||
$sql .= " ORDER BY f.datef DESC, f.facnumber DESC ";
|
||||
$sql .= " ORDER BY datelimite DESC, f.facnumber DESC ";
|
||||
$sql .= $db->plimit($max, 0);
|
||||
|
||||
$result = $db->query($sql);
|
||||
@ -110,8 +110,11 @@ class box_factures_fourn_imp extends ModeleBoxes {
|
||||
$this->info_box_contents[$i][1] = array('align' => 'left',
|
||||
'text' => $objp->nom,
|
||||
'url' => DOL_URL_ROOT."/fourn/fiche.php?socid=".$objp->socid);
|
||||
|
||||
$this->info_box_contents[$i][2] = array('align' => 'right',
|
||||
'text' => dolibarr_print_date($objp->datelimite,'day'));
|
||||
|
||||
$this->info_box_contents[$i][2] = array(
|
||||
$this->info_box_contents[$i][3] = array(
|
||||
'align' => 'right',
|
||||
'text' => $facturestatic->LibStatut($objp->paye,$objp->fk_statut,3));
|
||||
|
||||
@ -124,15 +127,13 @@ class box_factures_fourn_imp extends ModeleBoxes {
|
||||
if ($num==0 && $i==$num)
|
||||
{
|
||||
$this->info_box_contents[$i][0] = array('align' => 'center','text'=>$langs->trans("NoUnpayedCustomerBills"));
|
||||
$this->info_box_contents[$i][1] = array('text'=>' ');
|
||||
$this->info_box_contents[$i][2] = array('text'=>' ');
|
||||
$this->info_box_contents[$i][3] = array('text'=>' ');
|
||||
} else {
|
||||
$this->info_box_contents[$i][0] = array('text'=>' ');
|
||||
$this->info_box_contents[$i][1] = array('text'=>' ');
|
||||
$this->info_box_contents[$i][2] = array('text'=>' ');
|
||||
$this->info_box_contents[$i][3] = array('text'=>' ');
|
||||
}
|
||||
$this->info_box_contents[$i][1] = array('text'=>' ');
|
||||
$this->info_box_contents[$i][2] = array('text'=>' ');
|
||||
$this->info_box_contents[$i][3] = array('text'=>' ');
|
||||
$this->info_box_contents[$i][4] = array('text'=>' ');
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
||||
@ -84,7 +84,7 @@ class box_factures_imp extends ModeleBoxes {
|
||||
$sql .= " AND s.rowid = ".$user->societe_id;
|
||||
}
|
||||
//$sql .= " ORDER BY f.datef DESC, f.facnumber DESC ";
|
||||
$sql .= " ORDER BY f.datef ASC, f.facnumber ASC ";
|
||||
$sql .= " ORDER BY datelimite ASC, f.facnumber ASC ";
|
||||
$sql .= $db->plimit($max, 0);
|
||||
|
||||
$result = $db->query($sql);
|
||||
@ -113,9 +113,13 @@ class box_factures_imp extends ModeleBoxes {
|
||||
'maxlength'=>44,
|
||||
'url' => DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->socid);
|
||||
|
||||
$this->info_box_contents[$i][2] = array(
|
||||
$this->info_box_contents[$i][2] = array('align' => 'right',
|
||||
'text' => dolibarr_print_date($objp->datelimite,'day'),
|
||||
);
|
||||
|
||||
$this->info_box_contents[$i][3] = array(
|
||||
'align' => 'right',
|
||||
'text' => $facturestatic->LibStatut($objp->paye,$objp->fk_statut,3));
|
||||
'text' => $facturestatic->LibStatut($objp->paye,$objp->fk_statut,3));
|
||||
|
||||
$i++;
|
||||
}
|
||||
@ -126,15 +130,13 @@ class box_factures_imp extends ModeleBoxes {
|
||||
if ($num==0 && $i==$num)
|
||||
{
|
||||
$this->info_box_contents[$i][0] = array('align' => 'center','text'=>$langs->trans("NoUnpayedCustomerBills"));
|
||||
$this->info_box_contents[$i][1] = array('text'=>' ');
|
||||
$this->info_box_contents[$i][2] = array('text'=>' ');
|
||||
$this->info_box_contents[$i][3] = array('text'=>' ');
|
||||
} else {
|
||||
$this->info_box_contents[$i][0] = array('text'=>' ');
|
||||
$this->info_box_contents[$i][1] = array('text'=>' ');
|
||||
$this->info_box_contents[$i][2] = array('text'=>' ');
|
||||
$this->info_box_contents[$i][3] = array('text'=>' ');
|
||||
}
|
||||
$this->info_box_contents[$i][1] = array('text'=>' ');
|
||||
$this->info_box_contents[$i][2] = array('text'=>' ');
|
||||
$this->info_box_contents[$i][3] = array('text'=>' ');
|
||||
$this->info_box_contents[$i][4] = array('text'=>' ');
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user