@@ -67,42 +67,19 @@ public static function dataTableLayout()
6767 'searchable ' => true ,
6868 'sortable ' => true ,
6969 'title ' => trans ('general.model_no ' ),
70- ], [
71- 'field ' => 'item_no ' ,
72- 'searchable ' => true ,
73- 'sortable ' => true ,
74- 'title ' => trans ('admin/consumables/general.item_no ' ),
75- ], [
76- 'field ' => 'qty ' ,
77- 'searchable ' => false ,
78- 'sortable ' => true ,
79- 'title ' => trans ('admin/components/general.total ' ),
80- 'visible ' => true ,
81- 'class ' => 'text-right text-padding-number-cell ' ,
82- 'footerFormatter ' => 'qtySumFormatter ' ,
83- ], [
84- 'field ' => 'remaining ' ,
85- 'searchable ' => false ,
86- 'sortable ' => true ,
87- 'title ' => trans ('admin/components/general.remaining ' ),
88- 'visible ' => true ,
89- 'class ' => 'text-right text-padding-number-cell ' ,
90- 'footerFormatter ' => 'qtySumFormatter ' ,
91- ], [
92- 'field ' => 'min_amt ' ,
93- 'searchable ' => false ,
94- 'sortable ' => true ,
95- 'title ' => trans ('general.min_amt ' ),
96- 'visible ' => true ,
97- 'formatter ' => 'minAmtFormatter ' ,
98- 'class ' => 'text-right text-padding-number-cell ' ,
9970 ], [
10071 'field ' => 'location ' ,
10172 'searchable ' => true ,
10273 'sortable ' => true ,
10374 'title ' => trans ('general.location ' ),
10475 'formatter ' => 'locationsLinkObjFormatter ' ,
10576 ], [
77+ 'field ' => 'item_no ' ,
78+ 'searchable ' => true ,
79+ 'sortable ' => true ,
80+ 'title ' => trans ('admin/consumables/general.item_no ' ),
81+ ], [
82+
10683 'field ' => 'manufacturer ' ,
10784 'searchable ' => true ,
10885 'sortable ' => true ,
@@ -122,12 +99,42 @@ public static function dataTableLayout()
12299 'title ' => trans ('general.purchase_date ' ),
123100 'visible ' => true ,
124101 'formatter ' => 'dateDisplayFormatter ' ,
102+ ], [
103+ 'field ' => 'min_amt ' ,
104+ 'searchable ' => false ,
105+ 'sortable ' => true ,
106+ 'title ' => trans ('general.min_amt ' ),
107+ 'visible ' => true ,
108+ 'formatter ' => 'minAmtFormatter ' ,
109+ 'class ' => 'text-right text-padding-number-cell ' ,
110+ ], [
111+ 'field ' => 'qty ' ,
112+ 'searchable ' => false ,
113+ 'sortable ' => true ,
114+ 'title ' => trans ('admin/components/general.total ' ),
115+ 'visible ' => true ,
116+ 'class ' => 'text-right text-padding-number-cell ' ,
117+ 'footerFormatter ' => 'qtySumFormatter ' ,
118+ ], [
119+ 'field ' => 'remaining ' ,
120+ 'searchable ' => false ,
121+ 'sortable ' => true ,
122+ 'title ' => trans ('admin/components/general.remaining ' ),
123+ 'visible ' => true ,
124+ 'class ' => 'text-right text-padding-number-cell ' ,
125+ 'footerFormatter ' => 'qtySumFormatter ' ,
125126 ], [
126127 'field ' => 'purchase_cost ' ,
127128 'searchable ' => true ,
128129 'sortable ' => true ,
129130 'title ' => trans ('general.unit_cost ' ),
130131 'visible ' => true ,
132+ 'class ' => 'text-right text-padding-number-cell ' ,
133+ ], [
134+ 'field ' => 'total_cost ' ,
135+ 'searchable ' => true ,
136+ 'sortable ' => true ,
137+ 'title ' => trans ('general.total_cost ' ),
131138 'footerFormatter ' => 'sumFormatterQuantity ' ,
132139 'class ' => 'text-right text-padding-number-cell ' ,
133140 ], [
0 commit comments