Finished Invoice Email Delivery

This commit is contained in:
Frank Schubert
2024-07-10 15:41:40 +02:00
parent b1358f6f2c
commit 178e71b280
4 changed files with 11 additions and 9 deletions

View File

@@ -18,12 +18,12 @@ $me = new User(1);
foreach(InvoiceModel::getAll() as $invoice) {
$pdf = $invoice->pdf;
if(!$pdf || !$pdf->id || !$pdf->file_id) {
if(!$pdf || !$pdf->name) {
echo $invoice->invoice_number." missing pdf file link\n";
continue;
}
if(!file_exists($pdf->file->getFullPath())) {
if(!file_exists($pdf->getFullPath())) {
echo $invoice->invoice_number." PDF (".$pdf->file->getFullPath().") file does not exist\n";
}
}