IDEMPIERE-3150 Multiple print of lines with charges in translated receipt/shipment or invoice

This commit is contained in:
Carlos Ruiz 2016-08-06 11:23:06 +02:00
parent d0aa33e822
commit d543f06a28
6 changed files with 3539 additions and 4 deletions

View File

@ -306,6 +306,7 @@ AS
ON il.c_charge_id = c.c_charge_id ON il.c_charge_id = c.c_charge_id
LEFT JOIN c_charge_trl ct LEFT JOIN c_charge_trl ct
ON il.c_charge_id = ct.c_charge_id ON il.c_charge_id = ct.c_charge_id
AND uomt.ad_language = ct.ad_language
LEFT JOIN c_bpartner_product pp LEFT JOIN c_bpartner_product pp
ON il.m_product_id = pp.m_product_id ON il.m_product_id = pp.m_product_id
AND i.c_bpartner_id = pp.c_bpartner_id AND i.c_bpartner_id = pp.c_bpartner_id

View File

@ -233,6 +233,7 @@ AS
ON iol.c_charge_id = c.c_charge_id ON iol.c_charge_id = c.c_charge_id
LEFT JOIN c_charge_trl ct LEFT JOIN c_charge_trl ct
ON iol.c_charge_id = ct.c_charge_id ON iol.c_charge_id = ct.c_charge_id
AND uomt.ad_language = ct.ad_language
UNION UNION
SELECT iol.ad_client_id, SELECT iol.ad_client_id,
iol.ad_org_id, iol.ad_org_id,

View File

@ -264,7 +264,7 @@ CREATE OR REPLACE VIEW c_invoice_linetax_vt AS
LEFT JOIN c_charge c LEFT JOIN c_charge c
ON il.c_charge_id = c.c_charge_id ON il.c_charge_id = c.c_charge_id
LEFT JOIN c_charge_trl ct LEFT JOIN c_charge_trl ct
ON il.c_charge_id = ct.c_charge_id ON il.c_charge_id = ct.c_charge_id AND uomt.ad_language = ct.ad_language
LEFT JOIN c_bpartner_product pp LEFT JOIN c_bpartner_product pp
ON il.m_product_id = pp.m_product_id AND i.c_bpartner_id = pp.c_bpartner_id ON il.m_product_id = pp.m_product_id AND i.c_bpartner_id = pp.c_bpartner_id
LEFT JOIN m_product_trl pt LEFT JOIN m_product_trl pt
@ -534,7 +534,7 @@ CREATE OR REPLACE VIEW c_invoice_linetax_vt AS
ON bl.m_product_id = pt.m_product_id AND uomt.ad_language = pt.ad_language ON bl.m_product_id = pt.m_product_id AND uomt.ad_language = pt.ad_language
LEFT JOIN c_tax t LEFT JOIN c_tax t
ON il.c_tax_id = t.c_tax_id ON il.c_tax_id = t.c_tax_id
LEFT JOIN c_tax_trl tt LEFT JOIN c_tax_trl tt
ON il.c_tax_id = tt.c_tax_id AND uomt.ad_language = tt.ad_language ON il.c_tax_id = tt.c_tax_id AND uomt.ad_language = tt.ad_language
LEFT JOIN m_attributesetinstance asi LEFT JOIN m_attributesetinstance asi
ON il.m_attributesetinstance_id = asi.m_attributesetinstance_id) ON il.m_attributesetinstance_id = asi.m_attributesetinstance_id)

View File

@ -1,4 +1,4 @@
DROP VIEW m_inout_line_vt; DROP VIEW m_inout_line_vt;
CREATE OR REPLACE VIEW m_inout_line_vt AS CREATE OR REPLACE VIEW m_inout_line_vt AS
SELECT iol.ad_client_id, SELECT iol.ad_client_id,
@ -214,7 +214,7 @@ FROM m_inoutline iol
LEFT JOIN c_charge c LEFT JOIN c_charge c
ON iol.c_charge_id = c.c_charge_id ON iol.c_charge_id = c.c_charge_id
LEFT JOIN c_charge_trl ct LEFT JOIN c_charge_trl ct
ON iol.c_charge_id = ct.c_charge_id ON iol.c_charge_id = ct.c_charge_id AND uomt.ad_language = ct.ad_language
UNION SELECT iol.ad_client_id, UNION SELECT iol.ad_client_id,
iol.ad_org_id, iol.ad_org_id,
iol.isactive, iol.isactive,

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff