Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0015667 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] 07. Sales management | major | always | 2011-01-16 00:47 | 2011-02-18 11:53 | |||
Reporter | malsasua | View Status | public | |||||
Assigned To | adrianromero | |||||||
Priority | urgent | Resolution | suspended | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | 2.50MP27 | |||
OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.6.0_18 | |||
OS Version | Community Appliance | Database version | 8.3.9 | Ant version | 1.7.1 | |||
Product Version | 2.50MP25 | SCM revision | ||||||
Review Assigned To | ||||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0015667: A sales order with discount cannot be reactivated | |||||||
Description | if there is a sales order with discount, and it is invoiced, but after that, the invoice is voided, if you try reactivate the sales order, error is returned | |||||||
Steps To Reproduce | . business partner with discount with check "apply in order" selected . create a new sales order "warehouse order" . process the order . create and process a new invoice from sales order . the invoice is voided . if you try reactivate the sales order, error is returned: "update o delete en «c_orderline» viola la llave foránea «c_invoiceline_c_orderline» en la tabla «c_invoiceline»" | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|||||||||||||||
|
![]() |
|
(0034053) adrianromero (manager) 2011-02-04 11:05 |
It seems that the problem is because when reactivating the order, the process is trying to delete the discount lines generated when it was completed that is ok. The problem is that these discount lines are referenced by the invoice voided and a reference error is raised. The solution seems simple. When voiding an invoice the reference to order lines in the discount lines of the invoices must be removed. This way the order will be reactivated without any problem. The only risk here is that there can be problems when removing this reference to order lines when voiding an invoice but it seems that no. |
(0034259) adrianromero (manager) 2011-02-18 11:52 |
Currently it is not implemented the functionality of reactivating orders with discounts and with a related shipment or invoice voided. This functionality must be analyzed and implemented. |
![]() |
|||
Date Modified | Username | Field | Change |
2011-01-16 00:47 | malsasua | New Issue | |
2011-01-16 00:47 | malsasua | Assigned To | => adrianromero |
2011-01-16 00:47 | malsasua | Modules | => Core |
2011-01-16 00:49 | malsasua | Issue Monitored: networkb | |
2011-02-04 11:05 | adrianromero | Note Added: 0034053 | |
2011-02-09 13:27 | adrianromero | Target Version | 2.50MP26 => 2.50MP27 |
2011-02-10 16:16 | adrianromero | Status | new => scheduled |
2011-02-10 16:16 | adrianromero | fix_in_branch | => pi |
2011-02-10 16:16 | adrianromero | Type | defect => backport |
2011-02-10 16:16 | adrianromero | fix_in_branch | pi => |
2011-02-10 16:16 | adrianromero | Issue cloned | 0015929 |
2011-02-10 16:16 | adrianromero | Relationship added | blocks 0015929 |
2011-02-18 11:52 | adrianromero | Note Added: 0034259 | |
2011-02-18 11:53 | adrianromero | Status | scheduled => closed |
2011-02-18 11:53 | adrianromero | Resolution | open => suspended |
2011-02-25 12:24 | adrianromero | Relationship added | blocks 0016056 |
2011-02-25 12:25 | adrianromero | Relationship deleted | blocks 0016056 |
2011-02-25 12:25 | adrianromero | Relationship added | related to 0016056 |
Copyright © 2000 - 2009 MantisBT Group |