Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016056Openbravo ERP07. Sales managementpublic2011-02-25 12:232015-02-12 14:37
adrianromero 
mirurita 
urgentmajorhave not tried
closedout of date 
5
2.50MP27 
 
Core
No
0016056: A sales order with discount cannot be reactivated nor closed
if there is a sales order with discount, and its related invoice or shipment is voided, if you try reactivate or close the sales order, an error is returned and the operation cannot be done.
. 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»"
No tags attached.
related to backport 00156662.50MP27 closed adrianromero A sales order with discount cannot be closed 
related to backport 00156672.50MP27 closed adrianromero A sales order with discount cannot be reactivated 
related to defect 0015929 closed adrianromero A sales order with discount cannot be reactivated 
related to defect 0015930 closed adrianromero A sales order with discount cannot be closed 
depends on design defect 0016629 scheduled mirurita A sales order with discount cannot be reactivated nor closed 
Not all the children of this issue are yet resolved or closed.
Issue History
2011-02-25 12:23adrianromeroNew Issue
2011-02-25 12:23adrianromeroAssigned To => adrianromero
2011-02-25 12:23adrianromeroModules => Core
2011-02-25 12:23adrianromeroStatusnew => scheduled
2011-02-25 12:23adrianromerofix_in_branch => pi
2011-02-25 12:24adrianromeroRelationship addedrelated to 0015677
2011-02-25 12:24adrianromeroRelationship deletedrelated to 0015677
2011-02-25 12:24adrianromeroRelationship addeddepends on 0015667
2011-02-25 12:24adrianromeroRelationship addedrelated to 0015666
2011-02-25 12:24adrianromeroRelationship addedrelated to 0015959
2011-02-25 12:25adrianromeroRelationship deletedrelated to 0015959
2011-02-25 12:25adrianromeroRelationship deleteddepends on 0015667
2011-02-25 12:25adrianromeroRelationship addedrelated to 0015667
2011-02-25 12:25adrianromeroRelationship addedrelated to 0015929
2011-02-25 12:25adrianromeroRelationship addedrelated to 0015930
2011-04-04 11:14hgbotCheckin
2011-04-04 11:14hgbotNote Added: 0035515
2011-04-04 11:18adrianromeroTypedefect => backport
2011-04-04 11:18adrianromeroversionpi => 2.50MP27
2011-04-04 11:18adrianromerofix_in_branchpi =>
2011-04-04 11:18adrianromeroIssue cloned0016629
2011-04-04 11:18adrianromeroRelationship addeddepends on 0016629
2011-04-27 18:03hgbotCheckin
2011-04-27 18:03hgbotNote Added: 0036138
2011-04-27 18:05adrianromeroNote Deleted: 0036138
2011-05-02 10:16hgbotCheckin
2011-05-02 10:16hgbotNote Added: 0036237
2011-05-12 13:27hudsonbotCheckin
2011-05-12 13:27hudsonbotNote Added: 0036778
2011-06-03 10:58dalsasuaAssigned Toadrianromero => dalsasua
2011-07-20 18:16dalsasuaAssigned Todalsasua => jonalegriaesarte
2012-04-03 12:20jonalegriaesarteAssigned Tojonalegriaesarte => vmromanos
2012-05-10 12:12gorka_gilAssigned Tovmromanos => mirurita
2015-02-12 14:37plujanNote Added: 0074417
2015-02-12 14:37plujanStatusscheduled => closed
2015-02-12 14:37plujanResolutionopen => out of date

Notes
(0035515)
hgbot   
2011-04-04 11:14   
Repository: erp/stable/2.50
Changeset: 7aa0c5da0436e67872949bfdabd97d4b5b087972
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Mon Apr 04 11:12:26 2011 +0200
URL: http://code.openbravo.com/erp/stable/2.50/rev/7aa0c5da0436e67872949bfdabd97d4b5b087972 [^]

Issue 0016056: A sales order with discount cannot be reactivated nor closed
It has been disabled the recalculation of discounts when closing orders because this is the origin of the error. The recalculation of discounts when closing an order is not necessary because discounts of a completed order are properly calculated yet.

---
M src-db/database/model/functions/C_ORDER_POST1.xml
---
(0036237)
hgbot   
2011-05-02 10:16   
Repository: erp/stable/2.50
Changeset: 692c9a694d11ecc79c8b8faead93ec449f8e35b9
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Wed Apr 27 18:14:09 2011 +0200
URL: http://code.openbravo.com/erp/stable/2.50/rev/692c9a694d11ecc79c8b8faead93ec449f8e35b9 [^]

Issue 0016056: A sales order with discount cannot be reactivated nor closed
It has been fixed the process of closing sales orders. Discounts are recalculated reusing previous discount lines if it is not possible to delete these discount lines because there already exist records linked to these discount lines

---
M src-db/database/model/functions/C_ORDER_POST1.xml
---
(0036778)
hudsonbot   
2011-05-12 13:27   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/c40e579fcd38 [^]

Maturity status: Test
(0074417)
plujan   
2015-02-12 14:37   
Backports to 2.50 branch are no longer supported