Updated sepa_id script
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user