Fix generazione scadenze
This commit is contained in:
parent
885ec40e03
commit
23111cd54e
|
@ -56,7 +56,7 @@ class Pagamento extends Model
|
||||||
|
|
||||||
public function calcola($importo, $data, $id_anagrafica)
|
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);
|
$number = count($rate);
|
||||||
|
|
||||||
$totale = 0.0;
|
$totale = 0.0;
|
||||||
|
|
Loading…
Reference in New Issue