Closed (fixed)
Project:
Commerce Reporting
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Sep 2014 at 08:11 UTC
Updated:
15 Sep 2015 at 04:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mglamanThere's no caching enabled, so all reports are generated when viewed.
Can you provide more specifics?
Comment #2
polmaresma commentedI see the problem now.
I use https://www.drupal.org/project/commerce_billy wich adds an extra order state and the views does not include it on the filters.
If I add this on the views filter (all the views) chould it work?
Thank's for all.
Comment #3
mglamanCorrect! That would fix the whole issue. I'm going to put this to active and change it as a feature request to conditionally support Commerce Billy order states.
Comment #4
parasolx commentedI'm creating this patch and tested on live site. It's work right now. For replacing, kindly to clear your cache after updating. This report support site using Commerce Billy with invoice state.
Comment #5
parasolx commentedFixed error of invalid selection for those didn't enable or installed commerce billy.
Comment #6
jawi commentedTest latest patch commerce_reports-2345319-5.patch on commerce kickstart project. No issues found, does what it should do!
Comment #7
mglamanMarking this under the beta2 release plan #2425267: [META] 4.0 Beta2 Release Plan
Time to get this reviewed and in.
Comment #8
mglamanI'm actually going to postpone this until #2404799: Using order status where order state should be used is in. This makes complete switch over to order state in the report Views.
Also, we have some conflicts with recent update to Tax submodule
See update - statuses for tax are configurable
It also needs some work.
Instead of writing this 5+ or so times, why not a function that retrieves default order statuses?
Or, better yet, use that function to introduce an alter hook so people can easily add statuses.
Comment #9
mglamanComment #10
mglamanThis is no longer postponed. However I wouldn't commit this patch. Needs to be rerolled as a single function returning the order states and invoking a hook to allow other modules to add/remove (via drupal_alter) those states.
Comment #13
mglamanMoving to beta3 sprint - #2481493: [META] 4.0 Beta3 Release Plan
Comment #14
parasolx commentednice one mglaman. it should be incorporate into hook_form_alter.
Comment #15
mglamanHere is a patch which adds a new helper function to get order states, which invokes an alter. This way a user can add the states, or even a patch written for Commerce Billy to add this.
Comment #17
mglamanNot sure how
git diffmade a bad patch.. but it was done in PhpStorm terminal. Here's one from not, for kicks.Comment #19
mglamanSorry for spam all - trying again.
Comment #21
mglamanShould be fixed.
Comment #23
mglamanCommitted!