fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [11906] property: more on budget handling


From: Sigurd Nes
Subject: [Fmsystem-commits] [11906] property: more on budget handling
Date: Sat, 12 Apr 2014 13:53:16 +0000

Revision: 11906
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11906
Author:   sigurdne
Date:     2014-04-12 13:53:15 +0000 (Sat, 12 Apr 2014)
Log Message:
-----------
property: more on budget handling

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

Modified: trunk/property/inc/class.soinvoice.inc.php
===================================================================
--- trunk/property/inc/class.soinvoice.inc.php  2014-04-11 14:16:17 UTC (rev 
11905)
+++ trunk/property/inc/class.soinvoice.inc.php  2014-04-12 13:53:15 UTC (rev 
11906)
@@ -2644,6 +2644,8 @@
                                $value_set['project_id']                        
 = execMethod('property.soXport.get_project', $order_id);
                        }
 
+                       phpgwapi_cache::system_clear('property', 
"budget_order_{$order_id}");
+
                        $value_set['pmwrkord_code']             = $order_id;
                        $value_set['dima']                              = 
$order_info['dima'];
                        $value_set['dimb']                              = 
$order_info['dimb'];
@@ -2701,6 +2703,7 @@
                        foreach($voucher as $entry)
                        {
                                $amount += $entry['amount'];
+                               phpgwapi_cache::system_clear('property', 
"budget_order_{$entry['order_id']}");
                        }
                        unset($entry);
 

Modified: trunk/property/inc/class.uiinvoice2.inc.php
===================================================================
--- trunk/property/inc/class.uiinvoice2.inc.php 2014-04-11 14:16:17 UTC (rev 
11905)
+++ trunk/property/inc/class.uiinvoice2.inc.php 2014-04-12 13:53:15 UTC (rev 
11906)
@@ -133,10 +133,12 @@
                 */
                public function reassign_order($line_id, $order_id, $voucher_id)
                {
+                       $voucher_info   = $this->get_single_line($line_id);
+
                        if( $this->bo->reassign_order($line_id, $order_id))
                        {
                                phpgwapi_cache::message_set(lang('voucher is 
updated'), 'message');
-                               phpgwapi_cache::system_clear('property', 
"budget_order_{$order_id}");
+                               phpgwapi_cache::system_clear('property', 
"budget_order_{$voucher_info['voucher'][0]['order_id']}"); // target is cleared 
in the so-class
 
                                $result =  array
                                (




reply via email to

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