Fix generazione scadenze

This commit is contained in:
valentina 2024-10-02 11:06:39 +02:00
parent 885ec40e03
commit 23111cd54e
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class Pagamento extends Model
public function calcola($importo, $data, $id_anagrafica)
{
$rate = PagamentoLang::where('title', '=', $this->getTranslation('title'))->get()->sortBy('num_giorni')->pluck('id')->toArray();
$rate = Pagamento::where('name', '=', $this->name)->get()->sortBy('num_giorni')->pluck('id')->toArray();
$number = count($rate);
$totale = 0.0;