* workflow: use setErrorsFromObject when suitable
* workflow: shipping: use early return in for loop
* workflow: shipping: combine to previous early return
* workflow: shipping: reindent after last changes
No functional changes.
* workflow: reception: use early return when suitable
* workflow: reception: use early return
* workflow: reception: reindent after last changes
No functional changes.
* workflow: ticket: use early return
* workflow: ticket: combine condition through an early return
* workflow: ticket: reindent after last changes
No functional changes.
* workflow: propal: remove else condition after terminal if
* Update interface_20_modWorkflow_WorkflowManager.class.php
* Update interface_20_modWorkflow_WorkflowManager.class.php
* Update interface_20_modWorkflow_WorkflowManager.class.php
* Update interface_20_modWorkflow_WorkflowManager.class.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* QUAL use switch case instead of if elseif statements for actions
* Deleted unnecessary action comments
* Added default case
* Added contributor details
---------
Co-authored-by: William Mead <william.mead@manchenumerique.fr>
* FIX: workflow for closing supplier order dn't work (wrong source type)
* FIX: sql error when passing origin and origin id, no need to pass theses values
$object->origin is set to "commandeFournisseur', and it's definitively not working with the setStatus method.
SQL error : Table 'dolibarr.llx_commandeFournisseur' doesn't exist
I suppose origin should never be set to commandeFournisseur, but 'order_supplier' instead. Also, setStatus() $elementType is meant to be a table_element value, not an element value.
* Update interface_20_modWorkflow_WorkflowManager.class.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
* FIX: workflow for closing supplier order dn't work (wrong source type)
* FIX: sql error when passing origin and origin id, no need to pass theses values
$object->origin is set to "commandeFournisseur', and it's definitively not working with the setStatus method.
SQL error : Table 'dolibarr.llx_commandeFournisseur' doesn't exist
I suppose origin should never be set to commandeFournisseur, but 'order_supplier' instead. Also, setStatus() $elementType is meant to be a table_element value, not an element value.
* Update interface_20_modWorkflow_WorkflowManager.class.php
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>