Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Revisions: Issue #51484 Back to Issue ]
Summary 0051484: When the amount of the ticket is more than 1000eur the order go in EWI
Revision 2023-01-27 13:01 by nicola_uva
Steps To Reproduce 1) Enable "Count Per Amount" for Cash "Payment Method" in Channel Touchpoint Type
2) Login on webpos
3) create a ticket more than 1000eur
4) finalize ticket
5) Order go in EWI
Revision 2023-01-27 12:53 by nicola_uva
Steps To Reproduce 1) Login on webpos
2) create a ticket more than 1000eur
3) finalize ticket
4) Order go in EWI
Revision 2023-01-27 12:53 by nicola_uva
Description The problem is due to the fact that on WEBPOS when is made this operation
OB.App.Locale.formatAmount(1000) the result is "1,000" and in the backoffice is failing(see error below) during the order synchronization


java.lang.NumberFormatException: Character , is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
    at java.base/java.math.BigDecimal.<init>(BigDecimal.java:522)
    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:407)
    at org.openbravo.retail.posterminal.UpdateCashup.createPaymentMethodCashUp(UpdateCashup.java:379)
    at org.openbravo.retail.posterminal.UpdateCashup.updateOrCreateCashupInfo(UpdateCashup.java:317)
    at org.openbravo.retail.posterminal.UpdateCashup.getAndUpdateCashUp(UpdateCashup.java:154)
    at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:207)

Revision 2023-01-27 12:50 by nicola_uva
Description The problem is due to the fact that on WEBPOS when we make this operation
OB.App.Locale.formatAmount(1000) the result is "1,000"

When the ticket comes to the backoffice the error below is showed.

java.lang.NumberFormatException: Character , is neither a decimal digit number, decimal point, nor "e" notation exponential mark.
    at java.base/java.math.BigDecimal.<init>(BigDecimal.java:522)
    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:407)
    at org.openbravo.retail.posterminal.UpdateCashup.createPaymentMethodCashUp(UpdateCashup.java:379)
    at org.openbravo.retail.posterminal.UpdateCashup.updateOrCreateCashupInfo(UpdateCashup.java:317)
    at org.openbravo.retail.posterminal.UpdateCashup.getAndUpdateCashUp(UpdateCashup.java:154)
    at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:207)



Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker