Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008759Openbravo ERP07. Sales managementpublic2009-04-24 13:022009-05-28 00:00
sureshbabu 
gmauleon 
normalminoralways
closedfixed 
30
main 
2.50MP2 
Core
No
0008759: Not able to delete a Sales invoice line item, if the line item is attached with an price adjustments.
If i tried to delete a Sales invoice line item and if the line item is attached with an price adjustments System throws the below message.

ORA-04091: table TAD_250.C_INVOICELINE_OFFER is mutating, trigger/function may not see it ORA-06512: at "TAD_250.C_INVOICELINE_TRG2", line 49 ORA-04088: error during execution of trigger 'TAD_250.C_INVOICELINE_TRG2'

step 1: Move to price adjustments and click new
Master Data Management || Pricing || Price Adjustments || Adjustments
and enter
Name : any valid name,
Starting date : today's date
Discount % : 10
and other filters are set to not selected.


Move to Sales Invoice (Sales Management || Transactions || Sales Invoice || Header) and click new.
Select any BP and move to line tab
Select any Product and save. Check a new line item is added in price adjustment tab.
Move back to lines tab and click Delete Icon.

System throws error message as "ORA-04091: table TAD_250.C_INVOICELINE_OFFER is mutating, trigger/function may not see it ORA-06512: at "TAD_250.C_INVOICELINE_TRG2", line 49 ORA-04088: error during execution of trigger 'TAD_250.C_INVOICELINE_TRG2'" instead of deleting the message.




No tags attached.
related to defect 0008683 closed gmauleon A sales order line with a price adjustment cannot be delete 
Issue History
2009-04-24 13:02sureshbabuNew Issue
2009-04-24 13:02sureshbabuAssigned To => rafaroda
2009-04-24 13:02sureshbabuRegression testing => No
2009-04-24 13:57rafarodaRelationship addedrelated to 0008683
2009-04-24 17:57rafarodaAssigned Torafaroda => gmauleon
2009-04-24 17:57rafarodaStatusnew => scheduled
2009-04-24 17:58rafarodaStatusscheduled => resolved
2009-04-24 17:58rafarodaFixed in SCM revision => eb0a9b10ea9289877f33830468c363d3a57e92c1
2009-04-24 17:58rafarodaResolutionopen => fixed
2009-04-24 17:58rafarodaNote Added: 0015720
2009-05-27 19:28psarobeStatusresolved => closed
2009-05-27 19:31psarobeFixed in Version => 2.50MP2
2009-05-28 00:00anonymoussf_bug_id0 => 2797619

Notes
(0015720)
rafaroda   
2009-04-24 17:58   
Repository: erp/devel/pi
Changeset: eb0a9b10ea9289877f33830468c363d3a57e92c1
Author: Gorka Mauleon <gorka.mauleon <at> openbravo.com>
Date: Fri Apr 24 17:31:58 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/eb0a9b10ea9289877f33830468c363d3a57e92c1 [^] [^]

Fixes bug 8683 A sales order line with price adjustment cannot be deleted

---
M src-db/database/model/tables/C_ORDERLINE_OFFER.xml
M src-db/database/model/triggers/C_INVOICELINE_TRG2.xml
M src-db/database/model/triggers/C_ORDERLINE_TRG2.xml