Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011559Openbravo ERP07. Sales managementpublic2009-11-30 18:062010-01-19 01:41
networkb 
rafaroda 
urgentmajoralways
closedfixed 
5
2.50MP8 
2.50MP112.50MP11 
Core
No
0011559: Error when Create Shipment from order
There isn't stock.

When you create a shipment from an order appears this error:

      
Error:
The organization associated with the Document Type is different or does not depend on the organization associated with the Shipment
-As Openbravo Admin go to General Setup || Client || Client || Client >> Information
-Don't set Allow Negative Stock
-Save

-Go to Warehouse Management || Transactions || Physical Inventory
-Create a new record, save and go to Lines
-Create a new record.
    -Select a product (Screwdriver)
    -Quantity count:0
-Save and go back to the header, Process Inventory Count.

-Go to Sales Management || Transactions || Sales Order
-Create a new record, chose a BP, save and go to Lines.
-Create a new record, chose a product (Screwdriver), save
-Go back to the Header, complete

-Go to Sales Management || Transactions || Create Shipments from Orders
-Select the Order created and process
No tags attached.
Issue History
2009-11-30 18:06networkbNew Issue
2009-11-30 18:06networkbAssigned To => rafaroda
2009-12-07 20:04psarobePriorityimmediate => urgent
2009-12-07 20:04psarobeSeverityminor => major
2009-12-07 20:04psarobeStatusnew => scheduled
2010-01-05 08:35rafarodaNote Added: 0023210
2010-01-05 08:36rafarodaNote Added: 0023211
2010-01-05 09:07hgbotCheckin
2010-01-05 09:07hgbotNote Added: 0023212
2010-01-05 09:07hgbotStatusscheduled => resolved
2010-01-05 09:07hgbotResolutionopen => fixed
2010-01-05 09:07hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/fe7d5b438fe6d0164611290b2bf8a0eb864083aa [^]
2010-01-12 12:31sureshbabuNote Added: 0023352
2010-01-12 12:31sureshbabuStatusresolved => closed
2010-01-12 12:31sureshbabuFixed in Version => 2.50MP10
2010-01-13 00:00anonymoussf_bug_id0 => 2930986
2010-01-18 11:52sureshbabuFixed in Version2.50MP10 => 2.50MP11
2010-01-19 01:41hudsonbotCheckin
2010-01-19 01:41hudsonbotNote Added: 0023528

Notes
(0023210)
rafaroda   
2010-01-05 08:35   
In PostgreSQL error message shown is "The organization associated with the Document Type is different or does not depend on the organization associated with the Shipment".

In Oracle error message shown is "No data found".
(0023211)
rafaroda   
2010-01-05 08:36   
The issue is in M_Inout_Post function which, in case that we don't have stock, makes a select to a non-existing goods shipment (m_inout_id), leading to no data found error.
(0023212)
hgbot   
2010-01-05 09:07   
Repository: erp/devel/pi
Changeset: fe7d5b438fe6d0164611290b2bf8a0eb864083aa
Author: Rafa Roda Palacios <rafael.roda <at> openbravo.com>
Date: Mon Jan 04 21:46:37 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/fe7d5b438fe6d0164611290b2bf8a0eb864083aa [^]

Fixes issue 11559 Good Shipment is checked before completing it.

---
M src-db/database/model/functions/M_INOUT_CREATE.xml
M src-db/database/model/functions/M_INOUT_POST.xml
---
(0023352)
sureshbabu   
2010-01-12 12:31   
Verified, right now system showing error message as "No orders were processed", when the user tries to create a goods shipment for a product which has Stock qyt =0 and allow negative qty option is un cheked.
(0023528)
hudsonbot   
2010-01-19 01:41   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/fe7d5b438fe6 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/7f3a35240cf9 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/obx/core/OpenbravoERP-2.50CI.15846.obx [^]