<% ' MyPAYE ' Module: SSPContractualPay.asp ' ' This software is the copyright of Mr T J Sheppard and may not be copied, duplicated or ' modified other than as permitted in the licence agreement. ' ' © 2012 - 2022 Mr T J Sheppard ' Lyndale House ' Church Street ' Bradwell ' Hope Valley ' S33 9HJ ' ' Tel 0845 643 5191 ' Email Support@MyPAYE.co.uk ' ' MyPAYE is a Registered Trademark of MyPAYE Ltd '------------------------------------------------------------------- ' ' Updated 06 February 2022 ' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' ' Description - This module requests the user to enter the Contractual pay to be used ' for calculating the SSP average pay when no pay has been paid ' ' Amendment Log '------------------------------------------------------------------------------------------ ' Date | Name | Vers. | Description '------------------------------------------------------------------------------------------ ' 03/05/05 | TJS | 1.0 | Original ' 12/05/05 | TJS | 1.0.01 | Replace Continue button with panel ' 16/05/05 | TJS | 1.0.04 | Modified to cater for different CSS files depending on the ' | Agency ID setting for the Employer via session variable PathModifier ' 02/08/05 | TJS | 1.0.12 | Added response headers to prevent caching and ' | modified to use OpenRecordset and ExecuteSQL instead of ' | objConn.execute to enable trapping of SQL errors ' 04/03/06 | TJS | 1.0.22 | Changed Inland Revenue to HMRC ' 28/05/06 | TJS | 1.0.28 | Modified to include ICRA content rating link ' 15/09/06 | TJS | 1.0.34 | Modified to add onkeypress routines to detect return key being pressed ' 01/01/07 | TJS | 1.1.05 | Modified to include RerunPayroll and CancelPage parameters ' 19/06/07 | TJS | 1.2.00 | Modified to replace session variables with Session_Vars table ' 18/11/07 | TJS | 1.2.07 | Changed name of Notes text area to resolve ID conflict with Notes tab ' 18/11/10 | TJS | 1.5.00 | Modified to use both root and agency CSS files when used to ' | eliminate duplicated settings in agency CSS files ' 08/08/12 | TJS | 2.0.05 | Google Analytics added ' 26/11/13 | DC | 3.0.09 | 'DelPIW' not being passed through. ' 01/06/14 | TJS | 4.0.00 | Modified for new styling and operation without framesets ' 06/10/14 | TJS | 4.0.04 | Modified for Encrypted Employer ID check ' 12/04/15 | TJS | 4.0.13 | Corrected html format and validation ' 21/02/17 | TJS | 5.0.18 | Modified to cater for Status Effective Date and to accept POST instead of GET ' 29/04/17 | TJS | 5.1.01 | Modified to cater for Part Day Hours ' 31/03/20 | TJS | 5.7.07 | Modified to cater for Covid-19 SSP payable from day 1 ' 16/12/20 | TJS | 5.9.05 | Modified to cater for SSP days paid in Employee_SSP_PIW_Paid ' 06/02/22 | TJS | 5.9.15 | Modified to use ASPDotNet/UpdateSSPPIW.ashx page ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' PageID = 66857 NoBack = True SessionID = request.form("ID") ' TJS 21/02/17 SessionVarsID = RemoveHTML(request.form("SV")) ' TJS 19/06/07 TJS 21/02/17 SourceFrame = RemoveHTML(request.form("S")) ' TJS 21/02/17 DestFrame = RemoveHTML(request.form("D")) ' TJS 21/02/17 EmployeeID = CheckURLDBIDField(RemoveHTML(request.form("EE")), "EmployeeID") ' TJS 21/02/17 EmployerID = CheckURLDBIDField(RemoveHTML(request.form("ER")), "EmployerID") ' TJS 21/02/17 PayrollID = CheckURLDBIDField(RemoveHTML(request.form("PR")), "PayrollID") ' TJS 21/02/17 AddNewEdit = RemoveHTML(request.form("ANE")) ' TJS 21/02/17 RerunPayroll = RemoveHTML(request.form("RrP")) ' TJS 01/01/07 TJS 21/02/17 CancelPage = RemoveHTML(request.form("CPge")) ' TJS 01/01/07 TJS 21/02/17 %> <%GetSessionVarsIDRecord(SessionVarsID) ' TJS 19/06/07%> <%' start of code added TJS 12/04/15 Function CheckValidationFailure(FieldName) if instr(1, FailureFields, ":" & FieldName & ":") = 0 then ' no failure - set control to normal or readonly CheckValidationFailure = "" else ' validation failed - set control to red outline CheckValidationFailure = "-error" end if end Function ' end of code added TJS 12/04/15 SSPPIWID = CheckURLDBIDField(RemoveHTML(request.form("SSPPIWID")), "SSPPIWID") ' TJS 21/02/17 SickStartDate = ValidateDateValue(RemoveHTML(Trim(request.form("SickStartDate"))), "SickStartDate") ' TJS 21/02/17 SickEndDate = ValidateDateValue(RemoveHTML(Trim(request.form("SickEndDate"))), "SickEndDate") ' TJS 21/02/17 EndDateActual = RemoveHTML(request.form("EndDateActual")) ' TJS 21/02/17 HasAttendedWork = RemoveHTML(request.form("HasAttendedWork")) ' TJS 21/02/17 ' start of code added TJS 29/04/17 PartDaySickness = RemoveHTML(request.form("PartDay")) PartDayHours = ValidateNumberValue(RemoveHTML(Trim(request.form("PartDayHrs"))), "PartDayHrs") ' end of code added TJS 29/04/17 if UCase(RemoveHTML(request.form("SingleSSPPattern"))) = "ON" then ' TJS 21/02/17 SingleSSPPattern = "ON" SSPPatternCount = 1 redim SSPPatternW(SSPPatternCount) SSPPatternW(1) = CheckURLDBIDField(RemoveHTML(request.form("SSPPattern")), "SSPPattern") ' TJS 21/02/17 else SingleSSPPattern = "OFF" SSPPatternCount = RemoveHTML(request.form("SSPPatternCount")) ' TJS 21/02/17 redim SSPPatternW(SSPPatternCount) for iLoopCount = 1 to SSPPatternCount SSPPatternW(iLoopCount) = CheckURLDBIDField(RemoveHTML(request.form("SSPPatternW" & iLoopCount)), "SSPPatternW" & iLoopCount) ' TJS 21/02/17 next end if SSPLinkedPIWID = CheckURLDBIDField(RemoveHTML(request.form("LinkedPIW")), "SSPLinkedPIWID") ' TJS 21/02/17 SSPStatus = RemoveHTML(request.form("SSPStatus")) ' TJS 21/02/17 StatusEffectiveDate = ValidateDateValue(RemoveHTML(Trim(request.form("StatEffectDate"))), "StatEffectDate") ' TJS 21/02/17 SickPayPolicy = RemoveHTML(request.form("SickPayPolicy")) ' TJS 21/02/17 Covid19SSP = RemoveHTML(request.form("Covid19SSP")) ' TJS 31/03/20 SSP1LRequested = RemoveHTML(request.form("SSP1LRequested")) ' TJS 21/02/17 SSP1FormID = CheckURLDBIDField(RemoveHTML(request.form("SSP1FormID")), "SSP1FormID") ' TJS 21/02/17 SSP1LFormID = CheckURLDBIDField(RemoveHTML(request.form("SSP1LFormID")), "SSP1LFormID") ' TJS 21/02/17 NotesText = RemoveHTML(replace(request.form("NotesText"), "
", vbcrlf)) ' TJS 18/11/07 TJS 21/02/17 TotalPaid = RemoveHTML(Trim(request.form("TotalPaid"))) ' TJS 21/02/17 TotalDaysPaid = ValidateIntegerValue(RemoveHTML(Trim(request.form("TotalDaysPaid"))), "TotalDaysPaid") ' TJS 16/12/20 TotalPaidToDate = RemoveHTML(Trim(request.form("TotalPaidToDate"))) ' TJS 21/02/17 TaxPeriodPaid = ValidateIntegerValue(RemoveHTML(Trim(request.form("TaxPeriodPaid"))), "TaxPeriodPaid") ' TJS 16/12/20 ContractualWeeklyPay = ValidateCurrencyValue(RemoveHTML(Trim(request.form("CWP"))), "CWP") ' TJS 12/04/15 TJS 21/02/17 ContractualMonthlyPay = ValidateCurrencyValue(RemoveHTML(Trim(request.form("CMP"))), "CMP") ' TJS 12/04/15 TJS 21/02/17 ContractualAnnualPay = ValidateCurrencyValue(RemoveHTML(Trim(request.form("CAP"))), "CAP") ' TJS 12/04/15 TJS 21/02/17 DelPIW = RemoveHTML(Trim(request.form("DelPIW"))) ' DC 26/11/13 TJS 21/02/17 response.Expires = -1500 response.Expiresabsolute = Now() - 2 response.AddHeader "pragma", "no-cache" response.AddHeader "cache-control", "no-store" response.CacheControl = "no-cache" %> Contractual Pay for SSP Average Pay calculation <%if CheckBrowserVersion("MSIE", 8, true, false, false) then ' [if LT IE 8]%> <%end if if CheckBrowserVersion("MSIE", 7, true, true, false) then ' [if lte IE 7]%> <%end if if "" & GetSessionVar("PathModifier") <> "" then%> Partner-CSS.asp" /> <%end if%>
/Secure/ASPDotNet/UpdateSSPPIW.ashx"> <%if SingleSSPPattern = "OFF" then for iLoopCount = 1 to SSPPatternCount%> <%next end if%> <% 'DC 26/11/13%>

Under HMRC rules for Statutory Sick Pay, this employee has either not been paid yet,
or the payment period is too short to use for the 8 Week Average Earnings calculation for SSP

Please enter the Contractual pay for this Employee in the most appropriate field below

Weekly Pay " value="<%=ContractualWeeklyPay%>" maxlength="8" tabindex="1" onkeypress="checkreturn(event)">
Monthly Pay " value="<%=ContractualMonthlyPay%>" maxlength="8" tabindex="2" onkeypress="checkreturn(event)">
Annual Pay " value="<%=ContractualAnnualPay%>" maxlength="8" tabindex="3" onkeypress="checkreturn(event)">

Continue

<%SaveSessionVarsRecord SessionVarsID ' TJS 19/06/07 ReleaseASPEncrypt ' TJS 06/10/14 objConn.close set objConn = nothing %>