openstamanager/update/2_5_2.php

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();
}