on 06-29-2021 12:35 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
gunther.sandtner2
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
bikash.bansal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.