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
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>
mikel@9334
     9
<!--1EF87E8E961A4E5BA3B41E1AB772B47C-->  <HQL><![CDATA[select inv.id as invoiceId, inv.documentNo as documentNo,
mikel@9334
    10
       inv.businessPartner.name as businessPartnerName,
mikel@9334
    11
       inv.invoiceDate as invoiceDate, inv.grandTotalAmount as grandTotalAmount
mikel@9334
    12
from Invoice as inv
mikel@9334
    13
where inv.businessPartner.name like :businessPartnerName
mikel@9334
    14
      and inv.documentNo like :documentNo
mikel@9334
    15
      and inv.processed = true
mikel@9334
    16
      and inv.paymentComplete = false
mikel@9334
    17
      and inv.salesTransaction = true
mikel@9334
    18
      and inv.client.id = :client
mikel@9334
    19
order by inv.invoiceDate]]></HQL>
mikel@9334
    20
<!--1EF87E8E961A4E5BA3B41E1AB772B47C--></OBCQL_WIDGET_QUERY>
mikel@9334
    21
mikel@9334
    22
<!--58BCB96595FA45678CC1423402238309--><OBCQL_WIDGET_QUERY>
mikel@9334
    23
<!--58BCB96595FA45678CC1423402238309-->  <OBCQL_WIDGET_QUERY_ID><![CDATA[58BCB96595FA45678CC1423402238309]]></OBCQL_WIDGET_QUERY_ID>
mikel@9334
    24
<!--58BCB96595FA45678CC1423402238309-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
mikel@9334
    25
<!--58BCB96595FA45678CC1423402238309-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
mikel@9334
    26
<!--58BCB96595FA45678CC1423402238309-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
mikel@9334
    27
<!--58BCB96595FA45678CC1423402238309-->  <OBKMO_WIDGET_CLASS_ID><![CDATA[34F279BBB85945519DC38F21573106C0]]></OBKMO_WIDGET_CLASS_ID>
mikel@9334
    28
<!--58BCB96595FA45678CC1423402238309-->  <HQL><![CDATA[select inv.id as invoiceId, inv.documentNo as documentNo,
mikel@9334
    29
       inv.businessPartner.name as businessPartnerName,
mikel@9334
    30
       inv.invoiceDate as invoiceDate, inv.grandTotalAmount as grandTotalAmount
mikel@9334
    31
from Invoice as inv
mikel@9334
    32
where inv.businessPartner.name like :businessPartnerName
mikel@9334
    33
      and inv.documentNo like :documentNo
mikel@9334
    34
      and inv.processed = true
mikel@9334
    35
      and inv.paymentComplete = false
mikel@9334
    36
      and inv.salesTransaction = false
mikel@9334
    37
      and inv.client.id = :client
mikel@9334
    38
order by inv.invoiceDate]]></HQL>
mikel@9334
    39
<!--58BCB96595FA45678CC1423402238309--></OBCQL_WIDGET_QUERY>
mikel@9334
    40
harpreet@9091
    41
<!--C0A8491CDB43466D9F2645018473588B--><OBCQL_WIDGET_QUERY>
harpreet@9091
    42
<!--C0A8491CDB43466D9F2645018473588B-->  <OBCQL_WIDGET_QUERY_ID><![CDATA[C0A8491CDB43466D9F2645018473588B]]></OBCQL_WIDGET_QUERY_ID>
harpreet@9091
    43
<!--C0A8491CDB43466D9F2645018473588B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
harpreet@9091
    44
<!--C0A8491CDB43466D9F2645018473588B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
harpreet@9091
    45
<!--C0A8491CDB43466D9F2645018473588B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
harpreet@9091
    46
<!--C0A8491CDB43466D9F2645018473588B-->  <OBKMO_WIDGET_CLASS_ID><![CDATA[D1E4261099AE4095B2F2DAEE0F7E7784]]></OBKMO_WIDGET_CLASS_ID>
gorkaion@9219
    47
<!--C0A8491CDB43466D9F2645018473588B-->  <HQL><![CDATA[select myWindow.name as windowName, myTab.name as tabName, myTab.id as tabId, count(field) as fieldCount
gorkaion@9219
    48
from ADField field inner join field.tab myTab
gorkaion@9219
    49
                                 inner join myTab.window myWindow
gorkaion@9219
    50
where myWindow.name like :window_name
gorkaion@9219
    51
  and myWindow.client.id = :client
gorkaion@9219
    52
group by myWindow.name, myTab.name, myTab.id
gorkaion@9219
    53
order by myWindow.name]]></HQL>
harpreet@9091
    54
<!--C0A8491CDB43466D9F2645018473588B--></OBCQL_WIDGET_QUERY>
harpreet@9091
    55
mikel@9348
    56
<!--E5A0DC8536134185AC8B1897F15DB816--><OBCQL_WIDGET_QUERY>
mikel@9348
    57
<!--E5A0DC8536134185AC8B1897F15DB816-->  <OBCQL_WIDGET_QUERY_ID><![CDATA[E5A0DC8536134185AC8B1897F15DB816]]></OBCQL_WIDGET_QUERY_ID>
mikel@9348
    58
<!--E5A0DC8536134185AC8B1897F15DB816-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
mikel@9348
    59
<!--E5A0DC8536134185AC8B1897F15DB816-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
mikel@9348
    60
<!--E5A0DC8536134185AC8B1897F15DB816-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
mikel@9348
    61
<!--E5A0DC8536134185AC8B1897F15DB816-->  <OBKMO_WIDGET_CLASS_ID><![CDATA[2662490B7D3B4F80AF308C88F6DB68C0]]></OBKMO_WIDGET_CLASS_ID>
mikel@9348
    62
<!--E5A0DC8536134185AC8B1897F15DB816-->  <HQL><![CDATA[select p.id as finpaymentId, p.documentNo as documentNo,
mikel@9348
    63
       p.businessPartner.name as businessPartnerName,
mikel@9348
    64
       p.paymentDate as paymentDate, p.amount as amount
mikel@9348
    65
from FIN_Payment as p
mikel@9348
    66
where p.businessPartner.name like :businessPartnerName
mikel@9348
    67
      and p.documentNo like :documentNo
mikel@9348
    68
      and p.client.id = :client
mikel@9348
    69
      and p.processed = true
mikel@9348
    70
      and p.receipt = true
mikel@9348
    71
      and p.status = 'RPAE'
mikel@9348
    72
order by p.paymentDate]]></HQL>
mikel@9348
    73
<!--E5A0DC8536134185AC8B1897F15DB816--></OBCQL_WIDGET_QUERY>
mikel@9348
    74
mikel@9348
    75
<!--F94AEB4680AD4AD48255071903000A43--><OBCQL_WIDGET_QUERY>
mikel@9348
    76
<!--F94AEB4680AD4AD48255071903000A43-->  <OBCQL_WIDGET_QUERY_ID><![CDATA[F94AEB4680AD4AD48255071903000A43]]></OBCQL_WIDGET_QUERY_ID>
mikel@9348
    77
<!--F94AEB4680AD4AD48255071903000A43-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
mikel@9348
    78
<!--F94AEB4680AD4AD48255071903000A43-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
mikel@9348
    79
<!--F94AEB4680AD4AD48255071903000A43-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
mikel@9348
    80
<!--F94AEB4680AD4AD48255071903000A43-->  <OBKMO_WIDGET_CLASS_ID><![CDATA[F8E4F382BCFB441CADBB4AC693C41C93]]></OBKMO_WIDGET_CLASS_ID>
mikel@9348
    81
<!--F94AEB4680AD4AD48255071903000A43-->  <HQL><![CDATA[select p.id as finpaymentId, p.documentNo as documentNo,
mikel@9348
    82
       p.businessPartner.name as businessPartnerName,
mikel@9348
    83
       p.paymentDate as paymentDate, p.amount as amount
mikel@9348
    84
from FIN_Payment as p
mikel@9348
    85
where p.businessPartner.name like :businessPartnerName
mikel@9348
    86
      and p.documentNo like :documentNo
mikel@9348
    87
      and p.client.id = :client
mikel@9348
    88
      and p.processed = true
mikel@9348
    89
      and p.receipt = false
mikel@9348
    90
      and p.status = 'RPAE'
mikel@9348
    91
order by p.paymentDate]]></HQL>
mikel@9348
    92
<!--F94AEB4680AD4AD48255071903000A43--></OBCQL_WIDGET_QUERY>
mikel@9348
    93
harpreet@9091
    94
</data>