DoliCloud/SellYourSaas

Move invoicerec quantity update from sellyoursaasRemoteAction to trigger (LINECONTRACT_UPDATE) ?

rycks opened this issue · 1 comments

rycks commented

Hello,
i'm working on "my" upgrade of sellyoursaas and i think it could be a good idea to move code (invoicerec line update) from sellyoursaasRemoteAction to LINECONTRACT_UPDATE trigger.

Then the code will me more easy to understand and to maintain, what do you think about that ?

eldy commented

LINECONTRACT_UPDATE is called when a contract line is updated. But we must have a process that update the line to trigger the trigger. And this is done by sellyoursaasRemoteAction. So i am not sure to understand.
Is your need for a particular remoteaction ?