Openbravo Issue Tracking System - Retail Modules
View Issue Details
0049506Retail ModulesGift cards and gift voucherspublic2022-06-07 23:392022-06-21 08:25
axelmercado 
ranjith_qualiantech_com 
highmajoralways
closedduplicate 
5
RR21Q3.7 
RR22Q1 
marvintm
No
0049506: EWI when making a credit note with a gift card
In the pos terminal, when making a credit note with a gift card, an EWI is generated with the following stacktrace:

java.lang.NullPointerException
    at java.base/java.math.BigDecimal.<init>(BigDecimal.java:834)
    at org.openbravo.retail.giftcards.hooks.OrderLoaderHookGiftCard.exec(OrderLoaderHookGiftCard.java:125)
    at org.openbravo.retail.giftcards.hooks.OrderLoaderHookGiftCard$Proxy$_$$_WeldClientProxy.exec(Unknown Source)
    at org.openbravo.retail.posterminal.OrderLoader.executeHooks(OrderLoader.java:721)
    at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:596)
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.saveRecord(DataSynchronizationProcess.java:201)
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:156)
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:88)
    at org.openbravo.mobile.core.process.MobileImportEntryProcessorRunnable.processEntry(MobileImportEntryProcessorRunnable.java:54)
    at org.openbravo.retail.posterminal.importprocess.OrderImportEntryProcessor$OrderLoaderRunnable.processEntry(OrderImportEntryProcessor.java:64)
    at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.doRunCycle(ImportEntryProcessor.java:391)
    at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.run(ImportEntryProcessor.java:309)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)
I add video with the steps to reproduce the error, the previous steps were not clear. It is reproduced in a pristine with the retail and giftcard modules in the client version:

https://www.awesomescreenshot.com/video/9508157?key=1860f4cf800962f42c78710c324a63f1 [^]
No tags attached.
duplicate of defect 0047648 closed rqueralta Bug de Javascript Gift Cards Web POS 
diff 49506_21Q3_giftcards.diff (2,820) 2022-06-20 11:27
https://issues.openbravo.com/file_download.php?file_id=17186&type=bug
diff 49506_21Q3_posterminal.diff (660) 2022-06-20 11:27
https://issues.openbravo.com/file_download.php?file_id=17187&type=bug
Issue History
2022-06-07 23:39axelmercadoNew Issue
2022-06-07 23:39axelmercadoAssigned To => Retail
2022-06-07 23:39axelmercadoTriggers an Emergency Pack => No
2022-06-07 23:42rmagnoliReproducibilityhave not tried => always
2022-06-08 15:13rqueraltaAssigned ToRetail => rqueralta
2022-06-08 15:13rqueraltaStatusnew => scheduled
2022-06-17 06:59marvintmReview Assigned To => marvintm
2022-06-17 06:59marvintmNote Added: 0138459
2022-06-17 06:59marvintmStatusscheduled => closed
2022-06-17 06:59marvintmResolutionopen => unable to reproduce
2022-06-17 16:05axelmercadoStatusclosed => new
2022-06-17 16:05axelmercadoSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=24317#r24317
2022-06-20 10:11ranjith_qualiantech_comAssigned Torqueralta => ranjith_qualiantech_com
2022-06-20 11:25ranjith_qualiantech_comRelationship addedduplicate of 0047648
2022-06-20 11:27ranjith_qualiantech_comFile Added: 49506_21Q3_giftcards.diff
2022-06-20 11:27ranjith_qualiantech_comFile Added: 49506_21Q3_posterminal.diff
2022-06-21 08:25marvintmStatusnew => closed
2022-06-21 08:25marvintmResolutionunable to reproduce => duplicate
2022-06-21 08:25marvintmFixed in Version => RR22Q1

Notes
(0138459)
marvintm   
2022-06-17 06:59   
This is not reproducible with the specified steps.