BF [ 1689825 ] Views with casts are not working [oracle]

http://sourceforge.net/tracker/index.php?func=detail&aid=1689825&group_id=176962&atid=879332
This commit is contained in:
teo_sarca 2007-03-31 09:58:52 +00:00
parent 5a7399fee4
commit 85901de374
14 changed files with 14 additions and 14 deletions

View File

@ -8,7 +8,7 @@ CREATE OR REPLACE VIEW C_DUNNING_HEADER_V
REFERENCENO, POSTAL, AMT, QTY, NOTE) REFERENCENO, POSTAL, AMT, QTY, NOTE)
AS AS
SELECT dr.AD_Client_ID, dr.AD_Org_ID, dr.IsActive, dr.Created, dr.CreatedBy, dr.Updated, dr.UpdatedBy, SELECT dr.AD_Client_ID, dr.AD_Org_ID, dr.IsActive, dr.Created, dr.CreatedBy, dr.Updated, dr.UpdatedBy,
cast('en_US' as varchar) AS AD_Language, dr.C_DunningRun_ID, C_DunningRunEntry_ID, cast('en_US' as varchar2(6)) AS AD_Language, dr.C_DunningRun_ID, C_DunningRunEntry_ID,
dr.DunningDate, dl.PrintName, dl.Note AS DocumentNote, dr.DunningDate, dl.PrintName, dl.Note AS DocumentNote,
dre.C_BPartner_ID, bp.Value AS BPValue, bp.TaxID AS BPTaxID, bp.NAICS, bp.DUNS, dre.C_BPartner_ID, bp.Value AS BPValue, bp.TaxID AS BPTaxID, bp.NAICS, bp.DUNS,
oi.C_Location_ID AS Org_Location_ID, oi.TaxID, oi.C_Location_ID AS Org_Location_ID, oi.TaxID,

View File

@ -11,7 +11,7 @@ CREATE OR REPLACE VIEW C_DUNNING_LINE_V
ISPAID, ISALLOCATED, TENDERTYPE, DISCOUNTAMT) ISPAID, ISALLOCATED, TENDERTYPE, DISCOUNTAMT)
AS AS
SELECT drl.AD_Client_ID, drl.AD_Org_ID, drl.IsActive, drl.Created, drl.CreatedBy, drl.Updated, drl.UpdatedBy, SELECT drl.AD_Client_ID, drl.AD_Org_ID, drl.IsActive, drl.Created, drl.CreatedBy, drl.Updated, drl.UpdatedBy,
cast('en_US' as varchar) AS AD_Language, cast('en_US' as varchar2(6)) AS AD_Language,
drl.C_DunningRunLine_ID, drl.C_DunningRunEntry_ID, drl.C_DunningRunLine_ID, drl.C_DunningRunEntry_ID,
drl.Amt, drl.ConvertedAmt, drl.DaysDue, drl.TimesDunned, drl.Amt, drl.ConvertedAmt, drl.DaysDue, drl.TimesDunned,
drl.InterestAmt, drl.FeeAmt, drl.TotalAmt, drl.InterestAmt, drl.FeeAmt, drl.TotalAmt,

View File

@ -12,7 +12,7 @@ CREATE OR REPLACE VIEW C_INVOICE_HEADER_V
C_PROJECT_ID, C_ACTIVITY_ID, ISPAID) C_PROJECT_ID, C_ACTIVITY_ID, ISPAID)
AS AS
SELECT i.AD_Client_ID, i.AD_Org_ID, i.IsActive, i.Created, i.CreatedBy, i.Updated, i.UpdatedBy, SELECT i.AD_Client_ID, i.AD_Org_ID, i.IsActive, i.Created, i.CreatedBy, i.Updated, i.UpdatedBy,
cast('en_US' as varchar) AS AD_Language, cast('en_US' as varchar2(6)) AS AD_Language,
i.C_Invoice_ID, i.IsSOTrx, i.DocumentNo, i.DocStatus, i.C_DocType_ID, i.C_Invoice_ID, i.IsSOTrx, i.DocumentNo, i.DocStatus, i.C_DocType_ID,
i.C_BPartner_ID, bp.Value AS BPValue, bp.TaxID AS BPTaxID, bp.NAICS, bp.DUNS, i.C_BPartner_ID, bp.Value AS BPValue, bp.TaxID AS BPTaxID, bp.NAICS, bp.DUNS,
oi.C_Location_ID AS Org_Location_ID, oi.TaxID, oi.C_Location_ID AS Org_Location_ID, oi.TaxID,

View File

@ -16,7 +16,7 @@ CREATE OR REPLACE VIEW C_ORDER_HEADER_V
INVOICERULE) INVOICERULE)
AS AS
SELECT o.AD_Client_ID, o.AD_Org_ID, o.IsActive, o.Created, o.CreatedBy, o.Updated, o.UpdatedBy, SELECT o.AD_Client_ID, o.AD_Org_ID, o.IsActive, o.Created, o.CreatedBy, o.Updated, o.UpdatedBy,
cast('en_US' as varchar) AS AD_Language, cast('en_US' as varchar2(6)) AS AD_Language,
o.C_Order_ID, o.IsSOTrx, o.DocumentNo, o.DocStatus, o.C_DocType_ID, o.C_Order_ID, o.IsSOTrx, o.DocumentNo, o.DocStatus, o.C_DocType_ID,
o.C_BPartner_ID, bp.Value AS BPValue, bp.TaxID AS BPTaxID, bp.NAICS, bp.DUNS, o.C_BPartner_ID, bp.Value AS BPValue, bp.TaxID AS BPTaxID, bp.NAICS, bp.DUNS,
oi.C_Location_ID AS Org_Location_ID, oi.TaxID, oi.C_Location_ID AS Org_Location_ID, oi.TaxID,

View File

@ -6,7 +6,7 @@ CREATE OR REPLACE VIEW C_PAYSELECTION_CHECK_V
PAYAMT, AMTINWORDS, QTY, PAYMENTRULE, DOCUMENTNO) PAYAMT, AMTINWORDS, QTY, PAYMENTRULE, DOCUMENTNO)
AS AS
SELECT psc.AD_Client_ID, psc.AD_Org_ID, SELECT psc.AD_Client_ID, psc.AD_Org_ID,
cast('en_US' as varchar) AS AD_Language, cast('en_US' as varchar2(6)) AS AD_Language,
psc.C_PaySelection_ID, psc.C_PaySelectionCheck_ID, psc.C_PaySelection_ID, psc.C_PaySelectionCheck_ID,
oi.C_Location_ID AS Org_Location_ID, oi.TaxID, 0 AS C_DocType_ID, oi.C_Location_ID AS Org_Location_ID, oi.TaxID, 0 AS C_DocType_ID,
bp.C_BPartner_ID, bp.Value AS BPValue, bp.TaxID AS BPTaxID, bp.NAICS, bp.DUNS, bp.C_BPartner_ID, bp.Value AS BPValue, bp.TaxID AS BPTaxID, bp.NAICS, bp.DUNS,

View File

@ -5,7 +5,7 @@ CREATE OR REPLACE VIEW C_PAYSELECTION_REMITTANCE_V
GRANDTOTAL, AMTINWORDS) GRANDTOTAL, AMTINWORDS)
AS AS
SELECT psl.AD_Client_ID, psl.AD_Org_ID, SELECT psl.AD_Client_ID, psl.AD_Org_ID,
cast('en_US' as varchar) AS AD_Language, cast('en_US' as varchar2(6)) AS AD_Language,
psl.C_PaySelection_ID, psl.C_PaySelectionLine_ID, psl.C_PaySelection_ID, psl.C_PaySelectionLine_ID,
psl.C_PaySelectionCheck_ID, psl.C_PaySelectionCheck_ID,
psl.PaymentRule, psl.Line, psl.OpenAmt, psl.PayAmt, psl.DiscountAmt, psl.DifferenceAmt, psl.PaymentRule, psl.Line, psl.OpenAmt, psl.PayAmt, psl.DiscountAmt, psl.DifferenceAmt,

View File

@ -7,7 +7,7 @@ CREATE OR REPLACE VIEW C_PROJECT_DETAILS_V
INVOICEDQTY, COMMITTEDQTY) INVOICEDQTY, COMMITTEDQTY)
AS AS
SELECT pl.AD_Client_ID, pl.AD_Org_ID, pl.IsActive, pl.Created, pl.CreatedBy, pl.Updated, pl.UpdatedBy, SELECT pl.AD_Client_ID, pl.AD_Org_ID, pl.IsActive, pl.Created, pl.CreatedBy, pl.Updated, pl.UpdatedBy,
cast('en_US' as varchar) AS AD_Language, cast('en_US' as varchar2(6)) AS AD_Language,
pj.C_Project_ID, pl.C_ProjectLine_ID, pj.C_Project_ID, pl.C_ProjectLine_ID,
pl.Line, pl.Line,
pl.PlannedQty, pl.PlannedPrice, pl.PlannedAmt, pl.PlannedMarginAmt, pl.PlannedQty, pl.PlannedPrice, pl.PlannedAmt, pl.PlannedMarginAmt,

View File

@ -13,7 +13,7 @@ CREATE OR REPLACE VIEW C_PROJECT_HEADER_V
M_WAREHOUSE_ID) M_WAREHOUSE_ID)
AS AS
SELECT p.AD_Client_ID, p.AD_Org_ID, p.IsActive, p.Created, p.CreatedBy, p.Updated, p.UpdatedBy, SELECT p.AD_Client_ID, p.AD_Org_ID, p.IsActive, p.Created, p.CreatedBy, p.Updated, p.UpdatedBy,
cast('en_US' as varchar) AS AD_Language, p.C_Project_ID, cast('en_US' as varchar2(6)) AS AD_Language, p.C_Project_ID,
p.Value, p.Name AS ProjectName, p.Description, p.Note, p.IsSummary, p.ProjectCategory, p.Value, p.Name AS ProjectName, p.Description, p.Note, p.IsSummary, p.ProjectCategory,
oi.C_Location_ID AS Org_Location_ID, oi.TaxID, oi.C_Location_ID AS Org_Location_ID, oi.TaxID,
p.C_ProjectType_ID, pjt.Name AS ProjectTypeName, p.C_Phase_ID, pjp.Name AS ProjectPhaseName, p.C_ProjectType_ID, pjt.Name AS ProjectTypeName, p.C_Phase_ID, pjp.Name AS ProjectPhaseName,

View File

@ -6,7 +6,7 @@ CREATE OR REPLACE VIEW C_RFQRESPONSELINEQTY_V
AS AS
SELECT rq.C_RfQResponseLine_ID, rq.C_RfQResponseLineQty_ID, rq.C_RfQLineQty_ID, SELECT rq.C_RfQResponseLine_ID, rq.C_RfQResponseLineQty_ID, rq.C_RfQLineQty_ID,
rq.AD_Client_ID, rq.AD_Org_ID, rq.IsActive, rq.Created, rq.CreatedBy, rq.Updated, rq.UpdatedBy, rq.AD_Client_ID, rq.AD_Org_ID, rq.IsActive, rq.Created, rq.CreatedBy, rq.Updated, rq.UpdatedBy,
cast('en_US' as varchar) AS AD_Language, cast('en_US' as varchar2(6)) AS AD_Language,
q.C_UOM_ID, uom.UOMSymbol, q.C_UOM_ID, uom.UOMSymbol,
q.Qty, rq.Price, rq.Discount q.Qty, rq.Price, rq.Discount
FROM C_RfQResponseLineQty rq FROM C_RfQResponseLineQty rq

View File

@ -10,7 +10,7 @@ AS
SELECT rrl.C_RfQResponse_ID, rrl.C_RfQResponseLine_ID, rrl.C_RfQLine_ID, SELECT rrl.C_RfQResponse_ID, rrl.C_RfQResponseLine_ID, rrl.C_RfQLine_ID,
rq.C_RfQResponseLineQty_ID, rq.C_RfQLineQty_ID, rq.C_RfQResponseLineQty_ID, rq.C_RfQLineQty_ID,
rrl.AD_Client_ID, rrl.AD_Org_ID, rrl.IsActive, rrl.Created, rrl.CreatedBy, rrl.Updated, rrl.UpdatedBy, rrl.AD_Client_ID, rrl.AD_Org_ID, rrl.IsActive, rrl.Created, rrl.CreatedBy, rrl.Updated, rrl.UpdatedBy,
cast('en_US' as varchar) AS AD_Language, cast('en_US' as varchar2(6)) AS AD_Language,
rl.Line, rl.Line,
rl.M_Product_ID, rl.M_AttributeSetInstance_ID, rl.M_Product_ID, rl.M_AttributeSetInstance_ID,
COALESCE(p.Name||productAttribute(rl.M_AttributeSetInstance_ID), rl.Description) AS Name, -- main line COALESCE(p.Name||productAttribute(rl.M_AttributeSetInstance_ID), rl.Description) AS Name, -- main line

View File

@ -8,7 +8,7 @@ CREATE OR REPLACE VIEW C_RFQRESPONSE_V
AS AS
SELECT rr.C_RfQResponse_ID, rr.C_RfQ_ID, SELECT rr.C_RfQResponse_ID, rr.C_RfQ_ID,
rr.AD_Client_ID, rr.AD_Org_ID, rr.IsActive, rr.Created, rr.CreatedBy, rr.Updated, rr.UpdatedBy, rr.AD_Client_ID, rr.AD_Org_ID, rr.IsActive, rr.Created, rr.CreatedBy, rr.Updated, rr.UpdatedBy,
cast('en_US' as varchar) AS AD_Language, cast('en_US' as varchar2(6)) AS AD_Language,
oi.C_Location_ID AS Org_Location_ID, oi.TaxID, oi.C_Location_ID AS Org_Location_ID, oi.TaxID,
r.Name, r.Description, r.Help, r.Name, r.Description, r.Help,
r.C_Currency_ID, c.ISO_Code, r.C_Currency_ID, c.ISO_Code,

View File

@ -8,7 +8,7 @@ CREATE OR REPLACE VIEW M_INOUTCONFIRM_V
DELIVERYVIARULE, M_SHIPPER_ID, PRIORITYRULE, PROCESSED) DELIVERYVIARULE, M_SHIPPER_ID, PRIORITYRULE, PROCESSED)
AS AS
SELECT ioc.AD_Client_ID, ioc.AD_Org_ID, ioc.IsActive, ioc.Created, ioc.CreatedBy, ioc.Updated, ioc.UpdatedBy, SELECT ioc.AD_Client_ID, ioc.AD_Org_ID, ioc.IsActive, ioc.Created, ioc.CreatedBy, ioc.Updated, ioc.UpdatedBy,
cast('en_US' as varchar) AS AD_Language, cast('en_US' as varchar2(6)) AS AD_Language,
ioc.M_InOutConfirm_ID, ioc.M_InOutConfirm_ID,
ioc.DocumentNo, ioc.ConfirmType, ioc.DocumentNo, ioc.ConfirmType,
ioc.IsApproved, ioc.IsCancelled, ioc.Description, ioc.IsApproved, ioc.IsCancelled, ioc.Description,

View File

@ -11,7 +11,7 @@ CREATE OR REPLACE VIEW M_INOUT_HEADER_V
PRIORITYRULE) PRIORITYRULE)
AS AS
SELECT io.AD_Client_ID, io.AD_Org_ID, io.IsActive, io.Created, io.CreatedBy, io.Updated, io.UpdatedBy, SELECT io.AD_Client_ID, io.AD_Org_ID, io.IsActive, io.Created, io.CreatedBy, io.Updated, io.UpdatedBy,
cast('en_US' as varchar) AS AD_Language, cast('en_US' as varchar2(6)) AS AD_Language,
io.M_InOut_ID, io.IsSOTrx, io.DocumentNo, io.DocStatus, io.C_DocType_ID, io.M_InOut_ID, io.IsSOTrx, io.DocumentNo, io.DocStatus, io.C_DocType_ID,
io.C_BPartner_ID, bp.Value AS BPValue, bp.TaxID AS BPTaxID, bp.NAICS, bp.DUNS, io.C_BPartner_ID, bp.Value AS BPValue, bp.TaxID AS BPTaxID, bp.NAICS, bp.DUNS,
oi.C_Location_ID AS Org_Location_ID, oi.TaxID, oi.C_Location_ID AS Org_Location_ID, oi.TaxID,

View File

@ -9,7 +9,7 @@ CREATE OR REPLACE VIEW M_INOUT_LINECONFIRM_V
M_ATTRIBUTESET_ID, SERNO, LOT, M_LOT_ID, GUARANTEEDATE) M_ATTRIBUTESET_ID, SERNO, LOT, M_LOT_ID, GUARANTEEDATE)
AS AS
SELECT iolc.AD_Client_ID, iolc.AD_Org_ID, iolc.IsActive, iolc.Created, iolc.CreatedBy, iolc.Updated, iolc.UpdatedBy, SELECT iolc.AD_Client_ID, iolc.AD_Org_ID, iolc.IsActive, iolc.Created, iolc.CreatedBy, iolc.Updated, iolc.UpdatedBy,
cast('en_US' as varchar) AS AD_Language, cast('en_US' as varchar2(6)) AS AD_Language,
iolc.M_InOutLineConfirm_ID, iolc.M_InOutConfirm_ID, iolc.M_InOutLineConfirm_ID, iolc.M_InOutConfirm_ID,
iolc.TargetQty, iolc.ConfirmedQty, iolc.DifferenceQty, iolc.ScrappedQty, iolc.TargetQty, iolc.ConfirmedQty, iolc.DifferenceQty, iolc.ScrappedQty,
iolc.Description, iolc.Processed, iolc.Description, iolc.Processed,