IDEMPIERE-794 Ticket #1001025 - Expand the views to provide more information / Fix problem reported by Max
This commit is contained in:
parent
c1a3e72652
commit
a766a9ca9e
|
@ -306,7 +306,7 @@ AS
|
|||
ON il.s_resourceassignment_id = ra.s_resourceassignment_id
|
||||
LEFT JOIN m_attributesetinstance asi
|
||||
ON il.m_attributesetinstance_id = asi.m_attributesetinstance_id
|
||||
UNION
|
||||
UNION /* BOM lines */
|
||||
SELECT il.ad_client_id,
|
||||
il.ad_org_id,
|
||||
il.isactive,
|
||||
|
@ -575,7 +575,7 @@ AS
|
|||
ON il.c_tax_id = t.c_tax_id
|
||||
LEFT JOIN m_attributesetinstance asi
|
||||
ON il.m_attributesetinstance_id = asi.m_attributesetinstance_id)
|
||||
UNION
|
||||
UNION /* comment lines */
|
||||
SELECT il.ad_client_id,
|
||||
il.ad_org_id,
|
||||
il.isactive,
|
||||
|
@ -621,23 +621,23 @@ AS
|
|||
NULL AS c_activity_id,
|
||||
NULL AS c_projectphase_id,
|
||||
NULL AS c_projecttask_id,
|
||||
il.ad_orgtrx_id AS c_invoiceline_ad_orgtrx_id,
|
||||
il.a_processed,
|
||||
il.c_charge_id,
|
||||
il.c_orderline_id,
|
||||
il.c_uom_id,
|
||||
il.isdescription,
|
||||
il.isprinted AS c_invoiceline_isprinted,
|
||||
il.m_inoutline_id,
|
||||
il.m_rmaline_id,
|
||||
il.pricelimit,
|
||||
il.processed AS c_invoiceline_processed,
|
||||
il.ref_invoiceline_id,
|
||||
il.rramt,
|
||||
il.rrstartdate,
|
||||
il.s_resourceassignment_id,
|
||||
il.user1_id AS c_invoiceline_user1_id,
|
||||
il.user2_id AS c_invoiceline_user2_id,
|
||||
NULL AS c_invoiceline_ad_orgtrx_id,
|
||||
NULL AS a_processed,
|
||||
NULL AS c_charge_id,
|
||||
NULL AS c_orderline_id,
|
||||
NULL AS c_uom_id,
|
||||
NULL AS isdescription,
|
||||
NULL AS c_invoiceline_isprinted,
|
||||
NULL AS m_inoutline_id,
|
||||
NULL AS m_rmaline_id,
|
||||
NULL AS pricelimit,
|
||||
NULL AS c_invoiceline_processed,
|
||||
NULL AS ref_invoiceline_id,
|
||||
NULL AS rramt,
|
||||
NULL AS rrstartdate,
|
||||
NULL AS s_resourceassignment_id,
|
||||
NULL AS c_invoiceline_user1_id,
|
||||
NULL AS c_invoiceline_user2_id,
|
||||
NULL AS c_uom_ad_org_id,
|
||||
NULL AS costingprecision,
|
||||
NULL AS c_uom_description,
|
||||
|
@ -822,7 +822,7 @@ AS
|
|||
NULL AS m_asi_updatedby
|
||||
FROM c_invoiceline il
|
||||
WHERE il.c_uom_id IS NULL)
|
||||
UNION
|
||||
UNION /* empty line */
|
||||
SELECT i.ad_client_id,
|
||||
i.ad_org_id,
|
||||
i.isactive,
|
||||
|
@ -894,65 +894,65 @@ AS
|
|||
NULL AS stdprecision,
|
||||
NULL AS uomtype,
|
||||
NULL AS x12de355,
|
||||
i.ad_org_id AS c_invoice_ad_org_id,
|
||||
i.ad_orgtrx_id AS c_invoice_ad_orgtrx_id,
|
||||
i.ad_user_id AS c_invoice_ad_user_id,
|
||||
i.c_activity_id AS c_invoice_c_activity_id,
|
||||
i.c_bpartner_id AS c_invoice_c_bpartner_id,
|
||||
i.c_bpartner_location_id,
|
||||
i.c_campaign_id AS c_invoice_c_campaign_id,
|
||||
i.c_charge_id AS c_invoice_c_charge_id,
|
||||
i.c_conversiontype_id,
|
||||
i.c_currency_id,
|
||||
i.c_doctype_id,
|
||||
i.c_doctypetarget_id,
|
||||
i.c_dunninglevel_id,
|
||||
i.chargeamt AS c_invoice_chargeamt,
|
||||
i.c_order_id,
|
||||
i.c_payment_id,
|
||||
i.c_paymentterm_id,
|
||||
i.c_project_id AS c_invoice_c_project_id,
|
||||
i.created AS c_invoice_created,
|
||||
i.createdby AS c_invoice_createdby,
|
||||
i.dateacct,
|
||||
i.dateinvoiced,
|
||||
i.dateordered,
|
||||
i.dateprinted,
|
||||
i.description AS c_invoice_description,
|
||||
i.docaction,
|
||||
i.docstatus,
|
||||
i.documentno,
|
||||
i.dunninggrace,
|
||||
i.generateto,
|
||||
i.grandtotal,
|
||||
i.invoicecollectiontype,
|
||||
i.isactive AS c_invoice_isactive,
|
||||
i.isapproved,
|
||||
i.isdiscountprinted,
|
||||
i.isindispute,
|
||||
i.ispaid,
|
||||
i.ispayschedulevalid,
|
||||
i.isprinted AS c_invoice_isprinted,
|
||||
i.isselfservice AS c_invoice_isselfservice,
|
||||
i.issotrx,
|
||||
i.istaxincluded AS c_invoice_istaxincluded,
|
||||
i.istransferred,
|
||||
i.m_pricelist_id,
|
||||
i.m_rma_id,
|
||||
i.paymentrule,
|
||||
i.poreference,
|
||||
i.posted,
|
||||
i.processedon,
|
||||
i.processing,
|
||||
i.ref_invoice_id,
|
||||
i.reversal_id,
|
||||
i.salesrep_id,
|
||||
i.sendemail,
|
||||
i.totallines,
|
||||
i.updated AS c_invoice_updated,
|
||||
i.updatedby AS c_invoice_updatedby,
|
||||
i.user1_id AS c_invoice_user1_id,
|
||||
i.user2_id AS c_invoice_user2_id,
|
||||
NULL AS c_invoice_ad_org_id,
|
||||
NULL AS c_invoice_ad_orgtrx_id,
|
||||
NULL AS c_invoice_ad_user_id,
|
||||
NULL AS c_invoice_c_activity_id,
|
||||
NULL AS c_invoice_c_bpartner_id,
|
||||
NULL AS c_bpartner_location_id,
|
||||
NULL AS c_invoice_c_campaign_id,
|
||||
NULL AS c_invoice_c_charge_id,
|
||||
NULL AS c_conversiontype_id,
|
||||
NULL AS c_currency_id,
|
||||
NULL AS c_doctype_id,
|
||||
NULL AS c_doctypetarget_id,
|
||||
NULL AS c_dunninglevel_id,
|
||||
NULL AS c_invoice_chargeamt,
|
||||
NULL AS c_order_id,
|
||||
NULL AS c_payment_id,
|
||||
NULL AS c_paymentterm_id,
|
||||
NULL AS c_invoice_c_project_id,
|
||||
NULL AS c_invoice_created,
|
||||
NULL AS c_invoice_createdby,
|
||||
NULL AS dateacct,
|
||||
NULL AS dateinvoiced,
|
||||
NULL AS dateordered,
|
||||
NULL AS dateprinted,
|
||||
NULL AS c_invoice_description,
|
||||
NULL AS docaction,
|
||||
NULL AS docstatus,
|
||||
NULL AS documentno,
|
||||
NULL AS dunninggrace,
|
||||
NULL AS generateto,
|
||||
NULL AS grandtotal,
|
||||
NULL AS invoicecollectiontype,
|
||||
NULL AS c_invoice_isactive,
|
||||
NULL AS isapproved,
|
||||
NULL AS isdiscountprinted,
|
||||
NULL AS isindispute,
|
||||
NULL AS ispaid,
|
||||
NULL AS ispayschedulevalid,
|
||||
NULL AS c_invoice_isprinted,
|
||||
NULL AS c_invoice_isselfservice,
|
||||
NULL AS issotrx,
|
||||
NULL AS c_invoice_istaxincluded,
|
||||
NULL AS istransferred,
|
||||
NULL AS m_pricelist_id,
|
||||
NULL AS m_rma_id,
|
||||
NULL AS paymentrule,
|
||||
NULL AS poreference,
|
||||
NULL AS posted,
|
||||
NULL AS processedon,
|
||||
NULL AS processing,
|
||||
NULL AS ref_invoice_id,
|
||||
NULL AS reversal_id,
|
||||
NULL AS salesrep_id,
|
||||
NULL AS sendemail,
|
||||
NULL AS totallines,
|
||||
NULL AS c_invoice_updated,
|
||||
NULL AS c_invoice_updatedby,
|
||||
NULL AS c_invoice_user1_id,
|
||||
NULL AS c_invoice_user2_id,
|
||||
NULL AS c_tax_ad_org_id,
|
||||
NULL AS ad_rule_id,
|
||||
NULL AS c_country_id,
|
||||
|
@ -1068,7 +1068,7 @@ AS
|
|||
NULL AS m_asi_updated,
|
||||
NULL AS m_asi_updatedby
|
||||
FROM c_invoice i)
|
||||
UNION
|
||||
UNION /* tax lines */
|
||||
SELECT it.ad_client_id,
|
||||
it.ad_org_id,
|
||||
it.isactive,
|
||||
|
|
|
@ -316,7 +316,7 @@ AS
|
|||
ON il.s_resourceassignment_id = ra.s_resourceassignment_id
|
||||
LEFT JOIN m_attributesetinstance asi
|
||||
ON il.m_attributesetinstance_id = asi.m_attributesetinstance_id
|
||||
UNION
|
||||
UNION /* BOM lines */
|
||||
SELECT il.ad_client_id,
|
||||
il.ad_org_id,
|
||||
il.isactive,
|
||||
|
@ -593,7 +593,7 @@ AS
|
|||
AND uomt.ad_language = tt.ad_language
|
||||
LEFT JOIN m_attributesetinstance asi
|
||||
ON il.m_attributesetinstance_id = asi.m_attributesetinstance_id)
|
||||
UNION
|
||||
UNION /* comment lines */
|
||||
SELECT il.ad_client_id,
|
||||
il.ad_org_id,
|
||||
il.isactive,
|
||||
|
@ -639,23 +639,23 @@ AS
|
|||
NULL AS c_activity_id,
|
||||
NULL AS c_projectphase_id,
|
||||
NULL AS c_projecttask_id,
|
||||
il.ad_orgtrx_id AS c_invoiceline_ad_orgtrx_id,
|
||||
il.a_processed,
|
||||
il.c_charge_id,
|
||||
il.c_orderline_id,
|
||||
il.c_uom_id,
|
||||
il.isdescription,
|
||||
il.isprinted AS c_invoiceline_isprinted,
|
||||
il.m_inoutline_id,
|
||||
il.m_rmaline_id,
|
||||
il.pricelimit,
|
||||
il.processed AS c_invoiceline_processed,
|
||||
il.ref_invoiceline_id,
|
||||
il.rramt,
|
||||
il.rrstartdate,
|
||||
il.s_resourceassignment_id,
|
||||
il.user1_id AS c_invoiceline_user1_id,
|
||||
il.user2_id AS c_invoiceline_user2_id,
|
||||
NULL AS c_invoiceline_ad_orgtrx_id,
|
||||
NULL AS a_processed,
|
||||
NULL AS c_charge_id,
|
||||
NULL AS c_orderline_id,
|
||||
NULL AS c_uom_id,
|
||||
NULL AS isdescription,
|
||||
NULL AS c_invoiceline_isprinted,
|
||||
NULL AS m_inoutline_id,
|
||||
NULL AS m_rmaline_id,
|
||||
NULL AS pricelimit,
|
||||
NULL AS c_invoiceline_processed,
|
||||
NULL AS ref_invoiceline_id,
|
||||
NULL AS rramt,
|
||||
NULL AS rrstartdate,
|
||||
NULL AS s_resourceassignment_id,
|
||||
NULL AS c_invoiceline_user1_id,
|
||||
NULL AS c_invoiceline_user2_id,
|
||||
NULL AS c_uom_ad_org_id,
|
||||
NULL AS costingprecision,
|
||||
NULL AS c_uom_description,
|
||||
|
@ -843,7 +843,7 @@ AS
|
|||
WHERE il.c_uom_id IS NULL
|
||||
AND l.isbaselanguage = 'N'
|
||||
AND l.issystemlanguage = 'Y')
|
||||
UNION
|
||||
UNION /* empty line */
|
||||
SELECT i.ad_client_id,
|
||||
i.ad_org_id,
|
||||
i.isactive,
|
||||
|
@ -915,65 +915,65 @@ AS
|
|||
NULL AS stdprecision,
|
||||
NULL AS uomtype,
|
||||
NULL AS x12de355,
|
||||
i.ad_org_id AS c_invoice_ad_org_id,
|
||||
i.ad_orgtrx_id AS c_invoice_ad_orgtrx_id,
|
||||
i.ad_user_id AS c_invoice_ad_user_id,
|
||||
i.c_activity_id AS c_invoice_c_activity_id,
|
||||
i.c_bpartner_id AS c_invoice_c_bpartner_id,
|
||||
i.c_bpartner_location_id,
|
||||
i.c_campaign_id AS c_invoice_c_campaign_id,
|
||||
i.c_charge_id AS c_invoice_c_charge_id,
|
||||
i.c_conversiontype_id,
|
||||
i.c_currency_id,
|
||||
i.c_doctype_id,
|
||||
i.c_doctypetarget_id,
|
||||
i.c_dunninglevel_id,
|
||||
i.chargeamt AS c_invoice_chargeamt,
|
||||
i.c_order_id,
|
||||
i.c_payment_id,
|
||||
i.c_paymentterm_id,
|
||||
i.c_project_id AS c_invoice_c_project_id,
|
||||
i.created AS c_invoice_created,
|
||||
i.createdby AS c_invoice_createdby,
|
||||
i.dateacct,
|
||||
i.dateinvoiced,
|
||||
i.dateordered,
|
||||
i.dateprinted,
|
||||
i.description AS c_invoice_description,
|
||||
i.docaction,
|
||||
i.docstatus,
|
||||
i.documentno,
|
||||
i.dunninggrace,
|
||||
i.generateto,
|
||||
i.grandtotal,
|
||||
i.invoicecollectiontype,
|
||||
i.isactive AS c_invoice_isactive,
|
||||
i.isapproved,
|
||||
i.isdiscountprinted,
|
||||
i.isindispute,
|
||||
i.ispaid,
|
||||
i.ispayschedulevalid,
|
||||
i.isprinted AS c_invoice_isprinted,
|
||||
i.isselfservice AS c_invoice_isselfservice,
|
||||
i.issotrx,
|
||||
i.istaxincluded AS c_invoice_istaxincluded,
|
||||
i.istransferred,
|
||||
i.m_pricelist_id,
|
||||
i.m_rma_id,
|
||||
i.paymentrule,
|
||||
i.poreference,
|
||||
i.posted,
|
||||
i.processedon,
|
||||
i.processing,
|
||||
i.ref_invoice_id,
|
||||
i.reversal_id,
|
||||
i.salesrep_id,
|
||||
i.sendemail,
|
||||
i.totallines,
|
||||
i.updated AS c_invoice_updated,
|
||||
i.updatedby AS c_invoice_updatedby,
|
||||
i.user1_id AS c_invoice_user1_id,
|
||||
i.user2_id AS c_invoice_user2_id,
|
||||
NULL AS c_invoice_ad_org_id,
|
||||
NULL AS c_invoice_ad_orgtrx_id,
|
||||
NULL AS c_invoice_ad_user_id,
|
||||
NULL AS c_invoice_c_activity_id,
|
||||
NULL AS c_invoice_c_bpartner_id,
|
||||
NULL AS c_bpartner_location_id,
|
||||
NULL AS c_invoice_c_campaign_id,
|
||||
NULL AS c_invoice_c_charge_id,
|
||||
NULL AS c_conversiontype_id,
|
||||
NULL AS c_currency_id,
|
||||
NULL AS c_doctype_id,
|
||||
NULL AS c_doctypetarget_id,
|
||||
NULL AS c_dunninglevel_id,
|
||||
NULL AS c_invoice_chargeamt,
|
||||
NULL AS c_order_id,
|
||||
NULL AS c_payment_id,
|
||||
NULL AS c_paymentterm_id,
|
||||
NULL AS c_invoice_c_project_id,
|
||||
NULL AS c_invoice_created,
|
||||
NULL AS c_invoice_createdby,
|
||||
NULL AS dateacct,
|
||||
NULL AS dateinvoiced,
|
||||
NULL AS dateordered,
|
||||
NULL AS dateprinted,
|
||||
NULL AS c_invoice_description,
|
||||
NULL AS docaction,
|
||||
NULL AS docstatus,
|
||||
NULL AS documentno,
|
||||
NULL AS dunninggrace,
|
||||
NULL AS generateto,
|
||||
NULL AS grandtotal,
|
||||
NULL AS invoicecollectiontype,
|
||||
NULL AS c_invoice_isactive,
|
||||
NULL AS isapproved,
|
||||
NULL AS isdiscountprinted,
|
||||
NULL AS isindispute,
|
||||
NULL AS ispaid,
|
||||
NULL AS ispayschedulevalid,
|
||||
NULL AS c_invoice_isprinted,
|
||||
NULL AS c_invoice_isselfservice,
|
||||
NULL AS issotrx,
|
||||
NULL AS c_invoice_istaxincluded,
|
||||
NULL AS istransferred,
|
||||
NULL AS m_pricelist_id,
|
||||
NULL AS m_rma_id,
|
||||
NULL AS paymentrule,
|
||||
NULL AS poreference,
|
||||
NULL AS posted,
|
||||
NULL AS processedon,
|
||||
NULL AS processing,
|
||||
NULL AS ref_invoice_id,
|
||||
NULL AS reversal_id,
|
||||
NULL AS salesrep_id,
|
||||
NULL AS sendemail,
|
||||
NULL AS totallines,
|
||||
NULL AS c_invoice_updated,
|
||||
NULL AS c_invoice_updatedby,
|
||||
NULL AS c_invoice_user1_id,
|
||||
NULL AS c_invoice_user2_id,
|
||||
NULL AS c_tax_ad_org_id,
|
||||
NULL AS ad_rule_id,
|
||||
NULL AS c_country_id,
|
||||
|
@ -1092,7 +1092,7 @@ AS
|
|||
ad_language l
|
||||
WHERE l.isbaselanguage = 'N'
|
||||
AND l.issystemlanguage = 'Y')
|
||||
UNION
|
||||
UNION /* tax lines */
|
||||
SELECT it.ad_client_id,
|
||||
it.ad_org_id,
|
||||
it.isactive,
|
||||
|
|
|
@ -445,7 +445,7 @@ AS
|
|||
ON ol.c_bpartner_location_id = bpl.c_bpartner_location_id
|
||||
LEFT JOIN c_tax t
|
||||
ON ol.c_tax_id = t.c_tax_id
|
||||
UNION
|
||||
UNION /* BOM lines */
|
||||
SELECT ol.ad_client_id,
|
||||
ol.ad_org_id,
|
||||
ol.isactive,
|
||||
|
@ -849,7 +849,7 @@ AS
|
|||
AND i.c_bpartner_id = po.c_bpartner_id
|
||||
JOIN c_uom uom
|
||||
ON p.c_uom_id = uom.c_uom_id)
|
||||
UNION
|
||||
UNION /* empty line */
|
||||
SELECT i.ad_client_id,
|
||||
i.ad_org_id,
|
||||
i.isactive,
|
||||
|
@ -928,87 +928,87 @@ AS
|
|||
NULL AS stdprecision,
|
||||
NULL AS uomtype,
|
||||
NULL AS x12de355,
|
||||
i.ad_org_id AS c_order_ad_org_id,
|
||||
i.ad_orgtrx_id AS c_order_ad_orgtrx_id,
|
||||
i.ad_user_id,
|
||||
i.amountrefunded,
|
||||
i.amounttendered,
|
||||
i.bill_bpartner_id,
|
||||
i.bill_location_id,
|
||||
i.bill_user_id,
|
||||
i.c_activity_id AS c_order_c_activity_id,
|
||||
i.c_bpartner_id AS c_order_c_bpartner_id,
|
||||
i.c_campaign_id AS c_order_c_campaign_id,
|
||||
i.c_cashline_id,
|
||||
i.c_cashplanline_id,
|
||||
i.c_charge_id AS c_order_c_charge_id,
|
||||
i.c_conversiontype_id,
|
||||
i.c_currency_id AS c_order_c_currency_id,
|
||||
i.c_doctype_id,
|
||||
i.c_doctypetarget_id,
|
||||
i.chargeamt,
|
||||
i.copyfrom,
|
||||
i.c_payment_id,
|
||||
i.c_paymentterm_id,
|
||||
i.c_pos_id,
|
||||
i.c_project_id AS c_order_c_project_id,
|
||||
i.created AS c_order_created,
|
||||
i.createdby AS c_order_createdby,
|
||||
i.dateacct,
|
||||
i.dateprinted,
|
||||
i.datepromised AS c_order_datepromised,
|
||||
i.deliveryrule,
|
||||
i.deliveryviarule,
|
||||
i.description AS c_order_description,
|
||||
i.docaction,
|
||||
i.docstatus,
|
||||
i.documentno,
|
||||
i.dropship_bpartner_id,
|
||||
i.dropship_location_id,
|
||||
i.dropship_user_id,
|
||||
i.freightamt AS c_order_freightamt,
|
||||
i.freightcostrule,
|
||||
i.grandtotal,
|
||||
i.invoicerule,
|
||||
i.isactive AS c_order_isactive,
|
||||
i.isapproved,
|
||||
i.iscreditapproved,
|
||||
i.isdelivered,
|
||||
i.isdiscountprinted AS c_order_isdiscountprinted,
|
||||
i.isdropship AS c_order_isdropship,
|
||||
i.isinvoiced,
|
||||
i.ispayschedulevalid,
|
||||
i.isprinted,
|
||||
i.isselected,
|
||||
i.isselfservice AS c_order_isselfservice,
|
||||
i.issotrx,
|
||||
i.istaxincluded,
|
||||
i.istransferred,
|
||||
i.link_order_id,
|
||||
i.m_freightcategory_id AS c_order_m_freightcategory_id,
|
||||
i.m_pricelist_id AS c_order_m_pricelist_id,
|
||||
i.m_shipper_id AS c_order_m_shipper_id,
|
||||
i.m_warehouse_id AS c_order_m_warehouse_id,
|
||||
i.ordertype,
|
||||
i.pay_bpartner_id,
|
||||
i.pay_location_id,
|
||||
i.paymentrule AS c_order_paymentrule,
|
||||
i.poreference,
|
||||
i.posted,
|
||||
i.priorityrule,
|
||||
i.processed AS c_order_processed,
|
||||
i.processedon,
|
||||
i.promotioncode,
|
||||
i.ref_order_id,
|
||||
i.salesrep_id,
|
||||
i.sendemail AS c_order_sendemail,
|
||||
i.totallines,
|
||||
i.updated AS c_order_updated,
|
||||
i.updatedby AS c_order_updatedby,
|
||||
i.user1_id AS c_order_user1_id,
|
||||
i.user2_id AS c_order_user2_id,
|
||||
i.volume AS c_order_volume,
|
||||
i.weight AS c_order_weight,
|
||||
NULL AS c_order_ad_org_id,
|
||||
NULL AS c_order_ad_orgtrx_id,
|
||||
NULL AS ad_user_id,
|
||||
NULL AS amountrefunded,
|
||||
NULL AS amounttendered,
|
||||
NULL AS bill_bpartner_id,
|
||||
NULL AS bill_location_id,
|
||||
NULL AS bill_user_id,
|
||||
NULL AS c_order_c_activity_id,
|
||||
NULL AS c_order_c_bpartner_id,
|
||||
NULL AS c_order_c_campaign_id,
|
||||
NULL AS c_cashline_id,
|
||||
NULL AS c_cashplanline_id,
|
||||
NULL AS c_order_c_charge_id,
|
||||
NULL AS c_conversiontype_id,
|
||||
NULL AS c_order_c_currency_id,
|
||||
NULL AS c_doctype_id,
|
||||
NULL AS c_doctypetarget_id,
|
||||
NULL AS chargeamt,
|
||||
NULL AS copyfrom,
|
||||
NULL AS c_payment_id,
|
||||
NULL AS c_paymentterm_id,
|
||||
NULL AS c_pos_id,
|
||||
NULL AS c_order_c_project_id,
|
||||
NULL AS c_order_created,
|
||||
NULL AS c_order_createdby,
|
||||
NULL AS dateacct,
|
||||
NULL AS dateprinted,
|
||||
NULL AS c_order_datepromised,
|
||||
NULL AS deliveryrule,
|
||||
NULL AS deliveryviarule,
|
||||
NULL AS c_order_description,
|
||||
NULL AS docaction,
|
||||
NULL AS docstatus,
|
||||
NULL AS documentno,
|
||||
NULL AS dropship_bpartner_id,
|
||||
NULL AS dropship_location_id,
|
||||
NULL AS dropship_user_id,
|
||||
NULL AS c_order_freightamt,
|
||||
NULL AS freightcostrule,
|
||||
NULL AS grandtotal,
|
||||
NULL AS invoicerule,
|
||||
NULL AS c_order_isactive,
|
||||
NULL AS isapproved,
|
||||
NULL AS iscreditapproved,
|
||||
NULL AS isdelivered,
|
||||
NULL AS c_order_isdiscountprinted,
|
||||
NULL AS c_order_isdropship,
|
||||
NULL AS isinvoiced,
|
||||
NULL AS ispayschedulevalid,
|
||||
NULL AS isprinted,
|
||||
NULL AS isselected,
|
||||
NULL AS c_order_isselfservice,
|
||||
NULL AS issotrx,
|
||||
NULL AS istaxincluded,
|
||||
NULL AS istransferred,
|
||||
NULL AS link_order_id,
|
||||
NULL AS c_order_m_freightcategory_id,
|
||||
NULL AS c_order_m_pricelist_id,
|
||||
NULL AS c_order_m_shipper_id,
|
||||
NULL AS c_order_m_warehouse_id,
|
||||
NULL AS ordertype,
|
||||
NULL AS pay_bpartner_id,
|
||||
NULL AS pay_location_id,
|
||||
NULL AS c_order_paymentrule,
|
||||
NULL AS poreference,
|
||||
NULL AS posted,
|
||||
NULL AS priorityrule,
|
||||
NULL AS c_order_processed,
|
||||
NULL AS processedon,
|
||||
NULL AS promotioncode,
|
||||
NULL AS ref_order_id,
|
||||
NULL AS salesrep_id,
|
||||
NULL AS c_order_sendemail,
|
||||
NULL AS totallines,
|
||||
NULL AS c_order_updated,
|
||||
NULL AS c_order_updatedby,
|
||||
NULL AS c_order_user1_id,
|
||||
NULL AS c_order_user2_id,
|
||||
NULL AS c_order_volume,
|
||||
NULL AS c_order_weight,
|
||||
NULL AS m_product_ad_org_id,
|
||||
NULL AS classification,
|
||||
NULL AS m_product_copyfrom,
|
||||
|
@ -1229,7 +1229,7 @@ AS
|
|||
NULL AS c_tax_to_region_id,
|
||||
NULL AS validfrom
|
||||
FROM c_order i)
|
||||
UNION
|
||||
UNION /* tax lines */
|
||||
SELECT ot.ad_client_id,
|
||||
ot.ad_org_id,
|
||||
ot.isactive,
|
||||
|
|
|
@ -456,7 +456,7 @@ AS
|
|||
LEFT JOIN c_tax_trl tt
|
||||
ON ol.c_tax_id = tt.c_tax_id
|
||||
AND uomt.ad_language = tt.ad_language
|
||||
UNION
|
||||
UNION /* BOM lines */
|
||||
SELECT ol.ad_client_id,
|
||||
ol.ad_org_id,
|
||||
ol.isactive,
|
||||
|
@ -865,7 +865,7 @@ AS
|
|||
JOIN m_product_trl pt
|
||||
ON pt.m_product_id = bl.m_product_id
|
||||
AND uomt.ad_language = pt.ad_language)
|
||||
UNION
|
||||
UNION /* empty line */
|
||||
SELECT i.ad_client_id,
|
||||
i.ad_org_id,
|
||||
i.isactive,
|
||||
|
@ -873,7 +873,7 @@ AS
|
|||
i.createdby,
|
||||
i.updated,
|
||||
i.updatedby,
|
||||
'en_US' AS ad_language,
|
||||
l.ad_language,
|
||||
i.c_order_id,
|
||||
NULL AS c_orderline_id,
|
||||
NULL AS c_tax_id,
|
||||
|
@ -944,87 +944,87 @@ AS
|
|||
NULL AS stdprecision,
|
||||
NULL AS uomtype,
|
||||
NULL AS x12de355,
|
||||
i.ad_org_id AS c_order_ad_org_id,
|
||||
i.ad_orgtrx_id AS c_order_ad_orgtrx_id,
|
||||
i.ad_user_id,
|
||||
i.amountrefunded,
|
||||
i.amounttendered,
|
||||
i.bill_bpartner_id,
|
||||
i.bill_location_id,
|
||||
i.bill_user_id,
|
||||
i.c_activity_id AS c_order_c_activity_id,
|
||||
i.c_bpartner_id AS c_order_c_bpartner_id,
|
||||
i.c_campaign_id AS c_order_c_campaign_id,
|
||||
i.c_cashline_id,
|
||||
i.c_cashplanline_id,
|
||||
i.c_charge_id AS c_order_c_charge_id,
|
||||
i.c_conversiontype_id,
|
||||
i.c_currency_id AS c_order_c_currency_id,
|
||||
i.c_doctype_id,
|
||||
i.c_doctypetarget_id,
|
||||
i.chargeamt,
|
||||
i.copyfrom,
|
||||
i.c_payment_id,
|
||||
i.c_paymentterm_id,
|
||||
i.c_pos_id,
|
||||
i.c_project_id AS c_order_c_project_id,
|
||||
i.created AS c_order_created,
|
||||
i.createdby AS c_order_createdby,
|
||||
i.dateacct,
|
||||
i.dateprinted,
|
||||
i.datepromised AS c_order_datepromised,
|
||||
i.deliveryrule,
|
||||
i.deliveryviarule,
|
||||
i.description AS c_order_description,
|
||||
i.docaction,
|
||||
i.docstatus,
|
||||
i.documentno,
|
||||
i.dropship_bpartner_id,
|
||||
i.dropship_location_id,
|
||||
i.dropship_user_id,
|
||||
i.freightamt AS c_order_freightamt,
|
||||
i.freightcostrule,
|
||||
i.grandtotal,
|
||||
i.invoicerule,
|
||||
i.isactive AS c_order_isactive,
|
||||
i.isapproved,
|
||||
i.iscreditapproved,
|
||||
i.isdelivered,
|
||||
i.isdiscountprinted AS c_order_isdiscountprinted,
|
||||
i.isdropship AS c_order_isdropship,
|
||||
i.isinvoiced,
|
||||
i.ispayschedulevalid,
|
||||
i.isprinted,
|
||||
i.isselected,
|
||||
i.isselfservice AS c_order_isselfservice,
|
||||
i.issotrx,
|
||||
i.istaxincluded,
|
||||
i.istransferred,
|
||||
i.link_order_id,
|
||||
i.m_freightcategory_id AS c_order_m_freightcategory_id,
|
||||
i.m_pricelist_id AS c_order_m_pricelist_id,
|
||||
i.m_shipper_id AS c_order_m_shipper_id,
|
||||
i.m_warehouse_id AS c_order_m_warehouse_id,
|
||||
i.ordertype,
|
||||
i.pay_bpartner_id,
|
||||
i.pay_location_id,
|
||||
i.paymentrule AS c_order_paymentrule,
|
||||
i.poreference,
|
||||
i.posted,
|
||||
i.priorityrule,
|
||||
i.processed AS c_order_processed,
|
||||
i.processedon,
|
||||
i.promotioncode,
|
||||
i.ref_order_id,
|
||||
i.salesrep_id,
|
||||
i.sendemail AS c_order_sendemail,
|
||||
i.totallines,
|
||||
i.updated AS c_order_updated,
|
||||
i.updatedby AS c_order_updatedby,
|
||||
i.user1_id AS c_order_user1_id,
|
||||
i.user2_id AS c_order_user2_id,
|
||||
i.volume AS c_order_volume,
|
||||
i.weight AS c_order_weight,
|
||||
NULL AS c_order_ad_org_id,
|
||||
NULL AS c_order_ad_orgtrx_id,
|
||||
NULL AS ad_user_id,
|
||||
NULL AS amountrefunded,
|
||||
NULL AS amounttendered,
|
||||
NULL AS bill_bpartner_id,
|
||||
NULL AS bill_location_id,
|
||||
NULL AS bill_user_id,
|
||||
NULL AS c_order_c_activity_id,
|
||||
NULL AS c_order_c_bpartner_id,
|
||||
NULL AS c_order_c_campaign_id,
|
||||
NULL AS c_cashline_id,
|
||||
NULL AS c_cashplanline_id,
|
||||
NULL AS c_order_c_charge_id,
|
||||
NULL AS c_conversiontype_id,
|
||||
NULL AS c_order_c_currency_id,
|
||||
NULL AS c_doctype_id,
|
||||
NULL AS c_doctypetarget_id,
|
||||
NULL AS chargeamt,
|
||||
NULL AS copyfrom,
|
||||
NULL AS c_payment_id,
|
||||
NULL AS c_paymentterm_id,
|
||||
NULL AS c_pos_id,
|
||||
NULL AS c_order_c_project_id,
|
||||
NULL AS c_order_created,
|
||||
NULL AS c_order_createdby,
|
||||
NULL AS dateacct,
|
||||
NULL AS dateprinted,
|
||||
NULL AS c_order_datepromised,
|
||||
NULL AS deliveryrule,
|
||||
NULL AS deliveryviarule,
|
||||
NULL AS c_order_description,
|
||||
NULL AS docaction,
|
||||
NULL AS docstatus,
|
||||
NULL AS documentno,
|
||||
NULL AS dropship_bpartner_id,
|
||||
NULL AS dropship_location_id,
|
||||
NULL AS dropship_user_id,
|
||||
NULL AS c_order_freightamt,
|
||||
NULL AS freightcostrule,
|
||||
NULL AS grandtotal,
|
||||
NULL AS invoicerule,
|
||||
NULL AS c_order_isactive,
|
||||
NULL AS isapproved,
|
||||
NULL AS iscreditapproved,
|
||||
NULL AS isdelivered,
|
||||
NULL AS c_order_isdiscountprinted,
|
||||
NULL AS c_order_isdropship,
|
||||
NULL AS isinvoiced,
|
||||
NULL AS ispayschedulevalid,
|
||||
NULL AS isprinted,
|
||||
NULL AS isselected,
|
||||
NULL AS c_order_isselfservice,
|
||||
NULL AS issotrx,
|
||||
NULL AS istaxincluded,
|
||||
NULL AS istransferred,
|
||||
NULL AS link_order_id,
|
||||
NULL AS c_order_m_freightcategory_id,
|
||||
NULL AS c_order_m_pricelist_id,
|
||||
NULL AS c_order_m_shipper_id,
|
||||
NULL AS c_order_m_warehouse_id,
|
||||
NULL AS ordertype,
|
||||
NULL AS pay_bpartner_id,
|
||||
NULL AS pay_location_id,
|
||||
NULL AS c_order_paymentrule,
|
||||
NULL AS poreference,
|
||||
NULL AS posted,
|
||||
NULL AS priorityrule,
|
||||
NULL AS c_order_processed,
|
||||
NULL AS processedon,
|
||||
NULL AS promotioncode,
|
||||
NULL AS ref_order_id,
|
||||
NULL AS salesrep_id,
|
||||
NULL AS c_order_sendemail,
|
||||
NULL AS totallines,
|
||||
NULL AS c_order_updated,
|
||||
NULL AS c_order_updatedby,
|
||||
NULL AS c_order_user1_id,
|
||||
NULL AS c_order_user2_id,
|
||||
NULL AS c_order_volume,
|
||||
NULL AS c_order_weight,
|
||||
NULL AS m_product_ad_org_id,
|
||||
NULL AS classification,
|
||||
NULL AS m_product_copyfrom,
|
||||
|
@ -1244,8 +1244,9 @@ AS
|
|||
NULL AS to_country_id,
|
||||
NULL AS c_tax_to_region_id,
|
||||
NULL AS validfrom
|
||||
FROM c_order i)
|
||||
UNION
|
||||
FROM c_order i, ad_language l
|
||||
WHERE l.isbaselanguage='N' AND l.issystemlanguage='Y')
|
||||
UNION /* tax lines */
|
||||
SELECT ot.ad_client_id,
|
||||
ot.ad_org_id,
|
||||
ot.isactive,
|
||||
|
@ -1253,7 +1254,7 @@ AS
|
|||
ot.createdby,
|
||||
ot.updated,
|
||||
ot.updatedby,
|
||||
'en_US' AS ad_language,
|
||||
tt.ad_language,
|
||||
ot.c_order_id,
|
||||
NULL AS c_orderline_id,
|
||||
ot.c_tax_id,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
DROP VIEW c_invoice_linetax_v;
|
||||
DROP VIEW c_invoice_linetax_v;
|
||||
|
||||
CREATE OR REPLACE VIEW c_invoice_linetax_v AS
|
||||
(
|
||||
|
@ -265,7 +265,7 @@ CREATE OR REPLACE VIEW c_invoice_linetax_v AS
|
|||
ON il.s_resourceassignment_id = ra.s_resourceassignment_id
|
||||
LEFT JOIN m_attributesetinstance asi
|
||||
ON il.m_attributesetinstance_id = asi.m_attributesetinstance_id
|
||||
UNION SELECT il.ad_client_id,
|
||||
UNION /* BOM lines */ SELECT il.ad_client_id,
|
||||
il.ad_org_id,
|
||||
il.isactive,
|
||||
il.created,
|
||||
|
@ -524,7 +524,7 @@ CREATE OR REPLACE VIEW c_invoice_linetax_v AS
|
|||
ON il.c_tax_id = t.c_tax_id
|
||||
LEFT JOIN m_attributesetinstance asi
|
||||
ON il.m_attributesetinstance_id = asi.m_attributesetinstance_id)
|
||||
UNION SELECT il.ad_client_id,
|
||||
UNION /* comment lines */ SELECT il.ad_client_id,
|
||||
il.ad_org_id,
|
||||
il.isactive,
|
||||
il.created,
|
||||
|
@ -569,23 +569,23 @@ CREATE OR REPLACE VIEW c_invoice_linetax_v AS
|
|||
NULL AS c_activity_id,
|
||||
NULL AS c_projectphase_id,
|
||||
NULL AS c_projecttask_id,
|
||||
il.ad_orgtrx_id AS c_invoiceline_ad_orgtrx_id,
|
||||
il.a_processed,
|
||||
il.c_charge_id,
|
||||
il.c_orderline_id,
|
||||
il.c_uom_id,
|
||||
il.isdescription,
|
||||
il.isprinted AS c_invoiceline_isprinted,
|
||||
il.m_inoutline_id,
|
||||
il.m_rmaline_id,
|
||||
il.pricelimit,
|
||||
il.processed AS c_invoiceline_processed,
|
||||
il.ref_invoiceline_id,
|
||||
il.rramt,
|
||||
il.rrstartdate,
|
||||
il.s_resourceassignment_id,
|
||||
il.user1_id AS c_invoiceline_user1_id,
|
||||
il.user2_id AS c_invoiceline_user2_id,
|
||||
NULL AS c_invoiceline_ad_orgtrx_id,
|
||||
NULL AS a_processed,
|
||||
NULL AS c_charge_id,
|
||||
NULL AS c_orderline_id,
|
||||
NULL AS c_uom_id,
|
||||
NULL AS isdescription,
|
||||
NULL AS c_invoiceline_isprinted,
|
||||
NULL AS m_inoutline_id,
|
||||
NULL AS m_rmaline_id,
|
||||
NULL AS pricelimit,
|
||||
NULL AS c_invoiceline_processed,
|
||||
NULL AS ref_invoiceline_id,
|
||||
NULL AS rramt,
|
||||
NULL AS rrstartdate,
|
||||
NULL AS s_resourceassignment_id,
|
||||
NULL AS c_invoiceline_user1_id,
|
||||
NULL AS c_invoiceline_user2_id,
|
||||
NULL AS c_uom_ad_org_id,
|
||||
NULL AS costingprecision,
|
||||
NULL AS c_uom_description,
|
||||
|
@ -770,7 +770,7 @@ CREATE OR REPLACE VIEW c_invoice_linetax_v AS
|
|||
NULL AS m_asi_updatedby
|
||||
FROM c_invoiceline il
|
||||
WHERE il.c_uom_id IS NULL)
|
||||
UNION SELECT i.ad_client_id,
|
||||
UNION /* empty line */ SELECT i.ad_client_id,
|
||||
i.ad_org_id,
|
||||
i.isactive,
|
||||
i.created,
|
||||
|
@ -841,65 +841,65 @@ CREATE OR REPLACE VIEW c_invoice_linetax_v AS
|
|||
NULL AS stdprecision,
|
||||
NULL AS uomtype,
|
||||
NULL AS x12de355,
|
||||
i.ad_org_id AS c_invoice_ad_org_id,
|
||||
i.ad_orgtrx_id AS c_invoice_ad_orgtrx_id,
|
||||
i.ad_user_id AS c_invoice_ad_user_id,
|
||||
i.c_activity_id AS c_invoice_c_activity_id,
|
||||
i.c_bpartner_id AS c_invoice_c_bpartner_id,
|
||||
i.c_bpartner_location_id,
|
||||
i.c_campaign_id AS c_invoice_c_campaign_id,
|
||||
i.c_charge_id AS c_invoice_c_charge_id,
|
||||
i.c_conversiontype_id,
|
||||
i.c_currency_id,
|
||||
i.c_doctype_id,
|
||||
i.c_doctypetarget_id,
|
||||
i.c_dunninglevel_id,
|
||||
i.chargeamt AS c_invoice_chargeamt,
|
||||
i.c_order_id,
|
||||
i.c_payment_id,
|
||||
i.c_paymentterm_id,
|
||||
i.c_project_id AS c_invoice_c_project_id,
|
||||
i.created AS c_invoice_created,
|
||||
i.createdby AS c_invoice_createdby,
|
||||
i.dateacct,
|
||||
i.dateinvoiced,
|
||||
i.dateordered,
|
||||
i.dateprinted,
|
||||
i.description AS c_invoice_description,
|
||||
i.docaction,
|
||||
i.docstatus,
|
||||
i.documentno,
|
||||
i.dunninggrace,
|
||||
i.generateto,
|
||||
i.grandtotal,
|
||||
i.invoicecollectiontype,
|
||||
i.isactive AS c_invoice_isactive,
|
||||
i.isapproved,
|
||||
i.isdiscountprinted,
|
||||
i.isindispute,
|
||||
i.ispaid,
|
||||
i.ispayschedulevalid,
|
||||
i.isprinted AS c_invoice_isprinted,
|
||||
i.isselfservice AS c_invoice_isselfservice,
|
||||
i.issotrx,
|
||||
i.istaxincluded AS c_invoice_istaxincluded,
|
||||
i.istransferred,
|
||||
i.m_pricelist_id,
|
||||
i.m_rma_id,
|
||||
i.paymentrule,
|
||||
i.poreference,
|
||||
i.posted,
|
||||
i.processedon,
|
||||
i.processing,
|
||||
i.ref_invoice_id,
|
||||
i.reversal_id,
|
||||
i.salesrep_id,
|
||||
i.sendemail,
|
||||
i.totallines,
|
||||
i.updated AS c_invoice_updated,
|
||||
i.updatedby AS c_invoice_updatedby,
|
||||
i.user1_id AS c_invoice_user1_id,
|
||||
i.user2_id AS c_invoice_user2_id,
|
||||
NULL AS c_invoice_ad_org_id,
|
||||
NULL AS c_invoice_ad_orgtrx_id,
|
||||
NULL AS c_invoice_ad_user_id,
|
||||
NULL AS c_invoice_c_activity_id,
|
||||
NULL AS c_invoice_c_bpartner_id,
|
||||
NULL AS c_bpartner_location_id,
|
||||
NULL AS c_invoice_c_campaign_id,
|
||||
NULL AS c_invoice_c_charge_id,
|
||||
NULL AS c_conversiontype_id,
|
||||
NULL AS c_currency_id,
|
||||
NULL AS c_doctype_id,
|
||||
NULL AS c_doctypetarget_id,
|
||||
NULL AS c_dunninglevel_id,
|
||||
NULL AS c_invoice_chargeamt,
|
||||
NULL AS c_order_id,
|
||||
NULL AS c_payment_id,
|
||||
NULL AS c_paymentterm_id,
|
||||
NULL AS c_invoice_c_project_id,
|
||||
NULL AS c_invoice_created,
|
||||
NULL AS c_invoice_createdby,
|
||||
NULL AS dateacct,
|
||||
NULL AS dateinvoiced,
|
||||
NULL AS dateordered,
|
||||
NULL AS dateprinted,
|
||||
NULL AS c_invoice_description,
|
||||
NULL AS docaction,
|
||||
NULL AS docstatus,
|
||||
NULL AS documentno,
|
||||
NULL AS dunninggrace,
|
||||
NULL AS generateto,
|
||||
NULL AS grandtotal,
|
||||
NULL AS invoicecollectiontype,
|
||||
NULL AS c_invoice_isactive,
|
||||
NULL AS isapproved,
|
||||
NULL AS isdiscountprinted,
|
||||
NULL AS isindispute,
|
||||
NULL AS ispaid,
|
||||
NULL AS ispayschedulevalid,
|
||||
NULL AS c_invoice_isprinted,
|
||||
NULL AS c_invoice_isselfservice,
|
||||
NULL AS issotrx,
|
||||
NULL AS c_invoice_istaxincluded,
|
||||
NULL AS istransferred,
|
||||
NULL AS m_pricelist_id,
|
||||
NULL AS m_rma_id,
|
||||
NULL AS paymentrule,
|
||||
NULL AS poreference,
|
||||
NULL AS posted,
|
||||
NULL AS processedon,
|
||||
NULL AS processing,
|
||||
NULL AS ref_invoice_id,
|
||||
NULL AS reversal_id,
|
||||
NULL AS salesrep_id,
|
||||
NULL AS sendemail,
|
||||
NULL AS totallines,
|
||||
NULL AS c_invoice_updated,
|
||||
NULL AS c_invoice_updatedby,
|
||||
NULL AS c_invoice_user1_id,
|
||||
NULL AS c_invoice_user2_id,
|
||||
NULL AS c_tax_ad_org_id,
|
||||
NULL AS ad_rule_id,
|
||||
NULL AS c_country_id,
|
||||
|
@ -1017,7 +1017,7 @@ CREATE OR REPLACE VIEW c_invoice_linetax_v AS
|
|||
FROM c_invoice i
|
||||
)
|
||||
UNION
|
||||
SELECT it.ad_client_id,
|
||||
SELECT /* tax lines */ it.ad_client_id,
|
||||
it.ad_org_id,
|
||||
it.isactive,
|
||||
it.created,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
DROP VIEW c_invoice_linetax_vt;
|
||||
DROP VIEW c_invoice_linetax_vt;
|
||||
|
||||
CREATE OR REPLACE VIEW c_invoice_linetax_vt AS
|
||||
(
|
||||
|
@ -273,7 +273,7 @@ CREATE OR REPLACE VIEW c_invoice_linetax_vt AS
|
|||
ON il.s_resourceassignment_id = ra.s_resourceassignment_id
|
||||
LEFT JOIN m_attributesetinstance asi
|
||||
ON il.m_attributesetinstance_id = asi.m_attributesetinstance_id
|
||||
UNION SELECT il.ad_client_id,
|
||||
UNION /* BOM lines */ SELECT il.ad_client_id,
|
||||
il.ad_org_id,
|
||||
il.isactive,
|
||||
il.created,
|
||||
|
@ -538,7 +538,7 @@ CREATE OR REPLACE VIEW c_invoice_linetax_vt AS
|
|||
ON il.c_tax_id = tt.c_tax_id AND uomt.ad_language = tt.ad_language
|
||||
LEFT JOIN m_attributesetinstance asi
|
||||
ON il.m_attributesetinstance_id = asi.m_attributesetinstance_id)
|
||||
UNION SELECT il.ad_client_id,
|
||||
UNION /* comment lines */ SELECT il.ad_client_id,
|
||||
il.ad_org_id,
|
||||
il.isactive,
|
||||
il.created,
|
||||
|
@ -583,23 +583,23 @@ CREATE OR REPLACE VIEW c_invoice_linetax_vt AS
|
|||
NULL AS c_activity_id,
|
||||
NULL AS c_projectphase_id,
|
||||
NULL AS c_projecttask_id,
|
||||
il.ad_orgtrx_id AS c_invoiceline_ad_orgtrx_id,
|
||||
il.a_processed,
|
||||
il.c_charge_id,
|
||||
il.c_orderline_id,
|
||||
il.c_uom_id,
|
||||
il.isdescription,
|
||||
il.isprinted AS c_invoiceline_isprinted,
|
||||
il.m_inoutline_id,
|
||||
il.m_rmaline_id,
|
||||
il.pricelimit,
|
||||
il.processed AS c_invoiceline_processed,
|
||||
il.ref_invoiceline_id,
|
||||
il.rramt,
|
||||
il.rrstartdate,
|
||||
il.s_resourceassignment_id,
|
||||
il.user1_id AS c_invoiceline_user1_id,
|
||||
il.user2_id AS c_invoiceline_user2_id,
|
||||
NULL AS c_invoiceline_ad_orgtrx_id,
|
||||
NULL AS a_processed,
|
||||
NULL AS c_charge_id,
|
||||
NULL AS c_orderline_id,
|
||||
NULL AS c_uom_id,
|
||||
NULL AS isdescription,
|
||||
NULL AS c_invoiceline_isprinted,
|
||||
NULL AS m_inoutline_id,
|
||||
NULL AS m_rmaline_id,
|
||||
NULL AS pricelimit,
|
||||
NULL AS c_invoiceline_processed,
|
||||
NULL AS ref_invoiceline_id,
|
||||
NULL AS rramt,
|
||||
NULL AS rrstartdate,
|
||||
NULL AS s_resourceassignment_id,
|
||||
NULL AS c_invoiceline_user1_id,
|
||||
NULL AS c_invoiceline_user2_id,
|
||||
NULL AS c_uom_ad_org_id,
|
||||
NULL AS costingprecision,
|
||||
NULL AS c_uom_description,
|
||||
|
@ -785,7 +785,7 @@ CREATE OR REPLACE VIEW c_invoice_linetax_vt AS
|
|||
FROM c_invoiceline il,
|
||||
ad_language l
|
||||
WHERE il.c_uom_id IS NULL AND l.isbaselanguage = 'N' AND l.issystemlanguage = 'Y')
|
||||
UNION SELECT i.ad_client_id,
|
||||
UNION /* empty line */ SELECT i.ad_client_id,
|
||||
i.ad_org_id,
|
||||
i.isactive,
|
||||
i.created,
|
||||
|
@ -856,65 +856,65 @@ CREATE OR REPLACE VIEW c_invoice_linetax_vt AS
|
|||
NULL AS stdprecision,
|
||||
NULL AS uomtype,
|
||||
NULL AS x12de355,
|
||||
i.ad_org_id AS c_invoice_ad_org_id,
|
||||
i.ad_orgtrx_id AS c_invoice_ad_orgtrx_id,
|
||||
i.ad_user_id AS c_invoice_ad_user_id,
|
||||
i.c_activity_id AS c_invoice_c_activity_id,
|
||||
i.c_bpartner_id AS c_invoice_c_bpartner_id,
|
||||
i.c_bpartner_location_id,
|
||||
i.c_campaign_id AS c_invoice_c_campaign_id,
|
||||
i.c_charge_id AS c_invoice_c_charge_id,
|
||||
i.c_conversiontype_id,
|
||||
i.c_currency_id,
|
||||
i.c_doctype_id,
|
||||
i.c_doctypetarget_id,
|
||||
i.c_dunninglevel_id,
|
||||
i.chargeamt AS c_invoice_chargeamt,
|
||||
i.c_order_id,
|
||||
i.c_payment_id,
|
||||
i.c_paymentterm_id,
|
||||
i.c_project_id AS c_invoice_c_project_id,
|
||||
i.created AS c_invoice_created,
|
||||
i.createdby AS c_invoice_createdby,
|
||||
i.dateacct,
|
||||
i.dateinvoiced,
|
||||
i.dateordered,
|
||||
i.dateprinted,
|
||||
i.description AS c_invoice_description,
|
||||
i.docaction,
|
||||
i.docstatus,
|
||||
i.documentno,
|
||||
i.dunninggrace,
|
||||
i.generateto,
|
||||
i.grandtotal,
|
||||
i.invoicecollectiontype,
|
||||
i.isactive AS c_invoice_isactive,
|
||||
i.isapproved,
|
||||
i.isdiscountprinted,
|
||||
i.isindispute,
|
||||
i.ispaid,
|
||||
i.ispayschedulevalid,
|
||||
i.isprinted AS c_invoice_isprinted,
|
||||
i.isselfservice AS c_invoice_isselfservice,
|
||||
i.issotrx,
|
||||
i.istaxincluded AS c_invoice_istaxincluded,
|
||||
i.istransferred,
|
||||
i.m_pricelist_id,
|
||||
i.m_rma_id,
|
||||
i.paymentrule,
|
||||
i.poreference,
|
||||
i.posted,
|
||||
i.processedon,
|
||||
i.processing,
|
||||
i.ref_invoice_id,
|
||||
i.reversal_id,
|
||||
i.salesrep_id,
|
||||
i.sendemail,
|
||||
i.totallines,
|
||||
i.updated AS c_invoice_updated,
|
||||
i.updatedby AS c_invoice_updatedby,
|
||||
i.user1_id AS c_invoice_user1_id,
|
||||
i.user2_id AS c_invoice_user2_id,
|
||||
NULL AS c_invoice_ad_org_id,
|
||||
NULL AS c_invoice_ad_orgtrx_id,
|
||||
NULL AS c_invoice_ad_user_id,
|
||||
NULL AS c_invoice_c_activity_id,
|
||||
NULL AS c_invoice_c_bpartner_id,
|
||||
NULL AS c_bpartner_location_id,
|
||||
NULL AS c_invoice_c_campaign_id,
|
||||
NULL AS c_invoice_c_charge_id,
|
||||
NULL AS c_conversiontype_id,
|
||||
NULL AS c_currency_id,
|
||||
NULL AS c_doctype_id,
|
||||
NULL AS c_doctypetarget_id,
|
||||
NULL AS c_dunninglevel_id,
|
||||
NULL AS c_invoice_chargeamt,
|
||||
NULL AS c_order_id,
|
||||
NULL AS c_payment_id,
|
||||
NULL AS c_paymentterm_id,
|
||||
NULL AS c_invoice_c_project_id,
|
||||
NULL AS c_invoice_created,
|
||||
NULL AS c_invoice_createdby,
|
||||
NULL AS dateacct,
|
||||
NULL AS dateinvoiced,
|
||||
NULL AS dateordered,
|
||||
NULL AS dateprinted,
|
||||
NULL AS c_invoice_description,
|
||||
NULL AS docaction,
|
||||
NULL AS docstatus,
|
||||
NULL AS documentno,
|
||||
NULL AS dunninggrace,
|
||||
NULL AS generateto,
|
||||
NULL AS grandtotal,
|
||||
NULL AS invoicecollectiontype,
|
||||
NULL AS c_invoice_isactive,
|
||||
NULL AS isapproved,
|
||||
NULL AS isdiscountprinted,
|
||||
NULL AS isindispute,
|
||||
NULL AS ispaid,
|
||||
NULL AS ispayschedulevalid,
|
||||
NULL AS c_invoice_isprinted,
|
||||
NULL AS c_invoice_isselfservice,
|
||||
NULL AS issotrx,
|
||||
NULL AS c_invoice_istaxincluded,
|
||||
NULL AS istransferred,
|
||||
NULL AS m_pricelist_id,
|
||||
NULL AS m_rma_id,
|
||||
NULL AS paymentrule,
|
||||
NULL AS poreference,
|
||||
NULL AS posted,
|
||||
NULL AS processedon,
|
||||
NULL AS processing,
|
||||
NULL AS ref_invoice_id,
|
||||
NULL AS reversal_id,
|
||||
NULL AS salesrep_id,
|
||||
NULL AS sendemail,
|
||||
NULL AS totallines,
|
||||
NULL AS c_invoice_updated,
|
||||
NULL AS c_invoice_updatedby,
|
||||
NULL AS c_invoice_user1_id,
|
||||
NULL AS c_invoice_user2_id,
|
||||
NULL AS c_tax_ad_org_id,
|
||||
NULL AS ad_rule_id,
|
||||
NULL AS c_country_id,
|
||||
|
@ -1034,7 +1034,7 @@ CREATE OR REPLACE VIEW c_invoice_linetax_vt AS
|
|||
WHERE l.isbaselanguage = 'N' AND l.issystemlanguage = 'Y'
|
||||
)
|
||||
UNION
|
||||
SELECT it.ad_client_id,
|
||||
SELECT /* tax lines */ it.ad_client_id,
|
||||
it.ad_org_id,
|
||||
it.isactive,
|
||||
it.created,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
DROP VIEW c_order_linetax_v;
|
||||
DROP VIEW c_order_linetax_v;
|
||||
|
||||
CREATE OR REPLACE VIEW c_order_linetax_v AS
|
||||
(
|
||||
|
@ -403,7 +403,7 @@ CREATE OR REPLACE VIEW c_order_linetax_v AS
|
|||
ON ol.c_bpartner_location_id = bpl.c_bpartner_location_id
|
||||
LEFT JOIN c_tax t
|
||||
ON ol.c_tax_id = t.c_tax_id
|
||||
UNION SELECT ol.ad_client_id,
|
||||
UNION /* BOM lines */ SELECT ol.ad_client_id,
|
||||
ol.ad_org_id,
|
||||
ol.isactive,
|
||||
ol.created,
|
||||
|
@ -796,7 +796,7 @@ CREATE OR REPLACE VIEW c_order_linetax_v AS
|
|||
ON p.m_product_id = po.m_product_id AND i.c_bpartner_id = po.c_bpartner_id
|
||||
JOIN c_uom uom
|
||||
ON p.c_uom_id = uom.c_uom_id)
|
||||
UNION SELECT i.ad_client_id,
|
||||
UNION /* empty line */ SELECT i.ad_client_id,
|
||||
i.ad_org_id,
|
||||
i.isactive,
|
||||
i.created,
|
||||
|
@ -874,87 +874,87 @@ CREATE OR REPLACE VIEW c_order_linetax_v AS
|
|||
NULL AS stdprecision,
|
||||
NULL AS uomtype,
|
||||
NULL AS x12de355,
|
||||
i.ad_org_id AS c_order_ad_org_id,
|
||||
i.ad_orgtrx_id AS c_order_ad_orgtrx_id,
|
||||
i.ad_user_id,
|
||||
i.amountrefunded,
|
||||
i.amounttendered,
|
||||
i.bill_bpartner_id,
|
||||
i.bill_location_id,
|
||||
i.bill_user_id,
|
||||
i.c_activity_id AS c_order_c_activity_id,
|
||||
i.c_bpartner_id AS c_order_c_bpartner_id,
|
||||
i.c_campaign_id AS c_order_c_campaign_id,
|
||||
i.c_cashline_id,
|
||||
i.c_cashplanline_id,
|
||||
i.c_charge_id AS c_order_c_charge_id,
|
||||
i.c_conversiontype_id,
|
||||
i.c_currency_id AS c_order_c_currency_id,
|
||||
i.c_doctype_id,
|
||||
i.c_doctypetarget_id,
|
||||
i.chargeamt,
|
||||
i.copyfrom,
|
||||
i.c_payment_id,
|
||||
i.c_paymentterm_id,
|
||||
i.c_pos_id,
|
||||
i.c_project_id AS c_order_c_project_id,
|
||||
i.created AS c_order_created,
|
||||
i.createdby AS c_order_createdby,
|
||||
i.dateacct,
|
||||
i.dateprinted,
|
||||
i.datepromised AS c_order_datepromised,
|
||||
i.deliveryrule,
|
||||
i.deliveryviarule,
|
||||
i.description AS c_order_description,
|
||||
i.docaction,
|
||||
i.docstatus,
|
||||
i.documentno,
|
||||
i.dropship_bpartner_id,
|
||||
i.dropship_location_id,
|
||||
i.dropship_user_id,
|
||||
i.freightamt AS c_order_freightamt,
|
||||
i.freightcostrule,
|
||||
i.grandtotal,
|
||||
i.invoicerule,
|
||||
i.isactive AS c_order_isactive,
|
||||
i.isapproved,
|
||||
i.iscreditapproved,
|
||||
i.isdelivered,
|
||||
i.isdiscountprinted AS c_order_isdiscountprinted,
|
||||
i.isdropship AS c_order_isdropship,
|
||||
i.isinvoiced,
|
||||
i.ispayschedulevalid,
|
||||
i.isprinted,
|
||||
i.isselected,
|
||||
i.isselfservice AS c_order_isselfservice,
|
||||
i.issotrx,
|
||||
i.istaxincluded,
|
||||
i.istransferred,
|
||||
i.link_order_id,
|
||||
i.m_freightcategory_id AS c_order_m_freightcategory_id,
|
||||
i.m_pricelist_id AS c_order_m_pricelist_id,
|
||||
i.m_shipper_id AS c_order_m_shipper_id,
|
||||
i.m_warehouse_id AS c_order_m_warehouse_id,
|
||||
i.ordertype,
|
||||
i.pay_bpartner_id,
|
||||
i.pay_location_id,
|
||||
i.paymentrule AS c_order_paymentrule,
|
||||
i.poreference,
|
||||
i.posted,
|
||||
i.priorityrule,
|
||||
i.processed AS c_order_processed,
|
||||
i.processedon,
|
||||
i.promotioncode,
|
||||
i.ref_order_id,
|
||||
i.salesrep_id,
|
||||
i.sendemail AS c_order_sendemail,
|
||||
i.totallines,
|
||||
i.updated AS c_order_updated,
|
||||
i.updatedby AS c_order_updatedby,
|
||||
i.user1_id AS c_order_user1_id,
|
||||
i.user2_id AS c_order_user2_id,
|
||||
i.volume AS c_order_volume,
|
||||
i.weight AS c_order_weight,
|
||||
NULL AS c_order_ad_org_id,
|
||||
NULL AS c_order_ad_orgtrx_id,
|
||||
NULL AS ad_user_id,
|
||||
NULL AS amountrefunded,
|
||||
NULL AS amounttendered,
|
||||
NULL AS bill_bpartner_id,
|
||||
NULL AS bill_location_id,
|
||||
NULL AS bill_user_id,
|
||||
NULL AS c_order_c_activity_id,
|
||||
NULL AS c_order_c_bpartner_id,
|
||||
NULL AS c_order_c_campaign_id,
|
||||
NULL AS c_cashline_id,
|
||||
NULL AS c_cashplanline_id,
|
||||
NULL AS c_order_c_charge_id,
|
||||
NULL AS c_conversiontype_id,
|
||||
NULL AS c_order_c_currency_id,
|
||||
NULL AS c_doctype_id,
|
||||
NULL AS c_doctypetarget_id,
|
||||
NULL AS chargeamt,
|
||||
NULL AS copyfrom,
|
||||
NULL AS c_payment_id,
|
||||
NULL AS c_paymentterm_id,
|
||||
NULL AS c_pos_id,
|
||||
NULL AS c_order_c_project_id,
|
||||
NULL AS c_order_created,
|
||||
NULL AS c_order_createdby,
|
||||
NULL AS dateacct,
|
||||
NULL AS dateprinted,
|
||||
NULL AS c_order_datepromised,
|
||||
NULL AS deliveryrule,
|
||||
NULL AS deliveryviarule,
|
||||
NULL AS c_order_description,
|
||||
NULL AS docaction,
|
||||
NULL AS docstatus,
|
||||
NULL AS documentno,
|
||||
NULL AS dropship_bpartner_id,
|
||||
NULL AS dropship_location_id,
|
||||
NULL AS dropship_user_id,
|
||||
NULL AS c_order_freightamt,
|
||||
NULL AS freightcostrule,
|
||||
NULL AS grandtotal,
|
||||
NULL AS invoicerule,
|
||||
NULL AS c_order_isactive,
|
||||
NULL AS isapproved,
|
||||
NULL AS iscreditapproved,
|
||||
NULL AS isdelivered,
|
||||
NULL AS c_order_isdiscountprinted,
|
||||
NULL AS c_order_isdropship,
|
||||
NULL AS isinvoiced,
|
||||
NULL AS ispayschedulevalid,
|
||||
NULL AS isprinted,
|
||||
NULL AS isselected,
|
||||
NULL AS c_order_isselfservice,
|
||||
NULL AS issotrx,
|
||||
NULL AS istaxincluded,
|
||||
NULL AS istransferred,
|
||||
NULL AS link_order_id,
|
||||
NULL AS c_order_m_freightcategory_id,
|
||||
NULL AS c_order_m_pricelist_id,
|
||||
NULL AS c_order_m_shipper_id,
|
||||
NULL AS c_order_m_warehouse_id,
|
||||
NULL AS ordertype,
|
||||
NULL AS pay_bpartner_id,
|
||||
NULL AS pay_location_id,
|
||||
NULL AS c_order_paymentrule,
|
||||
NULL AS poreference,
|
||||
NULL AS posted,
|
||||
NULL AS priorityrule,
|
||||
NULL AS c_order_processed,
|
||||
NULL AS processedon,
|
||||
NULL AS promotioncode,
|
||||
NULL AS ref_order_id,
|
||||
NULL AS salesrep_id,
|
||||
NULL AS c_order_sendemail,
|
||||
NULL AS totallines,
|
||||
NULL AS c_order_updated,
|
||||
NULL AS c_order_updatedby,
|
||||
NULL AS c_order_user1_id,
|
||||
NULL AS c_order_user2_id,
|
||||
NULL AS c_order_volume,
|
||||
NULL AS c_order_weight,
|
||||
NULL AS m_product_ad_org_id,
|
||||
NULL AS classification,
|
||||
NULL AS m_product_copyfrom,
|
||||
|
@ -1177,7 +1177,7 @@ CREATE OR REPLACE VIEW c_order_linetax_v AS
|
|||
FROM c_order i
|
||||
)
|
||||
UNION
|
||||
SELECT ot.ad_client_id,
|
||||
SELECT /* tax lines */ ot.ad_client_id,
|
||||
ot.ad_org_id,
|
||||
ot.isactive,
|
||||
ot.created,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
DROP VIEW c_order_linetax_vt;
|
||||
DROP VIEW c_order_linetax_vt;
|
||||
|
||||
CREATE OR REPLACE VIEW c_order_linetax_vt AS
|
||||
(
|
||||
|
@ -411,7 +411,7 @@ CREATE OR REPLACE VIEW c_order_linetax_vt AS
|
|||
ON ol.c_tax_id = t.c_tax_id
|
||||
LEFT JOIN c_tax_trl tt
|
||||
ON ol.c_tax_id = tt.c_tax_id AND uomt.ad_language = tt.ad_language
|
||||
UNION SELECT ol.ad_client_id,
|
||||
UNION /* BOM lines */ SELECT ol.ad_client_id,
|
||||
ol.ad_org_id,
|
||||
ol.isactive,
|
||||
ol.created,
|
||||
|
@ -808,14 +808,14 @@ CREATE OR REPLACE VIEW c_order_linetax_vt AS
|
|||
ON p.c_uom_id = uomt.c_uom_id
|
||||
JOIN m_product_trl pt
|
||||
ON pt.m_product_id = bl.m_product_id AND uomt.ad_language = pt.ad_language)
|
||||
UNION SELECT i.ad_client_id,
|
||||
UNION /* empty line */ SELECT i.ad_client_id,
|
||||
i.ad_org_id,
|
||||
i.isactive,
|
||||
i.created,
|
||||
i.createdby,
|
||||
i.updated,
|
||||
i.updatedby,
|
||||
'en_US'::character varying(6) AS ad_language,
|
||||
l.ad_language,
|
||||
i.c_order_id,
|
||||
NULL AS c_orderline_id,
|
||||
NULL AS c_tax_id,
|
||||
|
@ -886,87 +886,87 @@ CREATE OR REPLACE VIEW c_order_linetax_vt AS
|
|||
NULL AS stdprecision,
|
||||
NULL AS uomtype,
|
||||
NULL AS x12de355,
|
||||
i.ad_org_id AS c_order_ad_org_id,
|
||||
i.ad_orgtrx_id AS c_order_ad_orgtrx_id,
|
||||
i.ad_user_id,
|
||||
i.amountrefunded,
|
||||
i.amounttendered,
|
||||
i.bill_bpartner_id,
|
||||
i.bill_location_id,
|
||||
i.bill_user_id,
|
||||
i.c_activity_id AS c_order_c_activity_id,
|
||||
i.c_bpartner_id AS c_order_c_bpartner_id,
|
||||
i.c_campaign_id AS c_order_c_campaign_id,
|
||||
i.c_cashline_id,
|
||||
i.c_cashplanline_id,
|
||||
i.c_charge_id AS c_order_c_charge_id,
|
||||
i.c_conversiontype_id,
|
||||
i.c_currency_id AS c_order_c_currency_id,
|
||||
i.c_doctype_id,
|
||||
i.c_doctypetarget_id,
|
||||
i.chargeamt,
|
||||
i.copyfrom,
|
||||
i.c_payment_id,
|
||||
i.c_paymentterm_id,
|
||||
i.c_pos_id,
|
||||
i.c_project_id AS c_order_c_project_id,
|
||||
i.created AS c_order_created,
|
||||
i.createdby AS c_order_createdby,
|
||||
i.dateacct,
|
||||
i.dateprinted,
|
||||
i.datepromised AS c_order_datepromised,
|
||||
i.deliveryrule,
|
||||
i.deliveryviarule,
|
||||
i.description AS c_order_description,
|
||||
i.docaction,
|
||||
i.docstatus,
|
||||
i.documentno,
|
||||
i.dropship_bpartner_id,
|
||||
i.dropship_location_id,
|
||||
i.dropship_user_id,
|
||||
i.freightamt AS c_order_freightamt,
|
||||
i.freightcostrule,
|
||||
i.grandtotal,
|
||||
i.invoicerule,
|
||||
i.isactive AS c_order_isactive,
|
||||
i.isapproved,
|
||||
i.iscreditapproved,
|
||||
i.isdelivered,
|
||||
i.isdiscountprinted AS c_order_isdiscountprinted,
|
||||
i.isdropship AS c_order_isdropship,
|
||||
i.isinvoiced,
|
||||
i.ispayschedulevalid,
|
||||
i.isprinted,
|
||||
i.isselected,
|
||||
i.isselfservice AS c_order_isselfservice,
|
||||
i.issotrx,
|
||||
i.istaxincluded,
|
||||
i.istransferred,
|
||||
i.link_order_id,
|
||||
i.m_freightcategory_id AS c_order_m_freightcategory_id,
|
||||
i.m_pricelist_id AS c_order_m_pricelist_id,
|
||||
i.m_shipper_id AS c_order_m_shipper_id,
|
||||
i.m_warehouse_id AS c_order_m_warehouse_id,
|
||||
i.ordertype,
|
||||
i.pay_bpartner_id,
|
||||
i.pay_location_id,
|
||||
i.paymentrule AS c_order_paymentrule,
|
||||
i.poreference,
|
||||
i.posted,
|
||||
i.priorityrule,
|
||||
i.processed AS c_order_processed,
|
||||
i.processedon,
|
||||
i.promotioncode,
|
||||
i.ref_order_id,
|
||||
i.salesrep_id,
|
||||
i.sendemail AS c_order_sendemail,
|
||||
i.totallines,
|
||||
i.updated AS c_order_updated,
|
||||
i.updatedby AS c_order_updatedby,
|
||||
i.user1_id AS c_order_user1_id,
|
||||
i.user2_id AS c_order_user2_id,
|
||||
i.volume AS c_order_volume,
|
||||
i.weight AS c_order_weight,
|
||||
NULL AS c_order_ad_org_id,
|
||||
NULL AS c_order_ad_orgtrx_id,
|
||||
NULL AS ad_user_id,
|
||||
NULL AS amountrefunded,
|
||||
NULL AS amounttendered,
|
||||
NULL AS bill_bpartner_id,
|
||||
NULL AS bill_location_id,
|
||||
NULL AS bill_user_id,
|
||||
NULL AS c_order_c_activity_id,
|
||||
NULL AS c_order_c_bpartner_id,
|
||||
NULL AS c_order_c_campaign_id,
|
||||
NULL AS c_cashline_id,
|
||||
NULL AS c_cashplanline_id,
|
||||
NULL AS c_order_c_charge_id,
|
||||
NULL AS c_conversiontype_id,
|
||||
NULL AS c_order_c_currency_id,
|
||||
NULL AS c_doctype_id,
|
||||
NULL AS c_doctypetarget_id,
|
||||
NULL AS chargeamt,
|
||||
NULL AS copyfrom,
|
||||
NULL AS c_payment_id,
|
||||
NULL AS c_paymentterm_id,
|
||||
NULL AS c_pos_id,
|
||||
NULL AS c_order_c_project_id,
|
||||
NULL AS c_order_created,
|
||||
NULL AS c_order_createdby,
|
||||
NULL AS dateacct,
|
||||
NULL AS dateprinted,
|
||||
NULL AS c_order_datepromised,
|
||||
NULL AS deliveryrule,
|
||||
NULL AS deliveryviarule,
|
||||
NULL AS c_order_description,
|
||||
NULL AS docaction,
|
||||
NULL AS docstatus,
|
||||
NULL AS documentno,
|
||||
NULL AS dropship_bpartner_id,
|
||||
NULL AS dropship_location_id,
|
||||
NULL AS dropship_user_id,
|
||||
NULL AS c_order_freightamt,
|
||||
NULL AS freightcostrule,
|
||||
NULL AS grandtotal,
|
||||
NULL AS invoicerule,
|
||||
NULL AS c_order_isactive,
|
||||
NULL AS isapproved,
|
||||
NULL AS iscreditapproved,
|
||||
NULL AS isdelivered,
|
||||
NULL AS c_order_isdiscountprinted,
|
||||
NULL AS c_order_isdropship,
|
||||
NULL AS isinvoiced,
|
||||
NULL AS ispayschedulevalid,
|
||||
NULL AS isprinted,
|
||||
NULL AS isselected,
|
||||
NULL AS c_order_isselfservice,
|
||||
NULL AS issotrx,
|
||||
NULL AS istaxincluded,
|
||||
NULL AS istransferred,
|
||||
NULL AS link_order_id,
|
||||
NULL AS c_order_m_freightcategory_id,
|
||||
NULL AS c_order_m_pricelist_id,
|
||||
NULL AS c_order_m_shipper_id,
|
||||
NULL AS c_order_m_warehouse_id,
|
||||
NULL AS ordertype,
|
||||
NULL AS pay_bpartner_id,
|
||||
NULL AS pay_location_id,
|
||||
NULL AS c_order_paymentrule,
|
||||
NULL AS poreference,
|
||||
NULL AS posted,
|
||||
NULL AS priorityrule,
|
||||
NULL AS c_order_processed,
|
||||
NULL AS processedon,
|
||||
NULL AS promotioncode,
|
||||
NULL AS ref_order_id,
|
||||
NULL AS salesrep_id,
|
||||
NULL AS c_order_sendemail,
|
||||
NULL AS totallines,
|
||||
NULL AS c_order_updated,
|
||||
NULL AS c_order_updatedby,
|
||||
NULL AS c_order_user1_id,
|
||||
NULL AS c_order_user2_id,
|
||||
NULL AS c_order_volume,
|
||||
NULL AS c_order_weight,
|
||||
NULL AS m_product_ad_org_id,
|
||||
NULL AS classification,
|
||||
NULL AS m_product_copyfrom,
|
||||
|
@ -1186,17 +1186,18 @@ CREATE OR REPLACE VIEW c_order_linetax_vt AS
|
|||
NULL AS to_country_id,
|
||||
NULL AS c_tax_to_region_id,
|
||||
NULL AS validfrom
|
||||
FROM c_order i
|
||||
FROM c_order i, ad_language l
|
||||
WHERE l.isbaselanguage='N' AND l.issystemlanguage='Y'
|
||||
)
|
||||
UNION
|
||||
SELECT ot.ad_client_id,
|
||||
SELECT /* tax lines */ ot.ad_client_id,
|
||||
ot.ad_org_id,
|
||||
ot.isactive,
|
||||
ot.created,
|
||||
ot.createdby,
|
||||
ot.updated,
|
||||
ot.updatedby,
|
||||
'en_US'::character varying(6) AS ad_language,
|
||||
tt.ad_language,
|
||||
ot.c_order_id,
|
||||
NULL AS c_orderline_id,
|
||||
ot.c_tax_id,
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue