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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0015667
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] 07. Sales managementmajoralways2011-01-16 00:472011-02-18 11:53
ReportermalsasuaView Statuspublic 
Assigned Toadrianromero 
PriorityurgentResolutionsuspendedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version2.50MP27
OSLinux 32 bitDatabasePostgreSQLJava version1.6.0_18
OS VersionCommunity ApplianceDatabase version8.3.9Ant version1.7.1
Product Version2.50MP25SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0015667: A sales order with discount cannot be reactivated

Descriptionif 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»"
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to backport 0016056 closedmirurita A sales order with discount cannot be reactivated nor closed 
blocks defect 0015929 closedadrianromero A sales order with discount cannot be reactivated 

-  Notes
(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.

- Issue History
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
Powered by Mantis Bugtracker