Proration

Hi all

I have an obligation to pay compensation based on the mentioned accroding global values to grades. I need to pay the amount in proportion to the employees based on their eligibility.

rank 1-2-100
grade 3-4-200 etc...

Now, if the grade of the official is changed in the middle of the month as for ex
If the EMP grade changes 11 it must be paid
the 1st to the 10th 100 and 200 from 11 to 30.

How can I go about...

I use under formula to achieve this objective

----------------------------------------------------------------------
DEFAULT FOR ELIGIBLE_AMOUNT IS 0
DEFAULT IS FOR PRORATE_START '' 01-JAN-1951 (DATE)
DEFAULT IS FOR PRORATE_END '' 31-DEC-4712 (DATE)
DEFAULT IS FOR PAY_PROC_PERIOD_END_DATE '' 31-DEC-4712 (DATE)
DEFAULT IS FOR PAY_PROC_PERIOD_START_DATE '' 01-JAN-1951 (DATE)

/ * Local variables * /.

DEFAULT for L_Amount IS 0
DEFAULT for L_pay IS 0

/ * INPUT section * /.

THE ENTRIES ARE ELIGIBLE_AMOUNT, PRORATE_START (DATE), PRORATE_END (DATE)


/ * NO proration * /.

IF PRORATE_START = TO_DATE('01-JAN-1951','DD-MON-YYYY') AND PRORATE_END = TO_DATE('31-DEC-4712','DD-MON-YYYY') THEN
L_pay = ELIGIBLE_AMOUNT

/ Proportional calculating * /.
ON THE OTHER
(
L_Amount =(ELIGIBLE_AMOUNT*12)/365 / * gives the amount eligible for a day * /.
L_pay = L_Amount * (DAYS_BETWEEN (PRORATE_END, PRORATE_START) + 1).
)
RETURN L_pay

------------------------------------------------------------------------------
My doubt is how the beginning of proration and the end date will be affected
and what must be the condition in case of groups...

Thanks in advance,
SRS.

OK it still applies, even if your logical formula must have something in place as:

IF ASG_GRADE = "GRADE1" OR ASG_GRADE = "GRADE2" THEN
(value = )
ELSE IF etc.

Personally, I would be inclined to do as a table defined by the user, then make a GET_TABLE_VALUE by passing in the rank (instead of an overall value, I mean)

If you have this kind of logic, the DB corresponding quality should match what is appropriate to , so as long you do your daily val * no of days type calculation, then you should properly be pro-rating

Clive

Tags: Oracle Applications

Similar Questions

  • Event-based proration formula group

    follwing text is mentioned in the user's guide for formula OracleFast:

    Write formulas of proration
    When the payroll running encounters an event (such as a change of category) that you have
    _defined as an event apportionment to the element being processed, it creates two execution results_
    for the element - one for the period of pay until the day before the event and the other of
    the date of the event for the end of the period. You define a formula to handle this
    proration for part of treatment


    Can someone tell why do two execution results? I don't need only one result!

    Thanks in advance,

    Hi user597685

    I was just referring to GET_ASSIGNMENT_STATUS formula you to create a custom function mentioning. So instead of using the seeded GET_ASSIGNMENT_STATUS formula function, create a custom formula similar to the above but referring to a different pl/sql function that must be something like below.

    function xx_get_Assignment_Status
    (p_assignment_id number
    p_effective_date IN Date) number IS back

    CURSOR csr_get_asg_status (p_assignment_id p_effective_date DATE NUMBER) IS
    SELECT decode(past.per_system_status,'ACTIVE_ASSIGN',1,'SUSP_ASSIGN',2,'TERM_ASSIGN',3,4)
    BY the ADP per_all_assignments_f.
    last per_assignment_status_types
    WHERE paaf.assignment_id = p_assignment_id
    AND p_effective_date BETWEEN paaf.effective_start_date AND paaf.effective_end_date
    AND paaf.assignment_status_type_id = past.assignment_status_type_id;

    number of l_return;
    BEGIN
    OPEN csr_get_asg_status (p_assignment_id, p_effective_date);
    SEEK csr_get_asg_status INTO l_status;
    CLOSE Csr_get_asg_status;

    RETURN l_status;
    END;

    This function returns 1 for the active state of the assignment, 2 suspended, completed 3 and 4 for the other. Amend accordingly the logical formula. This should solve your problem.

    Kind regards
    Sharath

  • How to calculate the n prorations retained earnings

    When I am trying to enter code allocation House fast proration formula it gives me error. This same code works very well with the base salary only FF but with room allowance and other allowances n deducitons its gives me the following error: -.
    -------------------------------------------------------------------------------------------------------------
    APP-FF-33065: line 68: only the data base of points or input variables can be missed.

    Cause: You specified an item to be in default, which is not an element of database or an input variable.

    Action: Use an input variable or database in the default statement. If you want to change the value of a local variable, simply assign a value to it. You can change the global variable values using the form to handle Globals.
    ------------------------------------------------------------------------------------------------------------
    Now, the line 68 refers to the next line that I gave to my quick formula:

    IF (prorate_start did not fail) then
    (
    l_days = days_between (prorate_end, prorate_start) + 1
    day_in_Month = days_between (PAY_PROC_PERIOD_END_DATE, PAY_PROC_PERIOD_START_DATE) + 1
    House_allowance = (House_allowance * l_days) / day_in_Month
    House_allowance = (House_allowance)
    House_allowance2 = (House_allowance)
    House_allowance_tzs =(House_allowance*EXCHANGE_RATE1)
    )

    Please note that the folloing was referred to as a default value in the FF:

    the default for prorate_end is January 1, 1900 "(date)
    the default for prorate_start is January 1, 1900 "(date)
    default value for PAY_PROC_PERIOD_END_DATE IS 1 January 1950 ' (date)
    default value for PAY_PROC_PERIOD_START_DATE IS 1 January 1950 ' (date)

    I am trying to calculate the employee's salary n deductions based on the number of days the employee has worked.

    Please help/help me!

    I guess you need to add 'prorate_start' to the part "entries are" your quick formula. Same of course for the prorate_end (date).

  • Hey, I need help.

    OK so I had this drive hard proratable. and when I move things him she just copy it... keep a version of the old place, I like, I want to move... How do I change this setting? Thank you.

    You must press the option button during the movement of content - that changes the copy to move

  • Consolidation of multiple subscriptions

    Can I combine the monthly date of all subscriptions are charged?  Example - I have Netflix, HBO now, Hulu, iCloud, storage, etc., and I want all in one monthly payment.  This makes it easy when using my accounts.

    It would be nice wouldn't it, but I don't think that the system is designed to do.

    However, you can turn off auto-renewal on maybe all but iCloud Storage and re - activate subscriptions to coincide with the iCloud (or other) billing date.   This would mean of course you can have several days without some services in order to align the date of renewal, but I don't think that there is an easier way to allowing prorating suite subscription to cover "the gap."

    It is a good idea, however, could be useful to send your comments as an improvement of the functionality:

    http://www.Apple.com/feedback/AppleTV.html

    In addition, I don't know if you get iTunes gift card offerings in your country, but several supermarkets in the United Kingdom offer 15-20% on one or two times a year card eg £25 to £20 - as these subscriptions will come first store credit if you have I found that I can save a significant amount on periodic contributions and purchases of tvOS/iOS/MAS by buying in advance.

  • HP Compaq DC7800 small form Fa: Nvidia GeForce 8800 GT 512 MB vs. HP Compaq DC7800 Small Form Factor

    Hello

    I'm not too familiar with the hardware upgrades, so I wonder if a Nvidia GeForce 8800 GT 512 MB would be compatible with my HP Compaq DC7800 Small Form Factor?

    Thanks for any help!

    Hello:

    Here is the link to the plug for the GeForce 8800GT...

    http://www.GeForce.com/hardware/desktop-GPUs/GeForce-8800-GT/specifications

    Certainly, this card will not work in your machine for two reasons.

    1. he needs a power outlet extra that doesn't have food dc7800.

    2. the draw of the power of the card (105W), is too much for the PCIe x 16 slot 25W prorated and 240W power your PC.

    These PCs is designed for light desktop for administration.

    If you want to add a video card, it must be a down a profile that comes with low profile brackets in the area.

    I recommend the AMD HD 6450 or Nvidia GT-610 low profile cards that will work within the limits of the power supply of your PC has.

  • iTunes Radio we removed! Very disappointed!

    As a subscribed game iTunes, I was sold is worth a year of advertising free iTunes radio. I am very disappointed that Apple has decided to revoke this privilege without any offer of refund prorated. The commercial-free radio was my only reason for iTunes corresponds to the subscription. Something apple doesn't realize is that I regularly discover new artists on iTunes radio and buy their music. In my opinion, $120 / year is too expensive for the radio. Looks like I'll go back to Pandora and commercial interruptions.

    I've lost all of a sudden too my iTunes game commercial-free radio service. I received no notice or explanation.

    After that, Apple really expects me to spend my money on another brilliant argumentation of sale?

    No thanks, Apple.

  • Sorry, another stupid question of memory... 5300 vs 6400


    Fix!

    The speed of the memory on systems T6x and X6x bus is only 667 MHz (PC2-5300), if you don't win anything by inserting the faster RAM (800 MHz PC2-6400) prorated in these systems, although the system will accept this type of RAM... The 6400 RAM won't work at a speed of 667 MHz.

  • Sony Xperia Z3 repair

    Hello
    I bought my Xperia Z3 on May 1, 2015.
    After 2 months of using my device, I noticed lack pixels on my screen. 5 July 2015 left the phone in "perfect condition" in the store three to get it repaired.
    Phone came back on July 15, no fixed (missing pixels always there), but also Sbe damaged my phone. There was a dent and scratches on the frame. I sent it to Sbe immediately on July 15. I was happy when I finally received a message on July 31, saying that my device is ready for collection. Went to the three store and... Screen has been repaired, weft was repaired, but the rear seat was not properly sealed (asked on the sides). SBE must use the new adhesive and attached whenever the phone is repaired, but they did not. I could see old, dirty sealing between the back cover and frame. Ask three store worker what I can do now. He said: "send again". Then I left the phone for another repair...
    Also, I rang the customer service and asked for the replacement of the handset. They said they can't give me the replacement and I need to wait for my phone to come back repaired (or not).
    I'm sure that the phone is going back with another problem, but I'm not sure what will be wrong this time.

    I don't think that my phone will be impermeable to water after these repairs. Will they used old joint between the rear cover and the frame of the last time that I'm sure they were not replace another as speaker attached when they replaced part of my phone.

    Any ideas what can do at this point?

    Thank you

    Service centers are supposed to inspect and perform a test of pressure or depression that checks the capacity waterproof which seems not to have happened - according to your laws of the consumer that you can ask if, in the EU you are not satisfied and had to send it away to be repaired more than twice I pretty sure allowing you to claim for either a prorated refund or a replacement of the same quality unit or better NOT LESS

    Please contact the Xperia after checking your consumer laws and put your search for them http://www.sonymobile.com/global-en/support/contact-us/

  • BBM change personal PIN code

    I want to change my personal PIN code or delete

    If he in any case please tell me

    You cannot change the personal pin code or delete it.

    If you no longer want to receive the features of the subscription, you can choose to not renew. If you choose not to renew, your subscription will expire at the end of the payment period. Keep in the mind subscription sales are non-refundable. Electing does not renew a subscription will not give you right to a retroactive refund or prorated to the subscription payments that have been made before the expiry of the current subscription period.

    iOS - you will receive a reminder each month to renew your subscription. If you choose not to renew, your subscription will be cancelled at the end of the period.

    BlackBerry 10 - just go to BlackBerry® World®, enter My World and manage your subscriptions.

  • What does Windows Update Push 2 updates, installed months ago?

    WHAZZUP, Microsoft®?

    A week ago, Windows Update has begun to offer me two updates Windows® 8 Note: Important; namely, KB2976978 and KB3008273. In addition, KB2876229 and KB3048778 optional accessories. I want to do this now ready PC for the upgrade to Windows 8. 1 (x 64). In preparation for the upgrade, management says to be sure that all updates for Windows 8 have been installed before you start the upgrade to 8.1.

    Among these, interestingly, Update for Windows 8 for x 64 systems (KB2976978) is already in the updates installed on my PC, with Date = 14/12/2014, and the same is in the control Pane\System and Security\Windows update\View updates history with status = Succeeded, Importance = recommended and the same day, 14/12/2014.

    Similarly, the Update for Windows 8 for x 64 systems (KB3008273) is on my PC, in the window titled updates installed, date = 16/02/2015; and even be found in the control Pane\System and Security\Windows update\ view update history with status Succeeded, Importance = recommended = and date, on 16/02/2015.

    WUA informs me tonight that they are already downloaded again. I always thought, that surely Microsoft Support had made the Windows Update engine intelligent enough to check through my system and check things installed and not installed things and to provide only the updates that would be required.  Now, how smart IS the much-touted Windows Update engine?  Or, is it a good and healthy reason why these same packages, as it seems, are being pushed to double-installation?

    If updates had to be revised and must now be set once again, to patch the original of each, then one would expect Microsoft Support to issue a patch under a new KB number, in order to keep things clean. Or else the need to repeat and insert words in old articles accordingly. I had not seen anything like that on it the last time I checked the Knowledge Base.

    And how is security, to rerun the update, after that that it has already been installed once? Why would I want to run the risk of crashing my computer with something that I already have?  Therefore, need not now?

    I'm not ready to crash my PC, try to upgrade until these anomalies are cleared up. Microsoft has put out useful guidance on this?  I also need to know if KB3032613 is REALLY "Important" Windows update said recently that is is rated Important, because I was unable to install KB3032613 by Windows Update after having NEVER gave me no download for KB2917499, which is named as a precondition before we can install the KB3032613 . I wish Microsoft® technical support staff would inform Windows Update KB2917499 is prior to the "Important" prorated KB3032613 and make sure that the package offered to customers through Windows Update, or else admit it was a mistake to include KB2917499 as a precondition and remove requirements listed in KB3032613, adding a note of errata on this subject. ".

    Instinct of conservation requires that I have to stay away from the Windows 8.1 upgrade until these very valid questions are answered.

    Please notify.

    To avoid confusion and duplication of effort, please post a follow-up later all replies to your thread of origin-online http://answers.microsoft.com/en-us/windows/forum/windows_8-windows_update/what-justifies-the-important-rating-for-the/9faa1d36-7f56-409a-b4f2-220631cae611

  • Reducing balance depreciation Methos

    Hello

    I have an obligation to put in place a reducing balance method of depreciation.

    Asset life - 3 years

    From amortization of PNTS

    1 year - 50%

    Year 2 - 30%

    Year 3 - 20%

    I put the type of method as Table and the basis of calculation than the PNT.

    Then I put the rates as follows.

    My configuration is correct?

    Periods of proportion is based on the calendar of prorated? It's okay?

    Thanks for the replies

    Yes, using cost as the basis of calculation must be correct.

  • How return values when the page of the ofa procedure call

    Hello

    I need to return multiple values in the OPS page calling procedure.i using below code.bt I'm able to return a single value. Please suggest me how to return multiple values.

    Co:

    -----

    If (pageContext.getParameter ("Calc")! = null) {}

    Vo1 OAViewObject = (OAViewObject) am.findViewObject ("AddonBillingVO");

    System.out.println ("VO");

    {if(VO1!=null)}

    CNT int = vo1.getRowCount ();

    System.out.println ("count:" + cnt);

    If (cnt > 0)

    {

    RowSetIterator rs = vo1.createRowSetIterator("empIterator");

    System.out.println ("EMP");

    If (rs! = null)

    {

    While (rs.hasNext ())

    {

    AddonBillingVORowImpl line = rs.next ((AddonBillingVORowImpl));

    System.out.println ("impl");

    If (line! = null)

    {

    String laseid = row.getAttribute("LeaseId").toString ();

    System.out.println (laseid);

    String billingid = row.getAttribute("AddonBillingId").toString ();

    System.out.println (billingid);

    [Serializable] param = {}

    laseid, billingid

    };

    String newupc = (String) am.invokeMethod ("callPLSQLProc", param);

    System.out.println (newupc);

    String myValue = newupc;

    OAMessageTextInputBean textBean = (OAMessageTextInputBean) webBean.findChildRecursive ("prorate");

    textBean.setValue (pageContext, myValue);

    }

    }

    AM:

    --------

    public String callPLSQLProc (String laseid, String billingid)

    {

    OracleCallableStatement callableStatement = null;

    Try

    {

    String callProc = "BEGIN LEASE_PRORATE_PKG. LEASE_PRORATE_PROC1 ' + '.

    "(p_lease_id = >: 1,» +)"

    ' p_billing_id = >: 2 +,

    "(p_prorate = >: 3) +;

    'END;';

    callableStatement (OracleCallableStatement) = getOADBTransaction ().createCallableStatement(callProc,1);

    callableStatement.setInt (1, Integer.parseInt (laseid));

    System.out.println (laseid);

    callableStatement.setInt (2, Integer.parseInt (billingid));

    System.out.println (billingid);

    callableStatement.registerOutParameter(3,OracleTypes.VARCHAR,255);

    callableStatement.execute ();

    String resultMessage = (String) callableStatement.getString (3);

    System.out.println (resultMessage);

    Return resultMessage;

    }

    catch (System.Exception e)

    {

    e.printStackTrace ();

    System.out.println ("execepn");

    throw new OAException (try (), OAException.ERROR);

    }

    printscreen.PNG

    Khalil.

    Hello

    You are the PL/SQL procedure in a loop on the right? Just assign the value to the attribute appropirate.

    if (pageContext.getParameter("Calc")!=null)  {
      OAViewObject vo1 = (OAViewObject)am.findViewObject("AddonBillingVO");
      System.out.println("vo");
      if(vo1!=null) {
      int cnt = vo1.getRowCount();
      System.out.println("count :" + cnt);
      if (cnt > 0){
      RowSetIterator rs = vo1.createRowSetIterator("empIterator");
      System.out.println("emp");
      if (rs != null){
      while (rs.hasNext()){
      AddonBillingVORowImpl row = (AddonBillingVORowImpl) rs.next();
      System.out.println("impl");
      if (row != null){
      String laseid = row.getAttribute("LeaseId").toString();
      System.out.println(laseid);
      String billingid=      row.getAttribute("AddonBillingId").toString();
      System.out.println(billingid);
      Serializable[] param = { laseid,billingid };
      String newupc = (String) am.invokeMethod("callPLSQLProc",param);
      System.out.println(newupc);
      //String myValue = newupc ;
      //OAMessageTextInputBean textBean = (OAMessageTextInputBean)webBean.findChildRecursive("prorate");
      //textBean.setValue(pageContext, myValue);
      row.setAttribute("Prorate",newupc);
      }
      }
      }
      }
      }
    }
    

    Check the last lines. If the attribute name is nothing else than "Pro rata", updated accordingly.

    See you soon

    AJ

  • Script to insert the date of a certain range of periods

    This is my situation. There is a call from thing in convention in Oracle EBS capital proportion.

    I have to make a rule of prorated on a daily basis.

    The first date starts at the year 1942. I can do it manually, but continually press TAB on my keyboard it'll take more than 4 hours to complete all the data until 2015.

    That's why I need a script to enter in the

    START_DATE

    END_DATE

    PRORATE_DATE

    Ex

    1 JANUARY 1949 START_DATE END_DATE 1 JANUARY 1949 PRORATE_DATE 1 JANUARY 1949

    JANUARY 2, 1949 START_DATE END_DATE 2 JANUARY 1949 PRORATE_DATE JANUARY 2, 1949

    JANUARY 3, 1949 START_DATE END_DATE 3 JANUARY 1949 PRORATE_DATE JANUARY 3, 1949

    '

    '

    '

    31 DECEMBER 2015 START_DATE END_DATE DECEMBER 31, 2015 PRORATE_DATE 31 DECEMBER 2015

    Hello

    Here's a way

    INSERT INTO table_x (start_date, end_date, prorate_date)

    WITH params AS

    (

    SELECT DATE ' 1942-01-01' first_date - OR 1949, or something else

    , DATE '' 2015-12-31 AS last_date

    OF the double

    )

    all_dts AS

    (

    SELECT the LEVEL - 1 AS dt + first_date

    OF params

    CONNECT BY LEVEL<= 1="" +="" last_date="" -="">

    )

    SELECT dt, dt, dt

    Of all_dts

    ;

    I hope that answers your question.

    If this isn't the case, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.  After all right on this site, without the parts attached.

    If you ask a DML statement, such as INSERT, INSERT statements, you post (as applicable) will be the content of the or the tables before the DML, and the results will be the State of the or a modified tables when it's all over.

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum:Re: 2. How can I ask a question on the forums?

  • Implementation of apportionment rules every day for assets

    I'll put up a daily prorated agreement for assets. I know how do it there is no problem.

    However, my problem is that the fiscal year begins January 1, 1960 and I do a daily pro rata rule up to the current date.

    I have to press TAB on my keyboard. But it's a very long process.

    I would like to know if there is another way to do it.

    Can I just set it for a day. Then when the system calculates depreciation it will automatically fill?

    Hello

    Then:

    When executing Run depreciation Dec-2015, if there is no record for the next exercise in the current calendar or in proportion to the Conventions, active Oracle automatically sets up the exercise periods 2016

    Anyway,.

    Good luck

Maybe you are looking for