$this->fpdf->Cell(1, 0.5, "", 0, 0, 'L'); $this->fpdf->Cell(9, 0.5, $row['nama'], 0, 0, 'L'); $this->fpdf->Cell(3.5, 0.5, to_rupiah($row['saldo']), 0, 0, 'R'); $this->fpdf->Cell(3.5, 0.5, "", 0, 0, 'L'); $sum_biaya += $row['saldo']; } } $this->fpdf->Ln(); $this->fpdf->SetFont('Times', 'B', 11); $this->fpdf->Cell(10, 0.5, "Total Biaya Luar Usaha", 0, 0, 'L'); $this->fpdf->Cell(3.5, 0.5, "", 0, 0, 'L'); $this->fpdf->Cell(3.5, 0.5, to_rupiah(-$sum_biaya), 0, 0, 'R'); $sum = $laba_kotor + $sum_pendapatan - $sum_biaya; $laba_rugi = $sum < 0 ? 'Rugi' : 'Laba'; $this->fpdf->Ln(0.7); $this->fpdf->SetFont('Times', 'B', 11); $this->fpdf->Cell(10, 0.5, $laba_rugi, 0, 0, 'L'); $this->fpdf->Cell(3.5, 0.5, "", 0, 0, 'L'); $this->fpdf->Cell(3.5, 0.5, to_rupiah($sum), 0, 0, 'R'); $this->fpdf->Ln(1); $this->fpdf->SetFont('Times', '', 12); $this->fpdf->Cell(17, 0.5, $kota . ", " . $sekarang, 0, 0, 'C'); $this->fpdf->Ln(3); $this->fpdf->SetFont('Times', 'B', 12); $y = $this->fpdf->GetX(); $this->fpdf->SetX($y + 5); $this->fpdf->Cell(7, 0.5, $nama_pemilik, 'B', 0, 'C'); $this->fpdf->Ln(); $this->fpdf->SetFont('Times', '', 12); $this->fpdf->Cell(17, 0.5, "Direktur", 0, 0, 'C'); $this->fpdf->Output("Laporan_Laba_Rugi.pdf", "I");
$this->fpdf->Cell(5.25, 0.5, $content[1][$k][0], 'L', 0, 'L'); $this->fpdf->Cell(3.5, 0.5, $content[1][$k][1], 0, 0, 'R'); $this->fpdf->Cell(3.5, 0.5, $content[1][$k][2], 0, 0, 'R'); } else { $this->fpdf->Cell(12.25, 0.5, '', 0, 0, 'L'); } } $this->fpdf->Ln(); $this->fpdf->SetFont('Times', 'B', 12); $this->fpdf->Cell(5.25, 0.5, "Total Aktiva", 'B', 0, 'L'); $this->fpdf->Cell(3.5, 0.5, "", 'B', 0, 'L'); $this->fpdf->Cell(3.5, 0.5, to_rupiah($sum_aktiva), 'BR', 0, 'R'); $this->fpdf->Cell(0.1, 0.5, "", 'LR', 0, 'L'); $this->fpdf->Cell(5.25, 0.5, "Total Pasiva", 'LB', 0, 'L'); $this->fpdf->Cell(3.5, 0.5, "", 'B', 0, 'L'); $this->fpdf->Cell(3.5, 0.5, to_rupiah($sum_kewajiban + $sum_modal), 'B', 0, 'R'); $this->fpdf->Ln(); $this->fpdf->SetFont('Times', 'B', 11); $this->fpdf->Cell(12.25, 0.1, "", 'B', 0, 'L'); $this->fpdf->Cell(0.1, 0.1, "", 0, 0, 'L'); $this->fpdf->Cell(12.25, 0.1, "", 'B', 0, 'L'); $this->fpdf->Ln(); $this->fpdf->Cell(24.6, 0.01, "", 'TLBR', 0, 'C', 1); $this->fpdf->Ln(1); $this->fpdf->SetFont('Times', '', 12); $this->fpdf->Cell(24, 0.5, $kota . ", " . $sekarang, 0, 0, 'C'); $this->fpdf->Ln(3); $this->fpdf->SetFont('Times', 'B', 12); $y = $this->fpdf->GetX(); $this->fpdf->SetX($y + 8.5); $this->fpdf->Cell(7, 0.5, $nama_pemilik, 'B', 0, 'C');