pluginsGLPI / order

Order plugin for GLPI
GNU General Public License v3.0
40 stars 45 forks source link

Unable to edit order after status is changed to Validated. #244

Open AHinMaine opened 5 years ago

AHinMaine commented 5 years ago

I can't figure out the appropriate way to edit an Order once it's been placed in Validated status. It appears to be enforced in the code:

https://github.com/pluginsGLPI/order/blob/develop/inc/order.class.php#L162-L169

So, once an order status has been changed to Validated status, how do I change it to "Being delivered" or one of the other remaining statuses?

I'm running glpi 9.4.3 with orders 2.5.1 installed. I'm logged in as admin with Super-Admin profile. I confirmed in the Admin/Profiles/Super-Admin page, under Orders all items are checked. (All items on all tabs are checked for the Super-Admin profile.)

Am I doing something wrong, or am I really just limited to "Draft" or "Waiting for approval" status for my Orders?

enumanc commented 5 years ago

Same issue on my side but either with validated or not the order can not be edited in super-admin or other profiles. Any solution?

AHinMaine commented 5 years ago

Haven't found anything myself. For now, I've taken the easy way out and gone into the dropdown list for Order status and renamed the items. So now they appear as:

Lame... but I didn't want to risk breaking anything by removing those options completely since they also appear in orders plugin settings under the "Order lifecycle" section. The one I named "Approved" is id 1, which I think was "Draft" by default.

yalgva commented 4 years ago

Hello Same issue for me Thanks for your help

vollkommenIrrelevant commented 3 years ago

here to... This needs improvement. Maybe a option to enable/disable the lock-feature via configuration page?