FR 2851987 - Add company logo
https://sourceforge.net/tracker/index.php?func=detail&aid=2851987&group_id=176962&atid=879335
This commit is contained in:
parent
cf96e249c8
commit
d669523aac
|
@ -3,12 +3,13 @@ CREATE OR REPLACE VIEW C_PAYSELECTION_CHECK_V
|
|||
ORG_LOCATION_ID, TAXID, C_DOCTYPE_ID, C_BPARTNER_ID, BPVALUE,
|
||||
BPTAXID, NAICS, DUNS, BPGREETING, NAME,
|
||||
NAME2, C_LOCATION_ID, REFERENCENO, POREFERENCE, PAYDATE,
|
||||
PAYAMT, AMTINWORDS, QTY, PAYMENTRULE, DOCUMENTNO)
|
||||
PAYAMT, AMTINWORDS, QTY, PAYMENTRULE, DOCUMENTNO, LOGO_ID,
|
||||
DOCUMENTTYPE, DOCUMENTTYPENOTE, DESCRIPTION)
|
||||
AS
|
||||
SELECT psc.AD_Client_ID, psc.AD_Org_ID,
|
||||
cast('en_US' as varchar2(6)) 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,
|
||||
oi.C_Location_ID AS Org_Location_ID, oi.TaxID, p.C_DocType_ID,
|
||||
bp.C_BPartner_ID, bp.Value AS BPValue, bp.TaxID AS BPTaxID, bp.NAICS, bp.DUNS,
|
||||
bpg.Greeting AS BPGreeting,
|
||||
bp.Name, bp.Name2,
|
||||
|
@ -16,12 +17,14 @@ SELECT psc.AD_Client_ID, psc.AD_Org_ID,
|
|||
bp.ReferenceNo, bp.POReference,
|
||||
ps.PayDate,
|
||||
psc.PayAmt, psc.PayAmt AS AmtInWords,
|
||||
psc.Qty, psc.PaymentRule, psc.DocumentNo
|
||||
psc.Qty, psc.PaymentRule, psc.DocumentNo, COALESCE(oi.Logo_ID, ci.Logo_ID) AS Logo_ID,
|
||||
dt.PrintName AS DocumentType, dt.DocumentNote AS DocumentTypeNote, p.Description
|
||||
FROM C_PaySelectionCheck psc
|
||||
INNER JOIN C_PaySelection ps ON (psc.C_PaySelection_ID=ps.C_PaySelection_ID)
|
||||
LEFT JOIN c_payment p ON (psc.c_payment_id = p.c_payment_id)
|
||||
LEFT JOIN c_doctype dt ON (p.c_doctype_id = dt.c_doctype_id)
|
||||
INNER JOIN C_BPartner bp ON (psc.C_BPartner_ID=bp.C_BPartner_ID)
|
||||
LEFT OUTER JOIN C_Greeting bpg on (bp.C_Greeting_ID=bpg.C_Greeting_ID)
|
||||
INNER JOIN AD_OrgInfo oi ON (psc.AD_Org_ID=oi.AD_Org_ID);
|
||||
|
||||
|
||||
INNER JOIN AD_OrgInfo oi ON (psc.AD_Org_ID=oi.AD_Org_ID)
|
||||
INNER JOIN AD_ClientInfo ci ON (psc.AD_Client_ID=ci.AD_Client_ID);
|
||||
|
||||
|
|
|
@ -3,12 +3,13 @@ CREATE OR REPLACE VIEW C_PAYSELECTION_CHECK_VT
|
|||
ORG_LOCATION_ID, TAXID, C_DOCTYPE_ID, C_BPARTNER_ID, BPVALUE,
|
||||
BPTAXID, NAICS, DUNS, BPGREETING, NAME,
|
||||
NAME2, C_LOCATION_ID, REFERENCENO, POREFERENCE, PAYDATE,
|
||||
PAYAMT, AMTINWORDS, QTY, PAYMENTRULE, DOCUMENTNO)
|
||||
PAYAMT, AMTINWORDS, QTY, PAYMENTRULE, DOCUMENTNO, LOGO_ID,
|
||||
DOCUMENTTYPE, DOCUMENTTYPENOTE, DESCRIPTION)
|
||||
AS
|
||||
SELECT psc.AD_Client_ID, psc.AD_Org_ID,
|
||||
l.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,
|
||||
oi.C_Location_ID AS Org_Location_ID, oi.TaxID, p.C_DocType_ID,
|
||||
bp.C_BPartner_ID, bp.Value AS BPValue, bp.TaxID AS BPTaxID, bp.NAICS, bp.DUNS,
|
||||
bpg.Greeting AS BPGreeting,
|
||||
bp.Name, bp.Name2,
|
||||
|
@ -16,13 +17,15 @@ SELECT psc.AD_Client_ID, psc.AD_Org_ID,
|
|||
bp.ReferenceNo, bp.POReference,
|
||||
ps.PayDate,
|
||||
psc.PayAmt, psc.PayAmt AS AmtInWords,
|
||||
psc.Qty, psc.PaymentRule, psc.DocumentNo
|
||||
psc.Qty, psc.PaymentRule, psc.DocumentNo, COALESCE(oi.Logo_ID, ci.Logo_ID) AS Logo_ID,
|
||||
dt.PrintName AS DocumentType, dt.DocumentNote AS DocumentTypeNote, p.Description
|
||||
FROM C_PaySelectionCheck psc
|
||||
INNER JOIN C_PaySelection ps ON (psc.C_PaySelection_ID=ps.C_PaySelection_ID)
|
||||
LEFT JOIN c_payment p ON (psc.c_payment_id = p.c_payment_id)
|
||||
LEFT JOIN c_doctype_trl dt ON (p.c_doctype_id = dt.c_doctype_id)
|
||||
INNER JOIN C_BPartner bp ON (psc.C_BPartner_ID=bp.C_BPartner_ID)
|
||||
INNER JOIN AD_OrgInfo oi ON (psc.AD_Org_ID=oi.AD_Org_ID)
|
||||
LEFT OUTER JOIN AD_Language l ON (l.IsSystemLanguage='Y')
|
||||
INNER JOIN AD_ClientInfo ci ON (psc.AD_Client_ID=ci.AD_Client_ID)
|
||||
LEFT OUTER JOIN AD_Language l ON (l.IsSystemLanguage='Y')
|
||||
LEFT OUTER JOIN C_Greeting_Trl bpg on (bp.C_Greeting_ID=bpg.C_Greeting_ID AND bpg.AD_Language=l.AD_Language);
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -3,12 +3,13 @@ CREATE OR REPLACE VIEW C_PAYSELECTION_CHECK_V
|
|||
ORG_LOCATION_ID, TAXID, C_DOCTYPE_ID, C_BPARTNER_ID, BPVALUE,
|
||||
BPTAXID, NAICS, DUNS, BPGREETING, NAME,
|
||||
NAME2, C_LOCATION_ID, REFERENCENO, POREFERENCE, PAYDATE,
|
||||
PAYAMT, AMTINWORDS, QTY, PAYMENTRULE, DOCUMENTNO)
|
||||
PAYAMT, AMTINWORDS, QTY, PAYMENTRULE, DOCUMENTNO, LOGO_ID,
|
||||
DOCUMENTTYPE, DOCUMENTTYPENOTE, DESCRIPTION)
|
||||
AS
|
||||
SELECT psc.AD_Client_ID, psc.AD_Org_ID,
|
||||
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,
|
||||
oi.C_Location_ID AS Org_Location_ID, oi.TaxID, p.C_DocType_ID,
|
||||
bp.C_BPartner_ID, bp.Value AS BPValue, bp.TaxID AS BPTaxID, bp.NAICS, bp.DUNS,
|
||||
bpg.Greeting AS BPGreeting,
|
||||
bp.Name, bp.Name2,
|
||||
|
@ -16,12 +17,14 @@ SELECT psc.AD_Client_ID, psc.AD_Org_ID,
|
|||
bp.ReferenceNo, bp.POReference,
|
||||
ps.PayDate,
|
||||
psc.PayAmt, psc.PayAmt AS AmtInWords,
|
||||
psc.Qty, psc.PaymentRule, psc.DocumentNo
|
||||
psc.Qty, psc.PaymentRule, psc.DocumentNo, COALESCE(oi.Logo_ID, ci.Logo_ID) AS Logo_ID,
|
||||
dt.PrintName AS DocumentType, dt.DocumentNote AS DocumentTypeNote, p.Description
|
||||
FROM C_PaySelectionCheck psc
|
||||
INNER JOIN C_PaySelection ps ON (psc.C_PaySelection_ID=ps.C_PaySelection_ID)
|
||||
LEFT JOIN c_payment p ON (psc.c_payment_id = p.c_payment_id)
|
||||
LEFT JOIN c_doctype dt ON (p.c_doctype_id = dt.c_doctype_id)
|
||||
INNER JOIN C_BPartner bp ON (psc.C_BPartner_ID=bp.C_BPartner_ID)
|
||||
LEFT OUTER JOIN C_Greeting bpg on (bp.C_Greeting_ID=bpg.C_Greeting_ID)
|
||||
INNER JOIN AD_OrgInfo oi ON (psc.AD_Org_ID=oi.AD_Org_ID);
|
||||
|
||||
|
||||
INNER JOIN AD_OrgInfo oi ON (psc.AD_Org_ID=oi.AD_Org_ID)
|
||||
INNER JOIN AD_ClientInfo ci ON (psc.AD_Client_ID=ci.AD_Client_ID);
|
||||
|
||||
|
|
|
@ -3,12 +3,13 @@ CREATE OR REPLACE VIEW C_PAYSELECTION_CHECK_VT
|
|||
ORG_LOCATION_ID, TAXID, C_DOCTYPE_ID, C_BPARTNER_ID, BPVALUE,
|
||||
BPTAXID, NAICS, DUNS, BPGREETING, NAME,
|
||||
NAME2, C_LOCATION_ID, REFERENCENO, POREFERENCE, PAYDATE,
|
||||
PAYAMT, AMTINWORDS, QTY, PAYMENTRULE, DOCUMENTNO)
|
||||
PAYAMT, AMTINWORDS, QTY, PAYMENTRULE, DOCUMENTNO, LOGO_ID,
|
||||
DOCUMENTTYPE, DOCUMENTTYPENOTE, DESCRIPTION)
|
||||
AS
|
||||
SELECT psc.AD_Client_ID, psc.AD_Org_ID,
|
||||
l.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,
|
||||
oi.C_Location_ID AS Org_Location_ID, oi.TaxID, p.C_DocType_ID,
|
||||
bp.C_BPartner_ID, bp.Value AS BPValue, bp.TaxID AS BPTaxID, bp.NAICS, bp.DUNS,
|
||||
bpg.Greeting AS BPGreeting,
|
||||
bp.Name, bp.Name2,
|
||||
|
@ -16,13 +17,15 @@ SELECT psc.AD_Client_ID, psc.AD_Org_ID,
|
|||
bp.ReferenceNo, bp.POReference,
|
||||
ps.PayDate,
|
||||
psc.PayAmt, psc.PayAmt AS AmtInWords,
|
||||
psc.Qty, psc.PaymentRule, psc.DocumentNo
|
||||
psc.Qty, psc.PaymentRule, psc.DocumentNo, COALESCE(oi.Logo_ID, ci.Logo_ID) AS Logo_ID,
|
||||
dt.PrintName AS DocumentType, dt.DocumentNote AS DocumentTypeNote, p.Description
|
||||
FROM C_PaySelectionCheck psc
|
||||
INNER JOIN C_PaySelection ps ON (psc.C_PaySelection_ID=ps.C_PaySelection_ID)
|
||||
LEFT JOIN c_payment p ON (psc.c_payment_id = p.c_payment_id)
|
||||
LEFT JOIN c_doctype_trl dt ON (p.c_doctype_id = dt.c_doctype_id)
|
||||
INNER JOIN C_BPartner bp ON (psc.C_BPartner_ID=bp.C_BPartner_ID)
|
||||
INNER JOIN AD_OrgInfo oi ON (psc.AD_Org_ID=oi.AD_Org_ID)
|
||||
LEFT OUTER JOIN AD_Language l ON (l.IsSystemLanguage='Y')
|
||||
INNER JOIN AD_ClientInfo ci ON (psc.AD_Client_ID=ci.AD_Client_ID)
|
||||
LEFT OUTER JOIN AD_Language l ON (l.IsSystemLanguage='Y')
|
||||
LEFT OUTER JOIN C_Greeting_Trl bpg on (bp.C_Greeting_ID=bpg.C_Greeting_ID AND bpg.AD_Language=l.AD_Language);
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,63 @@
|
|||
-- FR-2851987-Add company logo
|
||||
|
||||
CREATE OR REPLACE VIEW C_PAYSELECTION_CHECK_V
|
||||
(AD_CLIENT_ID, AD_ORG_ID, AD_LANGUAGE, C_PAYSELECTION_ID, C_PAYSELECTIONCHECK_ID,
|
||||
ORG_LOCATION_ID, TAXID, C_DOCTYPE_ID, C_BPARTNER_ID, BPVALUE,
|
||||
BPTAXID, NAICS, DUNS, BPGREETING, NAME,
|
||||
NAME2, C_LOCATION_ID, REFERENCENO, POREFERENCE, PAYDATE,
|
||||
PAYAMT, AMTINWORDS, QTY, PAYMENTRULE, DOCUMENTNO, LOGO_ID)
|
||||
AS
|
||||
SELECT psc.AD_Client_ID, psc.AD_Org_ID,
|
||||
cast('en_US' as varchar2(6)) 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,
|
||||
bpg.Greeting AS BPGreeting,
|
||||
bp.Name, bp.Name2,
|
||||
bpartnerRemitLocation(bp.C_BPartner_ID) AS C_Location_ID,
|
||||
bp.ReferenceNo, bp.POReference,
|
||||
ps.PayDate,
|
||||
psc.PayAmt, psc.PayAmt AS AmtInWords,
|
||||
psc.Qty, psc.PaymentRule, psc.DocumentNo, COALESCE(oi.Logo_ID, ci.Logo_ID) AS Logo_ID
|
||||
FROM C_PaySelectionCheck psc
|
||||
INNER JOIN C_PaySelection ps ON (psc.C_PaySelection_ID=ps.C_PaySelection_ID)
|
||||
INNER JOIN C_BPartner bp ON (psc.C_BPartner_ID=bp.C_BPartner_ID)
|
||||
LEFT OUTER JOIN C_Greeting bpg on (bp.C_Greeting_ID=bpg.C_Greeting_ID)
|
||||
INNER JOIN AD_OrgInfo oi ON (psc.AD_Org_ID=oi.AD_Org_ID)
|
||||
INNER JOIN AD_ClientInfo ci ON (psc.AD_Client_ID=ci.AD_Client_ID);
|
||||
|
||||
CREATE OR REPLACE VIEW C_PAYSELECTION_CHECK_VT
|
||||
(AD_CLIENT_ID, AD_ORG_ID, AD_LANGUAGE, C_PAYSELECTION_ID, C_PAYSELECTIONCHECK_ID,
|
||||
ORG_LOCATION_ID, TAXID, C_DOCTYPE_ID, C_BPARTNER_ID, BPVALUE,
|
||||
BPTAXID, NAICS, DUNS, BPGREETING, NAME,
|
||||
NAME2, C_LOCATION_ID, REFERENCENO, POREFERENCE, PAYDATE,
|
||||
PAYAMT, AMTINWORDS, QTY, PAYMENTRULE, DOCUMENTNO, LOGO_ID)
|
||||
AS
|
||||
SELECT psc.AD_Client_ID, psc.AD_Org_ID,
|
||||
l.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,
|
||||
bpg.Greeting AS BPGreeting,
|
||||
bp.Name, bp.Name2,
|
||||
bpartnerRemitLocation(bp.C_BPartner_ID) AS C_Location_ID,
|
||||
bp.ReferenceNo, bp.POReference,
|
||||
ps.PayDate,
|
||||
psc.PayAmt, psc.PayAmt AS AmtInWords,
|
||||
psc.Qty, psc.PaymentRule, psc.DocumentNo, COALESCE(oi.Logo_ID, ci.Logo_ID) AS Logo_ID
|
||||
FROM C_PaySelectionCheck psc
|
||||
INNER JOIN C_PaySelection ps ON (psc.C_PaySelection_ID=ps.C_PaySelection_ID)
|
||||
INNER JOIN C_BPartner bp ON (psc.C_BPartner_ID=bp.C_BPartner_ID)
|
||||
INNER JOIN AD_OrgInfo oi ON (psc.AD_Org_ID=oi.AD_Org_ID)
|
||||
INNER JOIN AD_ClientInfo ci ON (psc.AD_Client_ID=ci.AD_Client_ID)
|
||||
LEFT OUTER JOIN AD_Language l ON (l.IsSystemLanguage='Y')
|
||||
LEFT OUTER JOIN C_Greeting_Trl bpg on (bp.C_Greeting_ID=bpg.C_Greeting_ID AND bpg.AD_Language=l.AD_Language);
|
||||
|
||||
-- Mar 24, 2011 3:03:29 PM COT
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,60348,53909,0,32,498,'Logo_ID',TO_DATE('2011-03-24 15:03:26','YYYY-MM-DD HH24:MI:SS'),100,'D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Logo',0,TO_DATE('2011-03-24 15:03:26','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Mar 24, 2011 3:03:29 PM COT
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=60348 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
|
||||
;
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
-- FR-2851987-Add company logo
|
||||
|
||||
CREATE OR REPLACE VIEW C_PAYSELECTION_CHECK_V
|
||||
(AD_CLIENT_ID, AD_ORG_ID, AD_LANGUAGE, C_PAYSELECTION_ID, C_PAYSELECTIONCHECK_ID,
|
||||
ORG_LOCATION_ID, TAXID, C_DOCTYPE_ID, C_BPARTNER_ID, BPVALUE,
|
||||
BPTAXID, NAICS, DUNS, BPGREETING, NAME,
|
||||
NAME2, C_LOCATION_ID, REFERENCENO, POREFERENCE, PAYDATE,
|
||||
PAYAMT, AMTINWORDS, QTY, PAYMENTRULE, DOCUMENTNO, LOGO_ID)
|
||||
AS
|
||||
SELECT psc.AD_Client_ID, psc.AD_Org_ID,
|
||||
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,
|
||||
bpg.Greeting AS BPGreeting,
|
||||
bp.Name, bp.Name2,
|
||||
bpartnerRemitLocation(bp.C_BPartner_ID) AS C_Location_ID,
|
||||
bp.ReferenceNo, bp.POReference,
|
||||
ps.PayDate,
|
||||
psc.PayAmt, psc.PayAmt AS AmtInWords,
|
||||
psc.Qty, psc.PaymentRule, psc.DocumentNo, COALESCE(oi.Logo_ID, ci.Logo_ID) AS Logo_ID
|
||||
FROM C_PaySelectionCheck psc
|
||||
INNER JOIN C_PaySelection ps ON (psc.C_PaySelection_ID=ps.C_PaySelection_ID)
|
||||
INNER JOIN C_BPartner bp ON (psc.C_BPartner_ID=bp.C_BPartner_ID)
|
||||
LEFT OUTER JOIN C_Greeting bpg on (bp.C_Greeting_ID=bpg.C_Greeting_ID)
|
||||
INNER JOIN AD_OrgInfo oi ON (psc.AD_Org_ID=oi.AD_Org_ID)
|
||||
INNER JOIN AD_ClientInfo ci ON (psc.AD_Client_ID=ci.AD_Client_ID);
|
||||
|
||||
CREATE OR REPLACE VIEW C_PAYSELECTION_CHECK_VT
|
||||
(AD_CLIENT_ID, AD_ORG_ID, AD_LANGUAGE, C_PAYSELECTION_ID, C_PAYSELECTIONCHECK_ID,
|
||||
ORG_LOCATION_ID, TAXID, C_DOCTYPE_ID, C_BPARTNER_ID, BPVALUE,
|
||||
BPTAXID, NAICS, DUNS, BPGREETING, NAME,
|
||||
NAME2, C_LOCATION_ID, REFERENCENO, POREFERENCE, PAYDATE,
|
||||
PAYAMT, AMTINWORDS, QTY, PAYMENTRULE, DOCUMENTNO, LOGO_ID)
|
||||
AS
|
||||
SELECT psc.AD_Client_ID, psc.AD_Org_ID,
|
||||
l.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,
|
||||
bpg.Greeting AS BPGreeting,
|
||||
bp.Name, bp.Name2,
|
||||
bpartnerRemitLocation(bp.C_BPartner_ID) AS C_Location_ID,
|
||||
bp.ReferenceNo, bp.POReference,
|
||||
ps.PayDate,
|
||||
psc.PayAmt, psc.PayAmt AS AmtInWords,
|
||||
psc.Qty, psc.PaymentRule, psc.DocumentNo, COALESCE(oi.Logo_ID, ci.Logo_ID) AS Logo_ID
|
||||
FROM C_PaySelectionCheck psc
|
||||
INNER JOIN C_PaySelection ps ON (psc.C_PaySelection_ID=ps.C_PaySelection_ID)
|
||||
INNER JOIN C_BPartner bp ON (psc.C_BPartner_ID=bp.C_BPartner_ID)
|
||||
INNER JOIN AD_OrgInfo oi ON (psc.AD_Org_ID=oi.AD_Org_ID)
|
||||
INNER JOIN AD_ClientInfo ci ON (psc.AD_Client_ID=ci.AD_Client_ID)
|
||||
LEFT OUTER JOIN AD_Language l ON (l.IsSystemLanguage='Y')
|
||||
LEFT OUTER JOIN C_Greeting_Trl bpg on (bp.C_Greeting_ID=bpg.C_Greeting_ID AND bpg.AD_Language=l.AD_Language);
|
||||
|
||||
-- Mar 24, 2011 3:03:29 PM COT
|
||||
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,60348,53909,0,32,498,'Logo_ID',TO_TIMESTAMP('2011-03-24 15:03:26','YYYY-MM-DD HH24:MI:SS'),100,'D',10,'Y','Y','N','N','N','N','N','N','N','N','N','N','Y','Logo',0,TO_TIMESTAMP('2011-03-24 15:03:26','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||
;
|
||||
|
||||
-- Mar 24, 2011 3:03:29 PM COT
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=60348 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
|
||||
;
|
||||
|
Loading…
Reference in New Issue