public function paySalary($empid, $slipid, $ledger, $mode, $voucher, $amount) { $tx = Payroll::PaySalary($empid, $slipid, $ledger, $mode, $voucher, $amount); $voucher = $tx->post(); if ($voucher) { echo json_encode($voucher); } else { echo 0; } }
public function paySalary($empid, $slipid, $ledger, $mode, $voucher, $amount) { $tx = Payroll::PaySalary($empid, $slipid, $ledger, $mode, $voucher, $amount); $voucher = $tx->post(); if ($voucher) { echo json_encode($voucher); } else { echo 0; } }