fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [8195] voucher handling


From: Sigurd Nes
Subject: [Fmsystem-commits] [8195] voucher handling
Date: Thu, 24 Nov 2011 14:43:06 +0000

Revision: 8195
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8195
Author:   sigurdne
Date:     2011-11-24 14:43:05 +0000 (Thu, 24 Nov 2011)
Log Message:
-----------
voucher handling

Modified Paths:
--------------
    trunk/property/inc/export/default/Basware_X114

Modified: trunk/property/inc/export/default/Basware_X114
===================================================================
--- trunk/property/inc/export/default/Basware_X114      2011-11-24 14:34:48 UTC 
(rev 8194)
+++ trunk/property/inc/export/default/Basware_X114      2011-11-24 14:43:05 UTC 
(rev 8195)
@@ -464,7 +464,7 @@
                        }
                        else
                        {
-                               $receipt['error'][]= array('msg' => lang('Sorry 
- None hits'));
+                               $receipt['error'][]= array('msg' => lang('Sorry 
- No hits'));
                        }
                        return $receipt;
                }
@@ -476,12 +476,12 @@
                        $Filnavn = $fil_katalog . 
"/x114_14_{$external_ref}.xml";
 
                        //Sjekk om filen eksisterer
-                       If (!file_exists($Filnavn))
+                       if (file_exists($Filnavn))
                        {
-                               return $Filnavn;
+                               unlink($Filnavn);
                        }
 
-                       return False;
+                       return $Filnavn;
                }
                
                protected function transfer_voucher($batchid, $voucher_id, 
$download, $force_period_year = '')




reply via email to

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