Help with inventory cost reports according to group code

Kindly help me to include list of groups code orderly
:point_down::point_down::point_down::point_down::point_down:
Inventory Cost Report:1, 1, 1, 1, 1]

Item|Unit|Inv|Cost|Total
{REPORT CONSUMPTION DETAILS:C.Name,C.Unit,C.Inventory, C.Cost, ([C.Inventory][C.Cost])}
Totals||{REPORT CONSUMPTION DETAILS:C.Inventory.sum, C.Cost.sum, [([C.Cost]
[C.Inventory]).sum]}

[Inventory Prediction Report:2, 1, 1, 1]
>>Name|Unit|Used|Prediction
@{REPORT CONSUMPTION DETAILS:I.GroupCode::{0}:,}
>>$1
{REPORT CONSUMPTION DETAILS:C.Name,C.Unit,C.Consumption,FN([C.Prediction],'0.0')].desc:I.GroupCode="$1"}
3 Likes