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

PluginAt in Pay-In/Pay-Out

RicardoRenteria
Participant
0 Likes
558

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.

Accepted Solutions (0)

Answers (6)

Answers (6)

R_Zieschang
Active Contributor

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

RicardoRenteria
Participant
0 Likes

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.

R_Zieschang
Active Contributor
0 Likes

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

RicardoRenteria
Participant
0 Likes

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.

R_Zieschang
Active Contributor
0 Likes

Hi ricardo.renteria2,

the createPayIn and createPayOut Method should also be available in the ReceiptManager class for retail UI.

Regards

Robert

RicardoRenteria
Participant
0 Likes

Thank you rzieschang

both methods seem to be for kiosk mode. Do you know if is there any for retail mode?

Regards.