This topic contains 2 replies, has 2 voices, and was last updated by Frank 3 years, 4 months ago.
I am trying to set up a custom workflow for order processing.
In order to be independent from default order status, I created my own order stage status field via admin-backend entity-manager:
custom fieldname: manufac_status_1stage
– 0% (start)
– 100% (ready)
– pending approval
– not approved
I have 3 steps:
– in progress
And corresponding transitions:
For ‘start_progress’ transition I want to define some form-options for widget, which opens after clicking ‘Start Progress’-button.
– How to define the ‘manufac_status_1stage’-attributes, and -transition-form options?
– Do I have to create a custom OrderProcessingStageStatusSelectType-class??PHP12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455workflows:dergraf_workflow_order_processing:entity: Oro\Bundle\OrderBundle\Entity\Orderentity_attribute: order # order will be accessible by '$order' in actions and conditionsstart_step: opensteps_display_ordered: truesteps:open:order: 10allowed_transitions:- start_progressin_progress:order: 20allowed_transitions:- closeclosed:order: 30allowed_transitions:- reopenattributes:status:type: arrayproperty_path: order.manufacStatus1stage ????po_number:property_path: order.poNumbership_until:property_path: order.shipUntiltask: # temporary attribute to store reopen tasktype: entityoptions:class: Oro\Bundle\TaskBundle\Entity\Tasktransitions:start_progress:step_to: in_progresstransition_definition: start_progress_definitionfrontend_options:icon: 'icon-play'class: 'btn-primary'form_options:attribute_fields:status:form_type: ???options:enum_code: stage_statusrequired: trueplaceholder: falseconstraints:- NotBlank: ~choice_label: name...
Thanks a lot.
The forum ‘OroCommerce’ is closed to new topics and replies.