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

Not found receiptManager.updateReceipt in FP10

former_member333938
Participant
0 Likes
325

Hello all,

I was using the method "receiptManager.updateReceipt (receipt, true)" to update the receipt on screen, but after updating to FP10 there is no such method, however there are these two:

"updateReceiptTypeCode" and "updateReceiptFromServer".

What would be the correct way to update the receipt?

Accepted Solutions (1)

Accepted Solutions (1)

Klaus_Frick
Active Participant
0 Likes

Hi josehrmatos

I also saw that this is not there anymore. I just use CalculationPosService.recalculateReceipt(receipt). For FP09 this seemed to be not enough but in FP10 until now it worked fine.

Let me know if this also works for you.

former_member333938
Participant
0 Likes

hi kfrick , Do you know how I can get the receipt object on screen in fp10?

before I was using this form, but now it gets null:

CDBSession cdbSession = CDBSessionFactory.instance.createSession();
ReceiptPosService receiptManager = ServiceFactory.INSTANCE.getOrCreateServiceInstance(ReceiptPosService.class, cdbSession);
ReceiptEntity receipt = receiptManager.findOrCreate(UserRegistry.INSTANCE.getCurrentUser(), null, true);

Answers (1)

Answers (1)

Klaus_Frick
Active Participant
0 Likes

Hello josehrmatos

A bit late. I found time and tested this in FP10 PL00 and it worked fine - I get the current receipt.

Best Regards

Klaus