Updated sepa_id script

This commit is contained in:
Frank Schubert
2024-08-07 18:41:46 +02:00
parent 0fb68b271f
commit 19419ba573

View File

@@ -23,6 +23,7 @@ foreach(InvoiceModel::search(["invoice_date>=" => 1722470400]) as $invoice) {
//if(!$invoice->sepa_last_date) continue;
// find last invoice
//echo $invoice->sepa_id."\n";
$last_invoice = InvoiceModel::getLast(["sepa_id" => $invoice->sepa_id, "invoice_date<" => 1722470400]);
if(!$last_invoice) continue;