Bug 37340: Restore sorting on 'Details' column in edifactmsgs
This patch restores the sorting options on the 'Details' field in the edifact messages page. We sort by basket_id followed by type behind the scenes, so the resulting order for a Descending sort will group by basket id highest to lowest with Quotes coming before Orders. This is generally what the end user actually wants to see, even though it may be somewhat unintuitive intially as it's not a clear alpha sort for what's displayed in the column in the UI. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Mary Blomley <mary.blomley@uwl.ac.uk> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
66c332a789
commit
e828f5f839
1 changed files with 2 additions and 1 deletions
|
@ -122,9 +122,10 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"data": "basket_id:type",
|
||||
"title": _("Details"),
|
||||
"searchable": false,
|
||||
"orderable": false,
|
||||
"orderable": true,
|
||||
"render": function(data, type, row, meta) {
|
||||
let rendered = '';
|
||||
if ( row.type == 'QUOTE' || row.type == 'ORDERS' ) {
|
||||
|
|
Loading…
Reference in a new issue