deduction element value is not converting into bas
Posted: Tue Jun 21, 2011 2:45 pm
Hi All,
I have created an element that is voluntary deduction input currency is KWD and output is BHD and write the following formula, it is working fine but not converting into output currency, can anyone help this out
DEFAULT FOR ASG_SALARY IS 0
DEFAULT FOR Social_Security_deduction_for_GCC_PERCENTAGE_ENTRY_VALUE is 0
DEFAULT FOR Social_Security_deduction_for_GCC_AMOUNT_ENTRY_VALUE is 0
SS_DEDUCTION = 0
Percentage = 0
Percentage = Social_Security_deduction_for_GCC_PERCENTAGE_ENTRY_VALUE
IF Percentage > 0 THEN
(
SS_DEDUCTION =(ASG_SALARY * Percentage ) /100
)
ELSE
(
SS_DEDUCTION = Social_Security_deduction_for_GCC_AMOUNT_ENTRY_VALUE
)
RETURN SS_DEDUCTION
I have created an element that is voluntary deduction input currency is KWD and output is BHD and write the following formula, it is working fine but not converting into output currency, can anyone help this out
DEFAULT FOR ASG_SALARY IS 0
DEFAULT FOR Social_Security_deduction_for_GCC_PERCENTAGE_ENTRY_VALUE is 0
DEFAULT FOR Social_Security_deduction_for_GCC_AMOUNT_ENTRY_VALUE is 0
SS_DEDUCTION = 0
Percentage = 0
Percentage = Social_Security_deduction_for_GCC_PERCENTAGE_ENTRY_VALUE
IF Percentage > 0 THEN
(
SS_DEDUCTION =(ASG_SALARY * Percentage ) /100
)
ELSE
(
SS_DEDUCTION = Social_Security_deduction_for_GCC_AMOUNT_ENTRY_VALUE
)
RETURN SS_DEDUCTION