cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Cancel sales item in receipt event CCO

matteogiacon
Explorer
0 Likes
898

Hi all,

I have to do something after the cancellation of a sales item from the receipt (the pression of the "Cancel item" button).
I know the status changed to "3" but the updateSalesItem method in the ReceiptPosService class is not called in this case, so I can't do my things with a pluginAt in this method.
Someone know the right method and class for pluginAt?

Thank you in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Klaus_Frick
Active Participant

Hello matteogiacon

This should be Class ReturnSalesItemPosService and method voidSalesItem.

Best Regards

Klaus

matteogiacon
Explorer
0 Likes

Hello kfrick,

yes, it worked!

Thank you very much!

AaronMendieta
Participant
0 Likes

Do you know if there is still a (@Pluginat) class and a method that gets triggered when a Sales Item is added to the receipt?

for Old UI I used IReceiptManager class and addSalesItems as method, however, these don't work anymore.

I know it is possible via fronted with JS, however, I do prefer @Pluginat annotations.


Any feedback will be appreciated, regards!

Answers (0)