Openbravo Issue Tracking System - Retail Modules
View Issue Details
0048361Retail ModulesWeb POSpublic2022-01-07 10:452022-01-12 17:59
javietxe 
jorge-garcia 
normalmajorhave not tried
closedfixed 
5
 
RR22Q2 
No
0048361: "fin_trans_amounts_chk" Error in errors while importing while doing a cashup
When creating a cashup, a check is done to know if a transaction has to be created or not.

If the transaction is 0, some times it still created. In this case, the cashup stays in errors while importing with the error:

new row for relation "fin_finacc_transaction" violates check constraint "fin_trans_amounts_chk"
Configure the credit notes to use in the till.

Do a cashup and close the till.

Open the till.

Create a credit card by the till.

Use the the whole value of the credit card to pay an order.

Do a cashup.

Check that the cashup is in the errors while importing.
Change the amount comparison:
if (amount == BigDecimal.ZERO) {


Substitute it by
if (amount.compareTo(BigDecimal.ZERO) == 0) {
No tags attached.
Issue History
2022-01-07 10:45javietxeNew Issue
2022-01-07 10:45javietxeAssigned To => Retail
2022-01-07 10:45javietxeTriggers an Emergency Pack => No
2022-01-07 10:50hgbotNote Added: 0134149
2022-01-07 10:54javietxeSummaryError comparing bigdecimals => "fin_trans_amounts_chk" Error in errors while importing while doing a cashup
2022-01-07 10:54javietxeDescription Updatedbug_revision_view_page.php?rev_id=23491#r23491
2022-01-07 10:54javietxeSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=23493#r23493
2022-01-07 10:54javietxeProposed Solution updated
2022-01-07 11:18jorge-garciaAssigned ToRetail => jorge-garcia
2022-01-07 11:19jorge-garciaStatusnew => scheduled
2022-01-12 17:59hgbotResolutionopen => fixed
2022-01-12 17:59hgbotStatusscheduled => closed
2022-01-12 17:59hgbotFixed in Version => RR22Q2
2022-01-12 17:59hgbotNote Added: 0134278
2022-01-12 17:59hgbotNote Added: 0134279

Notes
(0134149)
hgbot   
2022-01-07 10:50   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/681 [^]
(0134278)
hgbot   
2022-01-12 17:59   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 8e5ec7ec48ba81cfe934d44d83352c1e5bde8697
Author: Jorge Garcia <jorge.garcia@openbravo.com>
Date: 12-01-2022 16:58:28
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/8e5ec7ec48ba81cfe934d44d83352c1e5bde8697 [^]

Fixed ISSUE-48361: Use compareTo method in safe boxes to avoid
generation 0 value transactions

---
M src/org/openbravo/retail/posterminal/ProcessCashClose.java
---
(0134279)
hgbot   
2022-01-12 17:59   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/681 [^]