Jump to content

sales turnover lost after upgrading to 1.2.5.0


Recommended Posts

Hi,
i was searching the forum but didn't find any answer. I upgraded the shop from 1.1 to 1.2.5 and now it doesn't show the actual turnover. I get the number of registrations and viewed Products, but the turnover and the orders placed is emtpy - how can i get these informations? Do i need to update something in the database or in the modules? Thanks for your help.

Link to comment
Share on other sites

The turnover calculation is made using invoice date (in order to filter a time range). If you haven't activated invoice, then the invoice are not created and the invoice date is 00 00 00 : the calculation can not be done.

I've solved it using the delivery date (instead of invoice date). If you are interested in, i will give you the modification i've done (i'm not at home).

Link to comment
Share on other sites

No problem Huetty !

The file which should be modified is adminstats.php (in /admin/tabs folder).

Find "public static function getSales($dateBetween)" (should be on line 46).
a)replace 'invoice_date' in the $result formula with 'delivery_date'
b)replace 'invoice_date' in the $xtrems formula with 'delivery_date'
c)replace 'invoice_date' in the $products formula with 'delivery_date'

That's all.

Link to comment
Share on other sites

  • 2 weeks later...

@ Michel,

thanks for your help - in the statistics i now can see the right sums - but i don't see them in the BackOffice starting page (it doesn't matter, but if you know a workaround also here please let me know)

Thanks for your help

Huetty

Link to comment
Share on other sites

  • 2 months later...
No problem Huetty !

The file which should be modified is adminstats.php (in /admin/tabs folder).

Find "public static function getSales($dateBetween)" (should be on line 46).
a)replace 'invoice_date' in the $result formula with 'delivery_date'
b)replace 'invoice_date' in the $xtrems formula with 'delivery_date'
c)replace 'invoice_date' in the $products formula with 'delivery_date'

That's all.



Hello
If I wanted to use the ordering date, what would that be ?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...