#extra: "rent * (1 + ( strftime('%m',end)+12*strftime('%Y',end) ) - ( strftime('%m',start)+12*strftime('%Y',start) ))"
#$r['rent_year'] = $r['rent'] * (1 + ( date('m',strtotime($r['end']))+12
$r['Total'] = $r['rent'] + $r['charge'];
- if (1) $r['rent_year'] = sprintf('%.2f',$r['rent'] * (1 +
- ( date('m',strtotime($r['end'])) + 12 * date('Y',strtotime($r['end'])) )
- -
- ( date('m',strtotime($r['start'])) + 12 * date('Y',strtotime($r['start'])) )
+# NB 16.05.16 if (1) $r['rent_year'] = sprintf('%.2f',$r['rent'] * (1 +
+# NB 16.05.16 ( date('m',strtotime($r['end'])) + 12 * date('Y',strtotime($r['end'])) )
+# NB 16.05.16 -
+# NB 16.05.16 ( date('m',strtotime($r['start'])) + 12 * date('Y',strtotime($r['start'])) )
+# NB 16.05.16 ));
+ $r['rent_year'] = sprintf('%.2f',$r['rent'] * (
+ 1 + 12 - date('m',strtotime($r['start']))
));
},