CREATE COLUMN VIEW "SBODEMOUS"."ES_SALESRETURNS" WITH PARAMETERS (indexType=6,
joinIndex="SBODEMOUS"."ORDN",joinIndexType=0,joinIndexEstimation=0,
joinIndex="SBODEMOUS"."OCPR",joinIndexType=0,joinIndexEstimation=0,
joinIndex="SBODEMOUS"."OSLP",joinIndexType=0,joinIndexEstimation=0,
joinIndex="SBODEMOUS"."OHEM",joinIndexType=0,joinIndexEstimation=0,
joinIndex="SBODEMOUS"."RDN1",joinIndexType=0,joinIndexEstimation=0,
joinIndex="SBODEMOUS"."OCRD",joinIndexType=0,joinIndexEstimation=0,
joinCondition=('join1_0',"SBODEMOUS"."ORDN", "CntctCode","SBODEMOUS"."OCPR", "CntctCode",'',65809,0),
joinCondition=('join2_0',"SBODEMOUS"."ORDN", "SlpCode","SBODEMOUS"."OSLP", "SlpCode",'',65809,1),
joinCondition=('join3_0',"SBODEMOUS"."ORDN", "OwnerCode","SBODEMOUS"."OHEM", "empID",'',65809,2),
joinCondition=('join5_0',"SBODEMOUS"."ORDN", "DocEntry","SBODEMOUS"."RDN1", "DocEntry",'',145,3),
joinCondition=('join6_0',"SBODEMOUS"."ORDN", "CardCode","SBODEMOUS"."OCRD", "CardCode",'',65809,4),
joinPath=('JoinPath1','join1_0'),
joinPath=('JoinPath2','join2_0'),
joinPath=('JoinPath3','join3_0'),
joinPath=('JoinPath4','join5_0'),
joinPath=('JoinPath5','join6_0'),
viewAttribute=('OCPR_CntctCode',"SBODEMOUS"."OCPR", "CntctCode",'JoinPath1','V_ES_SALESRETURNS','attribute'),
viewAttribute=('OCPR_Name',"SBODEMOUS"."OCPR", "Name",'JoinPath1','V_ES_SALESRETURNS','attribute'),
viewAttribute=('OSLP_SlpCode',"SBODEMOUS"."OSLP", "SlpCode",'JoinPath2','V_ES_SALESRETURNS','attribute'),
viewAttribute=('OSLP_SlpName',"SBODEMOUS"."OSLP", "SlpName",'JoinPath2','V_ES_SALESRETURNS','attribute'),
viewAttribute=('OHEM_empID',"SBODEMOUS"."OHEM", "empID",'JoinPath3','V_ES_SALESRETURNS','attribute'),
viewAttribute=('OHEM_firstName',"SBODEMOUS"."OHEM", "firstName",'JoinPath3','V_ES_SALESRETURNS','attribute'),
viewAttribute=('OHEM_lastName',"SBODEMOUS"."OHEM", "lastName",'JoinPath3','V_ES_SALESRETURNS','attribute'),
viewAttribute=('OHEM_middleName',"SBODEMOUS"."OHEM", "middleName",'JoinPath3','V_ES_SALESRETURNS','attribute'),
viewAttribute=('RDN1_DocEntry',"SBODEMOUS"."RDN1", "DocEntry",'JoinPath4','V_ES_SALESRETURNS','attribute'),
viewAttribute=('RDN1_LineNum',"SBODEMOUS"."RDN1", "LineNum",'JoinPath4','V_ES_SALESRETURNS','attribute'),
viewAttribute=('RDN1_ItemCode',"SBODEMOUS"."RDN1", "ItemCode",'JoinPath4','V_ES_SALESRETURNS','attribute'),
viewAttribute=('RDN1_Dscription',"SBODEMOUS"."RDN1", "Dscription",'JoinPath4','V_ES_SALESRETURNS','attribute'),
viewAttribute=('RDN1_Quantity',"SBODEMOUS"."RDN1", "Quantity",'JoinPath4','V_ES_SALESRETURNS','attribute'),
viewAttribute=('RDN1_Price',"SBODEMOUS"."RDN1", "Price",'JoinPath4','V_ES_SALESRETURNS','attribute'),
viewAttribute=('RDN1_DiscPrcnt',"SBODEMOUS"."RDN1", "DiscPrcnt",'JoinPath4','V_ES_SALESRETURNS','attribute'),
viewAttribute=('RDN1_LineTotal',"SBODEMOUS"."RDN1", "LineTotal",'JoinPath4','V_ES_SALESRETURNS','attribute'),
viewAttribute=('RDN1_OwnerCode',"SBODEMOUS"."RDN1", "OwnerCode",'JoinPath4','V_ES_SALESRETURNS','attribute'),
viewAttribute=('RDN1_Project',"SBODEMOUS"."RDN1", "Project",'JoinPath4','V_ES_SALESRETURNS','attribute'),
viewAttribute=('OCRD_CardCode',"SBODEMOUS"."OCRD", "CardCode",'JoinPath5','V_ES_SALESRETURNS','attribute'),
viewAttribute=('OCRD_OwnerCode',"SBODEMOUS"."OCRD", "OwnerCode",'JoinPath5','V_ES_SALESRETURNS','attribute'),
viewAttribute=('ORDN_DocEntry',"SBODEMOUS"."ORDN", "DocEntry",'JoinPath1','V_ES_SALESRETURNS','attribute'),
viewAttribute=('ORDN_CardCode',"SBODEMOUS"."ORDN", "CardCode",'JoinPath1','V_ES_SALESRETURNS','attribute'),
viewAttribute=('ORDN_CardName',"SBODEMOUS"."ORDN", "CardName",'JoinPath1','V_ES_SALESRETURNS','attribute'),
viewAttribute=('ORDN_CntctCode',"SBODEMOUS"."ORDN", "CntctCode",'JoinPath1','V_ES_SALESRETURNS','attribute'),
viewAttribute=('ORDN_Series',"SBODEMOUS"."ORDN", "Series",'JoinPath1','V_ES_SALESRETURNS','attribute'),
viewAttribute=('ORDN_DocNum',"SBODEMOUS"."ORDN", "DocNum",'JoinPath1','V_ES_SALESRETURNS','attribute'),
viewAttribute=('ORDN_DocStatus',"SBODEMOUS"."ORDN", "DocStatus",'JoinPath1','V_ES_SALESRETURNS','attribute'),
viewAttribute=('ORDN_DocDate',"SBODEMOUS"."ORDN", "DocDate",'JoinPath1','V_ES_SALESRETURNS','attribute'),
viewAttribute=('ORDN_DocDueDate',"SBODEMOUS"."ORDN", "DocDueDate",'JoinPath1','V_ES_SALESRETURNS','attribute'),
viewAttribute=('ORDN_TaxDate',"SBODEMOUS"."ORDN", "TaxDate",'JoinPath1','V_ES_SALESRETURNS','attribute'),
viewAttribute=('ORDN_SlpCode',"SBODEMOUS"."ORDN", "SlpCode",'JoinPath1','V_ES_SALESRETURNS','attribute'),
viewAttribute=('ORDN_OwnerCode',"SBODEMOUS"."ORDN", "OwnerCode",'JoinPath1','V_ES_SALESRETURNS','attribute'),
viewAttribute=('ORDN_Comments',"SBODEMOUS"."ORDN", "Comments",'JoinPath1','V_ES_SALESRETURNS','attribute'),
viewAttribute=('ORDN_DocTotal',"SBODEMOUS"."ORDN", "DocTotal",'JoinPath1','V_ES_SALESRETURNS','attribute'),
viewAttribute=('ORDN_NumAtCard',"SBODEMOUS"."ORDN", "NumAtCard",'JoinPath1','V_ES_SALESRETURNS','attribute'),
viewAttribute=('ORDN_Project',"SBODEMOUS"."ORDN", "Project",'JoinPath1','V_ES_SALESRETURNS','attribute'),
freeStyleSearchAttribute='OCPR_Name:1:0',
freeStyleSearchAttribute='OSLP_SlpName:1:0',
freeStyleSearchAttribute='OHEM_firstName:1:0',
freeStyleSearchAttribute='OHEM_lastName:1:0',
freeStyleSearchAttribute='OHEM_middleName:1:0',
freeStyleSearchAttribute='RDN1_ItemCode:1:0',
freeStyleSearchAttribute='RDN1_Dscription:1:0',
freeStyleSearchAttribute='RDN1_Quantity:1:0',
freeStyleSearchAttribute='RDN1_Price:1:0',
freeStyleSearchAttribute='RDN1_DiscPrcnt:1:0',
freeStyleSearchAttribute='RDN1_LineTotal:1:0',
freeStyleSearchAttribute='RDN1_Project:1:0',
freeStyleSearchAttribute='OCRD_CardCode:1:0',
freeStyleSearchAttribute='ORDN_CardCode:1:0',
freeStyleSearchAttribute='ORDN_CardName:1:0',
freeStyleSearchAttribute='ORDN_DocNum:1:0',
freeStyleSearchAttribute='ORDN_DocStatus:1:0',
freeStyleSearchAttribute='ORDN_DocDate:1:0',
freeStyleSearchAttribute='ORDN_DocDueDate:1:0',
freeStyleSearchAttribute='ORDN_TaxDate:1:0',
freeStyleSearchAttribute='ORDN_Comments:1:0',
freeStyleSearchAttribute='ORDN_DocTotal:1:0',
freeStyleSearchAttribute='ORDN_NumAtCard:1:0',
freeStyleSearchAttribute='ORDN_Project:1:0',
view=('V_ES_SALESRETURNS',"SBODEMOUS"."ORDN"),defaultView='V_ES_SALESRETURNS',OPTIMIZEMETAMODEL=0)