Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0058092
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSmajoralways2025-02-27 10:322025-03-07 14:57
ReportermalsasuaView Statuspublic 
Assigned Tocberner 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0058092: updating to 24Q4, the invariants stock option is disabled

DescriptionUpdating 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 Reproducein 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

TagsNo tags attached.
Attached Filespng file icon attachment1.png [^] (31,603 bytes) 2025-02-27 10:32

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 005812425Q1.1 scheduledcberner POS2 updating to 24Q4, the invariants stock option is disabled 
depends on backport 005812524Q4.2 scheduledcberner POS2 updating to 24Q4, the invariants stock option is disabled 
caused by feature request 0055463 closedcberner Openbravo ERP A Back office purchase screen multi-dimensional grid view should be added 
Not all the children of this issue are yet resolved or closed.

-  Notes
(0176366)
cberner (developer)
2025-03-03 14:23

Checking the modulescript, it looks fine. The modulescript in charge of updating the columns row_characteristic, column_characteristic and characteristicdimensionenabled is executed on the proper versions.

It is executed on any version of the module prior to "1.0.242900", so, any version that is afterwards updated to 24Q3 or a newer version will execute the modulescript.

It is not at all clear what happened in this case, that it required to be run manually, it is not reproducible with our sampledatas(upgrading from 24Q2 to 24Q3).
(0176530)
hgbot (developer)
2025-03-06 14:06

Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2.detailedstock/-/merge_requests/15 [^]
(0176560)
hgbot (developer)
2025-03-07 14:57

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: 58b1ed467a56e4dcd757520a1d00688752cf5980
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 06-03-2025 14:04:00
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2.detailedstock/-/commit/58b1ed467a56e4dcd757520a1d00688752cf5980 [^]

Fixes ISSUE-58092: 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
---
(0176561)
hgbot (developer)
2025-03-07 14:57

Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2.detailedstock/-/merge_requests/15 [^]

- Issue History
Date Modified Username Field Change
2025-02-27 10:32 malsasua New Issue
2025-02-27 10:32 malsasua Assigned To => Retail
2025-02-27 10:32 malsasua File Added: attachment1.png
2025-02-27 10:32 malsasua Triggers an Emergency Pack => No
2025-02-27 11:40 guillermogil Assigned To Retail => Triage Omni OMS
2025-02-27 19:07 aferraz Relationship added caused by 0055463
2025-02-27 19:11 aferraz Assigned To Triage Omni OMS => Triage Platform Base
2025-02-28 09:17 cberner Assigned To Triage Platform Base => cberner
2025-03-03 12:34 cberner Status new => scheduled
2025-03-03 14:23 cberner Note Added: 0176366
2025-03-03 14:23 cberner Status scheduled => feedback
2025-03-06 10:10 cberner Status feedback => scheduled
2025-03-06 14:06 hgbot Note Added: 0176530
2025-03-07 14:57 hgbot Resolution open => fixed
2025-03-07 14:57 hgbot Status scheduled => closed
2025-03-07 14:57 hgbot Note Added: 0176560
2025-03-07 14:57 hgbot Note Added: 0176561


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker