Posts: 855
Threads: 238
Joined: Nov 2015
Reputation:
96
I discovered this just now: I can't modify sales orders. When I create one, the status will be "created". Then when I try and change the status, it will be "Approved", no matter which status I choose. And when I try to change let's say, the recurring invoice frequency, it will stay empty. Lastly, I tried mass-editing a couple of sales orders, which led to all SO's being the status "approved" and worse: ALL products and services were overwritten with the products and services of the last one.
Posts: 3,565
Threads: 36
Joined: Apr 2014
Reputation:
49
That does sounds very bad.
I just tried to reproduce this in the online demo but couldn't. Is this happening on all your installs? What commit version are you on?
Joe
TSolucio
Posts: 3,565
Threads: 36
Joined: Apr 2014
Reputation:
49
Activate debug log, maybe you are getting some SQL errors.
Do you have mappings or global variables?
Joe
TSolucio
Posts: 3,565
Threads: 36
Joined: Apr 2014
Reputation:
49
Maybe a misbehaving workflow? Deactivate all workflows associated to SO and try again.
Joe
TSolucio
Posts: 855
Threads: 238
Joined: Nov 2015
Reputation:
96
09-20-2016, 06:28 AM
(This post was last modified: 09-20-2016, 06:33 AM by Guido1982.)
Pfew, it seems it was a misbehaving workflow, one of which I forgot I installed.. Sorry for the false alarm.. This is my own install, which I use for my own business. Apart from theme development and some HTML and CSS updates I generally don't install experiments like this here, but it seems this time I did. Please check the github version though, since you accepted my PR for generating invoices from workflows it could be this is the problem. I recently updated my install to the latest github version.
Yes, I think my fear is true: the defect workflow has also created some rogue invoices. Again, please check the master repo on github, it may be on there as well!
Posts: 3,565
Threads: 36
Joined: Apr 2014
Reputation:
49
Which workflow is this? Can you upload a screen shot so I can reproduce and fix?
Joe
TSolucio
Posts: 855
Threads: 238
Joined: Nov 2015
Reputation:
96
Just checked the DB for the workflow task name, but this is "CBXCreateInvFromSO", one I probably never included in the branch. I guess I tested this in my install (something I normally don't do) and forgot about. I think the chances of it being in the Github repo is VERY small.