fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [16176] more on integration


From: sigurdne
Subject: [Fmsystem-commits] [16176] more on integration
Date: Sat, 21 Jan 2017 09:30:47 -0500 (EST)

Revision: 16176
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16176
Author:   sigurdne
Date:     2017-01-21 09:30:47 -0500 (Sat, 21 Jan 2017)
Log Message:
-----------
more on integration

Modified Paths:
--------------
    trunk/property/inc/class.uiwo_hour.inc.php

Modified: trunk/property/inc/class.uiwo_hour.inc.php
===================================================================
--- trunk/property/inc/class.uiwo_hour.inc.php  2017-01-20 22:08:42 UTC (rev 
16175)
+++ trunk/property/inc/class.uiwo_hour.inc.php  2017-01-21 14:30:47 UTC (rev 
16176)
@@ -3351,13 +3351,22 @@
                        }
 
                        $start_from = 45000000;
-                       $sql = "SELECT id FROM fm_workorder WHERE id >= 
$start_from";
+                       $sql = "SELECT id, status FROM fm_workorder WHERE id >= 
$start_from";
                        $db = & $GLOBALS['phpgw']->db;
                        $db->query($sql, __LINE__, __FILE__);
                        $ids = array();
+
                        while ($db->next_record())
                        {
-                               $ids[] = $db->f('id');
+                               $status = $db->f('status');
+                               if($status == 'Avbrutt' || $status == 
'Dublisert')
+                               {
+                                       phpgwapi_cache::message_set("Hopper 
over [{$status}]: " . $db->f('id') , 'error');
+                               }
+                               else
+                               {
+                                       $ids[] = $db->f('id');
+                               }
                        }
 
                        foreach ($ids as $workorder_id)




reply via email to

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