[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [10692] property: budget handling
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [10692] property: budget handling |
Date: |
Fri, 18 Jan 2013 12:32:18 +0000 |
Revision: 10692
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10692
Author: sigurdne
Date: 2013-01-18 12:32:17 +0000 (Fri, 18 Jan 2013)
Log Message:
-----------
property: budget handling
Modified Paths:
--------------
trunk/property/inc/class.soworkorder.inc.php
Modified: trunk/property/inc/class.soworkorder.inc.php
===================================================================
--- trunk/property/inc/class.soworkorder.inc.php 2013-01-18 11:43:47 UTC
(rev 10691)
+++ trunk/property/inc/class.soworkorder.inc.php 2013-01-18 12:32:17 UTC
(rev 10692)
@@ -754,6 +754,7 @@
$config =
CreateObject('phpgwapi.config','property');
$config->read_repository();
+
if(isset($config->config_data['location_at_workorder']) &&
$config->config_data['location_at_workorder'])
{
$_join_district = "{$this->join}
fm_locations ON fm_workorder.location_code = fm_locations.location_code"
@@ -783,7 +784,8 @@
'actual_cost' =>
$this->db->f('actual_cost') + (float)$this->db->f('pending_cost'),
'budget' =>
$this->db->f('budget'),
'combined_cost' =>
$this->db->f('combined_cost'),
- 'closed' =>
!!$this->db->f('closed')
+ 'closed' =>
!!$this->db->f('closed'),
+ 'mva' =>
(int)$this->db->f('mva'),
);
}
@@ -814,11 +816,8 @@
$workorder['combined_cost'] =
$_actual_cost_arr[$workorder['workorder_id']]['combined_cost'];
$_combined_cost =
$workorder['combined_cost'];
- // $_pending_cost =
round($this->db2->f('pending_cost'));
- $_taxfactor = 1 +
($_taxcode[(int)$this->db2->f('mva')]/100);
- // $_actual_cost =
round($this->db2->f('actual_cost')/$_taxfactor);
- // $_actual_cost =
round($this->db2->f('actual_cost'));
+ $_taxfactor = 1 +
($_taxcode[$_actual_cost_arr[$workorder['workorder_id']]['mva']]/100);
$workorder['actual_cost'] =
round($_actual_cost_arr[$workorder['workorder_id']]['actual_cost']/$_taxfactor);
if(!$_actual_cost_arr[$workorder['workorder_id']]['closed'])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [10692] property: budget handling,
Sigurd Nes <=