New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NEW: add constant ORDER_ALLOW_DRAFT_CANCEL #18327
NEW: add constant ORDER_ALLOW_DRAFT_CANCEL #18327
Conversation
By definition a draft is an object that is not yet finished to be edited/created. It can always be deleted because it does not exists yet. |
I will ask the company that made me do this long time ago |
Hello @eldy ; here is the answer (in french) of my customer. To a better understanding, he use Tiaris's ecommerce module to get orders from his Prestashop ;-)
|
So if the order was already paid, it means the order has no more the status "Draft" but the status "Validated" (If the order has been set into an ecommerce platform, the order exists in real life, so the order must have status "validated" and even "ordered" into Dolibarr. |
in this use case, eshop orders are sometimes converted into drafts in Dolibarr if they are missing informations or something else that need human validation. |
I'm closing this |
Why closing this ? |
@dpriskorn i mean : it's an hidden optional feature that can be useful in the case described by my customer, and surely for others dolibarr users, so why dont you want to integrate it in the core ? if you do so, every dolibarr instance needing this feature will need to have it as specific and to be checked at every dolibarr version change ! |
If I understood Eldy correct it does not make sense to cancel a draft in the current workflow of an order. You delete it instead. |
↑ Which eshop are you talking about here? |
Sometimes you have e-commerce websites linked with Dolibarr... |
You just should not close PRs. It is @eldy and other Yodas job. |
For us we have Magento 2 synching draft orders and sometimes payment doesn't reach us, so instead of keeping a draft or validated and erase/cancel order (that makes statistics false), we could need it too |
Oh, sorry for that. I'll refrain from doing that going forward. |
i will resolve conflicts next week i think |
@eldy conflicts fixed but Travis also complaining |
I was reading again, |
There is no reason to cancel a draft. A draft is something that does not exist yet. A shortcut may exists to make it in one step "Validate + Cancel" but this will just create more confusion in feature to just save 1 click. |
See comment of June 12, 2022 for closing reason. |
allow to cancel a draft order