Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0038003Openbravo ERP03. Procurement managementpublic2018-02-26 19:352018-03-08 15:41
markmm82 
collazoandy4 
highmajoralways
scheduledopen 
5
 
 
Core
No
0038003: Incorrect data adding a sales order line to a goods shipment if the AUM feature is activated after the order was created
Incorrect data adding a sales order line to a goods shipment if the AUM feature is activated after the order was created

When the Create Lines From process is executed the Aletrnative Quantity and AUM are not correctly populated if exists defined AUMs for used product.
As group admin role:
   Create a Sales Order, add a product and book it

As System admin role:
   Set 'Enable UOM Management' preference to Y

As group admin role:
   Go to the Product window and select the product used in the Purchase Order previously created.
   Create an AUM between the uom of the product and for instance Kilogram unit with conversion rate = 10

   Create a Goods Shipment header
   Click Create Lines From process and select the previously created order
     Notice the AUM and AUM quantities are the same which is incorrect because should be Kilogram instead of Unit the AUM, also the Alternative Qty must be 1 as it represents 10 units of the base unit.
       Alternative UOM = Unit
       Operative Quantity = 10
       Movement Quantity = 10
       UOM = Unit.
   Press done and notice that Operative Quantity and Alternative UOM are empty and it is wrong.
   The copied line should have the following values:
       Alternative UOM = Kilogram
       Operative Quantity = 1
       Movement Quantity = 10
       UOM = Unit.

Issue is also reproducible if there are not AUMs defined.

Should be fixed for the Sales Invoice workflows too.
No tags attached.
related to defect 0037882 closed markmm82 Cannot add a purchase order line to a goods receipt if the Alternate UOM feature is activated after the order was created 
Issue History
2018-02-26 19:35markmm82New Issue
2018-02-26 19:35markmm82Assigned To => Triage Finance
2018-02-26 19:35markmm82Modules => Core
2018-02-26 19:35markmm82Triggers an Emergency Pack => No
2018-02-26 19:42markmm82Relationship addedrelated to 0037882
2018-02-26 19:44markmm82Steps to Reproduce Updatedbug_revision_view_page.php?rev_id=16778#r16778
2018-02-27 10:03ngarciaIssue Monitored: ngarcia
2018-03-07 18:49collazoandy4Assigned ToTriage Finance => collazoandy4
2018-03-07 18:49collazoandy4Statusnew => scheduled
2018-03-08 15:41collazoandy4Note Added: 0103086

Notes
(0103086)
collazoandy4   
2018-03-08 15:41   
Test Plan I
  As International Group Admin Role:
    Go to Sales Order window and create a new record for Alimentos y Supermercados, S.A bp:
      Create a new record in Lines tab:
        Product: Zumo de Piña 0,5L
        Ordered Quantity: 10
      Book the order

  As System Admin Role:
    Set 'Enable UOM Management' preference to Y

  As International Group Admin Role:
    Go to Goods Shipment window and create a new record for Alimentos y Supermercados, S.A bp:
      Clic on Create Lines From process and select the previously created order
      Check the shipment line was created successfully and it uses the UOM as AUM, and the UOMQTY as AUMQTY.

Test Plan II
  As International Group Admin Role:
    Go to Sales Order window and create a new record for Alimentos y Supermercados, S.A bp:
      Create a new record in Lines tab:
        Product: Zumo de Piña 0,5L
        Ordered Quantity: 10
      Book the order

  As System Admin Role:
    Set 'Enable UOM Management' preference to Y

  As International Group Admin Role:
   Go to the Product window and select Zumo de Piña 0,5L record:
     Create a new record in Alternate UOM tab:
       UOM: Liter
       Conversion Rate: 10
       Sales: Primary
       Purchase: Primary
    Go to Goods Shipment window and create a new record for Alimentos y Supermercados, S.A bp:
      Clic on Create Lines From process and select the previously created order
      Check the AUM and AUM quantities has been calculated based on the base uom and the ordered quantity.
        Alternative UOM = Liter
        Operative Quantity = 1
        Movement Quantity = 10
        UOM = Unit.
      Clic on Done button and check:
        The shipment line was created successfully
        Alternative UOM = Liter
        Operative Quantity = 1
        Movement Quantity = 10
        UOM = Unit.

Test Plan III
  As System Admin Role:
   Set 'Enable UOM Management' preference to Y

  As International Group Admin Role:
    Go to the Product window and select Zumo de Pera 0,5L record:
     Create a new record in Alternate UOM tab:
       UOM: Liter
       Conversion Rate: 10
       Sales: Primary
       Purchase: Primary
    Go to Sales Order window and create a new record for Alimentos y Supermercados, S.A bp:
      Create a new record in Lines tab:
        Product: Zumo de Pera 0,5L
        Operative Quantity: 1
        Alternative UOMM: Liter
        Check Ordered Quantity is 10
      Book the order
    Go to Goods Shipment window and create a new record for Alimentos y Supermercados, S.A bp:
      Clic on Create Lines From process and select the previously created order
      Check the AUM and AUM quantities has been calculated based on the base uom and the ordered quantity.
        Alternative UOM = Liter
        Operative Quantity = 1
        Movement Quantity = 10
        UOM = Unit.
      Clic on Done button and check:
        The shipment line was created successfully
        Alternative UOM = Liter
        Operative Quantity = 1
        Movement Quantity = 10
        UOM = Unit.
Test Plan IV
  Repeat the above test plan for Sales Invoice