mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-23 08:38:37 -04:00
Sort on MAX(sale_time) in supplier report (#4055)
Sort on aggregate field reports (#4055)
This commit is contained in:
1 parent
e91a0181af
commit
3a7470b4fd
1 file changed
+1
-1
@@ -116,7 +116,7 @@ class Detailed_receivings extends Report
|
||||
}
|
||||
|
||||
$builder->groupBy('receiving_id', 'receiving_time');
|
||||
$builder->orderBy('receiving_id');
|
||||
$builder->orderBy('MAX(receiving_id)');
|
||||
|
||||
$data = [];
|
||||
$data['summary'] = $builder->get()->getResultArray();
|
||||
|
||||
Reference in new issue
Block a user