Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- as_plan_md = inv_plprv.ids_data.object.plprv_bn_rt_md[1]
- IF as_sal_md = 'B' AND (as_plan_md = 'WC' OR as_plan_md = 'WW') THEN
- ldec_cnv_sal = adec_sal_amt * 2.16666/4.33333
- ELSEIF as_sal_md = 'B' AND as_plan_md = 'SW' THEN
- ldec_cnv_sal = adec_sal_amt * 2.16666/2
- ELSEIF as_sal_md = 'B' AND (as_plan_md = 'MR' OR as_plan_md = 'MC' OR as_plan_md = 'MO' OR as_plan_md = 'MW') THEN
- ldec_cnv_sal = adec_sal_amt * 2.16666
- ELSEIF as_sal_md = 'B' AND (as_plan_md = 'BC' OR as_plan_md = 'BW') THEN
- ldec_cnv_sal = adec_sal_amt
- ELSEIF as_sal_md = 'W' AND (as_plan_md = 'BC' OR as_plan_md = 'BW') THEN
- ldec_cnv_sal = adec_sal_amt * 2
- ELSEIF as_sal_md = 'W' AND as_plan_md = 'SW' THEN
- ldec_cnv_sal = adec_sal_amt * 2.16666
- ELSEIF as_sal_md = 'W' AND (as_plan_md = 'MR' OR as_plan_md = 'MC' OR as_plan_md = 'MO' OR as_plan_md = 'MW') THEN
- ldec_cnv_sal = adec_sal_amt * 4.33333
- ELSEIF as_sal_md = 'W' AND (as_plan_md = 'WC' OR as_plan_md = 'WW') THEN
- ldec_cnv_sal = adec_sal_amt
- ELSEIF as_sal_md = 'M' AND (as_plan_md = 'WC' OR as_plan_md = 'WW') THEN
- ldec_cnv_sal = adec_sal_amt/4.33333
- ELSEIF as_sal_md = 'M' AND (as_plan_md = 'BC' OR as_plan_md = 'BW') THEN
- ldec_cnv_sal = adec_sal_amt /2.16666
- ELSEIF as_sal_md = 'M' AND as_plan_md = 'SW' THEN
- ldec_cnv_sal = adec_sal_amt /2
- ELSEIF as_sal_md = 'M' AND (as_plan_md = 'MC' OR as_plan_md = 'MO' OR as_plan_md ='MR' OR as_plan_md = 'MW') THEN
- ldec_cnv_sal = adec_sal_amt
- ELSEIF as_sal_md = 'S' AND (as_plan_md = 'WC' OR as_plan_md = 'WW') THEN
- ldec_cnv_sal = adec_sal_amt * 2/4.33333
- ELSEIF as_sal_md = 'S' AND (as_plan_md = 'BC' OR as_plan_md = 'BW') THEN
- ldec_cnv_sal = adec_sal_amt * 2/2.16666
- ELSEIF as_sal_md = 'S' AND (as_plan_md = 'MR' OR as_plan_md = 'MC' OR as_plan_md = 'MO' OR as_plan_md = 'MW') THEN
- ldec_cnv_sal = adec_sal_amt * 2
- ELSEIF as_sal_md = 'S' AND as_plan_md = 'SW' THEN
- ldec_cnv_sal = adec_sal_amt
- ELSEIF as_sal_md = 'H' AND (as_plan_md = 'WW' OR as_plan_md = 'WC') THEN
- ldec_cnv_sal = adec_sal_amt * al_prd_hrs_num
- ELSEIF as_sal_md = 'H' AND (as_plan_md = 'BW' OR as_plan_md = 'BC') THEN
- ldec_cnv_sal = adec_sal_amt * al_prd_hrs_num * 2
- ELSEIF as_sal_md = 'H' AND as_plan_md = 'SW' THEN
- ldec_cnv_sal = adec_sal_amt * al_prd_hrs_num * 2.16666
- ELSEIF as_sal_md = 'H' AND (as_plan_md = 'MR' OR as_plan_md = 'MC' OR as_plan_md = 'MO' OR as_plan_md = 'MW') THEN
- ldec_cnv_sal = adec_sal_amt * al_prd_hrs_num * 4.33333
- ELSEIF as_sal_md = 'Y' AND (as_plan_md = 'WC' OR as_plan_md = 'WW') THEN
- ldec_cnv_sal = adec_sal_amt/52
- ELSEIF as_sal_md = 'Y' AND (as_plan_md = 'BC' OR as_plan_md = 'BW') THEN
- ldec_cnv_sal = adec_sal_amt/26
- ELSEIF as_sal_md = 'Y' AND as_plan_md = 'SW' THEN
- ldec_cnv_sal = adec_sal_amt/24
- ELSEIF as_sal_md = 'Y' AND (as_plan_md = 'MR' OR as_plan_md = 'MC' OR as_plan_md = 'MO' OR as_plan_md = 'MW' ) THEN
- ldec_cnv_sal = adec_sal_amt/12
- ELSEIF as_sal_md = 'Y' AND (as_plan_md = 'YC' OR as_plan_md = 'YW') THEN
- ldec_cnv_sal = adec_sal_amt
- END IF
- adec_conv_sal_amt = ldec_cnv_sal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement