From: Nicolas Boisselier Date: Mon, 23 May 2016 16:16:14 +0000 (+0200) Subject: months_year X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=76c5a3e8e4d80eaae57e066ada5fb6d316a97e07;p=nb.git months_year --- diff --git a/etc/dbs/rent.php b/etc/dbs/rent.php index e879d623..5ec92484 100644 --- a/etc/dbs/rent.php +++ b/etc/dbs/rent.php @@ -33,6 +33,7 @@ $CONF['_rent'] = array ( $end_month = date('m',strtotime($r['end'])); if (date('Y',strtotime($r['end'])) > date('Y',strtotime($r['start']))) $end_month = 12; $r['rent_year'] = sprintf('%.2f',$r['rent'] * (1 + $end_month - $start_month)); + $r['months_year'] = (1 + $end_month - $start_month); }, 'row_parse_post' => ((empty($GLOBALS['Db']) or Db::php_cli()) ? null : function(&$r) {