Help Needed !!!!! in New Hire Proration and Carryover (PTO Accruals)

Dear All,
We are facing a problem in Accrual formula where
Accrual Term is 1-July to 30 June
Accruing Multiplier is 'M'
Accruing Frequency is 3 Months
Accrual Rate is 5 Days
Employee gets Leave at the end of each quarter
1st Quarter (July-Aug-Sep) - 5 Days
2nd Quarter (Oct - Nov - Dec) - 5 Days
3rd Quarter (Jan - Feb - Mar) - 5 Days
4Th Quarter (Apr - May - Jun) - 6 Days
Total 5+5+5+6 = 21 Days
This accrual Plan is working fine for employees joining before the accrual start date of 1-Jul or employees joining on the first date of the first month of any quarter.
But for any employee joining after 1-Jul we should get the prorated leave entitlement
We have identified and developed the logic for the number of days a new joinee would accrue if he joins in the middle of a Accrual period. I am detailing out the following logic
The SQL for this is as follows
SELECT (ROUND((21/365*(fffunc.days_between(:Hire_date,:Current_accrual_Period_End_Date)+1))/5,1)*5)*-1 FROM DUAL
My query to all Fastformula Gurus is that how can i incorporate this leave proration logic for employees joining in the middle of the accrual period into my Accrual Fastformula.
Any help is appreciated guys.
If anyone wants to look at the code for the Accrual fastformula, you guys can Message me on the forum
Cheers
Sachin

To achieve your requirement, you need to change the accrual sub formula PTO_PAYROLL_PERIOD_ACCRUAL. Follow the below steps.
A.Create a pl/sql function :
1. Create a new Pl/Sql Function in similar lines with parameters as p_assignment_id, p_date_earned, p_plan_id and p_number_of_years;
2. The new function should call the pl/sql function per_utility_functions.Get_Accrual_Band passing values of p_plan_id and p_number_of_years.
3. After the above function call, invoke your custom procedure to get the accrual value based on grade (passing p_assignment_id and p_date_earned as parameters).
4. call the procedure per_formula_functions.set_number to set the ceiling value.
So overall your function should like this
FUNCTION <function name>(p_assignment_id NUMBER,p_date_earned DATE,p_plan_id NUMBER, p_number_of_years NUMBER ) RETURN NUMBER IS
< variables declaration>
l_ceiling number;
BEGIN
l_return := per_utility_functions.Get_Accrual_Band(p_plan_id,p_number_of_years);
IF l_return = 1 THEN
return l_return;
ELSE
l_return := <your custom function>(p_assignment_id,p_date_earned,l_ceiling);
l_error := per_formula_functions.set_number('CEILING' ,l_ceiling);
END IF;
END <function name>;
l_error := per_formula_functions.set_number('CEILING' ,l_ceiling);
B. Create a Formula Function with the above pl/sql function with p_assignment_id, p_date_earned, p_plan_id as context usages and p_number_of_years as parameter.
C. Copy the Formula PTO_PAYROLL_PERIOD_ACCRUAL and replace the entry of Get_Accrual_Band with your custom formula function defined in step B.
D. Copy the formula PTO_PAYROLL_BALANCE_CALCULATION and replace the entry of PTO_PAYROLL_PERIOD_ACCRUAL with your custom formula defined in step C.
Hope this helps.
Regards,
Sharath

Similar Messages

  • Help Needed re: New iMac SSD and Apps

    I have a new MTO 27" iMac with the SSD option and I want to maximize the performance of my Apps and OS by having them resident on the SSD and not much else. I don't know what folders and files other than the .app files I need to move from my old PPC to achieve this.  Please help as I am already a little confused about the content of the SSD vs the HDD.  After moderate reading, I'm thinking I just want the OS (Lion) and my Apps on the SSD but I am using the Target Drive process vs Migration assistant.  I already have moved my "out of the box" User home folder and its "Hidden" Library to my HDD on the new imac, but have NOT moved any of my old PPC Apps or other folders to the new iMac yet.
    Should I put my User/Library/Applications Support Folder on my SSD if I mainly want my OS and Apps on the SSD? AND Can I just move/copy the folder to the new iMac using the Target Drive process from my old PPC?
    I'm open to other ideas about what files s/b on SSD

    I've seen a few Discussion Threads regarding these new iMac setups with the two internal drives (SSD + HDD). Some folks are advocating for keeping all Apps/OS files on the SSD exactly as you mention. Then they come up with a scheme for keeping their whole home folder on the HDD and it's seamlessly done so that the Mac doesn't complain that your home folder isn't in the default location.
    http://web.me.com/pondini/AppleTips/SetupOther.html
    This has some tips on how to keep your home folder on the larger HDD instead of on the SSD.

  • Troubleshoting help needed:  My iMac keeps crashing and restarting with a report detail: "spinlock application timed out"  What can I do to fix this?timed out"

    Troubleshooting help needed:  My iMac keeps crashing and restarting with a notice: "Spinlock application timed out"  What can I do?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the page that opens.
    Select the most recent panic log under System Diagnostic Reports. Post the contents — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post shutdownStall, spin, or hang reports.

  • Help needed by new Iphone 4s owner

    Help needed please - both my hubby and I have iphone 4s - I've just gone to download music onto my phone and have somehow managed to download all his stuff onto my phone and lost all of mine Is there anyway I can get my info back and delete his without restoring to back to factory settings (this was the first time I connected mine to the laptop to download and I'm not very good with the computer as you can see from my problem !) xx

    Thank you but I've not managed to download any I tunes yet but have got all his contacts and none of mine - thats what I'm trying to restore (sorry if not clear in question but as I said before I'm useless on computers)

  • Our granddaughter has a ipod. She's getting a iphone and a mini idpad.  what is the best way to set them up. Does she need a new apple id and password or would she use the same one she has for her ipod

    our granddaughter has a ipod. She's getting a iphone and a mini idpad.  what is the best way to set them up. Does she need a new apple id and password or would she use the same one she has for her ipod

    Just use the same one on all devices.

  • Qosmio X500-135 - I need a new the fan and keyboard

    I need a new the fan and keyboard on my Toshiba Qosmio X500-135 (PQX33E-044400DN5) laptop!
    The problem is that I don't know what fan or keyboard (nordic) is actually compatible with my laptop (product number etc) .
    So what fan and keyboard I'm I actually suppose to get for my laptop?

    You can you any keyboard which was released for the Qosmio X500 series.
    But if you need an keyboard with an special language layout, I would recommend you to contact the Toshiba authorized service partner in your country to get such compatible parts.
    Do you know the contact data for ASP available in your country?
    In case you need the contact details, check this page:
    http://www.toshiba.eu/innovation/generic/ASP_SUPPORT/

  • Urgent help needed!! Layout table and Draw layout cell dissapeared.

    I need some urgent help. I'm using CS3 but for a while my
    Layout Table and Draw Layout Cell icons appear greyed and can't use
    them at all. Is there any kind soul out there who knows how to fix
    this? I'm going nuts trying all the possible options but none seem
    to work.
    Help please!!!!!!

    > How would you about designing a page without using html?
    You don't. But I don't recall suggesting that you not use
    HTML. I just
    suggested that you use best-practice HTML, no? Or maybe you
    meant to ask
    how you would go about building your site without learning
    HTML? In that
    case, I think you are outta luck. Using DW without knowing
    HTML is a very
    punishing experience, I'm afraid.
    > PS: A virtual box of 12 bottles of Moet Chandon is
    already on your way!!
    I'd prefer Cristal, please.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Untersberg" <[email protected]> wrote in
    message
    news:g4tj9a$m5o$[email protected]..
    > Ahhhhhh!!!!! They came up!!!! They came up again!!
    > I was on standard mode. Now going back to your
    suggestion, which I really
    > appreciate. How would you about designing a page without
    using html? I'm
    > just
    > redesigning my website at the moment and need it to get
    going urgently,
    > hence
    > the reluctance to start learning HTML at the moment.
    I'll do after but I
    > need
    > to get this up and running fairly quickly.
    >
    > Cheers.
    >
    > PS: A virtual box of 12 bottles of Moet Chandon is
    already on your way!!
    >

  • Help needed with Java 1.4 and xml Runtime problem

    I am working on a java 1.3 and JAXP1.1 written code. Now I want to compile and run it using J2SE 1.4. Here are the import statements from the existing code.
    import org.xml.sax.*;
    import org.xml.sax.helpers.DefaultHandler;
    import org.xml.sax.Locator;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    import org.xml.sax.Attributes;
    import org.xml.sax.XMLReader;
    import org.xml.sax.InputSource;
    import java.sql.*;
    import java.net.*;
    import java.io.*;
    When I run the existing(using java 1.3 and Jaxp1.1) code I have to include the files crimson.jar and jaxp.jar in the windows 2000 CLASSPATH and works fine.
    But when I compile and run it using J2SE 1.4 which has the built in support for the saxp, I thought that I don't have to specify any CLASSPATH for the new 1.4 so I don't specify any Classpath and it gives me the Microsoft "ClassFactory cannot find the requested class" error which means that even thought the new java 1.4 has the xml classes as libraries yet it still requies some .jar files to be listed in the CLASSPATH.
    If I am right then what path will work(i.e what jar class I need to add to the CLASSPATH).
    Thanks for your help.
    RA.

    Thanks for your reply,
    I think I didn't specify when the error occurs. The ClassFactory related error occurs when I run the program, it compiles without any error.
    From what I understood somewhere in the java 1.4 docs, that the new 1.4 has the xml libraries built in by default so one doesn't need to give the classpaths just like we don't give any CLASSPATH for using swing and many of the other java packages. That is one thing.
    Second thing is that I also tried to use the java_xml_pack-spring02 and java_xml_pack-summer02; but non of them include the crimson.jar and the jaxp.jar files in them which are the 2 .jar files that makes the program run fine when used under the java 1.3 with combination of the jaxp1.1(which was downloaded seperately and then the CLASSPATH for it was set.).
    Can you please help what .jar files do I need to use instead. I tried to use the ones that the new java_xml_pack-spring02 and java_xml_pack-summer02 has for the jaxp in them.
    Thanks again.
    RA

  • Mac needs a new battery, servicing and wiping.

    Hi Guys,
    My old Mac needs a new battery as it is literally on its last legs, it also needs to be serviced and wiped as I no longer use it. Im going to take it to the genius bar to get this done.
    However before doing this I am looking at saving all of my itunes folders and emails onto a hard drive. I understand how to do my Itunes but not too sure regarding emails? any help with this would be appreciated it is a Microsoft Exchange address if that helps.
    Also do you think I could get the battery replaced first then save my things and then book another appointment to get it serviced and wiped. As I have never used the genius bar before
    Thanks in advance.

    If you have a MacBook with the removable battery you can get a new third party battery fairly cheap on eBay. Every MacBook from 2006 through Mid 2009 except the Late 2008 Aluminum Unibody and the Late 2009 and 2010 White Unibodies use the same A1185 battery.
    Black Batteries http://shop.ebay.com/i.html?_nkw=macbook+black+battery&_sacat=0&LH_BIN=1&_sop=12 &_dmpt=Laptop_Batteries&_odkw=macbook+white+battery&_osacat=0&_trksid=p3286.c0. m 270.l1313
    White Batteries http://shop.ebay.com/i.html?_nkw=macbook+white+battery&_sacat=0&LH_BIN=1&_sop=12 &_dmpt=Laptop_Batteries&_odkw=macbook+black+battery&_osacat=0&_trksid=p3286.c0. m 270.l1313
      Or for $129 from The Apple Store  http://store.apple.com/us/product/MA566LL/A?mco=MTY3ODQ5OTY

  • Help Needed in Creating Java Class and Java Stored Procedures

    Hi,
    Can anyone tell how can i create Java Class, Java Source and Java Resource in Oracle Database.
    I have seen the Documents. But i couldn't able to understand it correctly.
    I will be helpful when i get some Examples for creating a Java Class, Java Source and Stored Procedures with Java with details.
    Is that possible to Create a Java class in the oracle Database itself ?.
    Where are the files located for the existing Java Class ?..
    Help Needed Please.
    Thanks,
    Murali.v

    Hi Murali,
    Heres a thread which discussed uploading java source file instead of runnable code on to the database, which might be helpful :
    Configure deployment to a database to upload the java file instead of class
    The files for the java class you created in JDev project is located in the myworks folder in jdev, eg, <jdev_home>\jdev\mywork\Application1\Project1\src\project1
    Hope this helps,
    Sunil..

  • Need a new hard drive and ?'s - recommendations?

    need a new main internal hard drive.
    What do you recommend as a minimal size? I need to get it as cheap as possible.
    Do you recommend a store or brand?
    Do I need to make sure it is Mac compatible or are they all?
    I checked out staples.com and found maxtor had a 120 gb drive for $70. There are two kinds Pata and Sata. Is one better than the other?
    Thanks so much!!
    I am in Long Beach, CA

    The cheapest way to buy a drive is to buy oem, that is, a bare drive. This is the kind of drive you will get from New Egg or Other World Computing and most other online stores. If you buy brick-and-mortar, such as Best Buy, you'll get a boxed drive with
    a cable, screws, some (windows) software, and a printed manual - and usually pay significantly more unless you get the unit on sale. You will almost certainly
    have to format the drive to make it Mac compatible, but this is quite easy using Disk Utility. You can use both PATA and SATA drives in your machine, but would have to purchase a SATA pci card to do so, so that's probably out if price is important. I love Western Digital drives in G4s, but I've had good success with Hitachi in my G4. My recommendation would be at least 250g, such as this Western Digital: http://www.newegg.com/Product/Product.aspx?Item=N82E16822144701 - just $70. I don' t like the latest generation of Seagates as they draw a lot of power on startup and cause problems in some systems. Samsung makes great drives - cool running, quiet, fast - but have a slow access time so make a better backup drive than boot drive. Many people love Maxtors in their macs, but certain models run much hotter than other drives, so I avoid them also. If you are still using the original drive, almost any new drive will give you a noticeable boost, so don't sweat it too much. Good Luck.
    mac pro, dual 1.25 g4 - Pioneer 111d, LG H10, Plextor 716UF, LG 4163,Pioneer 112   Mac OS X (10.4.9)   dell 9200, dell xps 400 Benq 1650, Plextor Premium

  • Help needed with 3rd party software and Windows XP on MacBook

    My Brother embroidery software has stopped working on the XP side of my MacBook. After all kinds of uninstalling and installing with support from Brother, they decided the problem is not the software and I should "contact my computer company." Since this is really a Mac, would Apple be able to help me with a Windows issue? The genius bar said no, Microsoft says no, so what is the point of buying a using a dual platform machine if no one takes responsibility for helping? I'm very frustrated and could use help from someone who works on both platforms.

    *"would Apple be able to help me with a Windows issue?"*
    Sorry, but no. Apple does not support third party operating systems and applications.

  • Help needed - what are the Pros and Cons?

    Hi Swing masters! :)
    I was told that I should post this Q here and that Camickr and a few other might have some more specific answers.
    I'm new to Java and programming and trying to establish some good habits from the beginning. Therefore I'm very interested in knowing the Pros and Cons for each end every of the following approaches.
    What is good, what is bad, should some of them be avoided etc?
    I hope someone with Swing experience can answer these questions. Thanks. :)
    Kind regards,
    Stefan
    class ExperimentGUI
        void ExperimentGUI() // Example A
            JFrame content = new JFrame();
            JTextArea textView = new JTextArea();
            textView.setPreferredSize(new Dimension(300,300));
            content.add(textView, BorderLayout.CENTER);
            content.pack();
            content.setLocationRelativeTo(null);
            content.setVisible(true);
    class ExperimentGUI extends JFrame
        void ExperimentGUI() // Example B
            JTextArea textView = new JTextArea();
            textView.setPreferredSize(new Dimension(300,300));
            add(textView, BorderLayout.CENTER);
            pack();
            setLocationRelativeTo(null);
            setVisible(true);
    class ExperimentGUI
        ExperimentGUI() // Example C
            JFrame content = new JFrame();
            JPanel pane = new JPanel(new BorderLayout());
            JTextArea textView = new JTextArea();
            textView.setPreferredSize(new Dimension(300,300));
            pane.add(textView, BorderLayout.CENTER);
            content.setContentPane(pane);
            content.pack();
            content.setLocationRelativeTo(null);
            content.setVisible(true);
    class ExperimentGUI extends JFrame
        ExperimentGUI() // Example D
            JPanel content = new JPanel(new BorderLayout());
            JTextArea textView = new JTextArea();
            textView.setPreferredSize(new Dimension(300,300));
            content.add(textView, BorderLayout.CENTER);
            setContentPane(content);
            pack();
            setLocationRelativeTo(null);
            setVisible(true);
    class ExperimentGUI extends JFrame
        ExperimentGUI() // Example E
            MyPanel pane = new MyPanel();
            setContentPane(pane);
            pack();
            setLocationRelativeTo(null);
            setVisible(true);
    class MyPanel extends JPanel
         public MyPanel() {
            setLayout(new BorderLayout());
            JTextArea textView = new JTextArea();
            textView.setPreferredSize(new Dimension(300,300));
            add(textView, BorderLayout.CENTER);
    class ExperimentGUI extends JFrame
        ExperimentGUI() // Example F
            MyPanel pane = new MyPanel();
            add(pane);
            pack();
            setLocationRelativeTo(null);
            setVisible(true);
    class MyPanel extends JPanel
         public MyPanel() {
            setLayout(new BorderLayout());
            JTextArea textView = new JTextArea();
            textView.setPreferredSize(new Dimension(300,300));
            add(textView, BorderLayout.CENTER);
    }

    Well, in most of the examples I've seen on the net people use "...extends JFrame"Well, I'm probably one of the bigest offenders (in this forum at least)
    google "composition vs inheritance", you'll most likely find some good reads Not know the difference between the two (I'm a problem solver, not a designer), I figured I should take up the challenge.
    So one of the first links I read said:
    Object composition and inheritance are two techniques for reusing functionality in object-oriented systems
    So I'm thinking how do you reuse a JFrame? Maybe if you build the frame with a menu bar or toolbar you could reuse some of the components but you don't reuse the entire frame. So it seems to me that the reuse aspect of inheritance or composition doesn't apply.
    Next link I read said:
    Make sure inheritance models the is-a relationship
    Now this makes sense to me. Lets say I'm creating a MineSweeper Game. Lets create a class with the following signature:
    public class MineSweeper extends JFrameThis obviously does not follow the is-a relationship rule. MineSweeper is-a Game, not a JFrame.
    So, I guess I'll have to update all my examples to use composition, so I don't mislead others on the forum.

  • Need help asap! New to Audition and its freezing. work is not saved!

    So I've edited an audio file and after adding an envelope it's like the program is freezing but not completely. I can use keyboard shortcuts, but I can't click on anything. When I try to click on File or Edit at the top menu, I hear this stupid little chime noise.
    I'm looking in the manual but I can't see a shortcut for saving your work. Is there one?
    I'm an idiot for not saving sooner, but I really don't want to start all over. I'm having to edit an instrumental track along with a version that has the vocals so I can keep track of what I'm doing where. It's been a long and tedious process and I don't have much time to finish.
    Any advice? Can I save somehow with a shortcut?
    Has anyone else come across this problem?
    I saw another user here that was having crashes when he saved, but I ran msconfig and didn't see anything that mentioned supportsoft as a manufacturer or anything like they mentioned, let alone find one that was clicked. I'm running Vista, by the way.
    If someone can help me quickly I would really appreciate it.

    Me again, just thought I'd add a few more details that might help someone understand what's happening.
    When I hold my cursor over any of the controls or buttons on the screen, the little text that usually pops up to explain the action of that particular button doesn't even show up. Nothing with the mouse is working, although the mouse is running the rest of my computer just fine.
    Also, I'm running a new Dell with Vista. I've been using audition for only an hour or so total but it's been fine up until now.
    My best hope is that there is a way to save my work so I can reboot the computer and see if that solves it. Otherwise, I'm screwed.
    Please help!

  • I need help to configure new wrt300n wireless and broadband router

    Just purchased the wrt300n wireless-n-broadband router. The router is not being found.  I have all the cat5 cables connected. I am running windows 2000 with a cable internet connection. There are 4 wired computers on the network I am trying to setup. The internet connection is great if I run it through the modem. I have run the cd-based wizard provided with the router a couple of times. No Luck! Please help!

    you have a cable modem?
    if so you need to reboot the cablemodem so it will see the mac address of the new device your adding to the network.
    if you have ADSL we shall take it a stage further.
    Regards Simon
    NAS: TS-459 Pro - 3.6.1 Build0302T - 4 x 1TB Samsung HD103SJ : EXT4 - APC ES 700VA UPS
    QPKG: WordPress 3.4, TwonkyMedia 6.0.39 QPKG - Zenphoto1.4.2.1 [7802] - phpMyAdmin v3.3.10
    Network: Netgear DG834G V4.01.40 - DGTeam Rev. 0849 -> Cisco RV220W 1.0.4.13, Cisco SLM2008, Dlink DSM-520, Xbox360

Maybe you are looking for

  • Is there a maximum size for and EAR file?

    I'm using Jdeveloper 10.1.3.3.0. I've used it to deploy to OAS before with success. This past week I added a ton of content to the site. Now when I deploy the ear file is over 1GB. It used to be 120MB. During the deploy process the log shows "Deploym

  • Critical Problem with "Data Ownership Authorization"

    Dear Guru's, I am facing a problem with applying Data Ownership Authorizations and badly needing your help. The scenario is as follows. For example "A" is a Product Manager sitting in Mumbai (Main Branch) and person "B" is a Sales Manager sitting in

  • Idoc mbgmcr02 movement type 311 ..  goods movement not possible w/mvmt type

    i am using we19 to create a test idoc...i have the ports and partners filled in...i am using movement type 311..i have the material , the plant, the storage location...the qty..i have the move material, the move plant and move storage location filled

  • Call webdynpro java Web Service from ABAP

    Hello, This is regarding calling portal web service from ABAP. 1. created web service in NWDS and deployed it to portal server 2. created abap proxy to call this web service from abap SE80 transaction 3. created logical portal for the above proxy  LP

  • Express Document: Update Terminated in VL02n -CONNE_IMPORT_WRONG_COMP_TYPE

    Hello friends, Am an abaper (fresher). Actually i wanted spool to be generated when my delivery document is saved in transaction VL02n. But when i save it and come out , am getting an error telling "Express document: Update terminated." When i issue