fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [10973] property: invoice handling


From: Sigurd Nes
Subject: [Fmsystem-commits] [10973] property: invoice handling
Date: Fri, 08 Mar 2013 10:16:19 +0000

Revision: 10973
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10973
Author:   sigurdne
Date:     2013-03-08 10:16:18 +0000 (Fri, 08 Mar 2013)
Log Message:
-----------
property: invoice handling

Modified Paths:
--------------
    trunk/property/inc/class.soinvoice.inc.php

Modified: trunk/property/inc/class.soinvoice.inc.php
===================================================================
--- trunk/property/inc/class.soinvoice.inc.php  2013-03-07 14:33:39 UTC (rev 
10972)
+++ trunk/property/inc/class.soinvoice.inc.php  2013-03-08 10:16:18 UTC (rev 
10973)
@@ -2063,7 +2063,30 @@
                        }
 
                        $GLOBALS['phpgw']->db->transaction_begin();
+                       $this->db->query("SELECT * FROM fm_ecobilag WHERE id =" 
. (int)$line_id,__LINE__,__FILE__);
+
+                       $this->db->next_record();
+                       $old_janitor                    =  
$this->db->f('oppsynsmannid');
+                       $old_supervisor                 =  
$this->db->f('saksbehandlerid');
+                       $old_budget_responsible =  
$this->db->f('budsjettansvarligid');
+
                        $value_set = array();
+                       
+                       if($old_janitor != $order_info['janitor'])
+                       {
+                               $value_set['oppsynsigndato']    = '';           
        
+                       }
+
+                       if($old_supervisor != $order_info['supervisor'])
+                       {
+                               $value_set['saksigndato']       = '';           
        
+                       }
+
+                       if($old_budget_responsible != 
$order_info['budget_responsible'])
+                       {
+                               $value_set['budsjettsigndato']  = '';           
        
+                       }
+
                        $value_set['pmwrkord_code']                     = 
$order_id;
                        $value_set['dima']                                      
= $order_info['dima'];
                        $value_set['dimb']                                      
= $order_info['dimb'];




reply via email to

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