hr dan payroll
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user