Am 26.04.2012 16:41, schrieb Cédric Krier:
Hi,
This is a common request to be able to cancel easily a Purchase or a
Sale.
Absolutly yes! I just created a custom extension for enabling this. I've
not touched the workflow.
After the workflow is done, a button appears "Cancel" - all stock
related stuff is set to cancel.
I propose to activate the cancel button on purchase/sale even in the
state confirmed/processing.
This button will do all the above steps automatically and put the order
in cancel status.
But I have some question about it:
- Should the state be "canceled"
yes
- What to do for shipment not in state waiting or done? (I think we
should just call cancel transition)
if shipment is done, sale or purchase cannot be canceled. Before you can
do the transition.
- What to do for invoice not in state draft, open or paid? (Idem)
if a sale or purchase is paid, there should be no possibility to cancel
sale or purchase. In all other states of the invoice the canceling of
the sale or purchase should be possible.
I could make a codereview with my changes.
Jan
--
[email protected] mailing list