Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0046886Openbravo ERP07. Sales managementpublic2021-05-28 11:142021-06-22 09:29
hector_hernaez 
markmm82 
highmajoralways
closedfixed 
5
 
PR21Q3 
Core
No
0046886: Incorrect quantities in Return to Vendor Shipment
“Return to Vendor Shipment” allows to return more than the pending returned quantity
Create and confirm a “Goods Receipt” for Business Partner “Be Soft Drinker, Inc.” with the Products/Quantities: Cola/100 Unit and Plain Water/500 Liter

Create and confirm a “Return to Vendor” for the previously created “Goods Receipt” and pick the below Products/Quantities: Cola/20 Unit and Plain Water/10 Liter

Create and confirm a “Return to Vendor Shipment” by picking all the quantities that appears in the Pick/Edit Lines (This will exceed the pending quantities in Return to Vendor, the system will show duplicate lines)
No tags attached.
Issue History
2021-05-28 11:14hector_hernaezNew Issue
2021-05-28 11:14hector_hernaezAssigned To => Triage Finance
2021-05-28 11:14hector_hernaezModules => Core
2021-05-28 11:14hector_hernaezResolution time => 1623967200
2021-05-28 11:14hector_hernaezTriggers an Emergency Pack => No
2021-05-31 12:32vmromanosAssigned ToTriage Finance => markmm82
2021-06-09 23:04markmm82Statusnew => acknowledged
2021-06-10 16:06markmm82Statusacknowledged => scheduled
2021-06-21 23:05markmm82Note Added: 0129700
2021-06-22 00:59hgbotNote Added: 0129701
2021-06-22 09:21vmromanosNote Added: 0129706
2021-06-22 09:29hgbotResolutionopen => fixed
2021-06-22 09:29hgbotStatusscheduled => closed
2021-06-22 09:29hgbotFixed in Version => PR21Q3
2021-06-22 09:29hgbotNote Added: 0129707
2021-06-22 09:29hgbotNote Added: 0129708

Notes
(0129700)
markmm82   
2021-06-21 23:05   
Test Plan:
Create and confirm a “Goods Receipt” for Business Partner “Be Soft Drinker, Inc.” with the Products/Quantities: Cola/100 Unit and Plain Water/500 Liter

Create and confirm a “Return to Vendor” for the previously created “Goods Receipt” and pick the below Products/Quantities: Cola/20 Unit and Plain Water/10 Liter

Create and confirm a “Return to Vendor Shipment” by picking all the quantities that appears in the Pick/Edit Lines.
Notice that when the "Select All" checkbox is selected all the pending quantities to be shipped have been distributed in lines and the sum doesn't exceeds the pending quantities.
After click DONE just two lines are created with the selected amount to be shipped.
(0129701)
hgbot   
2021-06-22 00:59   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/404 [^]
(0129706)
vmromanos   
2021-06-22 09:21   
Important: the bug is only reproducible when the "Enable UOM Management" preference is not set
(0129707)
hgbot   
2021-06-22 09:29   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: a2e709accfd1db23af11f54448e33204f66a28a7
Author: Mark <markmm82@gmail.com>
Date: 2021-06-21T17:01:17-03:00
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/a2e709accfd1db23af11f54448e33204f66a28a7 [^]

Fixes BUG-46886: Fix already shipped quantity in RTVS

The already shipped quantity was only be calculated correctly if preference "Enable UOM Management" was configured, in other cases process was not taking into account already shipped quantities.
To fix this, if the preference is not configured any conversion is required so the already shipped qty will be the sum of movement quantities in all the lines.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/return-material/ob-return-material.js
---
(0129708)
hgbot   
2021-06-22 09:29   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/404 [^]