[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [8784] property: datatype
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [8784] property: datatype |
Date: |
Fri, 03 Feb 2012 18:04:43 +0000 |
Revision: 8784
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8784
Author: sigurdne
Date: 2012-02-03 18:04:43 +0000 (Fri, 03 Feb 2012)
Log Message:
-----------
property: datatype
Modified Paths:
--------------
trunk/property/inc/class.sotts.inc.php
trunk/property/inc/class.soworkorder.inc.php
Modified: trunk/property/inc/class.sotts.inc.php
===================================================================
--- trunk/property/inc/class.sotts.inc.php 2012-02-03 17:18:08 UTC (rev
8783)
+++ trunk/property/inc/class.sotts.inc.php 2012-02-03 18:04:43 UTC (rev
8784)
@@ -1105,9 +1105,9 @@
if($ticket['billable_hours'])
{
- $ticket['billable_hours'] =
str_replace(',','.', $ticket['billable_hours']);
+ $ticket['billable_hours'] =
(float)str_replace(',','.', $ticket['billable_hours']);
}
- if ((float)$old_billable_hours !=
(float)$ticket['billable_hours'])
+ if ((float)$old_billable_hours !=
$ticket['billable_hours'])
{
$this->db->query("UPDATE fm_tts_tickets SET
billable_hours='{$ticket['billable_hours']}'"
. " WHERE
id='{$id}'",__LINE__,__FILE__);
Modified: trunk/property/inc/class.soworkorder.inc.php
===================================================================
--- trunk/property/inc/class.soworkorder.inc.php 2012-02-03 17:18:08 UTC
(rev 8783)
+++ trunk/property/inc/class.soworkorder.inc.php 2012-02-03 18:04:43 UTC
(rev 8784)
@@ -894,7 +894,7 @@
$historylog =
CreateObject('property.historylog','workorder');
$workorder['descr'] =
$this->db->db_addslashes($workorder['descr']);
$workorder['title'] =
$this->db->db_addslashes($workorder['title']);
- $workorder['billable_hours'] = str_replace(',','.',
$workorder['billable_hours']);
+ $workorder['billable_hours'] =
(float)str_replace(',','.', $workorder['billable_hours']);
$cols = array();
$vals = array();
@@ -1040,7 +1040,7 @@
$historylog =
CreateObject('property.historylog','workorder');
$workorder['descr'] =
$this->db->db_addslashes($workorder['descr']);
$workorder['title'] =
$this->db->db_addslashes($workorder['title']);
- $workorder['billable_hours'] = str_replace(',','.',
$workorder['billable_hours']);
+ $workorder['billable_hours'] =
(float)str_replace(',','.', $workorder['billable_hours']);
$this->db->query("SELECT
status,budget,calculation,billable_hours FROM fm_workorder WHERE id =
{$workorder['id']}",__LINE__,__FILE__);
$this->db->next_record();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [8784] property: datatype,
Sigurd Nes <=