]> git.nbdom.net Git - nb.git/commitdiff
months_year
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 23 May 2016 16:16:14 +0000 (18:16 +0200)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 23 May 2016 16:16:14 +0000 (18:16 +0200)
etc/dbs/rent.php

index e879d623d0e3f83b3629ff680f332f4275a7ea5c..5ec92484a1c8cab0bb763611123154fe9c918b79 100644 (file)
@@ -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) {