modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_VAL_RULE.xml
author RM packaging bot <staff.rm@openbravo.com>
Wed, 06 Mar 2013 19:24:43 +0100
changeset 19864 95e36a1b246f
parent 19560 e8bbe1ed64da
child 20189 03f22c0f86a0
permissions -rw-r--r--
CI: update AD_MODULE to version 19863
staff@10770
     1
<?xml version='1.0' encoding='UTF-8'?>
staff@10770
     2
<data>
staff@10770
     3
<!--119E4BFBC4264A148450053A47E7D3FE--><AD_VAL_RULE>
staff@10770
     4
<!--119E4BFBC4264A148450053A47E7D3FE-->  <AD_VAL_RULE_ID><![CDATA[119E4BFBC4264A148450053A47E7D3FE]]></AD_VAL_RULE_ID>
staff@10770
     5
<!--119E4BFBC4264A148450053A47E7D3FE-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
staff@10770
     6
<!--119E4BFBC4264A148450053A47E7D3FE-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
staff@10770
     7
<!--119E4BFBC4264A148450053A47E7D3FE-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
staff@10770
     8
<!--119E4BFBC4264A148450053A47E7D3FE-->  <NAME><![CDATA[Process Proposal Window Reference Validation]]></NAME>
staff@10770
     9
<!--119E4BFBC4264A148450053A47E7D3FE-->  <TYPE><![CDATA[S]]></TYPE>
staff@10770
    10
<!--119E4BFBC4264A148450053A47E7D3FE-->  <CODE><![CDATA[AD_Ref_List.Value <> 'G']]></CODE>
staff@10770
    11
<!--119E4BFBC4264A148450053A47E7D3FE-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
staff@10770
    12
<!--119E4BFBC4264A148450053A47E7D3FE--></AD_VAL_RULE>
staff@10770
    13
harpreet@9091
    14
<!--29010995FD39439D97A5C0CE8CE27D70--><AD_VAL_RULE>
harpreet@9091
    15
<!--29010995FD39439D97A5C0CE8CE27D70-->  <AD_VAL_RULE_ID><![CDATA[29010995FD39439D97A5C0CE8CE27D70]]></AD_VAL_RULE_ID>
harpreet@9091
    16
<!--29010995FD39439D97A5C0CE8CE27D70-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
harpreet@9091
    17
<!--29010995FD39439D97A5C0CE8CE27D70-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
harpreet@9091
    18
<!--29010995FD39439D97A5C0CE8CE27D70-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
harpreet@9091
    19
<!--29010995FD39439D97A5C0CE8CE27D70-->  <NAME><![CDATA[FIN_Payment forced Deposit/Withdrawal]]></NAME>
harpreet@9091
    20
<!--29010995FD39439D97A5C0CE8CE27D70-->  <TYPE><![CDATA[S]]></TYPE>
harpreet@9091
    21
<!--29010995FD39439D97A5C0CE8CE27D70-->  <CODE><![CDATA[value in ('PPW', 'PRD')]]></CODE>
harpreet@9091
    22
<!--29010995FD39439D97A5C0CE8CE27D70-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
harpreet@9091
    23
<!--29010995FD39439D97A5C0CE8CE27D70--></AD_VAL_RULE>
harpreet@9091
    24
eduardo@19560
    25
<!--3842B167CA6F44239C3357A721E3BA6A--><AD_VAL_RULE>
eduardo@19560
    26
<!--3842B167CA6F44239C3357A721E3BA6A-->  <AD_VAL_RULE_ID><![CDATA[3842B167CA6F44239C3357A721E3BA6A]]></AD_VAL_RULE_ID>
eduardo@19560
    27
<!--3842B167CA6F44239C3357A721E3BA6A-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
eduardo@19560
    28
<!--3842B167CA6F44239C3357A721E3BA6A-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
eduardo@19560
    29
<!--3842B167CA6F44239C3357A721E3BA6A-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
eduardo@19560
    30
<!--3842B167CA6F44239C3357A721E3BA6A-->  <NAME><![CDATA[Doubtfull Debt valid actions]]></NAME>
eduardo@19560
    31
<!--3842B167CA6F44239C3357A721E3BA6A-->  <TYPE><![CDATA[S]]></TYPE>
eduardo@19560
    32
<!--3842B167CA6F44239C3357A721E3BA6A-->  <CODE><![CDATA[(@EM_APRM_Process@ = 'P' AND AD_Ref_List.value='P') OR (@EM_APRM_Process@ = 'R' AND AD_Ref_List.value = 'R') AND AD_Ref_List.IsActive = 'Y']]></CODE>
eduardo@19560
    33
<!--3842B167CA6F44239C3357A721E3BA6A-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
eduardo@19560
    34
<!--3842B167CA6F44239C3357A721E3BA6A--></AD_VAL_RULE>
eduardo@19560
    35
david@18903
    36
<!--4DB5167147F24078A1FD39DC7564B48D--><AD_VAL_RULE>
david@18903
    37
<!--4DB5167147F24078A1FD39DC7564B48D-->  <AD_VAL_RULE_ID><![CDATA[4DB5167147F24078A1FD39DC7564B48D]]></AD_VAL_RULE_ID>
david@18903
    38
<!--4DB5167147F24078A1FD39DC7564B48D-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
david@18903
    39
<!--4DB5167147F24078A1FD39DC7564B48D-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
david@18903
    40
<!--4DB5167147F24078A1FD39DC7564B48D-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
david@18903
    41
<!--4DB5167147F24078A1FD39DC7564B48D-->  <NAME><![CDATA[FIN_FinancialAccountInNaturalTree]]></NAME>
david@18903
    42
<!--4DB5167147F24078A1FD39DC7564B48D-->  <TYPE><![CDATA[S]]></TYPE>
david@18903
    43
<!--4DB5167147F24078A1FD39DC7564B48D-->  <CODE><![CDATA[(AD_ISORGINCLUDED(ad_org_id, @AD_ORG_ID@, ad_client_id)<>'-1'  OR AD_ISORGINCLUDED(@AD_ORG_ID@, ad_org_id, ad_client_id)<>'-1')]]></CODE>
david@18903
    44
<!--4DB5167147F24078A1FD39DC7564B48D-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
david@18903
    45
<!--4DB5167147F24078A1FD39DC7564B48D--></AD_VAL_RULE>
david@18903
    46
staff@10770
    47
<!--575E470ABADB4C278132C957A78C47E3--><AD_VAL_RULE>
staff@10770
    48
<!--575E470ABADB4C278132C957A78C47E3-->  <AD_VAL_RULE_ID><![CDATA[575E470ABADB4C278132C957A78C47E3]]></AD_VAL_RULE_ID>
staff@10770
    49
<!--575E470ABADB4C278132C957A78C47E3-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
staff@10770
    50
<!--575E470ABADB4C278132C957A78C47E3-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
staff@10770
    51
<!--575E470ABADB4C278132C957A78C47E3-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
staff@10770
    52
<!--575E470ABADB4C278132C957A78C47E3-->  <NAME><![CDATA[Process Payment valid actions]]></NAME>
staff@10770
    53
<!--575E470ABADB4C278132C957A78C47E3-->  <TYPE><![CDATA[S]]></TYPE>
eduardo@18078
    54
<!--575E470ABADB4C278132C957A78C47E3-->  <CODE><![CDATA[((@EM_APRM_Process_Payment@ = 'P' AND AD_Ref_List.value='P') OR (@EM_APRM_Process_Payment@ in ('R','RE') AND AD_Ref_List.value IN ('RE','R')) OR (@EM_APRM_Process_Payment@ in ('R','RE') AND AD_Ref_List.value IN ('V') AND @Status@='RPAE') OR (@EM_APRM_Process_Payment@ is null)) AND AD_Ref_List.IsActive = 'Y']]></CODE>
staff@10770
    55
<!--575E470ABADB4C278132C957A78C47E3-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
staff@10770
    56
<!--575E470ABADB4C278132C957A78C47E3--></AD_VAL_RULE>
staff@10770
    57
david@18903
    58
<!--959ADF046AFE4F509ABC6E2F41F9DB04--><AD_VAL_RULE>
david@18903
    59
<!--959ADF046AFE4F509ABC6E2F41F9DB04-->  <AD_VAL_RULE_ID><![CDATA[959ADF046AFE4F509ABC6E2F41F9DB04]]></AD_VAL_RULE_ID>
david@18903
    60
<!--959ADF046AFE4F509ABC6E2F41F9DB04-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
david@18903
    61
<!--959ADF046AFE4F509ABC6E2F41F9DB04-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
david@18903
    62
<!--959ADF046AFE4F509ABC6E2F41F9DB04-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
david@18909
    63
<!--959ADF046AFE4F509ABC6E2F41F9DB04-->  <NAME><![CDATA[FIN_PaymentMethodInFinancialAccountOrBPartnerAcc]]></NAME>
david@18903
    64
<!--959ADF046AFE4F509ABC6E2F41F9DB04-->  <TYPE><![CDATA[S]]></TYPE>
david@18903
    65
<!--959ADF046AFE4F509ABC6E2F41F9DB04-->  <CODE><![CDATA[EXISTS(
david@18903
    66
SELECT FIN_PAYMENTMETHOD_ID 
david@18903
    67
FROM FIN_FINACC_PAYMENTMETHOD 
david@18903
    68
WHERE FIN_FINANCIAL_ACCOUNT_ID = CASE WHEN (@FIN_FINANCIAL_ACCOUNT_ID@ IS NOT NULL AND @FIN_FINANCIAL_ACCOUNT_ID@ <> COALESCE('','-1')) THEN @FIN_FINANCIAL_ACCOUNT_ID@ ELSE
david@18903
    69
(SELECT CASE WHEN ((TO_NUMBER(@AMTACCTDR@) - TO_NUMBER(@AMTACCTCR@)) > 0) THEN FIN_FINANCIAL_ACCOUNT_ID ELSE PO_FINANCIAL_ACCOUNT_ID END FROM C_BPARTNER WHERE C_BPARTNER_ID = @C_BPARTNER_ID@)
david@18903
    70
END
david@18903
    71
AND FIN_FINACC_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID )]]></CODE>
david@18903
    72
<!--959ADF046AFE4F509ABC6E2F41F9DB04-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
david@18903
    73
<!--959ADF046AFE4F509ABC6E2F41F9DB04--></AD_VAL_RULE>
david@18903
    74
david@18909
    75
<!--BE0A211D552A4DE8AC3E6658759B396F--><AD_VAL_RULE>
david@18909
    76
<!--BE0A211D552A4DE8AC3E6658759B396F-->  <AD_VAL_RULE_ID><![CDATA[BE0A211D552A4DE8AC3E6658759B396F]]></AD_VAL_RULE_ID>
david@18909
    77
<!--BE0A211D552A4DE8AC3E6658759B396F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
david@18909
    78
<!--BE0A211D552A4DE8AC3E6658759B396F-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
david@18909
    79
<!--BE0A211D552A4DE8AC3E6658759B396F-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
david@18909
    80
<!--BE0A211D552A4DE8AC3E6658759B396F-->  <NAME><![CDATA[FIN_PaymentMethodInFinancialAccount]]></NAME>
david@18909
    81
<!--BE0A211D552A4DE8AC3E6658759B396F-->  <TYPE><![CDATA[S]]></TYPE>
david@18909
    82
<!--BE0A211D552A4DE8AC3E6658759B396F-->  <CODE><![CDATA[EXISTS (SELECT FIN_PAYMENTMETHOD_ID 
david@18909
    83
FROM FIN_FINACC_PAYMENTMETHOD 
david@18909
    84
WHERE FIN_FINANCIAL_ACCOUNT_ID = @FIN_FINANCIAL_ACCOUNT_ID@ 
david@18909
    85
AND FIN_FINACC_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID)]]></CODE>
david@18909
    86
<!--BE0A211D552A4DE8AC3E6658759B396F-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
david@18909
    87
<!--BE0A211D552A4DE8AC3E6658759B396F--></AD_VAL_RULE>
david@18909
    88
david@18903
    89
<!--D035365830AF466BA81F2AB8ECC6FAE0--><AD_VAL_RULE>
david@18903
    90
<!--D035365830AF466BA81F2AB8ECC6FAE0-->  <AD_VAL_RULE_ID><![CDATA[D035365830AF466BA81F2AB8ECC6FAE0]]></AD_VAL_RULE_ID>
david@18903
    91
<!--D035365830AF466BA81F2AB8ECC6FAE0-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
david@18903
    92
<!--D035365830AF466BA81F2AB8ECC6FAE0-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
david@18903
    93
<!--D035365830AF466BA81F2AB8ECC6FAE0-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
david@18903
    94
<!--D035365830AF466BA81F2AB8ECC6FAE0-->  <NAME><![CDATA[FIN_GLItemInNaturalTree]]></NAME>
david@18903
    95
<!--D035365830AF466BA81F2AB8ECC6FAE0-->  <TYPE><![CDATA[S]]></TYPE>
david@18903
    96
<!--D035365830AF466BA81F2AB8ECC6FAE0-->  <CODE><![CDATA[(AD_ISORGINCLUDED(ad_org_id, @AD_ORG_ID@, ad_client_id)<>'-1'  OR AD_ISORGINCLUDED(@AD_ORG_ID@, ad_org_id, ad_client_id)<>'-1')]]></CODE>
david@18903
    97
<!--D035365830AF466BA81F2AB8ECC6FAE0-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
david@18903
    98
<!--D035365830AF466BA81F2AB8ECC6FAE0--></AD_VAL_RULE>
david@18903
    99
ioritz@18100
   100
<!--E00B19370995405C8014D48E2DE98FD1--><AD_VAL_RULE>
ioritz@18100
   101
<!--E00B19370995405C8014D48E2DE98FD1-->  <AD_VAL_RULE_ID><![CDATA[E00B19370995405C8014D48E2DE98FD1]]></AD_VAL_RULE_ID>
ioritz@18100
   102
<!--E00B19370995405C8014D48E2DE98FD1-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
ioritz@18100
   103
<!--E00B19370995405C8014D48E2DE98FD1-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
ioritz@18100
   104
<!--E00B19370995405C8014D48E2DE98FD1-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
ioritz@18100
   105
<!--E00B19370995405C8014D48E2DE98FD1-->  <NAME><![CDATA[AD_Org show product's child organizations]]></NAME>
ioritz@18100
   106
<!--E00B19370995405C8014D48E2DE98FD1-->  <DESCRIPTION><![CDATA[It only shows the child organizations of the organization of the product.]]></DESCRIPTION>
ioritz@18100
   107
<!--E00B19370995405C8014D48E2DE98FD1-->  <TYPE><![CDATA[S]]></TYPE>
ioritz@18100
   108
<!--E00B19370995405C8014D48E2DE98FD1-->  <CODE><![CDATA[AD_ISORGINCLUDED(ad_org.ad_org_id, @Product_Org@, ad_org.ad_client_id)<>-1 AND IsReady = 'Y']]></CODE>
ioritz@18100
   109
<!--E00B19370995405C8014D48E2DE98FD1-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
ioritz@18100
   110
<!--E00B19370995405C8014D48E2DE98FD1--></AD_VAL_RULE>
ioritz@18100
   111
david@18903
   112
<!--E491153CCBEE49A1842A7CC8544929DD--><AD_VAL_RULE>
david@18903
   113
<!--E491153CCBEE49A1842A7CC8544929DD-->  <AD_VAL_RULE_ID><![CDATA[E491153CCBEE49A1842A7CC8544929DD]]></AD_VAL_RULE_ID>
david@18903
   114
<!--E491153CCBEE49A1842A7CC8544929DD-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
david@18903
   115
<!--E491153CCBEE49A1842A7CC8544929DD-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
david@18903
   116
<!--E491153CCBEE49A1842A7CC8544929DD-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
david@18903
   117
<!--E491153CCBEE49A1842A7CC8544929DD-->  <NAME><![CDATA[FIN_BusinessPartnerInNaturaTreeAndCustomerOrVendor]]></NAME>
david@18903
   118
<!--E491153CCBEE49A1842A7CC8544929DD-->  <TYPE><![CDATA[S]]></TYPE>
david@18903
   119
<!--E491153CCBEE49A1842A7CC8544929DD-->  <CODE><![CDATA[(AD_ISORGINCLUDED(ad_org_id, @AD_ORG_ID@, ad_client_id)<>'-1'  OR AD_ISORGINCLUDED(@AD_ORG_ID@, ad_org_id, ad_client_id)<>'-1')
david@18903
   120
AND ((((TO_NUMBER(@AMTACCTDR@) - TO_NUMBER(@AMTACCTCR@)) > 0) AND (ISCUSTOMER = 'Y' OR C_BPARTNER_ID = @C_BPARTNER_ID@))
david@18903
   121
OR  (((TO_NUMBER(@AMTACCTDR@) - TO_NUMBER(@AMTACCTCR@)) < 0) AND (ISVENDOR = 'Y' OR C_BPARTNER_ID = @C_BPARTNER_ID@)))
david@18903
   122
]]></CODE>
david@18903
   123
<!--E491153CCBEE49A1842A7CC8544929DD-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
david@18903
   124
<!--E491153CCBEE49A1842A7CC8544929DD--></AD_VAL_RULE>
david@18903
   125
eduardo@11085
   126
<!--FF8080812E448A62012E44943A160017--><AD_VAL_RULE>
eduardo@11085
   127
<!--FF8080812E448A62012E44943A160017-->  <AD_VAL_RULE_ID><![CDATA[FF8080812E448A62012E44943A160017]]></AD_VAL_RULE_ID>
eduardo@11085
   128
<!--FF8080812E448A62012E44943A160017-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
eduardo@11085
   129
<!--FF8080812E448A62012E44943A160017-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
eduardo@11085
   130
<!--FF8080812E448A62012E44943A160017-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
eduardo@11085
   131
<!--FF8080812E448A62012E44943A160017-->  <NAME><![CDATA[APRM_Process Reconciliation valid actions]]></NAME>
eduardo@11085
   132
<!--FF8080812E448A62012E44943A160017-->  <TYPE><![CDATA[S]]></TYPE>
eduardo@11087
   133
<!--FF8080812E448A62012E44943A160017-->  <CODE><![CDATA[((@Process_Reconciliation@ = 'P' AND AD_Ref_List.value='P') OR (@Process_Reconciliation@ = 'R' AND AD_Ref_List.value='R') OR (@Process_Reconciliation@ is null))]]></CODE>
eduardo@11085
   134
<!--FF8080812E448A62012E44943A160017-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
eduardo@11085
   135
<!--FF8080812E448A62012E44943A160017--></AD_VAL_RULE>
eduardo@11085
   136
eduardo@14115
   137
<!--FF808081332719060133271E5BB1001B--><AD_VAL_RULE>
eduardo@14115
   138
<!--FF808081332719060133271E5BB1001B-->  <AD_VAL_RULE_ID><![CDATA[FF808081332719060133271E5BB1001B]]></AD_VAL_RULE_ID>
eduardo@14115
   139
<!--FF808081332719060133271E5BB1001B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
eduardo@14115
   140
<!--FF808081332719060133271E5BB1001B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
eduardo@14115
   141
<!--FF808081332719060133271E5BB1001B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
eduardo@14115
   142
<!--FF808081332719060133271E5BB1001B-->  <NAME><![CDATA[APRM_Process Reconciliation valid actions New]]></NAME>
eduardo@14115
   143
<!--FF808081332719060133271E5BB1001B-->  <TYPE><![CDATA[S]]></TYPE>
eduardo@14115
   144
<!--FF808081332719060133271E5BB1001B-->  <CODE><![CDATA[((@Processed@ = 'N' AND AD_Ref_List.value='P') OR (@Processed@ = 'Y' AND AD_Ref_List.value='R'))]]></CODE>
eduardo@14115
   145
<!--FF808081332719060133271E5BB1001B-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
eduardo@14115
   146
<!--FF808081332719060133271E5BB1001B--></AD_VAL_RULE>
eduardo@14115
   147
staff@10770
   148
</data>