updated lease type to expire at the END of next month

This commit is contained in:
Tóth Richárd
2020-02-16 20:02:34 +01:00
parent 02b2350828
commit 093c9c25e7
4 changed files with 6 additions and 6 deletions

View File

@@ -228,7 +228,7 @@ class money_deposit {
$expireDate = date('Y-m-t', strtotime($mod->get_mod_money_income()->get_mi_date()));
}
elseif ($lease->get_l_expire_type() == 2) {
$expireDate = date("Y-m-d", strtotime("+1 month", strtotime($mod->get_mod_money_income()->get_mi_date())));
$expireDate = date("Y-m-t", strtotime("+1 month", strtotime($mod->get_mod_money_income()->get_mi_date())));
}
elseif ($lease->get_l_expire_type() == 3) {
//egyedi dátum