Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0010806Openbravo ERP07. Sales managementpublic2009-09-29 10:242009-10-29 12:37
networkb 
harikrishnan 
highminoralways
closedfixed 
5
2.40MP6 
2.40MP112.40MP11 
Core
No
0010806: 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.
main
blocks defect 00108052.40MP11 closed harikrishnan Insufficient stock message in Sales Order does not show properly the line 
Issue History
2009-09-29 10:34rafarodaTypedefect => backport
2009-09-29 10:34rafarodafix_in_branch => 2.40
2009-10-22 07:32hgbotCheckin
2009-10-22 07:32hgbotNote Added: 0021298
2009-10-22 07:32hgbotStatusscheduled => resolved
2009-10-22 07:32hgbotResolutionopen => fixed
2009-10-22 07:32hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e0b6818eb853992b0a05eea3ea2739fb13e690ea [^]
2009-10-22 07:32hgbotCheckin
2009-10-22 07:32hgbotNote Added: 0021300
2009-10-22 07:32hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/e0b6818eb853992b0a05eea3ea2739fb13e690ea [^] => http://code.openbravo.com/erp/stable/2.40/rev/decbaf82683753ce99a622ad2bee2dd41f43776b [^]
2009-10-22 07:39rafarodaNote Deleted: 0021298
2009-10-22 08:16harikrishnanNote Added: 0021302
2009-10-22 10:29rafarodaAssigned Torafaroda => harikrishnan
2009-10-22 19:26psarobeTag Attached: main
2009-10-29 12:37arunkumarStatusresolved => closed
2009-10-29 12:37arunkumarNote Added: 0021466
2009-10-29 12:37arunkumarFixed in Version => 2.40MP11

Notes
(0021300)
hgbot   
2009-10-22 07:32   
Repository: erp/stable/2.40
Changeset: decbaf82683753ce99a622ad2bee2dd41f43776b
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Thu Oct 22 10:54:35 2009 +0530
URL: http://code.openbravo.com/erp/stable/2.40/rev/decbaf82683753ce99a622ad2bee2dd41f43776b [^]

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
---
(0021302)
harikrishnan   
2009-10-22 08:16   
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".
(0021466)
arunkumar   
2009-10-29 12:37   
Tested & Working fine.