Openbravo Issue Tracking System - POS2
View Issue Details
0052112POS2POSpublic2023-04-13 08:442023-04-26 08:43
andre_montenegro 
andre_montenegro 
highcriticalalways
closedfixed 
5
 
 
Automated tests
2023-04-12
https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/b47572cf704c97be7de2783a6b51ad04601b8ba3. [^]
No
0052112: Closing Till displays an uncaught error when reading "counted"
Regression whenever a close till flow is started and searches for payment methods amounts to count, a red notification is displayed with the following message:
Cannot read properties of undefined (reading 'counted')

If user decides to match payment methods and continue with the close till flow to the next step, a full screen error is displayed with the following message:
Cannot destructure property 'amountToKeep' of 'b.current' as it is undefined.

This is ONLY visible if a payment method (Card, Cash, Voucher, USA Cash) has been previously used to pay a ticket.
-Login POS2 (livebuilds)
-Add avalanche transceiver to the ticket
-Pay the ticket with Cash (for example)
-Unfold lateral option "Till" and click "Close Till"
NOK - Notice the error notification at bottom of the screen

EXTRA: If trying to continue with flow
- Match Expected for payment method (notice anormal grid refresh when clicking "Counted" input field for payment method")
- Click "Next" button
NOK - Full screen error is displayed with the message:
Cannot destructure property 'amountToKeep' of 'b.current' as it is undefined.
No tags attached.
png CashUp_undefined_reading_counted.png (419,559) 2023-04-13 08:44
https://issues.openbravo.com/file_download.php?file_id=18363&type=bug
png CashUp_error_continue_flow.png (39,566) 2023-04-13 08:44
https://issues.openbravo.com/file_download.php?file_id=18364&type=bug
png
Issue History
2023-04-13 08:44andre_montenegroNew Issue
2023-04-13 08:44andre_montenegroAssigned To => Retail
2023-04-13 08:44andre_montenegroFile Added: CashUp_undefined_reading_counted.png
2023-04-13 08:44andre_montenegroRegression level => Automated tests
2023-04-13 08:44andre_montenegroRegression date => 2023-04-12
2023-04-13 08:44andre_montenegroTriggers an Emergency Pack => No
2023-04-13 08:44andre_montenegroFile Added: CashUp_error_continue_flow.png
2023-04-13 08:44andre_montenegroPrioritynormal => high
2023-04-13 08:44andre_montenegroSeveritymajor => critical
2023-04-13 08:44andre_montenegroReproducibilityhave not tried => always
2023-04-26 08:39andre_montenegroRegression introduced by commit => https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/b47572cf704c97be7de2783a6b51ad04601b8ba3. [^]
2023-04-26 08:40andre_montenegroNote Added: 0148889
2023-04-26 08:41andre_montenegroResolutionopen => fixed
2023-04-26 08:41andre_montenegroAssigned ToRetail => andre_montenegro
2023-04-26 08:42andre_montenegroNote Added: 0148890
2023-04-26 08:42andre_montenegroStatusnew => acknowledged
2023-04-26 08:43andre_montenegroStatusacknowledged => scheduled
2023-04-26 08:43andre_montenegroStatusscheduled => resolved
2023-04-26 08:43andre_montenegroNote Added: 0148891
2023-04-26 08:43andre_montenegroStatusresolved => closed
2023-04-26 08:43andre_montenegroNote Deleted: 0148889

Notes
(0148890)
andre_montenegro   
2023-04-26 08:42   
Issue introduces by commit: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/b47572cf704c97be7de2783a6b51ad04601b8ba3 [^]
(0148891)
andre_montenegro   
2023-04-26 08:43   
Introduced commit has been reverted. So this issue is no longer reproducible.