Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
webitm-fin-advSupp-20
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ketan Patil
webitm-fin-advSupp-20
Commits
7ad5951b
Commit
7ad5951b
authored
Jun 09, 2022
by
Ketan Patil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
949be0e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
module-resource/SQL/DDF_CHECK_ADV_PENDING.sql
module-resource/SQL/DDF_CHECK_ADV_PENDING.sql
+30
-0
No files found.
module-resource/SQL/DDF_CHECK_ADV_PENDING.sql
0 → 100644
View file @
7ad5951b
create
or
replace
FUNCTION
DDF_CHECK_ADV_PENDING
(
ls_sundry_code
in
char
,
ls_sundry_type
in
char
)
RETURN
char
is
ls_adv_exist
char
(
1
);
cnt
number
(
3
);
fin_cnt
number
(
3
);
BEGIN
ls_adv_exist
:
=
'0'
;
cnt
:
=
0
;
fin_cnt
:
=
0
;
if
length
(
trim
(
ls_sundry_code
))
<>
0
then
select
count
(
*
)
into
fin_cnt
from
finparm
where
prd_code
=
'999999'
and
var_name
=
'ADV_PENDING_ACCT_CD'
;
if
(
fin_cnt
>
0
)
then
select
count
(
*
)
into
cnt
from
misc_payables
where
sundry_type
=
ls_sundry_type
and
sundry_code
=
ls_sundry_code
and
tot_amt
<>
adj_amt
and
acct_code
in
(
select
var_value
from
finparm
where
prd_code
=
'999999'
and
var_name
=
'ADV_PENDING_ACCT_CD'
);
if
(
cnt
>
1
)
then
ls_adv_exist
:
=
'1'
;
else
ls_adv_exist
:
=
'0'
;
end
if
;
else
ls_adv_exist
:
=
'1'
;
end
if
;
end
if
;
RETURN
ls_adv_exist
;
exception
when
NO_DATA_FOUND
then
null
;
END
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment