referencedata/standard/Financial_Alerts.xml
author Asier Lostalé <asier.lostale@openbravo.com>
Mon, 19 Jun 2017 15:16:26 +0200
changeset 32244 443c3cdbf841
parent 27742 b7e392b19794
permissions -rw-r--r--
fixed bug 36274: abandoned connection in SessionListener

Detach connection from current thread to allow it to be properly returned
to pool.

This is required whever the thread doing the actio is not handling an standard
request.
alvaro@27712
     1
<?xml version="1.0" encoding="UTF-8"?>
alvaro@27712
     2
<ob:Openbravo xmlns:ob="http://www.openbravo.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
alvaro@27712
     3
  <ADAlertRule id="7D7B5AECABB34298BF5B6E47A86FD0DC" identifier="Wrong Purchase Order Payment Plan">
alvaro@27712
     4
    <id>7D7B5AECABB34298BF5B6E47A86FD0DC</id>
alvaro@27719
     5
    <active>false</active>
alvaro@27712
     6
    <name>Wrong Purchase Order Payment Plan</name>
alvaro@27712
     7
    <tab id="294" entity-name="ADTab" identifier="Header - Purchase Order"/>
alvaro@27712
     8
    <filterClause xsi:nil="true"/>
alvaro@27712
     9
    <sql>select distinct ad_column_identifier('C_Order', fin_payment_schedule.c_order_id, 'en_US') as record_id, 
alvaro@27712
    10
fin_payment_schedule.c_order_id  as referencekey_id, 0 as ad_role_id, null as ad_user_id, 
alvaro@27712
    11
'This order needs to be checked due to wrong payment info.' as description, 'Y' as isActive, 
alvaro@27712
    12
fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy 
alvaro@27712
    13
from c_order, fin_payment_schedule, fin_payment_scheduledetail 
alvaro@27712
    14
where c_order.c_order_id = fin_payment_schedule.c_order_id 
alvaro@27712
    15
and fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_order 
alvaro@27712
    16
and fin_payment_scheduledetail.iscanceled = 'N' 
alvaro@27712
    17
and fin_payment_scheduledetail.fin_payment_detail_id IS NOT NULL 
alvaro@27712
    18
and c_order.issotrx = 'N' 
alvaro@27712
    19
group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, c_order.issotrx,
alvaro@27712
    20
fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_order_id, fin_payment_schedule.paidamt 
alvaro@27712
    21
having fin_payment_schedule.paidamt &lt;&gt; sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt,0)) 
alvaro@27712
    22
order by 1</sql>
alvaro@27712
    23
    <type>D</type>
alvaro@27712
    24
  </ADAlertRule>
alvaro@27712
    25
  <ADAlertRule id="7F3831D3C7C547DA9ED871756AC3BBEF" identifier="Wrong Sales Order Payment Plan">
alvaro@27712
    26
    <id>7F3831D3C7C547DA9ED871756AC3BBEF</id>
alvaro@27719
    27
    <active>false</active>
alvaro@27712
    28
    <name>Wrong Sales Order Payment Plan</name>
alvaro@27712
    29
    <tab id="186" entity-name="ADTab" identifier="Header - Sales Order"/>
alvaro@27712
    30
    <filterClause xsi:nil="true"/>
alvaro@27712
    31
    <sql>select distinct ad_column_identifier('C_Order', fin_payment_schedule.c_order_id, 'en_US') as record_id, 
alvaro@27712
    32
fin_payment_schedule.c_order_id  as referencekey_id, 0 as ad_role_id, null as ad_user_id, 
alvaro@27712
    33
'This order needs to be checked due to wrong payment info.' as description, 'Y' as isActive, 
alvaro@27712
    34
fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy 
alvaro@27712
    35
from c_order, fin_payment_schedule, fin_payment_scheduledetail 
alvaro@27712
    36
where c_order.c_order_id = fin_payment_schedule.c_order_id 
alvaro@27712
    37
and fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_order 
alvaro@27712
    38
and fin_payment_scheduledetail.iscanceled = 'N' 
alvaro@27712
    39
and fin_payment_scheduledetail.fin_payment_detail_id IS NOT NULL 
alvaro@27712
    40
and c_order.issotrx = 'Y' 
alvaro@27712
    41
group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, c_order.issotrx,
alvaro@27712
    42
fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_order_id, fin_payment_schedule.paidamt 
alvaro@27712
    43
having fin_payment_schedule.paidamt &lt;&gt; sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt,0)) 
alvaro@27712
    44
order by 1</sql>
alvaro@27712
    45
    <type>D</type>
alvaro@27712
    46
  </ADAlertRule>
alvaro@27712
    47
  <ADAlertRule id="F4EB0B136EC84E73AE6B1B7C2F8F01EC" identifier="Wrong Sales Invoice Payment Plan">
alvaro@27712
    48
    <id>F4EB0B136EC84E73AE6B1B7C2F8F01EC</id>
alvaro@27719
    49
    <active>false</active>
alvaro@27712
    50
    <name>Wrong Sales Invoice Payment Plan</name>
alvaro@27712
    51
    <tab id="263" entity-name="ADTab" identifier="Header - Sales Invoice"/>
alvaro@27712
    52
    <filterClause xsi:nil="true"/>
alvaro@27712
    53
    <sql>select distinct ad_column_identifier('c_invoice', fin_payment_schedule.c_invoice_id, 'en_US') as record_id, 
alvaro@27712
    54
fin_payment_schedule.c_invoice_id  as referencekey_id, 0 as ad_role_id, null as ad_user_id, 
alvaro@27712
    55
'This invoice needs to be reactivated and processed again due to wrong payment info.' as description, 'Y' as isActive, 
alvaro@27712
    56
fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy 
alvaro@27712
    57
from c_invoice, fin_payment_schedule, fin_payment_scheduledetail 
alvaro@27712
    58
where c_invoice.c_invoice_id = fin_payment_schedule.c_invoice_id 
alvaro@27712
    59
and fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice 
alvaro@27712
    60
and fin_payment_scheduledetail.iscanceled = 'N' 
alvaro@27712
    61
and c_invoice.issotrx = 'Y' 
alvaro@27712
    62
group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, c_invoice.issotrx, 
alvaro@27712
    63
fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount 
alvaro@27712
    64
having fin_payment_schedule.amount &lt;&gt; sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt,0)) 
alvaro@27712
    65
order by 1</sql>
alvaro@27712
    66
    <type>D</type>
alvaro@27712
    67
  </ADAlertRule>
alvaro@27712
    68
  <ADAlertRule id="FB29D12BB3D344E482DA6C3FC3262C48" identifier="Wrong Purchase Invoice Payment Plan">
alvaro@27712
    69
    <id>FB29D12BB3D344E482DA6C3FC3262C48</id>
alvaro@27719
    70
    <active>false</active>
alvaro@27712
    71
    <name>Wrong Purchase Invoice Payment Plan</name>
alvaro@27712
    72
    <tab id="290" entity-name="ADTab" identifier="Header - Purchase Invoice"/>
alvaro@27712
    73
    <filterClause xsi:nil="true"/>
alvaro@27712
    74
    <sql>select distinct ad_column_identifier('c_invoice', fin_payment_schedule.c_invoice_id, 'en_US') as record_id, 
alvaro@27712
    75
fin_payment_schedule.c_invoice_id  as referencekey_id, 0 as ad_role_id, null as ad_user_id, 
alvaro@27712
    76
'This invoice needs to be reactivated and processed again due to wrong payment info.' as description, 'Y' as isActive, 
alvaro@27712
    77
fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy 
alvaro@27712
    78
from c_invoice, fin_payment_schedule, fin_payment_scheduledetail 
alvaro@27712
    79
where c_invoice.c_invoice_id = fin_payment_schedule.c_invoice_id 
alvaro@27712
    80
and fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice 
alvaro@27712
    81
and fin_payment_scheduledetail.iscanceled = 'N' 
alvaro@27712
    82
and c_invoice.issotrx = 'N' 
alvaro@27712
    83
group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, c_invoice.issotrx, 
alvaro@27712
    84
fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount 
alvaro@27712
    85
having fin_payment_schedule.amount &lt;&gt; sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt,0)) 
alvaro@27712
    86
order by 1</sql>
alvaro@27712
    87
    <type>D</type>
alvaro@27712
    88
  </ADAlertRule>
alvaro@27712
    89
</ob:Openbravo>