Skip to content

Instantly share code, notes, and snippets.

@rabb-bit
rabb-bit / PayrollHelpers.php
Created April 7, 2017 07:13 — forked from neilodiaz/PayrollHelpers.php
Snippet on how to get WTAX in the Philippines.
<?php
public function getWitholdingTax()
{
// Check if within minimum wage salary, then 0 tax
// Check from general settings
$general_settings = Settings::first();
if ($this->getBasicPay() <= $general_settings->minimum_pay)
return 0;