fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [11459] custom export


From: Sigurd Nes
Subject: [Fmsystem-commits] [11459] custom export
Date: Wed, 13 Nov 2013 19:05:34 +0000

Revision: 11459
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11459
Author:   sigurdne
Date:     2013-11-13 19:05:33 +0000 (Wed, 13 Nov 2013)
Log Message:
-----------
custom export

Modified Paths:
--------------
    trunk/property/inc/class.boXport.inc.php
    trunk/property/inc/export/default/Agresso_X114

Modified: trunk/property/inc/class.boXport.inc.php
===================================================================
--- trunk/property/inc/class.boXport.inc.php    2013-11-13 18:01:33 UTC (rev 
11458)
+++ trunk/property/inc/class.boXport.inc.php    2013-11-13 19:05:33 UTC (rev 
11459)
@@ -37,8 +37,9 @@
 
                var $public_functions = array
                (
-                       'import' => true,
-                       'export' => true
+                       'import'                => true,
+                       'export'                => true,
+                       'export_cron'   => true
                );
                var $start;
                var $query;
@@ -307,14 +308,12 @@
 
                function export_cron( $data )
                {
-                       if ( $data['enabled'] == 1 )
+                       $data = unserialize(urldecode(phpgw::get_var('data')));
+                       $data = phpgw::clean_value($data);
+_debug_array($data);
+                       $receipt = $this->export( $data );
                        {
-                               $receipt = $this->export( $data );
-                               //                      
if(isset($data['manual']))
-                               {
-                                       _debug_array( $receipt );
-                               }
+                               _debug_array( $receipt );
                        }
                }
-
-       }
\ No newline at end of file
+       }

Modified: trunk/property/inc/export/default/Agresso_X114
===================================================================
--- trunk/property/inc/export/default/Agresso_X114      2013-11-13 18:01:33 UTC 
(rev 11458)
+++ trunk/property/inc/export/default/Agresso_X114      2013-11-13 19:05:33 UTC 
(rev 11459)
@@ -522,6 +522,10 @@
                                $this->log_end($batchid); //Lagre melding
                        }
 
+                       if(!$vouchers)
+                       {
+                               $receipt['message'][]= array('msg' => 'Ingen 
bilag funnet for overføring');                             
+                       }
                        return $receipt;
                }
 




reply via email to

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