Beispiel #1
0
 $pdf->Cell(33, 5, $expire_on, 1, 0, 'C');
 $pdf->Cell(1);
 $pdf->Cell(0, 5, number_format($credit_amount, 2, '.', ','), 1, 0, 'C');
 $pdf->Ln(6);
 $pdf->SetTextColor(255, 255, 255);
 $pdf->Cell(60, 5, "User ID", 1, 0, 'C', 1);
 $pdf->Cell(1);
 $pdf->Cell(0, 5, "Employer Name", 1, 0, 'C', 1);
 $pdf->Ln(6);
 $pdf->SetTextColor(0, 0, 0);
 $pdf->Cell(60, 5, $employer->id(), 1, 0, 'C');
 $pdf->Cell(1);
 $pdf->Cell(0, 5, $employer->get_name(), 1, 0, 'C');
 $pdf->Ln(10);
 $table_header = array("No.", "Item", "Amount (" . $currency . ")");
 $pdf->FancyTable($table_header);
 $pdf->Ln(13);
 $pdf->SetFont('', 'I');
 $pdf->Cell(0, 0, "This credit note was automatically generated. Signature is not required.", 0, 0, 'C');
 $pdf->Ln(6);
 $pdf->Cell(0, 5, "Refund Notice", 'LTR', 0, 'C');
 $pdf->Ln();
 $pdf->Cell(0, 5, "- Refund will be made payable to " . $employer->get_name() . ". ", 'LR', 0, 'C');
 $pdf->Ln();
 $pdf->Cell(0, 5, "- To facilitate the refund process, please inform us of any discrepancies.", 'LBR', 0, 'C');
 $pdf->Ln(10);
 $pdf->Cell(0, 0, "E. & O. E.", 0, 0, 'C');
 $pdf->Close();
 $pdf->Output($GLOBALS['data_path'] . '/credit_notes/' . $filename . '.pdf', 'F');
 $attachment = chunk_split(base64_encode(file_get_contents($GLOBALS['data_path'] . '/credit_notes/' . $filename . '.pdf')));
 $subject = "Balance Refund Notice of Invoice " . pad($previous_invoice, 11, '0');