Fixed: Booking KPIs data in backoffice order list page

This commit is contained in:
Shreesh Arora
2024-10-01 12:16:22 +05:30
parent 589dd8305f
commit a5bff33017
2 changed files with 5 additions and 4 deletions

View File

@@ -2496,7 +2496,8 @@ class AdminOrdersControllerCore extends AdminController
$helper->icon = 'icon-money';
$helper->color = 'color2';
$helper->title = $this->l('Total Due Amount', null, null, false);
$helper->href = $this->context->link->getAdminLink('AdminOrders').'&submitResetorder=1&due_amount_orders=1';
$minValue = (float)('0.' . str_repeat('0', (Configuration::get('PS_PRICE_DISPLAY_PRECISION') - 1)) . '1');
$helper->href = $this->context->link->getAdminLink('AdminOrders').'&submitFilterorder=1&orderFilter_amount_due%5B0%5D='.$minValue;
$helper->source = $this->context->link->getAdminLink('AdminStats').'&ajax=1&action=getKpi&kpi=total_due_amount';
$helper->tooltip = $this->l('Total due amount of all the orders created.', null, null, false);
$this->kpis[] = $helper;