mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-18 05:18:05 -04:00
Sort on MAX(sale_time) in supplier report (#4055)
Sort on aggregate field reports (#4055)
This commit is contained in:
@@ -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