fix: List of travel entries in travel reimbursement PDF is not sorted on date.
This commit is contained in:
@@ -20,8 +20,6 @@ if (!$GLOBALS['modules_enabled']['office']) {
|
||||
}
|
||||
|
||||
if ($API_office_travel_reimburse->request_method === 'POST') {
|
||||
|
||||
ini_set('display_errors', 1);
|
||||
$API_office_travel_reimburse->checkPermissions('office-travel-reimburse', 'RO');
|
||||
$portal_settings = $GLOBALS['conn']->query("SELECT * FROM system_settings")->fetch_assoc();
|
||||
$month = $_POST['calender_month'];
|
||||
@@ -38,6 +36,10 @@ if ($API_office_travel_reimburse->request_method === 'POST') {
|
||||
0 => 'travel_date',
|
||||
1 => $firstDay,
|
||||
2 => $lastDay
|
||||
],
|
||||
'orderBy' => [
|
||||
0 => 'travel_date',
|
||||
1 => 'ASC'
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user