Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027626Openbravo ERP03. Procurement managementpublic2014-09-17 14:342015-04-17 14:50
VictorVillar 
reinaldoguerra 
urgentmajoralways
closedfixed 
5
pi 
3.0PR15Q1 
Sandrahuguet
Core
No
0027626: The Return to Vendor Shipment Pick and Edit should take into account those products without stock
The Return to Vendor Shipment Pick and Edit should take into account those products without stock
As group Admin role,
 Go to Product window,
   Create a new one
 Go to Goods Receipt window
   Create a new one for the new product
   qty: 10 units
 Complete it.
 Go to Goods Shipment window,
   Create a new one for this product
     qty: 5
 Complete it
 Go to Return To Vendor window,
   Select the Goods Receipt created before
   Returned qty: 10
 Comple it
 Go to Return To Vendor Shipment window
  Select the same Return to Vendor line
  the system populates you: 5 units
 Complete it.
 Create a new one and realise that the line pending to be returned is 5 units, but without storage bin...(there is not enough stock)

Check it, and realise that you can do it, but you will receive an error when you try to process that return to vendor shipment, because there is not storage bin defined.
The Pick and Edit Lines of Return to Vendor Shipment should populate this line without stock, but should be read only, and if you try to select it, a message should appear: not enough stock.
No tags attached.
related to design defect 0022862 new Triage Omni WMS It is not possible to do a return to vendor when the client is configured allowing negative stock 
related to defect 0032520 closed AtulOpenbravo Wrong available quantity is shown in Return To Vendor Shipment Pick and Edit when there is not stock 
Issue History
2014-09-17 14:34VictorVillarNew Issue
2014-09-17 14:34VictorVillarAssigned To => dmiguelez
2014-09-17 14:34VictorVillarModules => Core
2014-09-17 14:34VictorVillarResolution time => 1413496800
2014-09-17 14:34VictorVillarTriggers an Emergency Pack => No
2014-09-17 14:34VictorVillarIssue Monitored: networkb
2014-09-17 14:37VictorVillarRelationship addedrelated to 0022862
2014-09-22 16:36jonalegriaesarteTarget Version3.0PR14Q4 => 3.0PR15Q1
2014-10-07 00:25reinaldoguerraAssigned Todmiguelez => reinaldoguerra
2014-10-07 00:25reinaldoguerraStatusnew => scheduled
2014-10-07 00:26reinaldoguerraNote Added: 0070756
2014-10-24 17:13reinaldoguerraNote Edited: 0070756bug_revision_view_page.php?bugnote_id=0070756#r6892
2014-11-05 09:24hgbotCheckin
2014-11-05 09:24hgbotNote Added: 0071413
2014-11-05 09:24hgbotStatusscheduled => resolved
2014-11-05 09:24hgbotResolutionopen => fixed
2014-11-05 09:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/8d19acf2b006827b619f023614921a3a062f521f [^]
2014-11-05 09:27SandrahuguetReview Assigned To => Sandrahuguet
2014-11-05 09:27SandrahuguetNote Added: 0071414
2014-11-05 09:27SandrahuguetStatusresolved => closed
2014-12-30 23:24hudsonbotCheckin
2014-12-30 23:24hudsonbotNote Added: 0073017
2016-03-21 16:52ngarciaRelationship addedrelated to 0032520

Notes
(0070756)
reinaldoguerra   
2014-10-07 00:26   
(edited on: 2014-10-24 17:13)
Test plan used:
1- Login into Openbravo ERP
2- Go to Product window, create a new one
3- Go to Goods Receipt window. Create a new one for the new product with qty: 10 units
4- Complete it.
5- Go to Goods Shipment window. Create a new one for the same product with qty: 5 units
6- Complete it
7- Go to Return To Vendor window
8- Create a new one. Run pick and edit lines process and select the Goods Receipt created before. Returned qty: 10
9- Book it
10- Go to Return To Vendor Shipment window and create a new record.
11- Run pick and edit lines process and select the same Return to Vendor line: the system populates you: 5 units
12- Complete it.
13- Create a new one and realise that the line pending to be returned is 5 units, but without storage bin...(there isn't enough stock)
13- Now when you select the line an error message is shown and Ship Qty field has a read only behaviour.

(0071413)
hgbot   
2014-11-05 09:24   
Repository: erp/devel/pi
Changeset: 8d19acf2b006827b619f023614921a3a062f521f
Author: Reinaldo Guerra <reinaldo.guerra <at> peoplewalking.com>
Date: Thu Oct 23 22:28:56 2014 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/8d19acf2b006827b619f023614921a3a062f521f [^]

Fixed bug 27626: Pick and Edit should not accept those products without stock.

The Return to Vendor Shipment Pick and Edit smartclient window now only lets create lines of products with stock.
Smartclient javascript window was modified to show an error message when selecting a line without storage bin defined, in this case also ship qty field will have a read only behaviour.

---
M modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MESSAGE.xml
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/return-material/ob-return-material.js
M src-db/database/sourcedata/AD_COLUMN.xml
---
(0071414)
Sandrahuguet   
2014-11-05 09:27   
Code review + testing OK
(0073017)
hudsonbot   
2014-12-30 23:24   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/6525fe229e06 [^]
Maturity status: Test