How to count Sick and Casual (Paid absences) from Annual, Sick and Casual

Dear All,
I have 3 types of paid leaves, Annual, Sick and Casual. I want to know, at the time of running of payroll, how many Sick and Casual leave an employee has availed during the current payroll cycle. Can some one tell me how this can be done?
Regards to all.

Both the Sick and Casual Leaves are comming in my RT as MT10 and MT20 but in there number variable its returning number of hours not worked. Is it possible to change it to number of days unworked?

Similar Messages

  • How to count subforms and add a value to a dropdown?

    Hello!
    I want to make a form with a subform that the user can dublicate by clicking a button (JS: ... addInstance(1);)
    after he dublicates the subform serval times and entered some text in the fields i wanto to count the subforms and go in every subform to get a value from a field.
    Example:
    A form with a subform for Firstname and Lastname.
    the user dublicates the subform 5 times and filled the fields.
    now at the end i want to have a dropdown with all Lastnames from the 5 subforms.
    How can i make this? I looked in serval Samples but i dont find an example for it.
    Thanks for Help.
    Greetings A. Peters

    Hello Stefan!
    Thanks for your good example. It works really good. But when i opened it in the Designer and saves it under a new Name i get some warnings is that normal?
    Here a copy from the log:
    Ungültiger Node-Typ: macroCache
    Ungültiger Node-Typ: macroCache
    PDF-Dokument generieren...
    Skript fehlgeschlagen (Sprache ist javascript; Kontext ist xfa[0].form[0].form1[0].Page1Subform[0].TotalSubform[0].NameDropList[0])
    Skript=var sCurValue = this.rawValue; // save current value before we clear all the items
    var bResetValue = false; // true if sCurValue should remain the list's value
    this.clearItems();
    for (var i = 0; i < Page1Subform._NameSubform.count; i++)
    var oNameSFInstance = Page1Subform.resolveNode("NameSubform[" + i + "]");
    if (oNameSFInstance.FirstName.rawValue != null && oNameSFInstance.LastName.rawValue != null)
    if (!bResetValue && (sCurValue == oNameSFInstance.LastName.rawValue))
    bResetValue = true;
    // fields have been filled
    this.addItem(oNameSFInstance.FirstName.rawValue, oNameSFInstance.LastName.rawValue); // first name is the text, last name is the value
    if (bResetValue)
    this.rawValue = sCurValue;
    Fehler: Ungültiger Abruf-Vorgang für Eigenschaft; instanceManager hat keine Eigenschaft 'count'
    PDF erfolgreich generiert.
    Ungültiger Node-Typ: macroCache
    PDF-Dokument generieren...
    Skript fehlgeschlagen (Sprache ist javascript; Kontext ist xfa[0].form[0].form1[0].Page1Subform[0].TotalSubform[0].NameDropList[0])
    Skript=var sCurValue = this.rawValue; // save current value before we clear all the items
    var bResetValue = false; // true if sCurValue should remain the list's value
    this.clearItems();
    for (var i = 0; i < Page1Subform._NameSubform.count; i++)
    var oNameSFInstance = Page1Subform.resolveNode("NameSubform[" + i + "]");
    if (oNameSFInstance.FirstName.rawValue != null && oNameSFInstance.LastName.rawValue != null)
    if (!bResetValue && (sCurValue == oNameSFInstance.LastName.rawValue))
    bResetValue = true;
    // fields have been filled
    this.addItem(oNameSFInstance.FirstName.rawValue, oNameSFInstance.LastName.rawValue); // first name is the text, last name is the value
    if (bResetValue)
    this.rawValue = sCurValue;
    Fehler: Ungültiger Abruf-Vorgang für Eigenschaft; instanceManager hat keine Eigenschaft 'count'
    PDF erfolgreich generiert.
    Ungültiger Node-Typ: macroCache
    PDF-Dokument generieren...
    Skript fehlgeschlagen (Sprache ist javascript; Kontext ist xfa[0].form[0].form1[0].Page1Subform[0].TotalSubform[0].NameDropList[0])
    Skript=var sCurValue = this.rawValue; // save current value before we clear all the items
    var bResetValue = false; // true if sCurValue should remain the list's value
    this.clearItems();
    for (var i = 0; i < Page1Subform._NameSubform.count; i++)
    var oNameSFInstance = Page1Subform.resolveNode("NameSubform[" + i + "]");
    if (oNameSFInstance.FirstName.rawValue != null && oNameSFInstance.LastName.rawValue != null)
    if (!bResetValue && (sCurValue == oNameSFInstance.LastName.rawValue))
    bResetValue = true;
    // fields have been filled
    this.addItem(oNameSFInstance.FirstName.rawValue, oNameSFInstance.LastName.rawValue); // first name is the text, last name is the value
    if (bResetValue)
    this.rawValue = sCurValue;
    Fehler: Ungültiger Abruf-Vorgang für Eigenschaft; instanceManager hat keine Eigenschaft 'count'
    PDF erfolgreich generiert.
    7 Warnungen/Fehler gemeldet.

  • T-SQL how to count holidays and exclude it in my scenario

    Hi team, 
    My customer will submit a ticket to our system and it valid for 7 days. For example, if customer A submit a ticket on 2015/1/15, the request will be ineffective at 2015/1/22. So, I can directly use the following
    T-SQL code to update the ticket status: 
    update customer_ticket set ticket_status="Cancle"
    where ticket_submit_time < getdate() - 7
    But, if 2015/1/19,2015/1/20,2015/1/21 are holidays, the ticket valid time should extend 3 days, it means the ticket of customer A will be ineffective at 2015/1/25. How can I count the holidays and then extend the valid time of ticket automatically? 
    I have a table to store our holidays, here are the sample data: 
    CREATE TABLE QC_OVERTIME_SCHEDULE
    SCHEDULE_DATE DATE,
    IS_INCLUDED VARCHAR(10),
    UPDATE_TIME DATE,
    MEMO VARCHAR(250)
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] ([SCHEDULE_DATE], [IS_INCLUDED], [UPDATE_TIME], [MEMO]) VALUES (CAST(N'2015-01-19' AS Date), N'0', CAST(N'2015-01-15' AS Date), N'Holiday')
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] ([SCHEDULE_DATE], [IS_INCLUDED], [UPDATE_TIME], [MEMO]) VALUES (CAST(N'2015-01-20' AS Date), N'0', CAST(N'2015-01-15' AS Date), N'Holiday')
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] ([SCHEDULE_DATE], [IS_INCLUDED], [UPDATE_TIME], [MEMO]) VALUES (CAST(N'2015-01-21' AS Date), N'0', CAST(N'2015-01-15' AS Date), N'Holiday')
    Please let me know if you have any ideas, thanks!
    Serena,

    Hi Serana,
    You may reference the below as well. The expiring date of each ticket can be calculated based on the calendar table and the tickets whose expiring date >= GETDATE() will be updated as 'Cancle'.
    CREATE TABLE QC_OVERTIME_SCHEDULE
    SCHEDULE_DATE DATE,
    UPDATE_TIME DATE,
    IsWorkday BIT
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150109' AS Date), CAST(N'20150115' AS Date), 0)
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150110' AS Date), CAST(N'20150115' AS Date), 0)
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150111' AS Date), CAST(N'20150115' AS Date), 0)
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150112' AS Date), CAST(N'20150115' AS Date), 0)
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150113' AS Date), CAST(N'20150115' AS Date), 0)
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150114' AS Date), CAST(N'20150115' AS Date), 0)
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150115' AS Date), CAST(N'20150115' AS Date), 0)
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150116' AS Date), CAST(N'20150115' AS Date), 0)
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150117' AS Date), CAST(N'20150115' AS Date), 0)
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150118' AS Date), CAST(N'20150115' AS Date), 0)
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150119' AS Date), CAST(N'20150115' AS Date), 1)
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150120' AS Date), CAST(N'20150115' AS Date), 1)
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150121' AS Date), CAST(N'20150115' AS Date), 1)
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150122' AS Date), CAST(N'20150115' AS Date), 0)
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150123' AS Date), CAST(N'20150115' AS Date), 0)
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150124' AS Date), CAST(N'20150115' AS Date), 0)
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150125' AS Date), CAST(N'20150115' AS Date), 0)
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150126' AS Date), CAST(N'20150115' AS Date), 0)
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150127' AS Date), CAST(N'20150115' AS Date), 0)
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150128' AS Date), CAST(N'20150115' AS Date), 0)
    INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150129' AS Date), CAST(N'20150115' AS Date), 0)
    --DROP TABLE QC_OVERTIME_SCHEDULE,customer_ticket
    CREATE TABLE customer_ticket
    (id INT,
    ticket_submit_time DATE,
    status_change_date DATE,
    ticket_status VARCHAR(10));
    INSERT INTO customer_ticket VALUES (1,'20150109',NULL,'Open');
    INSERT INTO customer_ticket VALUES (1,'20150115',NULL,'Open');
    INSERT INTO customer_ticket VALUES (1,'20150118',NULL,'''Open');
    INSERT INTO customer_ticket VALUES (1,'20150122',NULL,'Open');
    SELECT * FROM [QC_OVERTIME_SCHEDULE]
    SELECT * FROM customer_ticket
    ;WITH cte AS
    SELECT c.id, c.ticket_submit_time, c.status_change_date,c.ticket_status, t.SCHEDULE_DATE AS expireDate FROM customer_ticket c
    CROSS APPLY
    (SELECT SCHEDULE_DATE FROM (SELECT SCHEDULE_DATE,ROW_NUMBER() OVER(ORDER BY SCHEDULE_DATE) as rn FROM QC_OVERTIME_SCHEDULE WHERE SCHEDULE_DATE>=C.ticket_submit_time AND IsWorkday=0) as tb WHERE RN=8 ) AS t
    UPDATE cte SET status_change_date=GETDATE(),ticket_status='Cancle'
    WHERE expireDate<=GETDATE()
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • How to count the number of 'True' outputs from an 'Equal?' function?

    In my program, I have an 'Equal?' function which returns 'True' whenever x=y. How can I count the number of 'True' and display? I mean, for example, when it say True, the counter should display '1', when it say true next time the counter should display '2', like wise 3, 4.... so on. Can any one help me to do this? Is there any function which conts and display the number of 'true' outcomes?

    Is your event structure in a while loop?  Then that's where the shift register can go.  But for portability a feedback node can be used if the VI is not reentrant.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • How to Plot number and string in one row (data logger counter) ?

    hi all i made data log quantity using Digital Counter via modbus to monitoring quantity and reject that has and Name Operator, Machine and Part Number.
    i have problem about plot the number & string in one row, as shown on the picture below :
    how to move that string on one row ? i attach my vi.
    Thanks~
    Attachments:
    MODBUS LIB Counter.vi ‏39 KB

    Duplicate and answered - http://forums.ni.com/t5/LabVIEW/How-to-Plot-number-and-string-in-one-row-data-logger-counter-via/m-p...

  • How to maintain previous and record count in audit table in SQL Server 2008 r2?

    Hi Experts ,
     Situation :
    in our database we are having few of stored procedures which will drop and recreates the tables and it is scheduled on weekly basis. when this job will run all the stored procedures will drop all the tables and recreate. Now we need to create one table which
    will maintain history of the records.
    my table structure is listed below
    TableName CurrentReocrdCount CurrentExecutionDate PreviousReordCount PreviousExurtiondate
    TEST         1000                   2014-03-30            NULL        NULL
    Test         1500                   2014-04-10            1000      2014-03-30
    Test         2000                   2014-04-11            1500      2014-04-10 
    How do i achive this . 
    franklinsentil

    You need to create audit tables for these. The table will be populated by COUNT value inside stored procedure. Each time it clears the main table and fills new data and also logs count details to audit tables. You can use COUNT(*)  to get count value
    and GETDATE function to get current execution value.
    So proc will look like
    CREATE PROC procname
    @param....
    AS
    --step to drop existing table
    IF OBJECT_ID('tablename') IS NOT NULL
    DROP TABLE <table name>
    --step to fill new table
    SELECT ...
    INTO TableName
    FROM
    --Audit table fill step
    INSERT AuditTable (TableName,CurrentRecordCount,CurrentExecdate,PrevRecordCount,PrevExecDate)
    SELECT TOP 1 'TableName',(SELECT COUNT(*) FROM tableName),GETDATE(),CurrentRecordCount,CurrentExecDate
    FROM AuditTable
    ORDER BY CurrentExecDate DESC
    UNION ALL
    SELECT 'TableName',(SELECT COUNT(*) FROM tableName),NULL,NULL
    WHERE NOT EXISTS (SELECT 1 FROM AuditTable)
    GO
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • My ipod nano was synced by itunes and removed all of my music and game files. I am in the process of adding my music back one cd at a time, but there is no history of tetris that I paid for from the itunes store. How can I get this game back for my ipod?

    My ipod nano was synced by itunes and removed all of my music and game files, and replaced my music with my kids music that they have put into the current itunes library. My music is nowhere to be found on my computer, so now  I am in the long, forever process of adding my music back one cd at a time, but there is no history of tetris that I paid for from the itunes store. How can I get this game back for my ipod?

    Contact iTunes support and explain your situation to them.  They may let you redownload it at no cost.
    http://www.apple.com/support/itunes/contact.html
    If they don't, I'm afraid you'll have to purchase it again.  Sorry.
    B-rock

  • How to count Sent SMS in E63 and other E series No...

    Hi... 
    How to count Sent SMS in E63 and other E series Nokia phone
    I tried some software but they are not made for E63 or else its need to purchase.
    Expecting solution. 

    In Menu-> log you can filter your messages for counting. You can export the log to e.g. Excel on PC with LogExport.
    http://tinyhack.com/freewarelist/s603rd/2007/03/02/logexport/
    ‡Thank you for hitting the Blue/Green Star button‡
    N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009

  • How should I do if I paid monthly payment twice for a month. One is by Auto payment and the other is by hand... Is it possible to get refund? don't I need to pay for it next time?

    How should I do if I paid monthly payment twice for a month. One is by Auto payment and the other is by hand... Is it possible to get refund? don't I need to pay for it next time?

    I know a couple others that waited for two billing cycles but it will come back as a credit on that account.

  • I have imported a csv from my mortgage repayments, my father and I pay seperate amounts. I am trying to show how much I have paid vs what he has paid, how much is owed and what % we own.. We are 50/50 on the property

    I have imported a csv from my mortgage repayments, my father and I pay seperate amounts. I am trying to show how much I have paid vs what he has paid, how much is owed and what % we own.. We are 50/50 on the property.. Help?

    Hi Spears,
    I not sure what your actual question is.
    Does the CSV file include only your payments? Your payments and your dad's payments as separate items?
    Do you want to com[are ongoing payments, or do you want to compare the current totals paid by each? Is the 'we' in "what we own" collective, or individual? DItto for "how much is owed."
    Too many loose ends to tie down a clear answer.
    Regards,
    Barry

  • Today my money is deducted Rs.60 when I try to download paid applications of any amount and I am getting message transaction declined, so why my money is deducted. I lost almost Rs 480 rupees . So how to get refund and how to make card working?

    Today my money is deducted Rs.60 when I try to download paid applications of any amount and I am getting message transaction declined, so why my money is deducted. I lost almost Rs 480 rupees . So how to get refund and how to make card working?

    Today my money is deducted Rs.60 when I try to download paid applications of any amount and I am getting message transaction declined, so why my money is deducted. I lost almost Rs 480 rupees . So how to get refund and how to make card working?

  • How to get count,index and compare to arraylists

    hi
    how to get count,index and comparing of 2 arraylist.... plz suggest me asap...

    How is your question related to JDBC? And what have you done so far with your code?

  • How do I open and use this app after I have paid for my subscription? I previously downloaded Primeir Pro CC for the trial and when I try to open the app it says my trial has ended and there is no other option to sign in and use the app?

    how do I open and use this app after I have paid for my subscription? I previously downloaded Primeir Pro CC for the trial and when I try to open the app it says my trial has ended and there is no other option to sign in and use the app?

    Remove all current Adobe software.  Download Adobe Cleaner Follow instructions.

  • Since converting my mobileme account into an icloud account, my free 5GB of storage has become a paid for extra 20GB without my requesting it. How can this happen, and has anyone else had this happen to them?

    Since converting my mobileme account into an icloud account, my free 5GB of storage has become a paid for extra 20GB without my requesting it. How can this happen, and has anyone else had this happen to them?

    To clarify: you are not being charged for the extra storage - it's complimentary to reflect the fact that you had storage in MobileMe. At the end of June it will disappear unless you care to pay to renew it.

  • Ive paid my cc membership and have lightroom 5 how do I download and us photoshop cc

    ive paid my cc membership and have lightroom 5 how do I download and us photoshop cc

    Moving this discussion to the Creative Cloud Download & Install forum.
    Cwppix for information on how to install the Adobe Creative applications included with your membership please see Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html.

Maybe you are looking for

  • I have a 2007 macbook and I am wondering what is the best external hard drive for my Mac?

    What is the best external hard drive for a 2007 Macbook?

  • Outlook 2010 slow after itunes update

    when i uipdated my itunes today the opening of Outlook 2010 now takes a couple minutes instead of a couple seconds.  i tried restoring to a backup point and redoing with the same result??  suggestions?   (windows 7 home)

  • FF 33.0 - I cannot remove avg isearch when open new tab.

    I have FF 33.0 installed and have a persistent problem with AVG isearch. I have tried all the help/forums but none have worked. I have removed Google (via Manage Search Engines) and then click on Restore Defaults, close FF and restart, but AVG isearc

  • PhotoshopCCのインストールが途中で止まってしまいます

    再試行しても.結果は同じです. 「インストール時に問題が発生しました」と表示あり. 「インストールは終了しましたが.一部のオプションコンポーネントが正常にインストールされませんでした.」とあります. WIN7を使っています. PC側の問題でしょうか? 日曜のため.チャットでの問い合わせができないので.こちらに投稿します. 原因・対処方法をご存知の方がいたら.教えてください. エラー詳細は以下のとおりです. Exit Code: 6 Please see specific errors below

  • Wait until you hear this!

    Haha, good wee story to tell ya. Came home the other day, Internet was magic...usual speeds in excess of 60Mbs then BOOM!!! Fibre dead, landline dead, everything dead. Looks out my window and see a wee Openreach van a couple of doors down the road. C