Openbravo Issue Tracking System - Retail Modules
View Issue Details
0053547Retail ModulesWeb POSpublic2023-09-25 22:502023-10-30 07:05
sofidossant 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
pi 
RR24Q1 
No
0053547: Error with the "Count per Amount" configuration of the payment methods
If we configure the "Count per Amount" check in a payment method, and when we use the payment method in the webPOS, paying a large amount, the following ewi is generated:

java.lang.NumberFormatException: Character array is missing "e" notation exponential mark.
    at java.base/java.math.BigDecimal.<init>(BigDecimal.java:581)
    at java.base/java.math.BigDecimal.<init>(BigDecimal.java:405)
    at java.base/java.math.BigDecimal.<init>(BigDecimal.java:838)
    at org.openbravo.retail.posterminal.UpdateCashup.refreshCountPerAmountEntries(UpdateCashup.java:343)
    at org.openbravo.retail.posterminal.UpdateCashup.createPaymentMethodCashUp(UpdateCashup.java:315)
    at org.openbravo.retail.posterminal.UpdateCashup.updateOrCreateCashupInfo(UpdateCashup.java:258)
    at org.openbravo.retail.posterminal.UpdateCashup.getAndUpdateCashUp(UpdateCashup.java:138)
    at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:207)
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.saveRecord(DataSynchronizationProcess.java:204)
    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:393)
    at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.run(ImportEntryProcessor.java:310)
    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)
1) Configurate Count per Amount in a payment.
2) Go to the webPOS and do a order with a amount big (changed the price or with quantity, more that the 1 million)
3) check the ewis


Video
https://drive.google.com/file/d/1MnfRahIkwWIbhpO1fpVgGiRpjaTeu6rb/view?usp=sharing [^]
No tags attached.
related to defect 0051484pi closed ranjith_qualiantech_com When the amount of the ticket is more than 1000eur the order go in EWI 
Issue History
2023-09-25 22:50sofidossantNew Issue
2023-09-25 22:50sofidossantAssigned To => Retail
2023-09-25 22:50sofidossantTriggers an Emergency Pack => No
2023-09-25 22:53sofidossantversionRR22Q2 => RR22Q2.3
2023-09-25 22:53sofidossantSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=26891#r26891
2023-09-25 22:59PracticsIssue Monitored: Practics
2023-09-26 07:13ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2023-09-26 13:11sofidossantversionRR22Q2.3 => pi
2023-09-26 13:11sofidossantSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=26899#r26899
2023-09-29 07:44ranjith_qualiantech_comRelationship addedrelated to 0051484
2023-09-29 09:40ranjith_qualiantech_comStatusnew => scheduled
2023-10-03 12:38hgbotNote Added: 0155424
2023-10-23 13:32sofidossantNote Added: 0156170
2023-10-30 07:05hgbotNote Added: 0156460
2023-10-30 07:05hgbotResolutionopen => fixed
2023-10-30 07:05hgbotStatusscheduled => closed
2023-10-30 07:05hgbotFixed in Version => RR24Q1
2023-10-30 07:05hgbotNote Added: 0156461

Notes
(0155424)
hgbot   
2023-10-03 12:38   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1371 [^]
(0156170)
sofidossant   
2023-10-23 13:32   
any news?
(0156460)
hgbot   
2023-10-30 07:05   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1371 [^]
(0156461)
hgbot   
2023-10-30 07:05   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: f92967a4fc05dbac6a9e5feb60b1ed1956337ead
Author: Ranjith S R <ranjith.rangaraju.ext@openbravo.com>
Date: 30-10-2023 06:04:48
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/f92967a4fc05dbac6a9e5feb60b1ed1956337ead [^]

Fixed ISSUE-53547: GroupingSymbol should be removed in CountPerAmount

---
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/AddPaymentUtils.js
---