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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0039618
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2018-11-13 15:482018-12-28 09:00
ReporterngarciaView Statuspublic 
Assigned Torqueralta 
PriorityimmediateResolutionfixedFixed in VersionRR19Q1
StatusclosedFix in branchFixed in SCM revisionc2d85a163d62
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0039618: Cash Up goes to Errors While Importing POS Data if the currency has more than 2 decimals and negative total

DescriptionCash Up goes to Errors While Importing POS Data if the currency has more than 2 decimals and negative total
Steps To ReproduceIn the backend:
   Configure a POS Terminal to be used with OMR (check that precision that will be used in POS is higher than 2)

In the POS:
   Create a return of 0.009
   Do the cash up
   Leave the amount to keep to 0

In the backend:
   Check a new Cash Up record is shown in Errors While Importing POS Data with the following error:
      current transaction is aborted, commands ignored until end of transaction block
   The log shows:
     ERROR org.hibernate.util.JDBCExceptionReporter - Batch entry 0 insert into FIN_Finacc_Transaction (AD_Client_ID, AD_Org_ID, Created, Createdby, Updated, Updatedby, Isactive, C_Currency_ID, Fin_Financial_Account_ID, Line, DateAcct, C_Glitem_ID, Status, Paymentamt, Depositamt, Processed, Processing, Posted, Trxtype, Statementdate, Description, CreatedByAlgorithm, EM_APRM_Modify, EM_Aprm_Processed, EM_Obpos_App_Cashup_ID, Fin_Finacc_Transaction_ID) values (...) was aborted. Call getNextException to see the cause.
40f8540e 2018-11-13 12:22:57,005 [ajp-bio-127.0.0.1-8009-exec-9835] ERROR org.hibernate.util.JDBCExceptionReporter - ERROR: new row for relation "fin_finacc_transaction" violates check constraint "fin_trans_amounts_chk"
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
caused by defect 0035631 closedranjith_qualiantech_com [SERQA 2676] In step count cash in cash ups it is not possible to enter negative amounts 
related to defect 0039861 closedranjith_qualiantech_com Under some circumstances Cash Up goes to Errors While Importing POS Data if the currency has more than 2 decimals 
related to defect 0039868 closedranjith_qualiantech_com Some amounts and prices are rounded to 2 instead of using the currency's precisions 

-  Notes
(0107946)
hgbot (developer)
2018-11-16 12:43

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: c2d85a163d621fa0423e8f4cd4155e5f2a3ffe29
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Thu Nov 15 11:12:15 2018 -0500
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c2d85a163d621fa0423e8f4cd4155e5f2a3ffe29 [^]

Fixed issue 39618: Cash Up goes to Errors While Importing POS Data if the
currency has more than 3 decimals and negative total

- Changed hardcode precision by the standard precision of the currency
- The rounding of the variable "difference" was eliminated

---
M src/org/openbravo/retail/posterminal/CashCloseProcessor.java
M src/org/openbravo/retail/posterminal/UpdateCashup.java
---

- Issue History
Date Modified Username Field Change
2018-11-13 15:48 ngarcia New Issue
2018-11-13 15:48 ngarcia Assigned To => Retail
2018-11-13 15:48 ngarcia Resolution time => 1543878000
2018-11-13 15:48 ngarcia Triggers an Emergency Pack => No
2018-11-13 15:48 ngarcia Relationship added caused by 0035631
2018-11-13 15:49 ngarcia Issue Monitored: networkb
2018-11-13 15:59 rafaroda Issue Monitored: rafaroda
2018-11-14 15:59 rqueralta Assigned To Retail => rqueralta
2018-11-14 15:59 rqueralta Status new => scheduled
2018-11-15 09:26 ngarcia Steps to Reproduce Updated View Revisions
2018-11-15 09:32 ngarcia Steps to Reproduce Updated View Revisions
2018-11-16 12:43 hgbot Checkin
2018-11-16 12:43 hgbot Note Added: 0107946
2018-11-16 12:43 hgbot Status scheduled => resolved
2018-11-16 12:43 hgbot Resolution open => fixed
2018-11-16 12:43 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c2d85a163d621fa0423e8f4cd4155e5f2a3ffe29 [^]
2018-11-16 14:57 marvintm Review Assigned To => marvintm
2018-11-16 14:57 marvintm Status resolved => closed
2018-11-16 14:57 marvintm Fixed in Version => RR19Q1
2018-12-28 09:00 ngarcia Summary Cash Up goes to Errors While Importing POS Data if the currency has more than 3 decimals and negative total => Cash Up goes to Errors While Importing POS Data if the currency has more than 2 decimals and negative total
2018-12-28 09:00 ngarcia Description Updated View Revisions
2018-12-28 09:14 ngarcia Relationship added related to 0039861
2019-01-02 17:11 ngarcia Relationship added related to 0039868


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker