Openbravo Issue Tracking System - Modules
View Issue Details
0057559ModulesAdvanced Warehouse Operationspublic2025-01-03 05:322025-01-14 08:30
AtulOpenbravo 
AtulOpenbravo 
normalmajorhave not tried
closedfixed 
5
 
 
approved
No
0057559: Incorrect Organization set in Storage Detail
When we have a warehouse operation of a product belonging to the parent organization (for example US), if we make movements corresponding to a child organization (US East Coast or US West Coast, the operation should not change organization, it should continue to belong to the parent organization.
In backoffice, Login with AWO-QAAdmin Role, Organization: US, Warehouse: US East Coast.


1. Create a Purchase Order
  - Organization: US
  - Business Partner: Be Soft Drinker, Inc.
  - Warehouse: US East Coast
  - Product: Ale Beer, Quantity 250
  - Book PO.


2-In AWO Front, Login with AWO-QAAdmin Role, Organization: US, Warehouse: US East Coast.
3. Receive the PO created in Storage Bin: Food002
4. Navigate to Back Office
5. Go to Product : Ale Beer, Stock Tab: Select the ID from record with Storage Bin: Food002.
6. Using PgAdmin Tool, in DB check that AD_Org_ID for this record is of US Org i.e F477B20FCDEB46D897DC5B361B92D95F

7. Navigate to Warehouse Operations, select the line with Product : Ale Beer, Storage Bin: Food002, Quantity: 250.
8. Move it to Storage Bin: Food 003.
9. Process the Task create for above operations.
10. Navigate to Back Office
11. Go to Product : Ale Beer, Stock Tab: Select the ID from record with Storage Bin: Food003.
12. Using PgAdmin Tool, in DB check that AD_Org_ID for this record is of US East Coast Org i.e 3FF21930C89F4A8FAC60E7264BF96568
No tags attached.
related to defect 0057398 closed AtulOpenbravo Incorrect Organization set in Storage Detail 
Issue History
2025-01-03 05:32AtulOpenbravoNew Issue
2025-01-03 05:32AtulOpenbravoAssigned To => Triage Omni WMS
2025-01-03 05:32AtulOpenbravoOBNetwork customer => No
2025-01-03 05:32AtulOpenbravoRelationship addedrelated to 0057398
2025-01-03 05:34AtulOpenbravoDescription Updatedbug_revision_view_page.php?rev_id=28979#r28979
2025-01-03 05:34AtulOpenbravoSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=28981#r28981
2025-01-03 05:39hgbotResolutionopen => fixed
2025-01-03 05:39hgbotStatusnew => resolved
2025-01-03 05:39hgbotNote Added: 0173797
2025-01-03 05:39hgbotNote Added: 0173798
2025-01-03 06:28hgbotMerge Request Status => open
2025-01-03 06:28hgbotNote Added: 0173800
2025-01-03 06:31hgbotNote Added: 0173801
2025-01-03 10:25AtulOpenbravoAssigned ToTriage Omni WMS => AtulOpenbravo
2025-01-03 10:25AtulOpenbravoStatusresolved => new
2025-01-03 10:25AtulOpenbravoResolutionfixed => open
2025-01-03 10:25AtulOpenbravoStatusnew => scheduled
2025-01-14 08:25hgbotMerge Request Statusopen => approved
2025-01-14 08:30hgbotNote Added: 0174104
2025-01-14 08:30hgbotResolutionopen => fixed
2025-01-14 08:30hgbotStatusscheduled => closed
2025-01-14 08:30hgbotNote Added: 0174105
2025-01-14 08:30hgbotNote Added: 0174106

Notes
(0173797)
hgbot   
2025-01-03 05:39   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations [^]
Changeset: 5bb6755524f472de3a5025a3ad46486a169839d5
Author: Atul Gaware <atul.gaware@openbravo.com>
Date: 03-01-2025 10:07:31
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations/-/commit/5bb6755524f472de3a5025a3ad46486a169839d5 [^]

Fixes BUG-0057559: Incorrect Organization set in Storage Detail

**Revert the change to set Organization of Storage bin from
Storage Details in Task Requirement.

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/task/StorageDetailUtils.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/task/TaskRequirement.java
---
(0173798)
hgbot   
2025-01-03 05:39   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations [^]
Changeset: 44724d9ddbccd305eff24c5090f7edb0361691be
Author: Atul Gaware <atul.gaware@openbravo.com>
Date: 03-01-2025 10:08:26
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations/-/commit/44724d9ddbccd305eff24c5090f7edb0361691be [^]

Fixes BUG-0057559: Incorrect Organization set in Storage Detail

**Set Context Organization in Task Requirement if the org is not
writable for current user context when creating task requirement
in Count Physical Inventory ITT Algorithm

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/ittalgorithm/implementation/CountPhysicalInventory_ITTAlgorithm.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/task/TaskRequirement.java
---
(0173800)
hgbot   
2025-01-03 06:28   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations/-/merge_requests/348 [^]
(0173801)
hgbot   
2025-01-03 06:31   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations [^]
Changeset: ebca606bd1627efcdb9ea6593ca01af95c28e870
Author: Atul Gaware <atul.gaware@openbravo.com>
Date: 03-01-2025 10:49:12
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations/-/commit/ebca606bd1627efcdb9ea6593ca01af95c28e870 [^]

Related to BUG-57559: Reverts commits that were added without MR

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/ittalgorithm/implementation/CountPhysicalInventory_ITTAlgorithm.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/task/StorageDetailUtils.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/task/TaskRequirement.java
---
(0174104)
hgbot   
2025-01-14 08:30   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations/-/merge_requests/348 [^]
(0174105)
hgbot   
2025-01-14 08:30   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations [^]
Changeset: 1bfede23513535c8d064c2899e135178e638e443
Author: Atul Gaware <atul.gaware@openbravo.com>
Date: 03-01-2025 10:55:27
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations/-/commit/1bfede23513535c8d064c2899e135178e638e443 [^]

Fixes BUG-0057559: Revert commit

**Revert the change to set Organization of Storage bin from
Storage Details in Task Requirement.

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/task/StorageDetailUtils.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/task/TaskRequirement.java
---
(0174106)
hgbot   
2025-01-14 08:30   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations [^]
Changeset: 2c5555df392a06bd191a016c6ed584f47b39c1ff
Author: Víctor Martínez Romanos <v.martinez@orisha.com>
Date: 10-01-2025 15:54:33
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.warehouse.advancedwarehouseoperations/-/commit/2c5555df392a06bd191a016c6ed584f47b39c1ff [^]

Fixes BUG-0057559: Admin mode false when generating and confirming Counts

The storage detail might belong to an organization without write access.
In this case DAL, exceptionally, must not check the organization to allow
saving the task in the storage detail organization.

This organization is used later on to create the Inventory Count and, when
processing it, to update the storage detail accordingly.

With this changeset we ensure the task and inventory count are properly saved,
and that the storage detail keeps its original organization.

This is how it works the Put-Away like tasks, which are also based on a
storage detail.

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/centralbroker/InventoryCountGenerator.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/mobile/processors/InventoryCountConfirmProcessor.java
---