Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008711Openbravo ERP05. Production managementpublic2009-04-22 16:342009-05-05 00:00
AinhoaPagola 
AinhoaPagola 
urgentminoralways
closedfixed 
20Ubuntu 8.4
pi 
pi2.50MP1 
Core
No
0008711: Wrong constraint on m_transaction table- UUID
Internal Consumption Process fails because it can not insert lines in M_transaction.

The error is:
2009-04-22 16:00:17 CEST NOTICE: @ERROR=insert or update on table "m_transaction" violates foreign key constraint "m_intl_consump_mtransaction"

It is also reproducible in 2.40.
Create a new Internal Consuption and try to process it.

CONSTRAINT m_intl_consump_mtransaction FOREIGN KEY (m_internal_consumptionline_id)
      REFERENCES m_internal_consumption (m_internal_consumption_id) MATCH SIMPLE

Is wrong. It references the header instead of the line.

The pl is right and tries to insert the line ID, but it fails because the header id is expected (because of the wrong constraint).
250MP1
Issue History
2009-04-22 16:34AinhoaPagolaNew Issue
2009-04-22 16:34AinhoaPagolaAssigned To => rafaroda
2009-04-22 16:34AinhoaPagolaRegression testing => No
2009-04-22 16:36psarobePrioritynormal => urgent
2009-04-22 16:36psarobeStatusnew => scheduled
2009-04-22 16:36psarobeSummaryWrong constraint on m_transaction table => Wrong constraint on m_transaction table- UUID
2009-04-22 17:00AinhoaPagolaAssigned Torafaroda => AinhoaPagola
2009-04-23 12:57hgbotCheckin
2009-04-23 12:57hgbotNote Added: 0015614
2009-04-23 12:57hgbotStatusscheduled => resolved
2009-04-23 12:57hgbotResolutionopen => fixed
2009-04-23 12:57hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/bcd29d3a8fbdc2bcbc7cd0d738cf2d80a317ec5d [^]
2009-04-23 18:23psarobeTag Attached: 250MP1
2009-05-04 18:30psarobeStatusresolved => closed
2009-05-05 00:00anonymoussf_bug_id0 => 2786916

Notes
(0015614)
hgbot   
2009-04-23 12:57   
Repository: erp/devel/pi
Changeset: bcd29d3a8fbdc2bcbc7cd0d738cf2d80a317ec5d
Author: Ainhoa Pagola <ainhoa.pagola <at> openbravo.com>
Date: Wed Apr 22 17:00:48 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/bcd29d3a8fbdc2bcbc7cd0d738cf2d80a317ec5d [^]

Fixes bug 8711: Wrong constraint in m_transaction. UUID

---
M src-db/database/model/tables/M_TRANSACTION.xml
---