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

@@ -725,7 +725,12 @@ class InvoiceController extends mfBaseController {
continue;
}
$invoice->sendByEmail();
if(!$invoice->sendByEmail()) {
echo "Error sending ".$invoice->invoice_number." to ".$invoice->email."\n";
continue;
}
$invoice->date_delivered = date("U");
$invoice->save();
if($invoice->total < 0) {
// Gutschriften auch an Xinon
@@ -734,6 +739,8 @@ class InvoiceController extends mfBaseController {
}
return true;
}