The sales return processing has an eca defined for service updateReturnHeader
for RETURN_COMPLETED status
The last part of that eca is createInvoiceFromReturn
<eca service="updateReturnHeader" event="commit">
<condition field-name="statusId" operator="equals"
value="RETURN_COMPLETED"/>
<condition field-name="oldStatusId" operator="not-equals"
value="RETURN_COMPLETED"/>
<action service="sendReturnCompleteNotification" mode="async"
persist="true"/>
<action service="processSubscriptionReturn" mode="sync"/>
<action service="createReturnStatus" mode="sync"/>
<action service="createInvoiceFromReturn" mode="sync"/>
</eca>
Why isn't there an equivalent eca (or maybe a better question is what is the
equivalent) for SUP_RETURN_COMPLETED (i believe it is the purchase return
equivalent of RETURN_COMPLETED )?
My objective is to trigger debit note generation (Purchase Return Invoice)
when status changes to SUP_RETURN_COMPLETED
Kindly help
Regards
Stephen