IDEMPIERE-794 Ticket #1001025 - Expand the views to provide more information / add cursymbol and curdescription - complete columns that were not added on invoice and order header

This commit is contained in:
Carlos Ruiz 2013-04-13 14:56:50 -05:00
parent c094aa3a4e
commit b6cb69938d
10 changed files with 4319 additions and 12 deletions

View File

@ -330,7 +330,9 @@ AS
ubp.updated AS bpartner_updated,
ubp.updatedby AS bpartner_updatedby,
ubp.url AS bpartner_url,
ubp.value AS bpartner_value
ubp.value AS bpartner_value,
cur.cursymbol,
cur.description AS cur_description
FROM c_invoice i
JOIN c_doctype dt
ON i.c_doctype_id = dt.c_doctype_id
@ -356,5 +358,7 @@ AS
ON i.salesrep_id = u.ad_user_id
LEFT JOIN c_bpartner ubp
ON u.c_bpartner_id = ubp.c_bpartner_id
LEFT JOIN c_currency cur
ON i.c_currency_id = cur.c_currency_id
;

View File

@ -330,7 +330,9 @@ AS
ubp.updated AS bpartner_updated,
ubp.updatedby AS bpartner_updatedby,
ubp.url AS bpartner_url,
ubp.value AS bpartner_value
ubp.value AS bpartner_value,
cur.cursymbol,
cur.description AS cur_description
FROM c_invoice i
JOIN c_doctype_trl dt
ON i.c_doctype_id = dt.c_doctype_id
@ -365,5 +367,8 @@ AS
ON i.salesrep_id = u.ad_user_id
LEFT JOIN c_bpartner ubp
ON u.c_bpartner_id = ubp.c_bpartner_id
LEFT JOIN c_currency_trl cur
ON i.c_currency_id = cur.c_currency_id
AND dt.ad_language = cur.ad_language
;

View File

@ -473,7 +473,9 @@ AS
bbpc.supervisor_id AS bill_user_supervisor_id,
bbpc.updated AS bill_user_updated,
bbpc.updatedby AS bill_user_updatedby,
bbpc.value AS bill_user_value
bbpc.value AS bill_user_value,
cur.cursymbol,
cur.description AS cur_description
FROM c_order o
JOIN c_doctype dt
ON o.c_doctype_id = dt.c_doctype_id
@ -507,5 +509,7 @@ AS
ON o.bill_location_id = bbpl.c_bpartner_location_id
LEFT JOIN ad_user bbpc
ON o.bill_user_id = bbpc.ad_user_id
LEFT JOIN c_currency cur
ON o.c_currency_id = cur.c_currency_id
;

View File

@ -473,7 +473,9 @@ AS
bbpc.supervisor_id AS bill_user_supervisor_id,
bbpc.updated AS bill_user_updated,
bbpc.updatedby AS bill_user_updatedby,
bbpc.value AS bill_user_value
bbpc.value AS bill_user_value,
cur.cursymbol,
cur.description AS cur_description
FROM c_order o
JOIN c_doctype_trl dt
ON o.c_doctype_id = dt.c_doctype_id
@ -516,5 +518,8 @@ AS
ON o.bill_location_id = bbpl.c_bpartner_location_id
LEFT JOIN ad_user bbpc
ON o.bill_user_id = bbpc.ad_user_id
LEFT JOIN c_currency_trl cur
ON o.c_currency_id = cur.c_currency_id
AND dt.ad_language = cur.ad_language
;

View File

@ -1,4 +1,4 @@
DROP VIEW c_invoice_header_v;
DROP VIEW c_invoice_header_v;
CREATE OR REPLACE VIEW c_invoice_header_v AS
SELECT i.ad_client_id,
@ -328,7 +328,9 @@ SELECT i.ad_client_id,
ubp.updated AS bpartner_updated,
ubp.updatedby AS bpartner_updatedby,
ubp.url AS bpartner_url,
ubp.value AS bpartner_value
ubp.value AS bpartner_value,
cur.cursymbol,
cur.description AS cur_description
FROM c_invoice i
JOIN c_doctype dt
ON i.c_doctype_id = dt.c_doctype_id
@ -354,4 +356,6 @@ FROM c_invoice i
ON i.salesrep_id = u.ad_user_id
LEFT JOIN c_bpartner ubp
ON u.c_bpartner_id = ubp.c_bpartner_id
LEFT JOIN c_currency cur
ON i.c_currency_id = cur.c_currency_id
;

View File

@ -1,4 +1,4 @@
DROP VIEW c_invoice_header_vt;
DROP VIEW c_invoice_header_vt;
CREATE OR REPLACE VIEW c_invoice_header_vt AS
SELECT i.ad_client_id,
@ -328,7 +328,9 @@ SELECT i.ad_client_id,
ubp.updated AS bpartner_updated,
ubp.updatedby AS bpartner_updatedby,
ubp.url AS bpartner_url,
ubp.value AS bpartner_value
ubp.value AS bpartner_value,
cur.cursymbol,
cur.description AS cur_description
FROM c_invoice i
JOIN c_doctype_trl dt
ON i.c_doctype_id = dt.c_doctype_id
@ -360,4 +362,6 @@ FROM c_invoice i
ON i.salesrep_id = u.ad_user_id
LEFT JOIN c_bpartner ubp
ON u.c_bpartner_id = ubp.c_bpartner_id
LEFT JOIN c_currency_trl cur
ON i.c_currency_id = cur.c_currency_id AND dt.ad_language = cur.ad_language
;

View File

@ -1,4 +1,4 @@
DROP VIEW c_order_header_v;
DROP VIEW c_order_header_v;
CREATE OR REPLACE VIEW c_order_header_v AS
SELECT o.ad_client_id,
@ -471,7 +471,9 @@ SELECT o.ad_client_id,
bbpc.supervisor_id AS bill_user_supervisor_id,
bbpc.updated AS bill_user_updated,
bbpc.updatedby AS bill_user_updatedby,
bbpc.value AS bill_user_value
bbpc.value AS bill_user_value,
cur.cursymbol,
cur.description AS cur_description
FROM c_order o
JOIN c_doctype dt
ON o.c_doctype_id = dt.c_doctype_id
@ -505,4 +507,6 @@ FROM c_order o
ON o.bill_location_id = bbpl.c_bpartner_location_id
LEFT JOIN ad_user bbpc
ON o.bill_user_id = bbpc.ad_user_id
LEFT JOIN c_currency cur
ON o.c_currency_id = cur.c_currency_id
;

View File

@ -1,4 +1,4 @@
DROP VIEW c_order_header_vt;
DROP VIEW c_order_header_vt;
CREATE OR REPLACE VIEW c_order_header_vt AS
SELECT o.ad_client_id,
@ -471,7 +471,9 @@ SELECT o.ad_client_id,
bbpc.supervisor_id AS bill_user_supervisor_id,
bbpc.updated AS bill_user_updated,
bbpc.updatedby AS bill_user_updatedby,
bbpc.value AS bill_user_value
bbpc.value AS bill_user_value,
cur.cursymbol,
cur.description AS cur_description
FROM c_order o
JOIN c_doctype_trl dt
ON o.c_doctype_id = dt.c_doctype_id
@ -511,4 +513,6 @@ FROM c_order o
ON o.bill_location_id = bbpl.c_bpartner_location_id
LEFT JOIN ad_user bbpc
ON o.bill_user_id = bbpc.ad_user_id
LEFT JOIN c_currency_trl cur
ON o.c_currency_id = cur.c_currency_id AND dt.ad_language = cur.ad_language
;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff