modules/org.openbravo.client.querylist/src-db/database/sourcedata/OBCQL_WIDGET_QUERY.xml
author RM packaging bot <staff.rm@openbravo.com>
Wed, 16 Feb 2011 17:55:09 +0100
changeset 10711 4b3532bdd006
parent 10354 0ee185c69279
child 14053 e996b0a6cac7
permissions -rw-r--r--
CI: update AD_MODULE to version 10710
<?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.id as businessPartnerId, inv.businessPartner.name as businessPartnerName,        inv.invoiceDate as invoiceDate, inv.grandTotalAmount as grandTotalAmount,        inv.currency.iSOCode as currency, inv.paymentTerms.name as paymentTerms,        inv.outstandingAmount as outstandingAmount, inv.daysTillDue as daysTillDue,        inv.dueAmount as dueAmount, inv.organization.name as organizationName 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       and inv.organization.id in (:organizationList)       and inv.organization.name like :organizationName       and @optional_filters@ 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.id as businessPartnerId, inv.businessPartner.name as businessPartnerName,
       inv.invoiceDate as invoiceDate, inv.grandTotalAmount as grandTotalAmount,
       inv.currency.iSOCode as currency, inv.paymentTerms.name as paymentTerms,
       inv.outstandingAmount as outstandingAmount, inv.daysTillDue as daysTillDue,
       inv.dueAmount as dueAmount, inv.organization.name as organizationName
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
      and inv.organization.id in (:organizationList)
      and inv.organization.name like :organizationName
      and @optional_filters@
order by inv.invoiceDate]]></HQL>
<!--58BCB96595FA45678CC1423402238309--></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.id as businessPartnerId, p.businessPartner.name as businessPartnerName,
       p.paymentDate as paymentDate, p.amount as amount,
       p.currency.iSOCode as currency, p.organization.name as organizationName
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'
      and p.organization.id in (:organizationList)
      and p.organization.name like :organizationName
      and @optional_filters@
order by p.paymentDate]]></HQL>
<!--E5A0DC8536134185AC8B1897F15DB816--></OBCQL_WIDGET_QUERY>

<!--F5DEE669DD8047FB831A12064BB277BE--><OBCQL_WIDGET_QUERY>
<!--F5DEE669DD8047FB831A12064BB277BE-->  <OBCQL_WIDGET_QUERY_ID><![CDATA[F5DEE669DD8047FB831A12064BB277BE]]></OBCQL_WIDGET_QUERY_ID>
<!--F5DEE669DD8047FB831A12064BB277BE-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
<!--F5DEE669DD8047FB831A12064BB277BE-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
<!--F5DEE669DD8047FB831A12064BB277BE-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--F5DEE669DD8047FB831A12064BB277BE-->  <OBKMO_WIDGET_CLASS_ID><![CDATA[8267FB3F59D7401980DDDEFF51FE55C3]]></OBKMO_WIDGET_CLASS_ID>
<!--F5DEE669DD8047FB831A12064BB277BE-->  <HQL><![CDATA[select ol.salesOrder.id as orderId, ol.salesOrder.organization.name as organizationName, ol.salesOrder.orderDate as dateordered,  ol.salesOrder.scheduledDeliveryDate as plannedDeliveryDate, ol.salesOrder.documentNo as salesorder, ol.salesOrder.businessPartner.name as bpartner, ol.product.name as productname, ol.attributeSetValue.description as attribute, ol.uOM.name as uom, ol.orderedQuantity as totalqty,     (select coalesce(sum(po.quantity),0)      from ProcurementPOInvoiceMatch po     where po.goodsShipmentLine is not null     and po.salesOrderLine = ol) as qtyReceived,     (select ol.orderedQuantity-coalesce(sum(po2.quantity),0) from ProcurementPOInvoiceMatch po2     where po2.goodsShipmentLine is not null     and po2.salesOrderLine = ol) as qtyPending from OrderLine as ol left join ol.attributeSetValue where ol.salesOrder.client.id =:client and ol.salesOrder.organization.id in (:organizationList) and ol.salesOrder.documentStatus='CO' and ol.salesOrder.salesTransaction=false and ol.orderedQuantity <> (select coalesce(sum(po3.quantity),0)                              from ProcurementPOInvoiceMatch po3                             where po3.goodsShipmentLine is not null                             and po3.salesOrderLine = ol) and ol.salesOrder.scheduledDeliveryDate<=now() and ol.product.name like :productname and ol.salesOrder.businessPartner.name like :suppliername and ol.salesOrder.documentNo like :documentno and ol.salesOrder.organization.name like :organizationName and @optional_filters@ order by ol.salesOrder.scheduledDeliveryDate, ol.salesOrder.documentNo]]></HQL>
<!--F5DEE669DD8047FB831A12064BB277BE--></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.id as businessPartnerId, p.businessPartner.name as businessPartnerName,
       p.paymentDate as paymentDate, p.amount as amount,
       p.currency.iSOCode as currency, p.organization.name as organizationName
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'
      and p.organization.id in (:organizationList)
      and p.organization.name like :organizationName
      and @optional_filters@
order by p.paymentDate]]></HQL>
<!--F94AEB4680AD4AD48255071903000A43--></OBCQL_WIDGET_QUERY>

</data>