on ‎2021 Mar 16 6:20 AM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 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.