Merge branch 'fronkdev' into 'master'

Updated sepa_id script

See merge request fronk/thetool!578
This commit is contained in:
Frank Schubert
2024-08-07 16:42:09 +00:00

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;