Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0010805Openbravo ERP07. Sales managementpublic2009-09-29 10:242009-10-23 00:00
networkb 
harikrishnan 
highminoralways
closedfixed 
5
2.40MP6 
2.40MP112.50MP7 
Core
No
0010805: Insufficient stock message in Sales Order does not show properly the line
When a warehouse order (sales order) is completed and one product has not enough stock, a message appears
Error:
Insufficient stock: line 50.

However, it does not show properly which line has not enough stock.

It has been tested in MP9
As Admin, go to General Setup > Client > Client > Client Info. Deactive (if it is activated) "Allow negative stock".
Go to Master Data Management > Product. Create a new one. Save it. Go to Price tab, and enter a price for a sales price list version.
Go to Sales Management > Transactions > Sales Order.
Create a new one. Select Warehouse order, as transaction document.
Go to its lines. Generate a couple of lines (use products with stock).
Create the third line with the product created before.
Create two more lines (use products with stock).
Try to complete the sales order.
No tags attached.
depends on backport 00108062.40MP11 closed harikrishnan Insufficient stock message in Sales Order does not show properly the line 
Issue History
2009-09-29 10:24networkbNew Issue
2009-09-29 10:24networkbAssigned To => rafaroda
2009-09-29 10:33rafarodaPriorityimmediate => high
2009-09-29 10:34rafarodaStatusnew => scheduled
2009-09-29 10:34rafarodafix_in_branch => pi
2009-10-22 07:38harikrishnanStatusscheduled => resolved
2009-10-22 07:38harikrishnanFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e0b6818eb853992b0a05eea3ea2739fb13e690ea [^]
2009-10-22 07:38harikrishnanResolutionopen => fixed
2009-10-22 07:38harikrishnanNote Added: 0021301
2009-10-22 08:17harikrishnanNote Added: 0021303
2009-10-22 08:33arunkumarStatusresolved => closed
2009-10-22 08:33arunkumarNote Added: 0021304
2009-10-22 08:33arunkumarFixed in Version => 2.50MP7
2009-10-22 10:29rafarodaAssigned Torafaroda => harikrishnan
2009-10-23 00:00anonymoussf_bug_id0 => 2884251

Notes
(0021301)
harikrishnan   
2009-10-22 07:38   
Repository: erp/devel/pi
Changeset: e0b6818eb853992b0a05eea3ea2739fb13e690ea
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Thu Oct 22 11:01:31 2009 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/e0b6818eb853992b0a05eea3ea2739fb13e690ea [^] [^]

Fixes Issue 10806: Insufficient stock message in Sales Order does not show properly the line.

---
M src-db/database/model/functions/M_INOUT_CREATE.xml
---
(0021303)
harikrishnan   
2009-10-22 08:17   
Steps to Test

1.As Admin, go to General Setup > Client > Client > Client Info. Inactive (if it is activated) "Allow negative stock".

2.Consider the product stock details.

    Product A ->50 Bag
    Product B ->40 Bag
    Product C ->25Bag

2.Create a new Sales Order (Sales Management || Transactions || Sales Order || Header ) with Following Details

    Transaction Document = Warehouse Order
    Select any business Partner.

3.Create a three line for that sales order.
    3.1 First Line

        Product=Product A
        Quantity = 45

    3.2 Second Line
        
        Product =Product B
        Quantity =45

    3.3 Third Line

        Product Product C
        Quantity =30

After entering these details.Try to complete the complete the sales order.You will get the error "Insufficient stock: line 20".
(0021304)
arunkumar   
2009-10-22 08:33   
Tested & Working fine.