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

How to Capture Receipt ID on return sales screen - Retail UI SAP CCO

0 Likes
719

Hi,

I am trying to get the receipt id of the scanned receipt on the return sales screen in a plugin, but I am not able to find the receipt ID or key of the receipt that I am searching or scanning, even after I listed the receipt item on the return sales.

My goal is while posting the return receipt, I need to check some validation about the promo item, that for the current date it's valid or not for return on following @PlluginAt annotation.

@PluginAt(pluginClass=IReceiptManager.class, method="finishReceipt", where=POSITION.BEFORE) public void performReceiptReturnValidation(Object proxy, Object[] args, StackTraceElement callStack) throws BreakExecutionException{

Regards,

Usman

Accepted Solutions (0)

Answers (1)

Answers (1)

Klaus_Frick
Active Participant
0 Likes

Hello usman.jamil

Within the receipt Entity you find the salesItems. On a returned salesitem you have the referenceSalesItem where you can find the receipt Entity of the original receipt (e.g: salesitem.getReferenceSalesItem().getReceipt().getId()).

Best Regards
Klaus