fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [16690] more on integration


From: sigurdne
Subject: [Fmsystem-commits] [16690] more on integration
Date: Thu, 4 May 2017 16:23:59 -0400 (EDT)

Revision: 16690
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16690
Author:   sigurdne
Date:     2017-05-04 16:23:59 -0400 (Thu, 04 May 2017)
Log Message:
-----------
more on integration

Modified Paths:
--------------
    trunk/property/inc/cron/default/Import_fra_agresso_X205_BK.php

Modified: trunk/property/inc/cron/default/Import_fra_agresso_X205_BK.php
===================================================================
--- trunk/property/inc/cron/default/Import_fra_agresso_X205_BK.php      
2017-05-04 18:42:35 UTC (rev 16689)
+++ trunk/property/inc/cron/default/Import_fra_agresso_X205_BK.php      
2017-05-04 20:23:59 UTC (rev 16690)
@@ -48,6 +48,7 @@
                protected $skip_email = false;
                protected $export;
                protected $skip_update_voucher_id = false;
+               protected $order_id;
 
                function __construct()
                {
@@ -129,6 +130,7 @@
                                                else
                                                {
                                                        
$this->db->transaction_commit();
+                                                       
phpgwapi_cache::system_clear('property', "budget_order_{$this->order_id}");
                                                }
                                        }
                                        else
@@ -368,6 +370,7 @@
                                {
                                        $buffer[$i]['project_id'] = 
$this->soXport->get_project($_order_id);
                                        $order_id = $_order_id;
+                                       $this->order_id = $order_id;
                                }
 
                                $buffer[$i]['external_voucher_id'] = 
$_data['KEY']; // => 1400050146
@@ -519,7 +522,7 @@
                                try
                                {
                                        $bilagsnr = 
$this->import_end_file($buffer);
-                                       
+
                                        
if($this->config->config_data['export']['auto_receive_order'])
                                        {
                                                $received_amount = 
$this->get_total_received((int)$order_id);
@@ -620,7 +623,7 @@
                                        throw new Exception("{$order_type} not 
supported");
                                        break;
                        }
-                       
+
                        $this->db->query($sql, __LINE__, __FILE__);
                        if ($this->db->next_record())
                        {




reply via email to

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