DBA Data[Home] [Help]

PACKAGE BODY: APPS.CSR_UTILITIES

Source


1 package body CSR_UTILITIES as
2 /*$Header: CSRDUTIB.pls 115.6.11510.1 2004/04/16 12:45:53 dwals ship $*/
3 
4   function compare_values
5   (
6     p_val1 in varchar2
7   , p_val2 in varchar2
8   )
9   return boolean is
10   begin
11     return ( p_val1 = fnd_api.g_miss_char or
12              p_val1 = p_val2              or
13              ( p_val1 is null and p_val2 is null )
14            );
15   end compare_values;
16 
17   function compare_values
18   (
19     p_val1 in number
20   , p_val2 in number
21   )
22   return boolean is
23   begin
24     return ( p_val1 = fnd_api.g_miss_num or
25              p_val1 = p_val2             or
26              ( p_val1 is null and p_val2 is null )
27            );
28   end compare_values;
29 
30   function compare_values
31   (
32     p_val1 in date
33   , p_val2 in date
34   )
35   return boolean is
36   begin
37     return ( p_val1 = fnd_api.g_miss_date or
38              p_val1 = p_val2              or
39              ( p_val1 is null and p_val2 is null )
40            );
41   end compare_values;
42 end CSR_UTILITIES;