|
@@ -1,7 +1,7 @@
|
|
|
<?php
|
|
|
/* Copyright (C) 2011 Dimitri Mouillard <dmouillard@teclib.com>
|
|
|
* Copyright (C) 2015 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
|
- * Copyright (C) 2015 Alexandre Spangaro <aspangaro.dolibarr@gmail.com>
|
|
|
+ * Copyright (C) 2015 Alexandre Spangaro <aspangaro@zendsi.com>
|
|
|
* Copyright (C) 2016 Ferran Marcet <fmarcet@2byte.es>
|
|
|
*
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
@@ -830,6 +830,7 @@ class ExpenseReport extends CommonObject
|
|
|
$sql.= ' LEFT JOIN '.MAIN_DB_PREFIX.'c_type_fees as ctf ON de.fk_c_type_fees = ctf.id';
|
|
|
$sql.= ' LEFT JOIN '.MAIN_DB_PREFIX.'projet as p ON de.fk_projet = p.rowid';
|
|
|
$sql.= ' WHERE de.'.$this->fk_element.' = '.$this->id;
|
|
|
+ $sql.= ' ORDER BY de.date ASC';
|
|
|
|
|
|
dol_syslog('ExpenseReport::fetch_lines sql='.$sql, LOG_DEBUG);
|
|
|
$resql = $this->db->query($sql);
|