Openbravo Issue Tracking System - POS2
View Issue Details
0058280POS2POSpublic2025-03-18 18:162025-03-25 13:56
fofarril 
fofarril 
normalmajorhave not tried
closedfixed 
5
 
25Q1.1 
approved
No
No
0058280: Error when making a verified return of a product at price = 0€
When doing a verified return of a product at price = 0€, the following error message appear 'Cannot convert undefined or null to object'.
In backoffice
-In 'Vall Blanca Store' organization the property "Rules for Returns" needs to be set to "One Original Order in one single return" and the property "Rules for Sales and Return lines" needs to be set to "Allow to mix lines only if the total amount is 0" or "Not allow to mix lines".
-In Channel Touchpoint -> Payment Type -> Payment Method set property 'Allowed PMs for Refund' different of 'All' and set some items of 'PM for Refund' tab.
-Configure a product with price equal 0€.

POS2
-In POS, make a sale of a product with price = 0€
-Go to Orders and make a verified return of the product with price = 0€


Current behavior : The following error message appears and it is not possible to make the return

Expected results : the return should be possible even price of product = 0€
No tags attached.
blocks defect 0058279 closed fofarril Error when making a verified return of a product at price = 0€ 
Issue History
2025-03-18 18:19fofarrilTypedefect => backport
2025-03-18 18:19fofarrilTarget Version => 25Q1.1
2025-03-19 14:40hgbotMerge Request Status => open
2025-03-19 14:40hgbotNote Added: 0176989
2025-03-19 14:41hgbotNote Added: 0176990
2025-03-19 14:45hgbotNote Added: 0176991
2025-03-19 14:47hgbotNote Added: 0176992
2025-03-21 13:07hgbotMerge Request Statusopen => approved
2025-03-25 13:56hgbotNote Added: 0177233
2025-03-25 13:56hgbotResolutionopen => fixed
2025-03-25 13:56hgbotStatusscheduled => closed
2025-03-25 13:56hgbotFixed in Version => RR25Q1.1
2025-03-25 13:56hgbotNote Added: 0177234
2025-03-25 13:56hgbotNote Added: 0177235
2025-03-25 13:56hgbotNote Added: 0177236

Notes
(0176989)
hgbot   
2025-03-19 14:40   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1980 [^]
(0176990)
hgbot   
2025-03-19 14:41   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf/-/merge_requests/75 [^]
(0176991)
hgbot   
2025-03-19 14:45   
Merge request closed: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf/-/merge_requests/75 [^]
(0176992)
hgbot   
2025-03-19 14:47   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf/-/merge_requests/76 [^]
(0177233)
hgbot   
2025-03-25 13:56   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1980 [^]
(0177234)
hgbot   
2025-03-25 13:56   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: c4fc48d13749d658f87a33c73e8582eec28ff3fb
Author: Francisco Javier Deler O'Farril <francisco.ofarril@doceleguas.com>
Date: 25-03-2025 13:56:02
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/c4fc48d13749d658f87a33c73e8582eec28ff3fb [^]

Fixes ISSUE-58280: Error when making a verified return of a product at price = 0€

---
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/AddPaymentUtils.js
---
(0177235)
hgbot   
2025-03-25 13:56   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf [^]
Changeset: e71bc6ce5750d74cf04ea0f156ff3d5a2d059acf
Author: Francisco Javier Deler O'Farril <francisco.ofarril@doceleguas.com>
Date: 25-03-2025 13:56:08
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf/-/commit/e71bc6ce5750d74cf04ea0f156ff3d5a2d059acf [^]

Fixes ISSUE-58280: Error when making a verified return of a product at price = 0€

---
M web-jspack/org.openbravo.retail.discounts.coupons.otf/src/model/global/actions/utils/Validations.js
---
(0177236)
hgbot   
2025-03-25 13:56   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf/-/merge_requests/76 [^]