Shouldn't this rule create a line item for an order?
This rule executes without an error AND without adding a line item to order 76. What am I missing?
{ "rules_test_create_line_item" : {
"LABEL" : "TEST CREATE LINE ITEM",
"PLUGIN" : "action set",
"REQUIRES" : [ "rules" ],
"ACTION SET" : [
{ "entity_create" : {
"USING" : {
"type" : "commerce_line_item",
"param_order" : "76",
"param_type" : "product",
"param_line_item_label" : "TEST",
"param_quantity" : "1",
"param_commerce_unit_price" : { "value" : { "amount" : 9900, "currency_code" : "USD" } },
"param_commerce_total" : { "value" : { "amount" : 9900, "currency_code" : "USD" } }
},
"PROVIDE" : { "entity_created" : { "test" : "TEST" } }
}
},
{ "entity_save" : { "data" : [ "test" ], "immediate" : 1 } }
]
}
}