Fix boxes
This commit is contained in:
parent
c2124479c7
commit
693a7590ef
@ -86,7 +86,7 @@ class box_birthdays extends ModeleBoxes
|
|||||||
{
|
{
|
||||||
$tmparray = dol_getdate(dol_now(), true);
|
$tmparray = dol_getdate(dol_now(), true);
|
||||||
|
|
||||||
$sql = "SELECT u.rowid, u.firstname, u.lastname, u.birth";
|
$sql = "SELECT u.rowid, u.firstname, u.lastname, u.birth, u.email, u.statut as status";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."user as u";
|
$sql .= " FROM ".MAIN_DB_PREFIX."user as u";
|
||||||
$sql .= " WHERE u.entity IN (".getEntity('user').")";
|
$sql .= " WHERE u.entity IN (".getEntity('user').")";
|
||||||
$sql .= " AND u.statut = 1";
|
$sql .= " AND u.statut = 1";
|
||||||
@ -104,10 +104,13 @@ class box_birthdays extends ModeleBoxes
|
|||||||
while ($line < $num)
|
while ($line < $num)
|
||||||
{
|
{
|
||||||
$objp = $this->db->fetch_object($result);
|
$objp = $this->db->fetch_object($result);
|
||||||
|
|
||||||
$userstatic->id = $objp->rowid;
|
$userstatic->id = $objp->rowid;
|
||||||
$userstatic->firstname = $objp->firstname;
|
$userstatic->firstname = $objp->firstname;
|
||||||
$userstatic->lastname = $objp->lastname;
|
$userstatic->lastname = $objp->lastname;
|
||||||
$userstatic->email = $objp->email;
|
$userstatic->email = $objp->email;
|
||||||
|
$userstatic->statut = $objp->status;
|
||||||
|
|
||||||
$dateb = $this->db->jdate($objp->birth);
|
$dateb = $this->db->jdate($objp->birth);
|
||||||
$age = date('Y', dol_now()) - date('Y', $dateb);
|
$age = date('Y', dol_now()) - date('Y', $dateb);
|
||||||
|
|
||||||
|
|||||||
@ -104,6 +104,7 @@ SuspenseAccountNotDefined=Suspense account isn't defined
|
|||||||
BoxLastCustomerShipments=Last customer shipments
|
BoxLastCustomerShipments=Last customer shipments
|
||||||
BoxTitleLastCustomerShipments=Latest %s customer shipments
|
BoxTitleLastCustomerShipments=Latest %s customer shipments
|
||||||
NoRecordedShipments=No recorded customer shipment
|
NoRecordedShipments=No recorded customer shipment
|
||||||
|
BoxCustomersOutstandingBillReached=Customers with oustanding limit reached
|
||||||
# Pages
|
# Pages
|
||||||
AccountancyHome=Accountancy
|
AccountancyHome=Accountancy
|
||||||
ValidatedProjects=Validated projects
|
ValidatedProjects=Validated projects
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user