Hello,
I've got the following in my invoicepdf.tpl file, and all I've changed are is the size and colour. I'd like to know if there is a status for Overdue that I can use so that when an overdue invoice goes out, the text panel at the top right is red. Happy to add a string to my language override file if need bed.
I can see there are the standard ones for Paid, Cancelled etc, but would like to know if there is one for Overdue?
Look forward to any replies.
# Invoice Status
$statustext = $_LANG['invoices'.strtolower($status)];
$pdf->SetFillColor(71,181,232);
$pdf->SetDrawColor(0,129,200);
if ($status=="Paid") {
$pdf->SetFillColor(151,223,74);
$pdf->SetDrawColor(110,192,70);
}elseif ($status=="Cancelled") {
$pdf->SetFillColor(200);
$pdf->SetDrawColor(140);
} elseif ($status=="Refunded") {
$pdf->SetFillColor(131,182,218);
$pdf->SetDrawColor(91,136,182);
} elseif ($status=="Collections") {
$pdf->SetFillColor(3,3,2);
$pdf->SetDrawColor(127);
}
I've got the following in my invoicepdf.tpl file, and all I've changed are is the size and colour. I'd like to know if there is a status for Overdue that I can use so that when an overdue invoice goes out, the text panel at the top right is red. Happy to add a string to my language override file if need bed.
I can see there are the standard ones for Paid, Cancelled etc, but would like to know if there is one for Overdue?
Look forward to any replies.
# Invoice Status
$statustext = $_LANG['invoices'.strtolower($status)];
$pdf->SetFillColor(71,181,232);
$pdf->SetDrawColor(0,129,200);
if ($status=="Paid") {
$pdf->SetFillColor(151,223,74);
$pdf->SetDrawColor(110,192,70);
}elseif ($status=="Cancelled") {
$pdf->SetFillColor(200);
$pdf->SetDrawColor(140);
} elseif ($status=="Refunded") {
$pdf->SetFillColor(131,182,218);
$pdf->SetDrawColor(91,136,182);
} elseif ($status=="Collections") {
$pdf->SetFillColor(3,3,2);
$pdf->SetDrawColor(127);
}