Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011474Openbravo ERP07. Sales managementpublic2009-11-24 13:162010-01-21 00:00
networkb 
harikrishnan 
urgentminoralways
closedfixed 
5
2.50MP8 
2.50MP112.50MP11 
Core
No
0011474: A Return Material is always under way
When you process a Return Material always is under way.
-As Openbravo Admin go to Sales Management || Transactions || Sales Order
-Create a new record
    -Transaction Document: Return Material
    -Chose a Bussines Partner.
-Save and go to lines.
-Create a new record (Product: Hammer)
-Save and go to Header
-Complete

1) After clicking Complete for the first time, and before completing, a check has to be done to ensure that quantities of the lines are negative, as stated in the Functional Documentation http://wiki.openbravo.com/wiki/Functional_Documentation/Sales_Management#Document_types [^] Return Material "This Document type is used when material is returned. The order quantities are negative to increase stock size". If this condition is not fulfilled, display the error message: "Return Material order lines require negative quantities".

2) If this condition is fulfilled, the Return Material order is completed as a regular Standard Order (it passes directly to Complete status, does not keep Under Way).
* Check that discounts are properly applied.
* Check that goods shipments and sales invoices are properly created (negative quantities) from this Return Material order.

3) Clicking Close button give the possibility to Close or Reactivate the Return Material order, in the same way it does for a Standard Order.
No tags attached.
related to defect 00114712.50MP11 closed harikrishnan A Return Material can be Process without Lines 
related to defect 00114722.50MP11 closed rafaroda Mistake in a error's message 
Issue History
2009-11-24 13:16networkbNew Issue
2009-11-24 13:16networkbAssigned To => rafaroda
2009-11-24 14:09rafarodaRelationship addedrelated to 0011471
2009-12-07 11:35psarobeNote Added: 0022470
2009-12-07 11:35psarobeStatusnew => feedback
2009-12-07 11:38networkbNote Added: 0022471
2009-12-15 13:04rafarodaPriorityimmediate => urgent
2009-12-15 13:04rafarodaStatusfeedback => scheduled
2009-12-15 13:04rafarodaSteps to Reproduce Updated
2009-12-15 13:05rafarodaNote Added: 0022835
2009-12-15 13:07rafarodaSteps to Reproduce Updated
2009-12-15 13:08networkbNote Added: 0022836
2009-12-15 13:14rafarodaSteps to Reproduce Updated
2010-01-05 11:52rafarodaRelationship addedrelated to 0011472
2010-01-09 05:33harikrishnanAssigned Torafaroda => harikrishnan
2010-01-12 10:07harikrishnanNote Added: 0023334
2010-01-12 10:54hgbotCheckin
2010-01-12 10:54hgbotNote Added: 0023341
2010-01-12 10:54hgbotStatusscheduled => resolved
2010-01-12 10:54hgbotResolutionopen => fixed
2010-01-12 10:54hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9027e387940b366d97134d0f0da34ee0fb4d6bc8 [^]
2010-01-19 01:41hudsonbotCheckin
2010-01-19 01:41hudsonbotNote Added: 0023543
2010-01-20 06:46arunkumarNote Added: 0023591
2010-01-20 06:46arunkumarStatusresolved => closed
2010-01-20 06:46arunkumarFixed in Version => 2.50MP11
2010-01-21 00:00anonymoussf_bug_id0 => 2935920

Notes
(0022470)
psarobe   
2009-12-07 11:35   
We have to investigate if this is an issue or not and if there is some logic behind this
(0022471)
networkb   
2009-12-07 11:38   
Do you need any information from our side?
(0022835)
rafaroda   
2009-12-15 13:05   
@networkb: Do you agree with the proposed solution?
(0022836)
networkb   
2009-12-15 13:08   
oks, we agree
(0023334)
harikrishnan   
2010-01-12 10:07   
Sales Order(Sales Management || Transactions || Sales Order || Header)
  Header *Create a new record with following records
          Transaction Document=Return Material
          Business Partner = any
  Lines
      *Create a new line with following details
          Product = Hat
          Quantity Ordered = 5
  Try to complete the order.It should throw a error "Return Material order lines require negative quantities.".
  *Again go to lines and change the quantity ordered =-5.Now complete the order.
  *Check with the price adjustment also
    #Go to Price Adjustments(Master Data Management || Pricing || Price Adjustments || Adjustments ).
    #Create a new Price adjustment with following details.
        1.Starting Date =01-01-2010
        2.Ending Date =01-01-2011
        3.Discount % =10
        4.Included Business Partners =All Selected
        5.Included Products =All Selected
        Go to Business Partner tab inside adjustment
            Business Partner =Any (Eg:Mcgiver Supplies)
        Go to Product tab
            Product=Any(Hat)
        Go to Price List
            Price List= General Sales.
        In the sales order select the Business partner chosen above.And the product also the same.
            Sales Order:Header
                Business Partner : Mcgiver Supplies
                 Line
                    Product:Hat
                    And the price calculated should apply both the discount and price adjustment.
      The order should be completed with following things
          1.Document Status = Completed
          2.All the buttons (Complete,Copy lines from,Copy from Order) should be hidden.
          3."Close" button should be visible.And order can be closed or reactivated.
(0023341)
hgbot   
2010-01-12 10:54   
Repository: erp/devel/pi
Changeset: 9027e387940b366d97134d0f0da34ee0fb4d6bc8
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Tue Jan 12 15:22:38 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/9027e387940b366d97134d0f0da34ee0fb4d6bc8 [^]

Fixes Issue 11474: A Return Material is always under way.

---
M src-db/database/model/functions/C_ORDER_POST1.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0023543)
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/9027e387940b [^]
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 [^]
(0023591)
arunkumar   
2010-01-20 06:46   
Tested & Working fine