fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [8818] property: invoice handling - rollback on dupli


From: Sigurd Nes
Subject: [Fmsystem-commits] [8818] property: invoice handling - rollback on duplicates: testing
Date: Thu, 09 Feb 2012 10:47:10 +0000

Revision: 8818
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8818
Author:   sigurdne
Date:     2012-02-09 10:47:10 +0000 (Thu, 09 Feb 2012)
Log Message:
-----------
property: invoice handling - rollback on duplicates: testing

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

Modified: trunk/property/inc/cron/default/Import_fra_basware_X205.php
===================================================================
--- trunk/property/inc/cron/default/Import_fra_basware_X205.php 2012-02-09 
10:41:19 UTC (rev 8817)
+++ trunk/property/inc/cron/default/Import_fra_basware_X205.php 2012-02-09 
10:47:10 UTC (rev 8818)
@@ -445,8 +445,15 @@
                                                $_bilagsnr_ut = 
$this->db->f('bilagsnr_ut');
                                                $bilagsnr = 
$this->db->f('bilagsnr');
                                                $receipt = 
$this->export->RullTilbake(false,false,$_bilagsnr_ut);
-                       _debug_array($receipt);
-                                               $this->receipt['message'][] = 
array('msg' => "Bilag rullet tilbake fra historikk : {$_bilagsnr_ut}");
+
+                                               isset($receipt['message'])
+                                               {
+                                                       
$this->receipt['message'][] = array('msg' => "Bilag rullet tilbake fra 
historikk : {$_bilagsnr_ut}");
+                                               }
+                                               else
+                                               {
+                                                       
$this->receipt['error'][] = array('msg' => "Bilag ikke rullet tilbake fra 
historikk : {$_bilagsnr_ut}, extern ref: {$_data['SCANNINGNO']}");
+                                               }
                                                unset($_bilagsnr_ut);
                                        }
 




reply via email to

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