isotope / core

Core repository of Isotope eCommerce, an eCommerce extension for Contao Open Source CMS
https://isotopeecommerce.org
135 stars 107 forks source link

Extend isotope dashboard / overview page #2482

Closed error08 closed 10 months ago

error08 commented 1 year ago

Adds two new lines:

In addition, the total is now formatted with the currency of the associated configuration.

image
error08 commented 1 year ago

One problem: the queries check only for order_status>0 and do not consider a specific state e.g. completed. So it sums canceled orders, too. Can I use the field 'orderstatus_new' from config to filter the orders for ther summary? Or should I add a new one in the shop config?

aschempp commented 1 year ago

but that was always the case, right? Maybe we could simply check for the payment date/"is paid" state of the order status? However new and unpaid orders would then likelynot be counted for the current day…

error08 commented 1 year ago

You‘re right we can use date_paid but loss the unpaid orders.

error08 commented 1 year ago

Another problem, according to the summaries, is that the totals are net values (tax_free_total) But also without a discounts. Is that correct? As a user, I would like to see my actual earnings (i.e. minus discount).

aschempp commented 1 year ago

You're not earning what you give discount for, right? Shouldn't the total be that?

error08 commented 1 year ago

But the total is including the tax, isn't it? I think we need the total without tax (tax_free_total) but minus the discount 😄

aschempp commented 1 year ago

Hmm, it depends on whether that chart shows your profits or your revenue/sales… not sure if that's a one-size-fits-all sollution.

error08 commented 1 year ago

That's right! But in my option the net value (minus discount) or total with all surcharges and tax. The current mix make no sense for me. The same for the total sales report.

aschempp commented 1 year ago

I'm happy with whatever you think makes most sense. Since I don't run my own shops, I can't really tell whats best (and I haven't used this in many years 😅).

error08 commented 1 year ago

So, I think now are all problems fixed.

aschempp commented 1 year ago

Looks pretty good! I did some minor updates on the pull request. Be aware that german translations are managed on Transifex.com, so I removed the from the PR.

One thing I noticed: can we change the summary to not be three separate collapsible sections, but all in one? Or would you think that does not make sense? Since the table columns are identical, maybe we can merge them into one? With the store config as a line to separate the items? Something like that?

Also, I think the first column title should be Period or Time period and not Sales, wdyt?

error08 commented 1 year ago

In my first attempt was everything in one table, but I think the most shops have only one/ a few configuration(s). So I think that's clearer this way. Perhaps the community comment that and we get more feedback according the configurations, wdyt? Can you fix the first column. I'm now one week in holiday. I can fix that at the earliest in one week.

error08 commented 12 months ago

First column name is fixed. Ready to merge?

aschempp commented 11 months ago

I have updated the table, I hope you're ok with that view?

Bildschirmfoto 2023-11-22 um 08 37 03
error08 commented 11 months ago

Yes, the presentation is good too. But now the currency format is wrong, € sign must be on the right side of the amount.

aschempp commented 10 months ago

that's most likely because I configured my store configuration this way 🙃

aschempp commented 10 months ago

Thank you @error08