Removed testing filter vom Invoice::createPDF()

This commit is contained in:
Frank Schubert
2024-08-07 20:53:02 +02:00
parent c1e76c67e0
commit 6bb3d5c082

View File

@@ -780,7 +780,7 @@ class InvoiceController extends mfBaseController {
public function createPDFs() {
$invoice_path_base = MFUPLOAD_FILE_SAVE_PATH."/".TT_INVOICE_SAVE_SUBFOLDER;
foreach(InvoiceModel::search(["billing_delivery" => "paper"]) as $invoice) {
foreach(InvoiceModel::getAll() as $invoice) {
if(InvoiceFileModel::getFirst(["invoice_id" => $invoice->id])) {
continue;
}