Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0000098Openbravo ERPA. Platformpublic2008-04-24 10:022008-12-02 13:01
psarobe 
marvintm 
lowmajoralways
closedfixed 
10
2.40 
2.402.40beta 
Core
No
0000098: Creating database from sources.
When creating the database from sources for postgres 8.2 it shows me an error:

[createdatabase] SQL Command failed with: ERROR: relation "c_invoice_v" does not exist
[createdatabase] -- END C_DEBT_PAYMENT_V
[createdatabase] -- -----------------------------------------------------------------------
[createdatabase] -- VIEW C_INVOICELINE_V
[createdatabase] -- -----------------------------------------------------------------------
[createdatabase] -- SCRIPT OPTIONS (FORCE = TRUE)
[createdatabase] CREATE VIEW C_INVOICELINE_V AS SELECT il.ad_client_id, il.ad_org_id, il.c_invoiceline_id, i.c_invoice_id, i.salesrep_id, i.c_bpartner_id, il.m_
product_id, i.documentno, i.dateinvoiced, i.dateacct, i.issotrx, i.docstatus, round(i.multiplier * il.linenetamt, 2) AS linenetamt, round(i.multiplier * il.pric
elist * il.qtyinvoiced, 2) AS linelistamt,
[createdatabase] CASE
[createdatabase] WHEN il.pricelimit IS NULL THEN round(i.multiplier * il.linenetamt, 2)
[createdatabase] ELSE round(i.multiplier * il.pricelimit * il.qtyinvoiced, 2)
[createdatabase] END AS linelimitamt, round(i.multiplier * il.pricelist * il.qtyinvoiced - il.linenetamt, 2) AS linediscountamt,
[createdatabase] CASE
[createdatabase] WHEN il.pricelimit IS NULL THEN 0
[createdatabase] ELSE round(i.multiplier * il.linenetamt - il.pricelimit * il.qtyinvoiced, 2)
[createdatabase] END AS lineoverlimitamt, il.qtyinvoiced, il.line, il.c_orderline_id, il.c_uom_id
[createdatabase] FROM c_invoice_v i, c_invoiceline il
[createdatabase] WHERE i.c_invoice_id = il.c_invoice_id
[createdatabase] Executed 4963 SQL command(s) with 1 error(s)
[createdatabase] Executed 1 forced SQL command(s) with 0 error(s)
[createdatabase] Executing default postscript
[createdatabase] Executed 6 SQL command(s) with 0 error(s)
Install from sources and execute the task ant create.database
PostgreSQL
depends on backport 0000138 closed marvintm Creating database from sources. 
Issue History
2008-04-24 10:02psarobeNew Issue
2008-04-24 10:02psarobeStatusnew => @50@
2008-04-24 10:02psarobeAssigned To => cromero
2008-04-24 12:42cromeroAssigned Tocromero => user20
2008-04-24 12:42cromeroStatus@50@ => @40@
2008-04-24 15:16user20Resolutionopen => fixed
2008-04-24 15:16user20Fixed in Version => trunk
2008-04-28 10:53cromeroStatus@40@ => scheduled
2008-04-28 12:15adminAssigned Touser20 => marvintm
2008-05-06 16:17marvintmStatusscheduled => resolved
2008-05-06 16:17marvintmFixed in Versiontrunk => 2.40
2008-05-06 16:17marvintmNote Added: 0000057
2008-07-10 12:29plujanTag Attached: PostgreSQL
2008-08-20 18:21psarobeRegression testing => No
2008-08-20 18:21psarobeStatusresolved => closed
2008-08-20 18:21psarobeFixed in Version2.40 => 2.40beta
2008-12-02 13:01jaimetorresf_bug_id0 => 2377008

Notes
(0000057)
marvintm   
2008-05-06 16:17   
Fixed in revision 3759.