壹佰网|ERP100 - 企业信息化知识门户

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2977|回复: 3

Oracle HRMS Payroll fast formula PTO 公式示例

[复制链接]
发表于 2008/3/15 12:34:30 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622  。

您需要 登录 才可以下载或查看,没有帐号?注册

x
<P><FONT face=Arial>下面为公式示例, 大家请注意, 这个公式的主要计算逻辑在第二部分的 PKG中.<BR>/* ------------------------------------------------------------------------<BR>&nbsp;&nbsp;&nbsp; NAME : <BR>&nbsp;&nbsp;&nbsp; This formula calculates the start and end dates for a simple multiplier.<BR>&nbsp;&nbsp;&nbsp; This formula calculates the dates between which an assignment is to accrue.<BR>&nbsp;&nbsp; ---------------------------------------------------------------------*/</FONT></P>
<P>DEFAULT FOR ACP_INELIGIBILITY_PERIOD_TYPE IS 'CM'<BR>DEFAULT FOR ACP_INELIGIBILITY_PERIOD_LENGTH IS 0<BR>DEFAULT FOR ACP_CONTINUOUS_SERVICE_DATE IS '4712/12/31 00:00:00' (date)<BR>DEFAULT FOR ACP_ENROLLMENT_END_DATE IS '4712/12/31 00:00:00' (date)<BR>DEFAULT FOR ACP_TERMINATION_DATE IS '4712/12/31 00:00:00' (date)<BR>DEFAULT FOR ACP_ENROLLMENT_START_DATE IS '4712/12/31 00:00:00' (date)<BR>DEFAULT FOR ACP_SERVICE_START_DATE IS '4712/12/31 00:00:00' (date)</P>
<P>default for Accrual_Start_Date is '4712/12/31 00:00:00' (date)<BR>default for Accrual_Latest_Balance is 0</P>
<P>INPUTS ARE<BR>Calculation_Date (date),&nbsp; /*计算日期*/<BR>Accrual_Start_Date (date),/*PTO的开始生效日期*/<BR>Accrual_Latest_Balance</P>
<P>这部分/*是用来计算员工的服务年限的, 因为一般来说年假都是按照服务年限不同, 值不同,*/<BR>Hire_Date_Anniversary = add_months(ACP_SERVICE_START_DATE,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; trunc(months_between(Calculation_Date,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ACP_SERVICE_START_DATE) / 12) * 12)<BR><BR>/*Total_Accrued_PTO,这个是当前计算日期, 该员工享有的年假,CAL_SICK_TOTAL,是我们自己定义的函数*/<BR><BR>Total_Accrued_PTO = CAL_SICK_TOTAL('有薪病假_PTO',ACP_SERVICE_START_DATE,Calculation_Date)<BR>Effective_start_date = Hire_Date_Anniversary<BR>Effective_end_date = ADD_MONTHS(ADD_DAYS(Effective_start_date,-1),12)<BR>Accrual_end_date&nbsp;&nbsp; = Calculation_Date</P>
<P>RETURN Total_Accrued_PTO, Effective_start_date, Effective_end_date, Accrual_end_date</P>
<P>注意 : 必须返回这四个值, 对应 应计额那个form 界面上的日期框, 和本年应有计划. </P>
<P>&nbsp;</P>
发表于 2010/1/22 13:52:19 | 显示全部楼层
ding yi xia
发表于 2010/1/31 23:07:00 | 显示全部楼层
嘿嘿,正在学这个
发表于 2010/2/1 22:14:10 | 显示全部楼层
supporting
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|手机版|壹佰网 ERP100 ( 京ICP备19053597号-2 )

Copyright © 2005-2012 北京海之大网络技术有限责任公司 服务器托管由互联互通
手机:13911575376
网站技术点击发送消息给对方83569622   广告&合作 点击发送消息给对方27675401   点击发送消息给对方634043306   咨询及人才点击发送消息给对方138011526

GMT+8, 2025/11/30 03:10 , Processed in 0.018907 second(s), 18 queries , File On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表