modules/org.openbravo.client.querylist/src-db/database/sourcedata/OBCQL_WIDGET_QUERY.xml
author Mikel Irurita <mikel.irurita@openbravo.com>
Thu, 23 Dec 2010 14:10:47 +0100
changeset 9348 87b7b9f1e388
parent 9334 1c94ebed6ca1
child 9463 b7af038f1340
permissions -rw-r--r--
[OBCQL] Added two Widgets: Payment In - Out awaiting for execution
<?xml version='1.0' encoding='UTF-8'?>
<data>
<!--1EF87E8E961A4E5BA3B41E1AB772B47C--><OBCQL_WIDGET_QUERY>
<!--1EF87E8E961A4E5BA3B41E1AB772B47C-->  <OBCQL_WIDGET_QUERY_ID><![CDATA[1EF87E8E961A4E5BA3B41E1AB772B47C]]></OBCQL_WIDGET_QUERY_ID>
<!--1EF87E8E961A4E5BA3B41E1AB772B47C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
<!--1EF87E8E961A4E5BA3B41E1AB772B47C-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
<!--1EF87E8E961A4E5BA3B41E1AB772B47C-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--1EF87E8E961A4E5BA3B41E1AB772B47C-->  <OBKMO_WIDGET_CLASS_ID><![CDATA[147D825456D54D0486C3D7072531C5C9]]></OBKMO_WIDGET_CLASS_ID>
<!--1EF87E8E961A4E5BA3B41E1AB772B47C-->  <HQL><![CDATA[select inv.id as invoiceId, inv.documentNo as documentNo,
       inv.businessPartner.name as businessPartnerName,
       inv.invoiceDate as invoiceDate, inv.grandTotalAmount as grandTotalAmount
from Invoice as inv
where inv.businessPartner.name like :businessPartnerName
      and inv.documentNo like :documentNo
      and inv.processed = true
      and inv.paymentComplete = false
      and inv.salesTransaction = true
      and inv.client.id = :client
order by inv.invoiceDate]]></HQL>
<!--1EF87E8E961A4E5BA3B41E1AB772B47C--></OBCQL_WIDGET_QUERY>

<!--58BCB96595FA45678CC1423402238309--><OBCQL_WIDGET_QUERY>
<!--58BCB96595FA45678CC1423402238309-->  <OBCQL_WIDGET_QUERY_ID><![CDATA[58BCB96595FA45678CC1423402238309]]></OBCQL_WIDGET_QUERY_ID>
<!--58BCB96595FA45678CC1423402238309-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
<!--58BCB96595FA45678CC1423402238309-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
<!--58BCB96595FA45678CC1423402238309-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--58BCB96595FA45678CC1423402238309-->  <OBKMO_WIDGET_CLASS_ID><![CDATA[34F279BBB85945519DC38F21573106C0]]></OBKMO_WIDGET_CLASS_ID>
<!--58BCB96595FA45678CC1423402238309-->  <HQL><![CDATA[select inv.id as invoiceId, inv.documentNo as documentNo,
       inv.businessPartner.name as businessPartnerName,
       inv.invoiceDate as invoiceDate, inv.grandTotalAmount as grandTotalAmount
from Invoice as inv
where inv.businessPartner.name like :businessPartnerName
      and inv.documentNo like :documentNo
      and inv.processed = true
      and inv.paymentComplete = false
      and inv.salesTransaction = false
      and inv.client.id = :client
order by inv.invoiceDate]]></HQL>
<!--58BCB96595FA45678CC1423402238309--></OBCQL_WIDGET_QUERY>

<!--C0A8491CDB43466D9F2645018473588B--><OBCQL_WIDGET_QUERY>
<!--C0A8491CDB43466D9F2645018473588B-->  <OBCQL_WIDGET_QUERY_ID><![CDATA[C0A8491CDB43466D9F2645018473588B]]></OBCQL_WIDGET_QUERY_ID>
<!--C0A8491CDB43466D9F2645018473588B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
<!--C0A8491CDB43466D9F2645018473588B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
<!--C0A8491CDB43466D9F2645018473588B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--C0A8491CDB43466D9F2645018473588B-->  <OBKMO_WIDGET_CLASS_ID><![CDATA[D1E4261099AE4095B2F2DAEE0F7E7784]]></OBKMO_WIDGET_CLASS_ID>
<!--C0A8491CDB43466D9F2645018473588B-->  <HQL><![CDATA[select myWindow.name as windowName, myTab.name as tabName, myTab.id as tabId, count(field) as fieldCount
from ADField field inner join field.tab myTab
                                 inner join myTab.window myWindow
where myWindow.name like :window_name
  and myWindow.client.id = :client
group by myWindow.name, myTab.name, myTab.id
order by myWindow.name]]></HQL>
<!--C0A8491CDB43466D9F2645018473588B--></OBCQL_WIDGET_QUERY>

<!--E5A0DC8536134185AC8B1897F15DB816--><OBCQL_WIDGET_QUERY>
<!--E5A0DC8536134185AC8B1897F15DB816-->  <OBCQL_WIDGET_QUERY_ID><![CDATA[E5A0DC8536134185AC8B1897F15DB816]]></OBCQL_WIDGET_QUERY_ID>
<!--E5A0DC8536134185AC8B1897F15DB816-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
<!--E5A0DC8536134185AC8B1897F15DB816-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
<!--E5A0DC8536134185AC8B1897F15DB816-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--E5A0DC8536134185AC8B1897F15DB816-->  <OBKMO_WIDGET_CLASS_ID><![CDATA[2662490B7D3B4F80AF308C88F6DB68C0]]></OBKMO_WIDGET_CLASS_ID>
<!--E5A0DC8536134185AC8B1897F15DB816-->  <HQL><![CDATA[select p.id as finpaymentId, p.documentNo as documentNo,
       p.businessPartner.name as businessPartnerName,
       p.paymentDate as paymentDate, p.amount as amount
from FIN_Payment as p
where p.businessPartner.name like :businessPartnerName
      and p.documentNo like :documentNo
      and p.client.id = :client
      and p.processed = true
      and p.receipt = true
      and p.status = 'RPAE'
order by p.paymentDate]]></HQL>
<!--E5A0DC8536134185AC8B1897F15DB816--></OBCQL_WIDGET_QUERY>

<!--F94AEB4680AD4AD48255071903000A43--><OBCQL_WIDGET_QUERY>
<!--F94AEB4680AD4AD48255071903000A43-->  <OBCQL_WIDGET_QUERY_ID><![CDATA[F94AEB4680AD4AD48255071903000A43]]></OBCQL_WIDGET_QUERY_ID>
<!--F94AEB4680AD4AD48255071903000A43-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
<!--F94AEB4680AD4AD48255071903000A43-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
<!--F94AEB4680AD4AD48255071903000A43-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--F94AEB4680AD4AD48255071903000A43-->  <OBKMO_WIDGET_CLASS_ID><![CDATA[F8E4F382BCFB441CADBB4AC693C41C93]]></OBKMO_WIDGET_CLASS_ID>
<!--F94AEB4680AD4AD48255071903000A43-->  <HQL><![CDATA[select p.id as finpaymentId, p.documentNo as documentNo,
       p.businessPartner.name as businessPartnerName,
       p.paymentDate as paymentDate, p.amount as amount
from FIN_Payment as p
where p.businessPartner.name like :businessPartnerName
      and p.documentNo like :documentNo
      and p.client.id = :client
      and p.processed = true
      and p.receipt = false
      and p.status = 'RPAE'
order by p.paymentDate]]></HQL>
<!--F94AEB4680AD4AD48255071903000A43--></OBCQL_WIDGET_QUERY>

</data>