diff --git a/app/Controllers/Payslip.php b/app/Controllers/Payslip.php index 2560f3ff..edaec602 100755 --- a/app/Controllers/Payslip.php +++ b/app/Controllers/Payslip.php @@ -75,6 +75,7 @@ class Payslip extends BaseController $loan = []; $loanHistory = []; $loan_id = 0; + $BalanceAdvance = 0; if(is_null($result->Loan_ID)){ }else{ @@ -95,6 +96,7 @@ class Payslip extends BaseController 'Due_Date' => $PayOn, ]; + $BalanceAdvance = $result->Loan_Amount - ($result->Paid_Amount + $result->Loan_Recovered); } @@ -121,14 +123,18 @@ class Payslip extends BaseController 'Festival_Bonus' => $result->Festival_Bonus, 'TotalSalary' => $result->Estimate, 'Advance' => $result->Loan_Recovered, - 'BalanceAdvance' => 0, + 'BalanceAdvance' => $BalanceAdvance, 'LessAdvance' => 0, 'BankAccountNumber' => $result->BankAccountNo, 'PFNumber' => $result->PFNO, 'ESINumber' => $result->ESINO, 'UANNO' => $result->PFNO, ]; - + // print_r($result); + // print_r($loan); + // print_r($loanHistory); + // print_r($data); + // die; $insert = $this->payroll_model->insertPayroll($data); if($insert){ if(count($loan)){ @@ -697,7 +703,7 @@ class Payslip extends BaseController $data['pf'] = $pf; $data['over_time'] = $ot; -// dd($data); +// dd($data); $this->global['pageTitle'] = 'Payroll Monthly Inputs'; $this->loadViews("monthlypayinputs", $this->global, $data, NULL); } diff --git a/app/Views/EditservicePurchaseorder.php b/app/Views/EditservicePurchaseorder.php index 803ab4d6..86f4a1d4 100755 --- a/app/Views/EditservicePurchaseorder.php +++ b/app/Views/EditservicePurchaseorder.php @@ -1077,1249 +1077,1255 @@ if (!empty($getlogpodtl)) {
| Sno | -PONO | - - -LineItemNo | -Entity | -OldValue | -NewValue | -UpdatedBy | -UpdateOn | + +||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Sno | +PONO | + + +LineItemNo | +Entity | +OldValue | +NewValue | +UpdatedBy | +UpdateOn | -||||||||
| - | PONO ?> | ++ | PONO ?> | - -LineItemNos; ?> | -entity ?> | - entity == 'PO DateChanged') { - $oldValue = date('d-m-Y', strtotime($oldpo->oldValue)); - } else { - $oldValue = $oldpo->oldValue; - } ?> -SupplierName; ?> | +LineItemNos; ?> | +entity ?> | + entity == 'PO DateChanged') { + $oldValue = date('d-m-Y', strtotime($oldpo->oldValue)); + } else { + $oldValue = $oldpo->oldValue; + } ?> +SupplierName; ?> | - entity == 'PO DateChanged') { - $newValue = date('d-m-Y', strtotime($oldpo->newValue)); - } else { - $newValue = $oldpo->newValue; - } ?> -- | FirstName ?> | + entity == 'PO DateChanged') { + $newValue = date('d-m-Y', strtotime($oldpo->newValue)); + } else { + $newValue = $oldpo->newValue; + } ?> ++ | FirstName ?> | -UpdatedOn); - echo $date->format('d-m-Y'); ?> | +UpdatedOn); + echo $date->format('d-m-Y'); ?> | -