This topic contains 2 replies, has 2 voices, and was last updated by Frank 3 years, 4 months ago.
-
Topic
-
Orocommerce 3.1.9
—Hi there,
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:
entity: order
custom fieldname: manufac_status_1stage
type: select
options:
– 0% (start)
– 100% (ready)
– pending approval
– approved
– not approvedI have 3 steps:
– open
– in progress
– closedAnd corresponding transitions:
– open
– start_progress
– closeFor ‘start_progress’ transition I want to define some form-options for widget, which opens after clicking ‘Start Progress’-button.
QUESTIONs:
—-
– How to define the ‘manufac_status_1stage’-attributes, and -transition-form options?
– Do I have to create a custom OrderProcessingStageStatusSelectType-class??12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455workflows: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.
Frank
The forum ‘OroCommerce’ is closed to new topics and replies.