src-db/database/sourcedata/OBUISEL_SELECTOR.xml
author Augusto Mauch <augusto.mauch@openbravo.com>
Mon, 25 Jun 2012 16:56:29 +0200
changeset 16914 de6db799c359
parent 16783 83c7ecc347e6
child 17353 0c7729c4873d
permissions -rw-r--r--
Related to issue 20855. Added column in sourcedata
<?xml version='1.0' encoding='UTF-8'?>
<data>
<!--2E64F551C7C4470C80C29DBA24B34A5F--><OBUISEL_SELECTOR>
<!--2E64F551C7C4470C80C29DBA24B34A5F-->  <OBUISEL_SELECTOR_ID><![CDATA[2E64F551C7C4470C80C29DBA24B34A5F]]></OBUISEL_SELECTOR_ID>
<!--2E64F551C7C4470C80C29DBA24B34A5F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
<!--2E64F551C7C4470C80C29DBA24B34A5F-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
<!--2E64F551C7C4470C80C29DBA24B34A5F-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
<!--2E64F551C7C4470C80C29DBA24B34A5F-->  <NAME><![CDATA[Product]]></NAME>
<!--2E64F551C7C4470C80C29DBA24B34A5F-->  <AD_REFERENCE_ID><![CDATA[800060]]></AD_REFERENCE_ID>
<!--2E64F551C7C4470C80C29DBA24B34A5F-->  <AD_TABLE_ID><![CDATA[FF8080812DFFA1CF012DFFB889F40016]]></AD_TABLE_ID>
<!--2E64F551C7C4470C80C29DBA24B34A5F-->  <WHERECLAUSE><![CDATA[e.active='Y']]></WHERECLAUSE>
<!--2E64F551C7C4470C80C29DBA24B34A5F-->  <FILTER_EXPRESSION><![CDATA[if (OB.getParameters().get('inpcCurrencyId')){ " e.productPrice.priceListVersion.priceList.salesPriceList = " + OB.isSalesTransaction()  + " AND e.productPrice.priceListVersion.priceList.currency.id = '" + OB.getParameters().get('inpcCurrencyId') + "'" }]]></FILTER_EXPRESSION>
<!--2E64F551C7C4470C80C29DBA24B34A5F-->  <OBCLKER_TEMPLATE_ID><![CDATA[9314DE8599AD44E7BFC4CC50699042AB]]></OBCLKER_TEMPLATE_ID>
<!--2E64F551C7C4470C80C29DBA24B34A5F-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--2E64F551C7C4470C80C29DBA24B34A5F-->  <VALUEFIELD_ID><![CDATA[2CB91FE062B541ACB00D82AC69858446]]></VALUEFIELD_ID>
<!--2E64F551C7C4470C80C29DBA24B34A5F-->  <SUGGESTIONTEXTMATCHSTYLE><![CDATA[startsWith]]></SUGGESTIONTEXTMATCHSTYLE>
<!--2E64F551C7C4470C80C29DBA24B34A5F-->  <POPUPTEXTMATCHSTYLE><![CDATA[startsWith]]></POPUPTEXTMATCHSTYLE>
<!--2E64F551C7C4470C80C29DBA24B34A5F-->  <CUSTOM_QUERY><![CDATA[N]]></CUSTOM_QUERY>
<!--2E64F551C7C4470C80C29DBA24B34A5F--></OBUISEL_SELECTOR>

<!--4028E61131FB4B1B0131FB5307F1000C--><OBUISEL_SELECTOR>
<!--4028E61131FB4B1B0131FB5307F1000C-->  <OBUISEL_SELECTOR_ID><![CDATA[4028E61131FB4B1B0131FB5307F1000C]]></OBUISEL_SELECTOR_ID>
<!--4028E61131FB4B1B0131FB5307F1000C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
<!--4028E61131FB4B1B0131FB5307F1000C-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
<!--4028E61131FB4B1B0131FB5307F1000C-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
<!--4028E61131FB4B1B0131FB5307F1000C-->  <NAME><![CDATA[Business Partner not filtered by default by customer/vendor]]></NAME>
<!--4028E61131FB4B1B0131FB5307F1000C-->  <AD_REFERENCE_ID><![CDATA[4028E61131FB4B1B0131FB5226C90008]]></AD_REFERENCE_ID>
<!--4028E61131FB4B1B0131FB5307F1000C-->  <AD_TABLE_ID><![CDATA[291]]></AD_TABLE_ID>
<!--4028E61131FB4B1B0131FB5307F1000C-->  <OBCLKER_TEMPLATE_ID><![CDATA[9314DE8599AD44E7BFC4CC50699042AB]]></OBCLKER_TEMPLATE_ID>
<!--4028E61131FB4B1B0131FB5307F1000C-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--4028E61131FB4B1B0131FB5307F1000C-->  <VALUEFIELD_ID><![CDATA[4028E61131FB4B1B0131FB5711430042]]></VALUEFIELD_ID>
<!--4028E61131FB4B1B0131FB5307F1000C-->  <DISPLAYFIELD_ID><![CDATA[4028E61131FB4B1B0131FB5625760036]]></DISPLAYFIELD_ID>
<!--4028E61131FB4B1B0131FB5307F1000C-->  <SUGGESTIONTEXTMATCHSTYLE><![CDATA[startsWith]]></SUGGESTIONTEXTMATCHSTYLE>
<!--4028E61131FB4B1B0131FB5307F1000C-->  <POPUPTEXTMATCHSTYLE><![CDATA[startsWith]]></POPUPTEXTMATCHSTYLE>
<!--4028E61131FB4B1B0131FB5307F1000C-->  <HQL><![CDATA[SELECT distinct bp.name as name,bp.id as bpid, bp.searchKey as value,
   bp.creditLimit - bp.creditUsed as creditAvailable, bp.creditUsed as creditUsed,
   COALESCE(contact.name, usercontact.name) as contactname, COALESCE(contact.id, usercontact.id) as contactid,
   bploc.name as locationname, bploc.id as locationid,
   bp.customer as customer, bp.vendor as vendor, bp.lifetimeRevenueToDate as income
FROM BusinessPartner bp left join bp.businessPartnerLocationList bploc
                        left join bploc.locationAddress loc
                        left join bploc.aDUserList contact
                        left join loc.region region
                        left join bp.aDUserList usercontact with usercontact.partnerAddress.id is null
where @additional_filters@
  and bp.summaryLevel = false and bp.active=true]]></HQL>
<!--4028E61131FB4B1B0131FB5307F1000C-->  <ENTITY_ALIAS><![CDATA[bp]]></ENTITY_ALIAS>
<!--4028E61131FB4B1B0131FB5307F1000C-->  <CUSTOM_QUERY><![CDATA[Y]]></CUSTOM_QUERY>
<!--4028E61131FB4B1B0131FB5307F1000C--></OBUISEL_SELECTOR>

<!--4C8BC3E8E56441F4B8C98C684A0C9212--><OBUISEL_SELECTOR>
<!--4C8BC3E8E56441F4B8C98C684A0C9212-->  <OBUISEL_SELECTOR_ID><![CDATA[4C8BC3E8E56441F4B8C98C684A0C9212]]></OBUISEL_SELECTOR_ID>
<!--4C8BC3E8E56441F4B8C98C684A0C9212-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
<!--4C8BC3E8E56441F4B8C98C684A0C9212-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
<!--4C8BC3E8E56441F4B8C98C684A0C9212-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
<!--4C8BC3E8E56441F4B8C98C684A0C9212-->  <NAME><![CDATA[Product Complete]]></NAME>
<!--4C8BC3E8E56441F4B8C98C684A0C9212-->  <AD_REFERENCE_ID><![CDATA[800011]]></AD_REFERENCE_ID>
<!--4C8BC3E8E56441F4B8C98C684A0C9212-->  <AD_TABLE_ID><![CDATA[FF8080812E381D1E012E3898C5DD0010]]></AD_TABLE_ID>
<!--4C8BC3E8E56441F4B8C98C684A0C9212-->  <WHERECLAUSE><![CDATA[e.active='Y']]></WHERECLAUSE>
<!--4C8BC3E8E56441F4B8C98C684A0C9212-->  <FILTER_EXPRESSION><![CDATA["( (\'"+OB.getWindowId()+"\' in (\'800051\', \'800052\', \'800096\') and e.product.production = true and e.stocked = false) or \'"+OB.getWindowId()+"\' not in (\'800051\', \'800052\', \'800096\'))"]]></FILTER_EXPRESSION>
<!--4C8BC3E8E56441F4B8C98C684A0C9212-->  <OBCLKER_TEMPLATE_ID><![CDATA[9314DE8599AD44E7BFC4CC50699042AB]]></OBCLKER_TEMPLATE_ID>
<!--4C8BC3E8E56441F4B8C98C684A0C9212-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--4C8BC3E8E56441F4B8C98C684A0C9212-->  <VALUEFIELD_ID><![CDATA[D5CD42F686A14DFA949052B99900D679]]></VALUEFIELD_ID>
<!--4C8BC3E8E56441F4B8C98C684A0C9212-->  <SUGGESTIONTEXTMATCHSTYLE><![CDATA[startsWith]]></SUGGESTIONTEXTMATCHSTYLE>
<!--4C8BC3E8E56441F4B8C98C684A0C9212-->  <POPUPTEXTMATCHSTYLE><![CDATA[startsWith]]></POPUPTEXTMATCHSTYLE>
<!--4C8BC3E8E56441F4B8C98C684A0C9212-->  <CUSTOM_QUERY><![CDATA[N]]></CUSTOM_QUERY>
<!--4C8BC3E8E56441F4B8C98C684A0C9212--></OBUISEL_SELECTOR>

<!--862F54CB1B074513BD791C6789F4AA42--><OBUISEL_SELECTOR>
<!--862F54CB1B074513BD791C6789F4AA42-->  <OBUISEL_SELECTOR_ID><![CDATA[862F54CB1B074513BD791C6789F4AA42]]></OBUISEL_SELECTOR_ID>
<!--862F54CB1B074513BD791C6789F4AA42-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
<!--862F54CB1B074513BD791C6789F4AA42-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
<!--862F54CB1B074513BD791C6789F4AA42-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
<!--862F54CB1B074513BD791C6789F4AA42-->  <NAME><![CDATA[Business Partner with contact and location]]></NAME>
<!--862F54CB1B074513BD791C6789F4AA42-->  <AD_REFERENCE_ID><![CDATA[800057]]></AD_REFERENCE_ID>
<!--862F54CB1B074513BD791C6789F4AA42-->  <AD_TABLE_ID><![CDATA[291]]></AD_TABLE_ID>
<!--862F54CB1B074513BD791C6789F4AA42-->  <OBCLKER_TEMPLATE_ID><![CDATA[9314DE8599AD44E7BFC4CC50699042AB]]></OBCLKER_TEMPLATE_ID>
<!--862F54CB1B074513BD791C6789F4AA42-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--862F54CB1B074513BD791C6789F4AA42-->  <VALUEFIELD_ID><![CDATA[B103893820FC4080809A97FABD49D8AF]]></VALUEFIELD_ID>
<!--862F54CB1B074513BD791C6789F4AA42-->  <DISPLAYFIELD_ID><![CDATA[9835921A3AA54B8D8D0126B3696F8354]]></DISPLAYFIELD_ID>
<!--862F54CB1B074513BD791C6789F4AA42-->  <SUGGESTIONTEXTMATCHSTYLE><![CDATA[startsWith]]></SUGGESTIONTEXTMATCHSTYLE>
<!--862F54CB1B074513BD791C6789F4AA42-->  <POPUPTEXTMATCHSTYLE><![CDATA[startsWith]]></POPUPTEXTMATCHSTYLE>
<!--862F54CB1B074513BD791C6789F4AA42-->  <HQL><![CDATA[SELECT bp.name as name,bp.id as bpid, bp.searchKey as value,
   bp.creditLimit - bp.creditUsed as creditAvailable, bp.creditUsed as creditUsed,
   bp.customer as customer, bp.vendor as vendor, 
   bp.businessPartnerCategory.name as category
FROM BusinessPartner bp
where @additional_filters@
  and bp.summaryLevel = false and bp.active=true]]></HQL>
<!--862F54CB1B074513BD791C6789F4AA42-->  <ENTITY_ALIAS><![CDATA[bp]]></ENTITY_ALIAS>
<!--862F54CB1B074513BD791C6789F4AA42-->  <CUSTOM_QUERY><![CDATA[Y]]></CUSTOM_QUERY>
<!--862F54CB1B074513BD791C6789F4AA42--></OBUISEL_SELECTOR>

<!--F132874BE0954A9B8C1301BE20704730--><OBUISEL_SELECTOR>
<!--F132874BE0954A9B8C1301BE20704730-->  <OBUISEL_SELECTOR_ID><![CDATA[F132874BE0954A9B8C1301BE20704730]]></OBUISEL_SELECTOR_ID>
<!--F132874BE0954A9B8C1301BE20704730-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
<!--F132874BE0954A9B8C1301BE20704730-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
<!--F132874BE0954A9B8C1301BE20704730-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
<!--F132874BE0954A9B8C1301BE20704730-->  <NAME><![CDATA[Business Partner with contact and location]]></NAME>
<!--F132874BE0954A9B8C1301BE20704730-->  <AD_REFERENCE_ID><![CDATA[531F166E5A7C437F9438A94AD8DDF212]]></AD_REFERENCE_ID>
<!--F132874BE0954A9B8C1301BE20704730-->  <AD_TABLE_ID><![CDATA[291]]></AD_TABLE_ID>
<!--F132874BE0954A9B8C1301BE20704730-->  <OBCLKER_TEMPLATE_ID><![CDATA[9314DE8599AD44E7BFC4CC50699042AB]]></OBCLKER_TEMPLATE_ID>
<!--F132874BE0954A9B8C1301BE20704730-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--F132874BE0954A9B8C1301BE20704730-->  <VALUEFIELD_ID><![CDATA[38075EEC36C24E3CAB44D1B33D2CE637]]></VALUEFIELD_ID>
<!--F132874BE0954A9B8C1301BE20704730-->  <DISPLAYFIELD_ID><![CDATA[7CA7330BA4864D2FB1FED44CDB88A622]]></DISPLAYFIELD_ID>
<!--F132874BE0954A9B8C1301BE20704730-->  <SUGGESTIONTEXTMATCHSTYLE><![CDATA[startsWith]]></SUGGESTIONTEXTMATCHSTYLE>
<!--F132874BE0954A9B8C1301BE20704730-->  <POPUPTEXTMATCHSTYLE><![CDATA[startsWith]]></POPUPTEXTMATCHSTYLE>
<!--F132874BE0954A9B8C1301BE20704730-->  <HQL><![CDATA[SELECT distinct bp.name as name,bp.id as bpid, bp.searchKey as value,
   bp.creditLimit - bp.creditUsed as creditAvailable, bp.creditUsed as creditUsed,
   COALESCE(contact.name, usercontact.name) as contactname, COALESCE(contact.id, usercontact.id) as contactid,
   bploc.name as locationname, bploc.id as locationid,
   bp.customer as customer, bp.vendor as vendor, bp.lifetimeRevenueToDate as income
FROM BusinessPartner bp left join bp.businessPartnerLocationList bploc with bploc.active=true
                        left join bploc.locationAddress loc with loc.active = true
                        left join bploc.aDUserList contact with contact.active=true
                        left join loc.region region
                        left join bp.aDUserList usercontact with usercontact.partnerAddress.id is null and usercontact.active=true
where @additional_filters@
  and bp.summaryLevel = false and bp.active=true]]></HQL>
<!--F132874BE0954A9B8C1301BE20704730-->  <ENTITY_ALIAS><![CDATA[bp]]></ENTITY_ALIAS>
<!--F132874BE0954A9B8C1301BE20704730-->  <CUSTOM_QUERY><![CDATA[Y]]></CUSTOM_QUERY>
<!--F132874BE0954A9B8C1301BE20704730--></OBUISEL_SELECTOR>

</data>