on ‎2019 Dec 03 10:02 PM
Hi all,
what is the method I can "PluginAt" when a Pay-In/Pay-Out is created in CCO? I need to intercept the event when this document is created to perform some further action.
Regards,
Ricardo.
Request clarification before answering.
Dear ricardo.renteria2,
please check if
@PluginAt(pluginClass=ReceiptPosService.class, method="createPayIn", where=POSITION.BEFORE)and
@PluginAt(pluginClass=ReceiptPosService.class, method="createPayOut", where=POSITION.BEFORE)works for you.
Regards
Robert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi rzieschang
I have tested diferent methods: createCashIn, createCashOut, CreatePayIn, CreatePayOut, CreatePayOutVoucher; none of these is intercepted with PluginAt when a CashIn/CashOut or PayIn/PayOut is created in CCO. 😞
Are there other suggestions?
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ricardo.renteria2 ,
the createCashOrPayInOut Method is a private Method. You cant intercept private methods of cco classes. Did you try the createPayIn and createPayOut Methods?
Regards
Robert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi rzieschang
I see the methods in ReceiptManager class but unfortunately when I PluginAt them nothing happens, I mean, the piece of code I add is not executed.
@PluginAt(pluginClass=IReceiptManager.class, method="createCashOut", where=POSITION.BEFORE)
public void salidacaja(Object proxy, Object[] args, StackTraceElement callStack) throws BreakExecutionException{
System.out.println("PluginAt I in PAY-OUT");
}
@PluginAt(pluginClass=IReceiptManager.class, method="createCashOrPayInOut", where=POSITION.BEFORE)
public void salidacaja2(Object proxy, Object[] args, StackTraceElement callStack) throws BreakExecutionException{
System.out.println("PluginAt II in PAY-OUT");
}
Anyone in the CCO development team can confirm this?
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ricardo.renteria2,
the createPayIn and createPayOut Method should also be available in the ReceiptManager class for retail UI.
Regards
Robert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you rzieschang
both methods seem to be for kiosk mode. Do you know if is there any for retail mode?
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 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.