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