Author:
Fluent Commerce
Changed on:
8 July 2024
Ensure that all of the order workflows contain the
`cancelOrder`
1{
2 "name": "OrderCancel",
3 "description": "Order is Cancelled from admin console",
4 "type": "ORDER",
5 "subtype": "CC",
6 "eventType": "NORMAL",
7 "rules": [
8 {
9 "name": "{{accountId}}.core.SetState",
10 "props": {
11 "status": "CANCELLED"
12 }
13 },
14 {
15 "name": "{{accountId}}.order.SendEventForAllFulfilments",
16 "props": {
17 "eventName": "CancelFulfilment"
18 }
19 }
20 ],
21 "triggers": [
22 {
23 "status": "CREATED"
24 },
25 {
26 "status": "RECEIVED"
27 },
28 {
29 "status": "BOOKED"
30 }
31 ],
32 "userActions": [
33 {
34 "context": [
35 {
36 "label": "CANCEL ORDER",
37 "type": "PRIMARY",
38 "modules": [
39 "adminconsole"
40 ],
41 "confirm": true
42 }
43 ],
44 "attributes": []
45 }
46 ]
47},
Language: json
Name: cancel ruleset in order workflow
Description:
[Warning: empty required content area]1{
2 "component": "fc.list",
3 "props": {
4 "defaultPageSize": 100,
5 "dataSource": "orders",
6 "actions": [
7 {
8 "type": "UserAction",
9 "name": "OrderCancel"
10 }
11 ],
12 "responsiveness": "card",
13 "filter": {
14 "enabled": true,
15 "exclude": [
16 "workflowRef",
17 "workflowVersion",
18 "totalPrice",
19 "totalTaxPrice"
20 ]
21 }
22}
Language: json
Name: Update the mystique manifest
Description:
[Warning: empty required content area]As you can see in the ruleset trigger section, Only
`CREATED`
`RECEIVED`
`BOOKED`
`orderCancel`
Here is an example where the first entry in the list is not in
`CREATED`
`RECEIVED`
`BOOKED`
The user can filter the list by using the status:
Select 2 entries and click the CANCEL ORDER button; a confirmation will be displayed. By clicking CONFIRM, both orders will move to
`CANCELLED`
Copyright © 2024 Fluent Retail Pty Ltd (trading as Fluent Commerce). All rights reserved. No materials on this docs.fluentcommerce.com site may be used in any way and/or for any purpose without prior written authorisation from Fluent Commerce. Current customers and partners shall use these materials strictly in accordance with the terms and conditions of their written agreements with Fluent Commerce or its affiliates.