1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-10 06:35:54 +01:00
openstamanager/update/2_5_2.php
2024-05-29 09:25:33 +02:00

11 lines
293 B
PHP

<?php
include_once __DIR__.'/core.php';
use Modules\PrimaNota\Mastrino;
$mastrini = Mastrino::where('primanota', 1)->where('id_scadenza', '!=', null)->where('iddocumento', '!=', null)->groupBy('idmastrino')->get();
foreach ($mastrini as $mastrino) {
$mastrino->aggiornaScadenzario();
}