fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [7137] Rental: fixed bug related to contract billing


From: Yngve Espelid
Subject: [Fmsystem-commits] [7137] Rental: fixed bug related to contract billing start
Date: Wed, 23 Mar 2011 12:48:14 +0000

Revision: 7137
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7137
Author:   yes
Date:     2011-03-23 12:48:13 +0000 (Wed, 23 Mar 2011)
Log Message:
-----------
Rental: fixed bug related to contract billing start

Modified Paths:
--------------
    trunk/rental/inc/model/class.contract.inc.php

Modified: trunk/rental/inc/model/class.contract.inc.php
===================================================================
--- trunk/rental/inc/model/class.contract.inc.php       2011-03-23 08:43:41 UTC 
(rev 7136)
+++ trunk/rental/inc/model/class.contract.inc.php       2011-03-23 12:48:13 UTC 
(rev 7137)
@@ -142,7 +142,17 @@
                 * @return string with UNIX time.
                 */
                public function get_billing_start_date() { 
-                       return isset($this->billing_start_date) ? 
$this->billing_start_date : isset($this->contract_date) ? 
$this->contract_date->get_start_date() : ''; 
+                       if(isset($this->billing_start_date))
+                       {
+                               return $this->billing_start_date;
+                       }
+                       
+                       if(isset($this->contract_date))
+                       {
+                               return $this->contract_date->get_start_date();
+                       }
+
+                       return '';
                }
                
                public function set_location_id($location_id)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]