Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0058124 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [POS2] POS | major | always | 2025-02-27 10:32 | 2025-03-11 12:59 | |||
Reporter | malsasua | View Status | public | |||||
Assigned To | cberner | |||||||
Priority | high | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | 25Q1.1 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | approved | |||||||
Review Assigned To | ||||||||
OBNetwork customer | Gold | |||||||
Support ticket | 122789 | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0058124: updating to 24Q4, the invariants stock option is disabled | |||||||
Description | Updating from 24Q2 to 24Q4, the invariants stock option is disabled in some products (see attachment1). After update, the following query should not return results: select count(1) from m_product where row_characteristic <> em_obdest_rcharacteristic or column_characteristic <> em_obdest_ccharacteristic or characteristicdimensionenabled <> em_obdest_enabled During the update, the modulescript MigrateDetailedStockColumnsToCharacteristicDimensions was executed | |||||||
Steps To Reproduce | in 24Q2 . login in POS2 . add one line . click in the line -> Product Card -> Other Stock -> 3 points: the Product Variant Stock option is enabled update to 24Q4 . login in POS2 . add one line . click in the line -> Product Card -> Other Stock -> 3 points: the Product Variant Stock option is disabled | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0176632) hgbot (developer) 2025-03-10 18:18 |
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2.detailedstock/-/merge_requests/17 [^] |
(0176662) hgbot (developer) 2025-03-11 12:59 |
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2.detailedstock/-/merge_requests/17 [^] |
(0176663) hgbot (developer) 2025-03-11 12:59 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2.detailedstock [^] Changeset: 9e96af5012408f1896870f5369c08ac394555fa3 Author: Cristian Berner <cristian.berner@openbravo.com> Date: 10-03-2025 18:17:48 URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2.detailedstock/-/commit/9e96af5012408f1896870f5369c08ac394555fa3 [^] Fixes ISSUE-58124: updating to 24Q4, the invariants stock option is disabled The modulescript was failing to update from 24Q2 to 24Q4 in several cases, it seems the problem comes from the column check of characteristicdimensionenabled, when it is null, the where clause returns false incorrectly. characteristicdimensionenabled <> em_obdest_enabled -> returns false when the former is NULL NULL <> 'N'/'Y' -> Returns false --- M build/classes/org/openbravo/pos2/detailedstock/modulescript/MigrateDetailedStockColumnsToCharacteristicDimensions.class M src-util/modulescript/src/org/openbravo/pos2/detailedstock/modulescript/MigrateDetailedStockColumnsToCharacteristicDimensions.java --- |
![]() |
|||
Date Modified | Username | Field | Change |
2025-03-03 12:34 | cberner | Type | defect => backport |
2025-03-03 12:34 | cberner | Target Version | => 25Q1.1 |
2025-03-10 18:18 | hgbot | Merge Request Status | => open |
2025-03-10 18:18 | hgbot | Note Added: 0176632 | |
2025-03-11 11:38 | hgbot | Merge Request Status | open => approved |
2025-03-11 12:59 | hgbot | Note Added: 0176662 | |
2025-03-11 12:59 | hgbot | Resolution | open => fixed |
2025-03-11 12:59 | hgbot | Status | scheduled => closed |
2025-03-11 12:59 | hgbot | Note Added: 0176663 |
Copyright © 2000 - 2009 MantisBT Group |