We are a custom tender attempting to edit the end of the receipts with information about the discount we provided. We are following this example, which has been very helpful. However, using PrintJob only allows for our update to appear if we print the receipt ourselves every time. How would we update the receipt that only prints when the cashier selects "Print Customer Receipt" after the transaction?
--
I am now following this example exactly and cannot get it working with my custom tender orders even though the order I am trying to print has been paid for. I had this same issue with the first example that I was following (I used many different implementations of PrintJob in attempts to fix it - none of them worked for me).
I keep getting this NPE:
06-02 10:53:16.609 W/Seiko ( 3083): java.lang.NullPointerException
06-02 10:53:16.609 W/Seiko ( 3083): at com.clover.common2.printer.SignatureHelperV3.getPaymentFromOrder(SignatureHelperV3.java:280)
06-02 10:53:16.609 W/Seiko ( 3083): at com.clover.common2.printer.SignatureHelperV3.<init>(SignatureHelperV3.java:67)
06-02 10:53:16.609 W/Seiko ( 3083): at com.clover.engine.services.PrinterIntentService.onHandleIntent(PrinterIntentService.java:302)
06-02 10:53:16.609 W/Seiko ( 3083): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
06-02 10:53:16.609 W/Seiko ( 3083): at android.os.Handler.dispatchMessage(Handler.java:99)
06-02 10:53:16.609 W/Seiko ( 3083): at android.os.Looper.loop(Looper.java:137)
06-02 10:53:16.609 W/Seiko ( 3083): at android.os.HandlerThread.run(HandlerThread.java:60)
Any idea why?