Openbravo Issue Tracking System - Retail Modules
View Issue Details
0055669Retail ModulesCopy Retail Storepublic2024-05-30 12:392024-06-05 07:20
martinsdan 
sreehari 
normalminoralways
closedfixed 
30Ubuntu 18.04.1 LTS
 
RR24Q2 
approved
OBPS
Packaging and release
2024-03-20
https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore/-/commit/049be8553b7975a7cf5486a4987feceaf914225f [^]
No
0055669: Spread payment for all tills is not working
Spread Payment Method does not work between Touchpoint Types when they are created at * Organization.
When creating a Touchpoint Type Payment Method cloning from one created with org*, it fails with a NPE.

[http-nio-127.0.0.1-8080-exec-6] ERROR org.openbravo.copyprocess.process.CopyEntityProcess - null
java.lang.NullPointerException: null
    at org.openbravo.retail.copystore.process.DefaultPropertiesHandler$TerminalPaymentTypeProperties$TerminalPaymentTypeCurrencyProperty.handleProperty(DefaultPropertiesHandler.java:1057) ~[classes/:?]
    at org.openbravo.copyprocess.process.CopyEntityProcess.processProperty(CopyEntityProcess.java:626) [classes/:?]
    at org.openbravo.copyprocess.process.CopyEntityProcess.cloneObject(CopyEntityProcess.java:220) [classes/:?]
    at org.openbravo.retail.copystore.process.CopyPaymentMethodProcess.createNewTerminalTypePaymentMethod(CopyPaymentMethodProcess.java:262) ~[classes/:?]
Ensure you have a touchpoint associated with a touchpoint type created at * level.

- Create a new payment method in that touchpoint
- Click "Spread payment for selected tills"
- Select a different touchpoint type

It fails without an error message
When trying to copy the payment method to a new Touchpoint Type, a new Touchpoint Type Payment Method needs to be created. As the original one is created at * org, that org does not have a currency, and a currency validation fails.

The process needs to be updated, considering touchpoint types can be created at *.

https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore/-/blob/master/src/org/openbravo/retail/copystore/process/DefaultPropertiesHandler.java?ref_type=heads#L1057 [^]
No tags attached.
blocks defect 0055625 closed sreehari Spread payment for all tills is not working 
Issue History
2024-06-04 12:54sreehariTypedefect => backport
2024-06-04 12:54sreehariTarget Version => RR24Q2
2024-06-04 14:02hgbotNote Added: 0165534
2024-06-05 07:20hgbotResolutionopen => fixed
2024-06-05 07:20hgbotStatusscheduled => closed
2024-06-05 07:20hgbotNote Added: 0165575
2024-06-05 07:20hgbotNote Added: 0165576

Notes
(0165534)
hgbot   
2024-06-04 14:02   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore/-/merge_requests/74 [^]
(0165575)
hgbot   
2024-06-05 07:20   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore [^]
Changeset: 326b3a5c8b2bcde115b1cf02331912f2471a931d
Author: Sreehari Venkataraman <sreehari.venkataraman.ext@openbravo.com>
Date: 04-06-2024 17:30:47
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore/-/commit/326b3a5c8b2bcde115b1cf02331912f2471a931d [^]

Fixes ISSUE-55669: Added null validation, now payment currency is set

---
M src/org/openbravo/retail/copystore/process/DefaultPropertiesHandler.java
---
(0165576)
hgbot   
2024-06-05 07:20   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.copystore/-/merge_requests/74 [^]