Posts

How to pay bonuses before salary payments

Image
Kindly ensure that bonuses are incorporated into the monthly payroll along with salaries to facilitate accurate computation of statutory contributions. Including bonuses separately may result in incorrect contribution calculations. It is imperative that all payments, including bonuses, be integrated into the monthly payroll, as contributions are required to be settled within the specific month.  These are the steps to follow to calculate net bonus amounts to pay bonuses before salary payments:    1. Enable BONUS in Payroll Period  2.  Choose the payroll period and enter the bonus amount for the employee. 3. Payroll Calculation for Period "3" 4. Print your pay slip for BONUS 5.  Create pay file to bank 6. Example. Transfer this amount to Employee's bank account. After deduct PCB & EPF. 7. This is your typical monthly pay slip (Period 2) 8.  At the end of the month, you are required to submit a total amount of RM 4271 (Bonus 3600.0...

To Enable IIS HTTPS on your website

Image
  1. Go to " https://www.win-acme.com/ " Download WIN-ACME  2. In IIS, create a self-signed certificate. 3. In IIS, find your sites. click "Bindings..." Add https and hostname. Choose "MyCert" as your SSL certificate" 4. Unzip and copy to a new folder 5. Run "wacs.exe" as administrator,  Press "A" then press "Y", fill in your email address if request. 6. Choose the correct SSL certificate in IIS Bindings
Image
How to hide password in web.config file   C:\Windows\Microsoft.NET\Framework64\v4.0.30319> aspnet_regiis -pe "connectionStrings" -app "/Web" -prov "RsaProtectedConfigurationProvider" The command will convert your text in <connectionStrings> into

ASP.Net Upload, Paste and Save Image to Database (Binary)

Image
1. Image name = " SketchSrc1 " 2. Add a HiddenField to store image string ("hf...")    <asp:HiddenField ID="hf SketchSrc1 " runat="server" Value="" /> 3. Add an Image component ("img...") <asp:Image ID="img SketchSrc1 " runat="server" CssClass="img-thumbnail" ImageUrl="~/Images/NoImage.png"  Width="260px" Height="260px" Style="max-width: 300px; min-height: 100px; max-height: 600px" /> 4. Add "Upload", "Clear" and "Paste" button for new image ("file...", "clear...") <div>     <div id="divImgEd1" runat="server" visible="true">         <input type="file" accept=".jpg, .jpeg" name="image1" id="file SketchSrc1 "             onchange="loadFile(' SketchSrc1 ', event)" style="display: none;"...

Service Install Command

 MyService.exe /install /silent To uninstall the service application you open a command prompt and type:   MyService.exe /uninstall

Change IPv6 to IPv4

Image
  1.  netsh interface ipv6 show prefixpolicies 2.   netsh interface ipv6 set prefix ::/96 60 3 3.   netsh interface ipv6 set prefix ::ffff:0:0/96 55 4

Maintain scroll position on postback in modal popup

Image
A. Add 2 functions to store and set scroll position 1. storeScrollPositionEd(scrollValue) = save scroll position while scrolling 2. setScrollPositionEd() = set top position of div < script   type ="text/javascript" >     function storeScrollPositionEd(scrollValue) {         $( '#<% =hfEdScrollPosition.ClientID %>' ).val(scrollValue);     }     function setScrollPositionEd() {          $( "#divEdScroll" ).scrollTop($( '#<% =hfEdScrollPosition.ClientID %>' ).val());     } </ script >      B. Find the modal-body DIV name an Id and add onscroll function <div id=" divEdScroll " class="modal-body" onscroll ="storeScrollPositionEd(this.scrollTop);"> C. Add a HiddenField to store scroll value <asp: HiddenField ID=" hfEdScrollPosition " runat="server" Value=" 0 " /> D. call setScrollPositionEd() function after...