Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030556Openbravo ERP07. Sales managementpublic2015-08-12 11:052015-08-21 21:01
ngarcia 
aferraz 
urgentcriticalalways
closedfixed 
5
 
 
dmiguelez
Core
No
0030556: Goods shipment can be processed although there is not stock of a product and negative stock is not allowed at client level
Goods shipment can be processed although there is not stock of a product and negative stock is not allowed at client level. The organization of the goods shipment lines will be different from the organization of the header
As group admin role:
   Check Allow Negative Stock is not selected in Client - Information tab
   Create a sales order for F&B España Región Norte for a product that has only stock in F&B España Región Sur warehouse
   Create a Goods Shipment for F&B España and Region Norte warehouse
   Click on Create Lines From and select the already created sales order line and a storage bin of Region Norte warehouse
   Check you can process the shipment
   If you launch the stock report you will see negative stock is available in Region Norte
   If you show the Organization of the Goods Shipment lines, you will see it is different from the header organization too
No tags attached.
related to defect 00306003.0PR15Q4 closed aferraz Create Lines From process allows to choose any locator 
Issue History
2015-08-12 11:05ngarciaNew Issue
2015-08-12 11:05ngarciaAssigned To => Triage Finance
2015-08-12 11:05ngarciaModules => Core
2015-08-12 11:05ngarciaTriggers an Emergency Pack => No
2015-08-12 11:06ngarciaIssue Monitored: networkb
2015-08-12 11:06ngarciaResolution time => 1442959200
2015-08-12 12:43eintelauIssue Monitored: eintelau
2015-08-18 09:38aferrazAssigned ToTriage Finance => aferraz
2015-08-19 10:09aferrazRelationship addedrelated to 0030600
2015-08-20 09:22aferrazStatusnew => scheduled
2015-08-20 10:20aferrazNote Added: 0079428
2015-08-21 13:34hgbotCheckin
2015-08-21 13:34hgbotNote Added: 0079578
2015-08-21 13:34hgbotStatusscheduled => resolved
2015-08-21 13:34hgbotResolutionopen => fixed
2015-08-21 13:34hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f8dc8ea21e395d387eb03eaa99ae67e25de0e216 [^]
2015-08-21 13:34hgbotCheckin
2015-08-21 13:34hgbotNote Added: 0079579
2015-08-21 13:36dmiguelezReview Assigned To => dmiguelez
2015-08-21 13:36dmiguelezNote Added: 0079580
2015-08-21 13:36dmiguelezStatusresolved => closed
2015-08-21 13:47hgbotCheckin
2015-08-21 13:47hgbotNote Added: 0079581
2015-08-21 21:00hudsonbotCheckin
2015-08-21 21:00hudsonbotNote Added: 0079590
2015-08-21 21:00hudsonbotCheckin
2015-08-21 21:00hudsonbotNote Added: 0079591
2015-08-21 21:01hudsonbotCheckin
2015-08-21 21:01hudsonbotNote Added: 0079592

Notes
(0079428)
aferraz   
2015-08-20 10:20   
Test plan:

As group admin role:

   Check Allow Negative Stock is not selected in Client - Information tab

   Create a sales order for F&B España Región Norte for a product that has only stock in F&B España Región Sur warehouse
   Create a Goods Shipment for F&B España and Region Norte warehouse
   Click on Create Lines From and select the already created sales order line and a storage bin of Region Norte warehouse
   Check you can not process the shipment: Insufficient stock

   Create a sales order for F&B España Región Sur for a product that has only stock in F&B España Región Sur warehouse
   Create a Goods Shipment for F&B España and Region Sur warehouse
   Click on Create Lines From and select the already created sales order line and a storage bin of Region Norte warehouse
   Check you can process the shipment
(0079578)
hgbot   
2015-08-21 13:34   
Repository: erp/devel/pi
Changeset: f8dc8ea21e395d387eb03eaa99ae67e25de0e216
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Thu Aug 20 10:41:31 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f8dc8ea21e395d387eb03eaa99ae67e25de0e216 [^]

Fixes issue 30556: Available stock check not correct in M_INOUT_POST

M_InOut organization was sent when calling M_Check_Stock in M_INOUT_POST function instead of M_InOutLine Locator's organization

---
M src-db/database/model/functions/M_INOUT_POST.xml
---
(0079579)
hgbot   
2015-08-21 13:34   
Repository: erp/devel/pi
Changeset: 1d9e795478baa44eda31459457d74dbe8fdc1b82
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Fri Aug 21 13:33:27 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/1d9e795478baa44eda31459457d74dbe8fdc1b82 [^]

Related to Issue 30556. Code Review Changes.

---
M src-db/database/model/functions/M_INOUT_POST.xml
---
(0079580)
dmiguelez   
2015-08-21 13:36   
Code Review + Testing Ok
(0079581)
hgbot   
2015-08-21 13:47   
Repository: erp/devel/pi
Changeset: 6db6e5448fd2a8447ca6b9d71283c0bd43cf0d13
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Fri Aug 21 13:46:55 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/6db6e5448fd2a8447ca6b9d71283c0bd43cf0d13 [^]

Related to Issue 30556: Removes unnecessary Query.

---
M src-db/database/model/functions/M_INOUT_POST.xml
---
(0079590)
hudsonbot   
2015-08-21 21:00   
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/be999ae66d23 [^]
Maturity status: Test
(0079591)
hudsonbot   
2015-08-21 21:00   
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/be999ae66d23 [^]
Maturity status: Test
(0079592)
hudsonbot   
2015-08-21 21:01   
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/be999ae66d23 [^]
Maturity status: Test