mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-03-13 09:40:18 +01:00
fix: #1600 generazione rata scadenza in giorni
This commit is contained in:
parent
4a394c2722
commit
e031f2035d
@ -70,11 +70,7 @@ class Pagamento extends Model
|
|||||||
// X giorni esatti
|
// X giorni esatti
|
||||||
if ($rata->giorno == 0) {
|
if ($rata->giorno == 0) {
|
||||||
// Offset della rata
|
// Offset della rata
|
||||||
if ($rata->num_giorni % 30 == 0) {
|
$date->addDays($rata->num_giorni);
|
||||||
$date->addMonthsNoOverflow(round($rata->num_giorni / 30));
|
|
||||||
} else {
|
|
||||||
$date->addDay();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ultimo del mese
|
// Ultimo del mese
|
||||||
|
Loading…
x
Reference in New Issue
Block a user