Skip to content

Commit

Permalink
#163 order list display the order curreny and grand total
Browse files Browse the repository at this point in the history
  • Loading branch information
xxl4 committed Apr 12, 2024
1 parent cfbb5a9 commit c6f4402
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public function index()
array( 'db' => '`o`.`customer_email`', 'dt' => 'customer_email', 'field'=>'customer_email' ),
array( 'db' => '`o`.`customer_first_name`', 'dt' => 'customer_first_name', 'field'=>'customer_first_name' ),
array( 'db' => '`o`.`customer_last_name`', 'dt' => 'customer_last_name', 'field'=>'customer_last_name' ),
array( 'db' => '`o`.`order_currency_code`', 'dt' => 'order_currency_code', 'field'=>'order_currency_code' ),
array( 'db' => '`o`.`grand_total`', 'dt' => 'grand_total', 'field'=>'grand_total' ),
array( 'db' => '`o`.`base_grand_total`', 'dt' => 'base_grand_total', 'field'=>'base_grand_total', 'formatter' => function($d, $row) {
return core()->currency($d);
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
<th>Increment ID</th>
<th>Status</th>
<th>Client</th>
<th>order_currency_code</th>
<th>grand_total</th>
<th>base_grand_total</th>
<th>Transaction Id</th>
<th>Payment Method</th>
Expand Down Expand Up @@ -97,6 +99,11 @@
render: function(data, type, row, meta) {
return "<p>" + data + "</p>" + row['customer_first_name'] + ' ' + row['customer_last_name'];
}
},{
data: 'order_currency_code'
}
,{
data: 'grand_total'
},
{
data: 'base_grand_total'
Expand Down

0 comments on commit c6f4402

Please sign in to comment.