Page 1 of 1

deduction element value is not converting into bas

Posted: Tue Jun 21, 2011 2:45 pm
by ssalipk
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

Posted: Wed Jun 22, 2011 7:56 am
by ssalipk
hi any update

Posted: Fri Jun 24, 2011 7:25 pm
by eng_ahmad_2007
Hi ssalipk,

I think you should define the conversion rates somewhere. I am trying to recall. I will investigate it and come back to you soon. If you solved the issue, please post it so that everyone can benefit from it...

Kind Regards,

Ahmad Ghanem

Posted: Sun Jun 26, 2011 6:09 am
by ssalipk
Thanks Ahmed the conversion rates I have already define under GL Daily Rates but no success.

Posted: Tue Jun 28, 2011 10:51 am
by ssalipk
Hi All Any Update!