modules/org.openbravo.client.querylist/src-db/database/sourcedata/OBCQL_WIDGET_QUERY.xml
author RM packaging bot <staff.rm@openbravo.com>
Wed, 16 Nov 2011 17:03:32 +0000
changeset 14264 84211b731f17
parent 14053 e996b0a6cac7
child 19172 b6cf1812e397
permissions -rw-r--r--
Merge temporary head for 3.0MP4.2
harpreet@9091
     1
<?xml version='1.0' encoding='UTF-8'?>
harpreet@9091
     2
<data>
mikel@9334
     3
<!--1EF87E8E961A4E5BA3B41E1AB772B47C--><OBCQL_WIDGET_QUERY>
mikel@9334
     4
<!--1EF87E8E961A4E5BA3B41E1AB772B47C-->  <OBCQL_WIDGET_QUERY_ID><![CDATA[1EF87E8E961A4E5BA3B41E1AB772B47C]]></OBCQL_WIDGET_QUERY_ID>
mikel@9334
     5
<!--1EF87E8E961A4E5BA3B41E1AB772B47C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
mikel@9334
     6
<!--1EF87E8E961A4E5BA3B41E1AB772B47C-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
mikel@9334
     7
<!--1EF87E8E961A4E5BA3B41E1AB772B47C-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
mikel@9334
     8
<!--1EF87E8E961A4E5BA3B41E1AB772B47C-->  <OBKMO_WIDGET_CLASS_ID><![CDATA[147D825456D54D0486C3D7072531C5C9]]></OBKMO_WIDGET_CLASS_ID>
pablo@10354
     9
<!--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>
mikel@9334
    10
<!--1EF87E8E961A4E5BA3B41E1AB772B47C--></OBCQL_WIDGET_QUERY>
mikel@9334
    11
mikel@9334
    12
<!--58BCB96595FA45678CC1423402238309--><OBCQL_WIDGET_QUERY>
mikel@9334
    13
<!--58BCB96595FA45678CC1423402238309-->  <OBCQL_WIDGET_QUERY_ID><![CDATA[58BCB96595FA45678CC1423402238309]]></OBCQL_WIDGET_QUERY_ID>
mikel@9334
    14
<!--58BCB96595FA45678CC1423402238309-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
mikel@9334
    15
<!--58BCB96595FA45678CC1423402238309-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
mikel@9334
    16
<!--58BCB96595FA45678CC1423402238309-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
mikel@9334
    17
<!--58BCB96595FA45678CC1423402238309-->  <OBKMO_WIDGET_CLASS_ID><![CDATA[34F279BBB85945519DC38F21573106C0]]></OBKMO_WIDGET_CLASS_ID>
mikel@9334
    18
<!--58BCB96595FA45678CC1423402238309-->  <HQL><![CDATA[select inv.id as invoiceId, inv.documentNo as documentNo,
gorkaion@9469
    19
       inv.businessPartner.id as businessPartnerId, inv.businessPartner.name as businessPartnerName,
gorkaion@9495
    20
       inv.invoiceDate as invoiceDate, inv.grandTotalAmount as grandTotalAmount,
mikel@10349
    21
       inv.currency.iSOCode as currency, inv.paymentTerms.name as paymentTerms,
mikel@10349
    22
       inv.outstandingAmount as outstandingAmount, inv.daysTillDue as daysTillDue,
mikel@10349
    23
       inv.dueAmount as dueAmount, inv.organization.name as organizationName
mikel@9334
    24
from Invoice as inv
mikel@9334
    25
where inv.businessPartner.name like :businessPartnerName
mikel@9334
    26
      and inv.documentNo like :documentNo
mikel@9334
    27
      and inv.processed = true
mikel@9334
    28
      and inv.paymentComplete = false
mikel@9334
    29
      and inv.salesTransaction = false
mikel@9334
    30
      and inv.client.id = :client
mikel@10349
    31
      and inv.organization.id in (:organizationList)
mikel@10349
    32
      and inv.organization.name like :organizationName
gorkaion@9705
    33
      and @optional_filters@
mikel@9334
    34
order by inv.invoiceDate]]></HQL>
mikel@9334
    35
<!--58BCB96595FA45678CC1423402238309--></OBCQL_WIDGET_QUERY>
mikel@9334
    36
mikel@9348
    37
<!--E5A0DC8536134185AC8B1897F15DB816--><OBCQL_WIDGET_QUERY>
mikel@9348
    38
<!--E5A0DC8536134185AC8B1897F15DB816-->  <OBCQL_WIDGET_QUERY_ID><![CDATA[E5A0DC8536134185AC8B1897F15DB816]]></OBCQL_WIDGET_QUERY_ID>
mikel@9348
    39
<!--E5A0DC8536134185AC8B1897F15DB816-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
mikel@9348
    40
<!--E5A0DC8536134185AC8B1897F15DB816-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
mikel@9348
    41
<!--E5A0DC8536134185AC8B1897F15DB816-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
mikel@9348
    42
<!--E5A0DC8536134185AC8B1897F15DB816-->  <OBKMO_WIDGET_CLASS_ID><![CDATA[2662490B7D3B4F80AF308C88F6DB68C0]]></OBKMO_WIDGET_CLASS_ID>
mikel@9348
    43
<!--E5A0DC8536134185AC8B1897F15DB816-->  <HQL><![CDATA[select p.id as finpaymentId, p.documentNo as documentNo,
gorkaion@9469
    44
       p.businessPartner.id as businessPartnerId, p.businessPartner.name as businessPartnerName,
mikel@10349
    45
       p.paymentDate as paymentDate, p.amount as amount,
mikel@10349
    46
       p.currency.iSOCode as currency, p.organization.name as organizationName
mikel@9348
    47
from FIN_Payment as p
mikel@9348
    48
where p.businessPartner.name like :businessPartnerName
mikel@9348
    49
      and p.documentNo like :documentNo
mikel@9348
    50
      and p.client.id = :client
mikel@9348
    51
      and p.processed = true
mikel@9348
    52
      and p.receipt = true
mikel@9348
    53
      and p.status = 'RPAE'
mikel@10349
    54
      and p.organization.id in (:organizationList)
mikel@10349
    55
      and p.organization.name like :organizationName
gorkaion@9705
    56
      and @optional_filters@
mikel@9348
    57
order by p.paymentDate]]></HQL>
mikel@9348
    58
<!--E5A0DC8536134185AC8B1897F15DB816--></OBCQL_WIDGET_QUERY>
mikel@9348
    59
pablo@9503
    60
<!--F5DEE669DD8047FB831A12064BB277BE--><OBCQL_WIDGET_QUERY>
pablo@9503
    61
<!--F5DEE669DD8047FB831A12064BB277BE-->  <OBCQL_WIDGET_QUERY_ID><![CDATA[F5DEE669DD8047FB831A12064BB277BE]]></OBCQL_WIDGET_QUERY_ID>
pablo@9503
    62
<!--F5DEE669DD8047FB831A12064BB277BE-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
pablo@9503
    63
<!--F5DEE669DD8047FB831A12064BB277BE-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
pablo@9503
    64
<!--F5DEE669DD8047FB831A12064BB277BE-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
pablo@9503
    65
<!--F5DEE669DD8047FB831A12064BB277BE-->  <OBKMO_WIDGET_CLASS_ID><![CDATA[8267FB3F59D7401980DDDEFF51FE55C3]]></OBKMO_WIDGET_CLASS_ID>
asier@14053
    66
<!--F5DEE669DD8047FB831A12064BB277BE-->  <HQL><![CDATA[select ol.salesOrder.id as orderId, 
asier@14053
    67
       ol.salesOrder.organization.name as organizationName, 
asier@14053
    68
       ol.salesOrder.orderDate as dateordered,  
asier@14053
    69
       ol.salesOrder.scheduledDeliveryDate as plannedDeliveryDate, 
asier@14053
    70
       ol.salesOrder.documentNo as salesorder, 
asier@14053
    71
       ol.salesOrder.businessPartner.name as bpartner, 
asier@14053
    72
       ol.product.name as productname, 
asier@14053
    73
       attr.description as attribute, 
asier@14053
    74
       ol.uOM.name as uom, 
asier@14053
    75
       ol.orderedQuantity as totalqty,     
asier@14053
    76
       (select coalesce(sum(po.quantity),0)      
asier@14053
    77
          from ProcurementPOInvoiceMatch po     
asier@14053
    78
         where po.goodsShipmentLine is not null     
asier@14053
    79
           and po.salesOrderLine = ol) as qtyReceived,     
asier@14053
    80
       (select ol.orderedQuantity-coalesce(sum(po2.quantity),0) 
asier@14053
    81
          from ProcurementPOInvoiceMatch po2     
asier@14053
    82
         where po2.goodsShipmentLine is not null     
asier@14053
    83
           and po2.salesOrderLine = ol) as qtyPending 
asier@14053
    84
   from OrderLine as ol left join ol.attributeSetValue attr 
asier@14053
    85
  where ol.salesOrder.client.id =:client 
asier@14053
    86
    and ol.salesOrder.organization.id in (:organizationList) 
asier@14053
    87
    and ol.salesOrder.documentStatus='CO' 
asier@14053
    88
    and ol.salesOrder.salesTransaction=false 
asier@14053
    89
    and ol.orderedQuantity <> (select coalesce(sum(po3.quantity),0)                              
asier@14053
    90
                                 from ProcurementPOInvoiceMatch po3                             
asier@14053
    91
                                where po3.goodsShipmentLine is not null                             
asier@14053
    92
                                  and po3.salesOrderLine = ol) 
asier@14053
    93
    and ol.salesOrder.scheduledDeliveryDate<=now() 
asier@14053
    94
    and ol.product.name like :productname 
asier@14053
    95
    and ol.salesOrder.businessPartner.name like :suppliername 
asier@14053
    96
    and ol.salesOrder.documentNo like :documentno 
asier@14053
    97
    and ol.salesOrder.organization.name like :organizationName 
asier@14053
    98
    and @optional_filters@ 
asier@14053
    99
  order by ol.salesOrder.scheduledDeliveryDate, ol.salesOrder.documentNo]]></HQL>
pablo@9503
   100
<!--F5DEE669DD8047FB831A12064BB277BE--></OBCQL_WIDGET_QUERY>
pablo@9503
   101
mikel@9348
   102
<!--F94AEB4680AD4AD48255071903000A43--><OBCQL_WIDGET_QUERY>
mikel@9348
   103
<!--F94AEB4680AD4AD48255071903000A43-->  <OBCQL_WIDGET_QUERY_ID><![CDATA[F94AEB4680AD4AD48255071903000A43]]></OBCQL_WIDGET_QUERY_ID>
mikel@9348
   104
<!--F94AEB4680AD4AD48255071903000A43-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
mikel@9348
   105
<!--F94AEB4680AD4AD48255071903000A43-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
mikel@9348
   106
<!--F94AEB4680AD4AD48255071903000A43-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
mikel@9348
   107
<!--F94AEB4680AD4AD48255071903000A43-->  <OBKMO_WIDGET_CLASS_ID><![CDATA[F8E4F382BCFB441CADBB4AC693C41C93]]></OBKMO_WIDGET_CLASS_ID>
mikel@9348
   108
<!--F94AEB4680AD4AD48255071903000A43-->  <HQL><![CDATA[select p.id as finpaymentId, p.documentNo as documentNo,
gorkaion@9469
   109
       p.businessPartner.id as businessPartnerId, p.businessPartner.name as businessPartnerName,
mikel@10349
   110
       p.paymentDate as paymentDate, p.amount as amount,
mikel@10349
   111
       p.currency.iSOCode as currency, p.organization.name as organizationName
mikel@9348
   112
from FIN_Payment as p
mikel@9348
   113
where p.businessPartner.name like :businessPartnerName
mikel@9348
   114
      and p.documentNo like :documentNo
mikel@9348
   115
      and p.client.id = :client
mikel@9348
   116
      and p.processed = true
mikel@9348
   117
      and p.receipt = false
mikel@9348
   118
      and p.status = 'RPAE'
mikel@10349
   119
      and p.organization.id in (:organizationList)
mikel@10349
   120
      and p.organization.name like :organizationName
gorkaion@9705
   121
      and @optional_filters@
mikel@9348
   122
order by p.paymentDate]]></HQL>
mikel@9348
   123
<!--F94AEB4680AD4AD48255071903000A43--></OBCQL_WIDGET_QUERY>
mikel@9348
   124
harpreet@9091
   125
</data>