Openbravo Issue Tracking System - Retail Modules
View Issue Details
0046855Retail ModulesCash uppublic2021-05-19 17:102021-05-27 16:30
malsasua 
rqueralta 
normalmajoralways
closedfixed 
5
 
RR21Q1.2RR21Q1.2 
No
0046855: Wrong starting amount in cashup when there is only one payment method
When there is only one payment method defined in the terminal, the starting amount cashup is retrieved from financial account current balance instead of amount to keep of previous cashup
[BO]
. go to touchpoint - VBS-1 - tab: payment method
- deactivate all payment methods except cash
. go to financial account of payment method cash:
- create a new transaction (for example, amount 5) and process:
financial account current balance: 5

[POS]
. do login
. do cashup:
- amount to keep 0
. do cashup
- starting amount: 5
the problem is in this line:
https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/blob/master/web/org.openbravo.retail.posterminal/app/model/business-object/cashup/PaymentMethodUtils.js#L27 [^]
 if lastCashUpPayments.length is 1, then the condition is not satisfied, and the startingCash is not overwritten
No tags attached.
blocks defect 0046738 closed rqueralta Wrong starting amount in cashup when there is only one payment method 
Issue History
2021-05-27 08:29marvintmTypedefect => backport
2021-05-27 08:29marvintmTarget Version => RR21Q1.3
2021-05-27 08:54marvintmTarget VersionRR21Q1.3 => RR21Q1.2
2021-05-27 15:03priyamIssue Monitored: priyam
2021-05-27 16:30hgbotResolutionopen => fixed
2021-05-27 16:30hgbotStatusscheduled => closed
2021-05-27 16:30hgbotFixed in Version => RR21Q1.2
2021-05-27 16:30hgbotNote Added: 0128729

Notes
(0128729)
hgbot   
2021-05-27 16:30   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 7920fb55deb7be11e63dd154ab203f9859e25aeb
Author: Rafael Queralta <rafaelcuba81@gmail.com>
Date: 2021-05-27T10:05:26-04:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/7920fb55deb7be11e63dd154ab203f9859e25aeb [^]

Fixed BUG-46855: Taking into account lastCashUpPayments length equals 1

---
M web/org.openbravo.retail.posterminal/app/model/business-object/cashup/PaymentMethodUtils.js
---