Hi Stephen,
It could be interesting to ask Grok3 as suggested by Paul.
https://lists.apache.org/thread/76f1551z1v2z245p9gs2q8ffqp3rjpsf
HTH
Jacques
Le 24/02/2025 à 21:44, S Munene a écrit :
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