Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0043155 | Openbravo ERP | 07. Sales management | public | 2020-02-10 09:59 | 2020-02-26 09:49 |
Reporter | shankarb | ||||
Assigned To | Triage Omni OMS | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | acknowledged | Resolution | open | ||
Platform | OS | 30 | OS Version | Openbravo Appliance 14.04 | |
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | |||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0043155: Cancel and Replace Sales Order does not take into account Invoiced Quantity | ||||
Description | There seems to be a bug in the Cancel-Replace logic causing serious issue with the customer. If you book an order with 2 lines and then ship and invoice one of them. If I go to the sales order window I can see that the order is partially delivered and invoiced. (i.e. the percent on the order reflects that the order-qty, delivered-qty and invoiced-qty on the SO Line) If I then do a cancel-replace the delivered quantity is retained on the new -1 order but the invoiced quantity is lost. This makes it difficult for users to see what is left to invoice on the Order and leads to duplicate invoicing. | ||||
Steps To Reproduce | 1. Enable Preference 'Enable Cancel and Replace'. 2. Create Sales Order, add lines and book. 3. Deliver partially or fully. 4. Invoice partially 5. Go to the Sales order and click 'Cancel and Replace'. 6. Confirm the Cancel and Replace. 7. In the new Sales Order created, the Invoiced Quantity is not carried over. | ||||
Proposed Solution | In the createReplacementOrder method in CancelAndReplaceUtils.java, the following code is there. newOrderLine.setDeliveredQuantity(BigDecimal.ZERO); newOrderLine.setReservedQuantity(BigDecimal.ZERO); newOrderLine.setInvoicedQuantity(BigDecimal.ZERO); This has to be verified and updated from the orderline itself or the spec has to be updated here[1] to reflect this scenario. There is a logic for service products, but not for regular products. [1] http://wiki.openbravo.com/wiki/How_to_manage_Cancel_and_Replace_process#Sales_order_cancel_and_replace [^] | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2020-02-10 09:59 | shankarb | New Issue | |||
2020-02-10 09:59 | shankarb | Assigned To | => Triage Finance | ||
2020-02-10 09:59 | shankarb | Modules | => Core | ||
2020-02-10 09:59 | shankarb | Resolution time | => 1583103600 | ||
2020-02-10 09:59 | shankarb | Triggers an Emergency Pack | => No | ||
2020-02-12 08:30 | dmiguelez | Assigned To | Triage Finance => AtulOpenbravo | ||
2020-02-12 18:51 | AtulOpenbravo | Status | new => scheduled | ||
2020-02-14 08:25 | shankarb | Summary | Cancel and Replace Sales Order does not take into account Invoiced or Delivered Quantity => Cancel and Replace Sales Order does not take into account Invoiced Quantity | ||
2020-02-14 08:25 | shankarb | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=20370#r20370 | ||
2020-02-17 07:09 | AtulOpenbravo | Note Added: 0117841 | |||
2020-02-17 10:01 | AtulOpenbravo | Note Edited: 0117841 | bug_revision_view_page.php?bugnote_id=0117841#r20380 | ||
2020-02-26 09:48 | dmiguelez | Note Added: 0118108 | |||
2020-02-26 09:48 | dmiguelez | Type | defect => design defect | ||
2020-02-26 09:48 | dmiguelez | Status | scheduled => acknowledged | ||
2020-02-26 09:49 | dmiguelez | Assigned To | AtulOpenbravo => Triage Finance |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|