[Skip to main content](#vessel-content)

#   Dashboard orders this month

##

- **[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")**
- [![jouwnaambord.nl's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile") Topic Author
- [ Offline](/forum/user/1188-jouwnaambord-nl)

Less More

- Posts: 515
- Thank you received: 22
-
-

3 years 9 months ago [\#348940](#348940) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  *[Dashboard orders this month](/forum/35-orders-management/905834-dashboard-orders-this-month#348940 "-- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.7 -- PHP version -- : 8.0  Hi,  I just updated to version 4.7.1. In the backend dashboard the &quot;orders this month&quot; is showing the wrong amount, looks like &quot;orders this year&quot;.  Regards, Michel.")* was created by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")*

-- HikaShop version -- : 4.7.1
-- Joomla version -- : 4.2.7
-- PHP version -- : 8.0

Hi,

I just updated to version 4.7.1. In the backend dashboard the "orders this month" is showing the wrong amount, looks like "orders this year".

Regards,
Michel.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTgzNC1kYXNoYm9hcmQtb3JkZXJzLXRoaXMtbW9udGg/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

3 years 9 months ago [\#348947](#348947) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Dashboard orders this month](/forum/35-orders-management/905834-dashboard-orders-this-month#348947 "-- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.7 -- PHP version -- : 8.0  Hi,  I just updated to version 4.7.1. In the backend dashboard the &quot;orders this month&quot; is showing the wrong amount, looks like &quot;orders this year&quot;.  Regards, Michel.")*

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: Code:

$ret['sales_sum'] = array( 'slot' =&gt; 0, 'order' =&gt; 1, 'published' =&gt; 1, 'class' =&gt; 'hkc-lg-3 hkc-sm-6', 'label' =&gt; JText::_('HIKA_STATS_ORDERS_THIS_MONTH'), 'format' =&gt; 'price', 'type' =&gt; 'tile', 'tile' =&gt; array( 'icon' =&gt; array('type' =&gt; 'fa', 'value' =&gt; 'credit-card'), 'view' =&gt; hikashop_completeLink('order&amp;task=listing'), ), 'vars' =&gt; array( 'DATE_RANGE' =&gt; 'past.month', ), 'query' =&gt; array( 'get' =&gt; 'list', 'select' =&gt; array( 'SUM(hk_order.order_full_price) as value', 'hk_order.order_currency_id as currency' ), 'tables' =&gt; hikashop_table('order') . ' AS hk_order ', 'filters' =&gt; array( 'order_type' =&gt; 'hk_order.order_type = '.$order_type.'', 'order_status' =&gt; ('hk_order.order_status IN ('.implode(',', $valid_order_statuses).')'), 'order_created' =&gt; ($created_status ? 'hk_order.order_created &gt;= {DATE_START} AND ({DATE_END} &lt;= 0 OR hk_order.order_created &lt;= {DATE_END})': 'hk_order.order_invoice_created &gt;= {DATE_START} AND ({DATE_END} &lt;= 0 OR hk_order.order_invoice_created &lt;= {DATE_END})'), ), 'group' =&gt; '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&gt;Order statuses menu. Could you check these ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTgzNC1kYXNoYm9hcmQtb3JkZXJzLXRoaXMtbW9udGg/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")**
- [![jouwnaambord.nl's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile") Topic Author
- [ Offline](/forum/user/1188-jouwnaambord-nl)

Less More

- Posts: 515
- Thank you received: 22
-
-

3 years 9 months ago -  3 years 9 months ago [\#348951](#348951) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  Replied by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")* on topic *[Dashboard orders this month](/forum/35-orders-management/905834-dashboard-orders-this-month#348951 "-- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.7 -- PHP version -- : 8.0  Hi,  I just updated to version 4.7.1. In the backend dashboard the &quot;orders this month&quot; is showing the wrong amount, looks like &quot;orders this year&quot;.  Regards, Michel.")*

Hi Nicolas,

Version 4.7.0. Thanks for your reply.

I've changed it again to this.month, the update has overwritten the changed file I think. But the amount displayed is not the amount of the past 3 days in februari 2023.

In the statuses I only have activated the paid or shipped statuses.

The amount for februari should show € 451.85 but the dashboard shows € 1732,94. If I change DATE_RANGE in statistics.php to this.week the amount shown is € 1887,78.

Something is going wrong?

Last edit: 3 years 9 months ago by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTgzNC1kYXNoYm9hcmQtb3JkZXJzLXRoaXMtbW9udGg/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

3 years 9 months ago [\#348955](#348955) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Dashboard orders this month](/forum/35-orders-management/905834-dashboard-orders-this-month#348955 "-- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.7 -- PHP version -- : 8.0  Hi,  I just updated to version 4.7.1. In the backend dashboard the &quot;orders this month&quot; is showing the wrong amount, looks like &quot;orders this year&quot;.  Regards, Michel.")*

Hi,

That's really strange. I don't see how that could be possible.
Could you provide a backend and a FTP access so that we could check the situation ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTgzNC1kYXNoYm9hcmQtb3JkZXJzLXRoaXMtbW9udGg/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")**
- [![jouwnaambord.nl's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile") Topic Author
- [ Offline](/forum/user/1188-jouwnaambord-nl)

Less More

- Posts: 515
- Thank you received: 22
-
-

3 years 9 months ago [\#349032](#349032) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  Replied by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")* on topic *[Dashboard orders this month](/forum/35-orders-management/905834-dashboard-orders-this-month#349032 "-- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.7 -- PHP version -- : 8.0  Hi,  I just updated to version 4.7.1. In the backend dashboard the &quot;orders this month&quot; is showing the wrong amount, looks like &quot;orders this year&quot;.  Regards, Michel.")*

HI,

Yes, I've sended you the credentials through pm.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTgzNC1kYXNoYm9hcmQtb3JkZXJzLXRoaXMtbW9udGg/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

3 years 9 months ago [\#349048](#349048) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Dashboard orders this month](/forum/35-orders-management/905834-dashboard-orders-this-month#349048 "-- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.7 -- PHP version -- : 8.0  Hi,  I just updated to version 4.7.1. In the backend dashboard the &quot;orders this month&quot; is showing the wrong amount, looks like &quot;orders this year&quot;.  Regards, Michel.")*

Hi,

I've created a mass action for you to see the orders taken into account since the beginning of february :
[ i.imgur.com/RkjXMoi.png](https://i.imgur.com/RkjXMoi.png)
As you can see, all the orders there combined give the total amount 2437.47
And that's the exact amount I can see in the dashboard, after changing past.month to this.month in the code with the FTP access provided:
[ i.imgur.com/pZXzz90.png](https://i.imgur.com/pZXzz90.png)
So to me it works just fine.

The problem is probably what you said "The amount for februari should show € 451.85". I suppose you manually looked at the orders in the orders listing. However, the problem is that you're not not looking at the same thing. On the orders listing, the date you see is when the order was created (order_created). The date taken into account by the statistics is the date of the confirmation of the order (order_invoice_created), when the order was paid. As you can see in my screenshot, half of the orders taken into account for the sum were created in January but paid in February. And that's why you get that huge difference between what you expect and the number you calculated by HikaShop.

That's actually the main reason why we chose to use past.month (the last 30 days) instead of this.month. Because merchants would come to us telling us the number was wrong when in fact it wasn't.
With past.month, it's always the last 30 days and thus it's more consistent with what they believe the number should be.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTgzNC1kYXNoYm9hcmQtb3JkZXJzLXRoaXMtbW9udGg/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")**
- [![jouwnaambord.nl's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile") Topic Author
- [ Offline](/forum/user/1188-jouwnaambord-nl)

Less More

- Posts: 515
- Thank you received: 22
-
-

3 years 9 months ago [\#349070](#349070) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  Replied by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")* on topic *[Dashboard orders this month](/forum/35-orders-management/905834-dashboard-orders-this-month#349070 "-- HikaShop version -- : 4.7.1 -- Joomla version -- : 4.2.7 -- PHP version -- : 8.0  Hi,  I just updated to version 4.7.1. In the backend dashboard the &quot;orders this month&quot; is showing the wrong amount, looks like &quot;orders this year&quot;.  Regards, Michel.")*

HI,

Thanks for your explanation, I understand now what's happening.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTgzNC1kYXNoYm9hcmQtb3JkZXJzLXRoaXMtbW9udGg/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.082 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
