* resolve postgresql create view warning
This commit is contained in:
parent
5041637c04
commit
ea6f8fb215
|
@ -10,7 +10,7 @@ AS
|
|||
SELECT t.AD_Tab_ID, t.AD_Window_ID, t.AD_Table_ID, t.Name, t.Description,
|
||||
t.Help, t.SeqNo, t.IsSingleRow, t.HasTree, t.IsInfoTab, tbl.ReplicationType,
|
||||
tbl.TableName, tbl.AccessLevel, tbl.IsSecurityEnabled, tbl.IsDeleteable,
|
||||
tbl.IsHighVolume, tbl.IsView, 'N' AS HasAssociation, -- compatibility
|
||||
tbl.IsHighVolume, tbl.IsView, cast('N' as char) AS HasAssociation, -- compatibility
|
||||
t.IsTranslationTab, t.IsReadOnly, t.AD_Image_ID, t.TabLevel,
|
||||
t.WhereClause, t.OrderByClause, t.CommitWarning, t.ReadOnlyLogic, t.DisplayLogic,
|
||||
t.AD_Column_ID, t.AD_Process_ID, t.IsSortTab, t.IsInsertRecord, t.IsAdvancedTab,
|
||||
|
|
|
@ -11,7 +11,7 @@ AS
|
|||
SELECT trl.AD_Language, t.AD_Tab_ID, t.AD_Window_ID, t.AD_Table_ID, trl.Name, trl.Description,
|
||||
trl.Help, t.SeqNo, t.IsSingleRow, t.HasTree, t.IsInfoTab, tbl.ReplicationType,
|
||||
tbl.TableName, tbl.AccessLevel, tbl.IsSecurityEnabled, tbl.IsDeleteable,
|
||||
tbl.IsHighVolume, tbl.IsView, 'N' AS HasAssociation, -- compatibility
|
||||
tbl.IsHighVolume, tbl.IsView, cast('N' as char) AS HasAssociation, -- compatibility
|
||||
t.IsTranslationTab, t.IsReadOnly, t.AD_Image_ID, t.TabLevel,
|
||||
t.WhereClause, t.OrderByClause, trl.CommitWarning, t.ReadOnlyLogic, t.DisplayLogic,
|
||||
t.AD_Column_ID, t.AD_Process_ID, t.IsSortTab, t.IsInsertRecord, t.IsAdvancedTab,
|
||||
|
|
|
@ -8,7 +8,7 @@ CREATE OR REPLACE VIEW C_DUNNING_HEADER_V
|
|||
REFERENCENO, POSTAL, AMT, QTY, NOTE)
|
||||
AS
|
||||
SELECT dr.AD_Client_ID, dr.AD_Org_ID, dr.IsActive, dr.Created, dr.CreatedBy, dr.Updated, dr.UpdatedBy,
|
||||
'en_US' AS AD_Language, dr.C_DunningRun_ID, C_DunningRunEntry_ID,
|
||||
cast('en_US' as varchar) AS AD_Language, dr.C_DunningRun_ID, C_DunningRunEntry_ID,
|
||||
dr.DunningDate, dl.PrintName, dl.Note AS DocumentNote,
|
||||
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,
|
||||
|
|
|
@ -11,7 +11,7 @@ CREATE OR REPLACE VIEW C_DUNNING_LINE_V
|
|||
ISPAID, ISALLOCATED, TENDERTYPE, DISCOUNTAMT)
|
||||
AS
|
||||
SELECT drl.AD_Client_ID, drl.AD_Org_ID, drl.IsActive, drl.Created, drl.CreatedBy, drl.Updated, drl.UpdatedBy,
|
||||
'en_US' AS AD_Language,
|
||||
cast('en_US' as varchar) AS AD_Language,
|
||||
drl.C_DunningRunLine_ID, drl.C_DunningRunEntry_ID,
|
||||
drl.Amt, drl.ConvertedAmt, drl.DaysDue, drl.TimesDunned,
|
||||
drl.InterestAmt, drl.FeeAmt, drl.TotalAmt,
|
||||
|
|
|
@ -12,7 +12,7 @@ CREATE OR REPLACE VIEW C_INVOICE_HEADER_V
|
|||
C_PROJECT_ID, C_ACTIVITY_ID, ISPAID)
|
||||
AS
|
||||
SELECT i.AD_Client_ID, i.AD_Org_ID, i.IsActive, i.Created, i.CreatedBy, i.Updated, i.UpdatedBy,
|
||||
'en_US' AS AD_Language,
|
||||
cast('en_US' as varchar) AS AD_Language,
|
||||
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,
|
||||
oi.C_Location_ID AS Org_Location_ID, oi.TaxID,
|
||||
|
|
|
@ -16,7 +16,7 @@ CREATE OR REPLACE VIEW C_ORDER_HEADER_V
|
|||
INVOICERULE)
|
||||
AS
|
||||
SELECT o.AD_Client_ID, o.AD_Org_ID, o.IsActive, o.Created, o.CreatedBy, o.Updated, o.UpdatedBy,
|
||||
'en_US' AS AD_Language,
|
||||
cast('en_US' as varchar) AS AD_Language,
|
||||
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,
|
||||
oi.C_Location_ID AS Org_Location_ID, oi.TaxID,
|
||||
|
|
|
@ -6,7 +6,7 @@ CREATE OR REPLACE VIEW C_PAYSELECTION_CHECK_V
|
|||
PAYAMT, AMTINWORDS, QTY, PAYMENTRULE, DOCUMENTNO)
|
||||
AS
|
||||
SELECT psc.AD_Client_ID, psc.AD_Org_ID,
|
||||
'en_US' AS AD_Language,
|
||||
cast('en_US' as varchar) AS AD_Language,
|
||||
psc.C_PaySelection_ID, psc.C_PaySelectionCheck_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,
|
||||
|
|
|
@ -5,7 +5,7 @@ CREATE OR REPLACE VIEW C_PAYSELECTION_REMITTANCE_V
|
|||
GRANDTOTAL, AMTINWORDS)
|
||||
AS
|
||||
SELECT psl.AD_Client_ID, psl.AD_Org_ID,
|
||||
'en_US' AS AD_Language,
|
||||
cast('en_US' as varchar) AS AD_Language,
|
||||
psl.C_PaySelection_ID, psl.C_PaySelectionLine_ID,
|
||||
psl.C_PaySelectionCheck_ID,
|
||||
psl.PaymentRule, psl.Line, psl.OpenAmt, psl.PayAmt, psl.DiscountAmt, psl.DifferenceAmt,
|
||||
|
|
|
@ -7,7 +7,7 @@ CREATE OR REPLACE VIEW C_PROJECT_DETAILS_V
|
|||
INVOICEDQTY, COMMITTEDQTY)
|
||||
AS
|
||||
SELECT pl.AD_Client_ID, pl.AD_Org_ID, pl.IsActive, pl.Created, pl.CreatedBy, pl.Updated, pl.UpdatedBy,
|
||||
'en_US' AS AD_Language,
|
||||
cast('en_US' as varchar) AS AD_Language,
|
||||
pj.C_Project_ID, pl.C_ProjectLine_ID,
|
||||
pl.Line,
|
||||
pl.PlannedQty, pl.PlannedPrice, pl.PlannedAmt, pl.PlannedMarginAmt,
|
||||
|
|
|
@ -13,7 +13,7 @@ CREATE OR REPLACE VIEW C_PROJECT_HEADER_V
|
|||
M_WAREHOUSE_ID)
|
||||
AS
|
||||
SELECT p.AD_Client_ID, p.AD_Org_ID, p.IsActive, p.Created, p.CreatedBy, p.Updated, p.UpdatedBy,
|
||||
'en_US' AS AD_Language, p.C_Project_ID,
|
||||
cast('en_US' as varchar) AS AD_Language, p.C_Project_ID,
|
||||
p.Value, p.Name AS ProjectName, p.Description, p.Note, p.IsSummary, p.ProjectCategory,
|
||||
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,
|
||||
|
|
|
@ -6,7 +6,7 @@ CREATE OR REPLACE VIEW C_RFQRESPONSELINEQTY_V
|
|||
AS
|
||||
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,
|
||||
'en_US' AS AD_Language,
|
||||
cast('en_US' as varchar) AS AD_Language,
|
||||
q.C_UOM_ID, uom.UOMSymbol,
|
||||
q.Qty, rq.Price, rq.Discount
|
||||
FROM C_RfQResponseLineQty rq
|
||||
|
|
|
@ -10,7 +10,7 @@ AS
|
|||
SELECT rrl.C_RfQResponse_ID, rrl.C_RfQResponseLine_ID, rrl.C_RfQLine_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,
|
||||
'en_US' AS AD_Language,
|
||||
cast('en_US' as varchar) AS AD_Language,
|
||||
rl.Line,
|
||||
rl.M_Product_ID, rl.M_AttributeSetInstance_ID,
|
||||
COALESCE(p.Name||productAttribute(rl.M_AttributeSetInstance_ID), rl.Description) AS Name, -- main line
|
||||
|
|
|
@ -8,7 +8,7 @@ CREATE OR REPLACE VIEW C_RFQRESPONSE_V
|
|||
AS
|
||||
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,
|
||||
'en_US' AS AD_Language,
|
||||
cast('en_US' as varchar) AS AD_Language,
|
||||
oi.C_Location_ID AS Org_Location_ID, oi.TaxID,
|
||||
r.Name, r.Description, r.Help,
|
||||
r.C_Currency_ID, c.ISO_Code,
|
||||
|
|
|
@ -8,7 +8,7 @@ CREATE OR REPLACE VIEW M_INOUTCONFIRM_V
|
|||
DELIVERYVIARULE, M_SHIPPER_ID, PRIORITYRULE, PROCESSED)
|
||||
AS
|
||||
SELECT ioc.AD_Client_ID, ioc.AD_Org_ID, ioc.IsActive, ioc.Created, ioc.CreatedBy, ioc.Updated, ioc.UpdatedBy,
|
||||
'en_US' AS AD_Language,
|
||||
cast('en_US' as varchar) AS AD_Language,
|
||||
ioc.M_InOutConfirm_ID,
|
||||
ioc.DocumentNo, ioc.ConfirmType,
|
||||
ioc.IsApproved, ioc.IsCancelled, ioc.Description,
|
||||
|
|
|
@ -11,7 +11,7 @@ CREATE OR REPLACE VIEW M_INOUT_HEADER_V
|
|||
PRIORITYRULE)
|
||||
AS
|
||||
SELECT io.AD_Client_ID, io.AD_Org_ID, io.IsActive, io.Created, io.CreatedBy, io.Updated, io.UpdatedBy,
|
||||
'en_US' AS AD_Language,
|
||||
cast('en_US' as varchar) AS AD_Language,
|
||||
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,
|
||||
oi.C_Location_ID AS Org_Location_ID, oi.TaxID,
|
||||
|
|
|
@ -9,7 +9,7 @@ CREATE OR REPLACE VIEW M_INOUT_LINECONFIRM_V
|
|||
M_ATTRIBUTESET_ID, SERNO, LOT, M_LOT_ID, GUARANTEEDATE)
|
||||
AS
|
||||
SELECT iolc.AD_Client_ID, iolc.AD_Org_ID, iolc.IsActive, iolc.Created, iolc.CreatedBy, iolc.Updated, iolc.UpdatedBy,
|
||||
'en_US' AS AD_Language,
|
||||
cast('en_US' as varchar) AS AD_Language,
|
||||
iolc.M_InOutLineConfirm_ID, iolc.M_InOutConfirm_ID,
|
||||
iolc.TargetQty, iolc.ConfirmedQty, iolc.DifferenceQty, iolc.ScrappedQty,
|
||||
iolc.Description, iolc.Processed,
|
||||
|
|
|
@ -2,7 +2,8 @@ CREATE OR REPLACE VIEW RV_REQUESTUPDATES_ONLY
|
|||
(AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY,
|
||||
UPDATED, UPDATEDBY, R_REQUEST_ID, AD_USER_ID)
|
||||
AS
|
||||
SELECT MIN(AD_Client_ID) AS AD_Client_ID, MIN(AD_Org_ID) AS AD_ORG_ID, 'Y' AS IsActive,
|
||||
SELECT MIN(AD_Client_ID) AS AD_Client_ID, MIN(AD_Org_ID) AS AD_ORG_ID,
|
||||
cast('Y' as char) AS IsActive,
|
||||
getdate() AS Created, 0 AS CreatedBy, getdate() AS Updated, 0 AS UpdatedBy,
|
||||
R_Request_ID, AD_User_ID
|
||||
FROM RV_RequestUpdates
|
||||
|
|
|
@ -2,7 +2,8 @@ CREATE OR REPLACE VIEW RV_REQUESTUPDATES_V
|
|||
(AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY,
|
||||
UPDATED, UPDATEDBY, R_REQUEST_ID, AD_USER_ID)
|
||||
AS
|
||||
SELECT MIN(AD_Client_ID) AS AD_Client_ID, MIN(AD_Org_ID) AS AD_ORG_ID, 'Y' AS IsActive,
|
||||
SELECT MIN(AD_Client_ID) AS AD_Client_ID, MIN(AD_Org_ID) AS AD_ORG_ID,
|
||||
cast('Y' as char) AS IsActive,
|
||||
getdate() AS Created, 0 AS CreatedBy, getdate() AS Updated, 0 AS UpdatedBy,
|
||||
R_Request_ID, AD_User_ID
|
||||
FROM RV_RequestUpdates
|
||||
|
|
Loading…
Reference in New Issue