'มกราคม', '02' => 'กุมภาพันธ์', '03' => 'มีนาคม', '04' => 'เมษายน', '05' => 'พฤษภาคม', '06' => 'มิถุนายน', '07' => 'กรกฎาคม', '08' => 'สิงหาคม', '09' => 'กันยายน', '10' => 'ตุลาคม', '11' => 'พฤศจิกายน', '12' => 'ธันวาคม' ]; $thaiYear = $year + 543; $monthName = $thaiMonths[$month] ?? ''; // Grouping by Fund Source $cgdIncomes = []; $hospIncomes = []; foreach($incomes as $inc) { if ($inc['amount'] > 0) { if (($inc['fund_source'] ?? '') === 'CGD') $cgdIncomes[] = $inc; else $hospIncomes[] = $inc; } } $cgdDeductions = []; $hospDeductions = []; foreach($deductions as $ded) { if ($ded['amount'] > 0) { if (($ded['fund_source'] ?? '') === 'CGD') $cgdDeductions[] = $ded; else $hospDeductions[] = $ded; } } $cgdTotalIncome = array_sum(array_column($cgdIncomes, 'amount')); $cgdTotalDeduction = array_sum(array_column($cgdDeductions, 'amount')); $hospTotalIncome = array_sum(array_column($hospIncomes, 'amount')); $hospTotalDeduction = array_sum(array_column($hospDeductions, 'amount')); $netSalary = ($cgdTotalIncome + $hospTotalIncome) - ($cgdTotalDeduction + $hospTotalDeduction); ?> สลิปเงินเดือน - <?= htmlspecialchars($hrData['HR_FNAME'] ?? '') ?>
Logo

โรงพยาบาลเกาะสมุย

ชื่อ - สกุล ตำแหน่ง
กรม สำนักงานปลัดกระทรวงสาธารณสุข ระดับ
สำนัก/กอง/ศูนย์ โรงพยาบาลทั่วไปเกาะสมุย เลขที่ตำแหน่ง
รอบจ่าย เดือน ปี แผนก
โอนเงินเข้า เลขที่บัญชี
รายการจากกรมบัญชีกลาง
รายรับ จำนวน (บาท) รายจ่าย จำนวน (บาท)
รวมรับ รวมจ่าย
รับสุทธิจากกรมบัญชีกลาง
รายการจากโรงพยาบาล
รายรับ จำนวน (บาท) รายจ่าย จำนวน (บาท)
รวมรับ รวมจ่าย
รับสุทธิจากโรงพยาบาล
รวมรับสุทธิทั้งสิ้น
ลงชื่อ Signature