fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [11553] more on import


From: Sigurd Nes
Subject: [Fmsystem-commits] [11553] more on import
Date: Fri, 20 Dec 2013 20:43:44 +0000

Revision: 11553
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11553
Author:   sigurdne
Date:     2013-12-20 20:43:44 +0000 (Fri, 20 Dec 2013)
Log Message:
-----------
more on import

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

Modified: trunk/property/inc/cron/default/Import_fra_agresso_X205.php
===================================================================
--- trunk/property/inc/cron/default/Import_fra_agresso_X205.php 2013-12-20 
18:49:00 UTC (rev 11552)
+++ trunk/property/inc/cron/default/Import_fra_agresso_X205.php 2013-12-20 
20:43:44 UTC (rev 11553)
@@ -191,7 +191,6 @@
                        foreach($file_list as $file)
                        {
                                $file_parts = explode('_', basename($file, 
'.xml'));
-                       //      $external_ref = $file_parts[2];
                                $external_voucher_id = $file_parts[2];
 
                                $duplicate = false;
@@ -320,12 +319,14 @@
                        {
                                foreach($file_list as $file)
                                {
+                                       $this->db->transaction_begin();
+                                       $bilagsnr = $this->import($file);
                                        if($this->debug)
                                        {
                                                _debug_array("Behandler fil: 
{$file}");
+                                               _debug_array("Bilagsnr: 
{$bilagsnr}");
                                        }
-                                       $this->db->transaction_begin();
-                                       $bilagsnr = $this->import($file);
+
                                        if ($bilagsnr)
                                        {
                                                // move file




reply via email to

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