Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0042421
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] Order Confirmationminorhave not tried2019-11-27 14:512019-12-02 10:16
Reportercollazoandy4View Statuspublic 
Assigned Tocollazoandy4 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision2861c11135dd
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned Toaferraz
Regression introduced in release
Summary

0042421: Exception in Run Order Confirmation process

DescriptionThe Run Order Confirmation process throw an exception when the Business Partner does not belongs to the same Order organization
Steps To ReproduceAs White Valley Group Admin Role
Go to OMS Rule window and create a new record
  Organization: Magento
  Name: LowestShipment
  Create a new record in Criteria tab:
    OMS Algorithm: Lowest number of shipment
  In OMS Rule window and create a new record
    Organization: Magento
    Name: OrderComplete
    Create a new record in Criteria tab:
      OMS Algorithm: Order complete
  In OMS Rule window and create a new record
    Organization: Magento
    Name: Warehouses
    Create a new record in Criteria tab:
      OMS Algorithm: Warehouses by priority"
Go to OMS Configuration window and create a new record:
  Organization: Magento
  Create a new record in Rules tab:
    Rule: LowestShipment
    Partial Allocation Allowed: True
  Create a new record in Rules tab:
    Rule: OrderComplete
    Partial Allocation Allowed: True
  Create a new record in Rules tab:
    Rule: Warehouses
    Partial Allocation Allowed: True
Go to Sales Order and create a new record:
  Organization: Vall Boi
  Business Partner: VB Customer
  Pos Terminal: Magento
  Update the order throug database with the following query:
    update c_order set c_bpartner_id = '8FF8D0A81C644F7A9A74BE01459482BB', c_bpartner_location_id = '84F713E4EB68424B8040DCCB6B423A38' where c_order_id = <orderId>;
  Check order Business Partner is Magento Customer
  Create a new record in Lines tab:
    Product: Snowboard
    Ordered quantity: 5
  Through database update the previous order created to Not Confirmed status (docstatus = 'NC')
  Reject the order with the Reject action button in sales order window
  Execute the Run Order Confirmation button and check an exception is throw

When the fix of previous error is done
Book the replacement Order created in Run Order Confirmation
Check the Create Shipment from Orders and Create Invoices from Orders process if throw an exception
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0042295RR20Q1 closedaferraz Retail Modules Order Confirmation project 

-  Notes
(0115915)
collazoandy4 (reporter)
2019-11-27 22:18

Test Plan
  As White Valley Group Admin Role
  Go to OMS Rule window and create a new record
    Organization: Magento
    Name: LowestShipment
    Create a new record in Criteria tab:
      OMS Algorithm: Lowest number of shipment
    In OMS Rule window and create a new record
      Organization: Magento
      Name: OrderComplete
      Create a new record in Criteria tab:
        OMS Algorithm: Order complete
    In OMS Rule window and create a new record
      Organization: Magento
      Name: Warehouses
      Create a new record in Criteria tab:
        OMS Algorithm: Warehouses by priority"
  Go to OMS Configuration window and create a new record:
    Organization: Magento
    Create a new record in Rules tab:
      Rule: LowestShipment
      Partial Allocation Allowed: True
    Create a new record in Rules tab:
      Rule: OrderComplete
      Partial Allocation Allowed: True
    Create a new record in Rules tab:
      Rule: Warehouses
      Partial Allocation Allowed: True
  Go to Sales Order and create a new record:
    Organization: Vall Boi
    Business Partner: VB Customer
    Pos Terminal: Magento
    Update the order throug database with the following query:
      update c_order set c_bpartner_id = '8FF8D0A81C644F7A9A74BE01459482BB', c_bpartner_location_id = '84F713E4EB68424B8040DCCB6B423A38' where c_order_id = <orderId>;
    Check order Business Partner is Magento Customer
    Create a new record in Lines tab:
      Product: Snowboard
      Ordered quantity: 5
  Through database update the previous order created to Not Confirmed status (docstatus = 'NC')
  Reject the order with the Reject action button in sales order window
  Execute the Run Order Confirmation button and check the previous order is closed
  Go to Replacement Orders tab and navigate to the new order created and check:
    Organization: Orhi Store
    BP: Magento Customer
    Book the order
  Go to Create Invoices from Orders Process and select the replacement order created in Orhi store
  Clic on Process button and check a new Sales Invoice is created with:
    Organization: Orhi Store
    BP: Magento Customer
    Document status: Completed
  Go to Create Shipments from Orders and select the replacement order created in Orhi store
  Clic on Process button and check a new Goods Shipment is created with:
    Organization: Orhi Store
    BP: Magento Customer
    Document status: Completed

Test Plan II
 Repeat the previous test plan but create the invoice with Generate Invoices process
(0116015)
hgbot (developer)
2019-12-02 10:15

Repository: erp/devel/pi
Changeset: 2861c11135ddc84a042b01091aa03d55f8cf0591
Author: Álvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Mon Dec 02 10:14:23 2019 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/2861c11135ddc84a042b01091aa03d55f8cf0591 [^]

Fixes BUG-42421: Exception in Run Order Confirmation process

The Run Order Confirmation process throw an exception when the Business Partner
does not belongs to the same Order organization

The check was updated to take into account the transaction organization.

---
M src-db/database/model/functions/C_INVOICE_POST.xml
M src-db/database/model/functions/C_ORDER_POST1.xml
---
(0116016)
aferraz (manager)
2019-12-02 10:16

Code review OK

- Issue History
Date Modified Username Field Change
2019-11-27 14:51 collazoandy4 New Issue
2019-11-27 14:51 collazoandy4 Assigned To => collazoandy4
2019-11-27 22:17 collazoandy4 Steps to Reproduce Updated View Revisions
2019-11-27 22:17 collazoandy4 Status new => scheduled
2019-11-27 22:18 collazoandy4 Note Added: 0115915
2019-11-28 11:55 aferraz Relationship added related to 0042295
2019-12-02 10:15 hgbot Checkin
2019-12-02 10:15 hgbot Note Added: 0116015
2019-12-02 10:15 hgbot Status scheduled => resolved
2019-12-02 10:15 hgbot Resolution open => fixed
2019-12-02 10:15 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/2861c11135ddc84a042b01091aa03d55f8cf0591 [^]
2019-12-02 10:16 aferraz Review Assigned To => aferraz
2019-12-02 10:16 aferraz Note Added: 0116016
2019-12-02 10:16 aferraz Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker