From 23111cd54ea97bea615788073258b933b412f14e Mon Sep 17 00:00:00 2001 From: valentina Date: Wed, 2 Oct 2024 11:06:39 +0200 Subject: [PATCH] Fix generazione scadenze --- modules/pagamenti/src/Pagamento.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/pagamenti/src/Pagamento.php b/modules/pagamenti/src/Pagamento.php index e1d58cc49..e8df76da2 100755 --- a/modules/pagamenti/src/Pagamento.php +++ b/modules/pagamenti/src/Pagamento.php @@ -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;