Hi,
Which version of HikaShop were you using before ?
We didn't change anything to the dashboard since April 2021, so if you had a more recent version of HikaShop, updating HikaShop shouldn't change anything, which might point to another issue.
Also, looking at the code on our end, it still looks correct:
$ret['sales_sum'] = array(
'slot' => 0,
'order' => 1,
'published' => 1,
'class' => 'hkc-lg-3 hkc-sm-6',
'label' => JText::_('HIKA_STATS_ORDERS_THIS_MONTH'),
'format' => 'price',
'type' => 'tile',
'tile' => array(
'icon' => array('type' => 'fa', 'value' => 'credit-card'),
'view' => hikashop_completeLink('order&task=listing'),
),
'vars' => array(
'DATE_RANGE' => 'past.month',
),
'query' => array(
'get' => 'list',
'select' => array(
'SUM(hk_order.order_full_price) as value',
'hk_order.order_currency_id as currency'
),
'tables' => hikashop_table('order') . ' AS hk_order ',
'filters' => array(
'order_type' => 'hk_order.order_type = '.$order_type.'',
'order_status' => ('hk_order.order_status IN ('.implode(',', $valid_order_statuses).')'),
'order_created' => ($created_status ?
'hk_order.order_created >= {DATE_START} AND ({DATE_END} <= 0 OR hk_order.order_created <= {DATE_END})':
'hk_order.order_invoice_created >= {DATE_START} AND ({DATE_END} <= 0 OR hk_order.order_invoice_created <= {DATE_END})'),
),
'group' => 'hk_order.order_currency_id'
)
);
This is from the file administrator/components/com_hikashop/classes/statistics.php
As you can see, the DATE_RANGE is set to past.month
So I don't see how it could be a whole year. What is could be is that it doesn't take into account the correct order statuses because of how the statuses are configured under the "Statistics" column of the System>Order statuses menu. Could you check these ?