cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CCO return sales item

raveedriaz
Explorer
0 Kudos

Hi All,
On returning the whole receipt I want to remove discount from each salesitem if exist.
I have tried to intercept this function named as "addReturnedSalesItem" on position after and before but the debugger is not getting hit.

@PluginAt(pluginClass=ReceiptPosService.class, method="addReturnedSalesItem", where=POSITION.AFTER)

@PluginAt(pluginClass=ReceiptPosService.class, method="addReturnedSalesItem", where=POSITION.BEFORE)

There was one more function which I was able to intercept on position BEFORE named as "moveReturnedReceiptToCurrentReceipt" but on changing the salesitem object values the change is not reflected on the grid when items are added.

Kindly suggest

Accepted Solutions (1)

Accepted Solutions (1)

bikash_bansal
Advisor
Advisor
0 Kudos

Hi raveedriaz,

We moved the whole return logic to another Class. Please use the ReturnReceiptPosService to find the return related methods. If you want to manipulate sales items while they are moved to the return receipt you can use the method moveSalesItemsByQuantity.

Hope it helps

If your question in answered correctly, kindly select the answer as "Right Answer". This helps others to follow and easily locate answers.

Regards,
Bikash Bansal
Product Owner - SAP Customer Checkout

Answers (2)

Answers (2)

raveedriaz
Explorer
0 Kudos

gunther.sandtner2

raveedriaz
Explorer
0 Kudos

bikash.bansal