hr dan payroll

This commit is contained in:
Wian Drs
2026-09-15 10:38:43 +07:00
parent 5e1fd11410
commit 8fedd39d8f
47 changed files with 1409 additions and 370 deletions
+11 -3
View File
@@ -244,7 +244,7 @@ class PDF extends FPDF
// BARIS TOTAL
// ----------------------------------------------------------------
public function BukuBesarTotal($totalDebit, $totalKredit, $saldo)
public function BukuBesarTotal($saldoAwal, $totalDebit, $totalKredit, $saldoAkhir)
{
$startX = ($this->GetPageWidth() - array_sum($this->colWidths)) / 2;
$labelWidth = $this->colWidths[0] + $this->colWidths[1] + $this->colWidths[2];
@@ -253,10 +253,18 @@ class PDF extends FPDF
$this->SetFillColor(255, 204, 102);
$this->SetFont('Arial', 'B', 9);
$this->Cell($labelWidth, 8, 'TOTAL', 1, 0, 'C', true);
$this->Cell($labelWidth, 8, 'TOTAL MUTASI', 1, 0, 'C', true);
$this->Cell($this->colWidths[3], 8, number_format($totalDebit, 2, ',', '.'), 1, 0, 'R', true);
$this->Cell($this->colWidths[4], 8, number_format($totalKredit, 2, ',', '.'), 1, 0, 'R', true);
$this->Cell($this->colWidths[5], 8, number_format($saldo, 2, ',', '.'), 1, 1, 'R', true);
$this->Cell($this->colWidths[5], 8, number_format($saldoAkhir, 2, ',', '.'), 1, 1, 'R', true);
$this->SetX($startX);
$this->SetFillColor(245, 245, 245);
$this->Cell($labelWidth, 7, 'SALDO AWAL', 1, 0, 'R', true);
$this->Cell($this->colWidths[3]+$this->colWidths[4]+$this->colWidths[5], 7, number_format($saldoAwal,2,',','.'), 1, 1, 'R', true);
$this->SetX($startX);
$this->SetFillColor(255, 204, 102);
$this->Cell($labelWidth, 8, 'SALDO AKHIR', 1, 0, 'R', true);
$this->Cell($this->colWidths[3]+$this->colWidths[4]+$this->colWidths[5], 8, number_format($saldoAkhir,2,',','.'), 1, 1, 'R', true);
}
// ----------------------------------------------------------------