fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [16849] property: approval request for orders


From: sigurdne
Subject: [Fmsystem-commits] [16849] property: approval request for orders
Date: Thu, 8 Jun 2017 07:40:08 -0400 (EDT)

Revision: 16849
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16849
Author:   sigurdne
Date:     2017-06-08 07:40:08 -0400 (Thu, 08 Jun 2017)
Log Message:
-----------
property: approval request for orders

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

Modified: trunk/property/inc/class.uiworkorder.inc.php
===================================================================
--- trunk/property/inc/class.uiworkorder.inc.php        2017-06-07 10:46:11 UTC 
(rev 16848)
+++ trunk/property/inc/class.uiworkorder.inc.php        2017-06-08 11:40:08 UTC 
(rev 16849)
@@ -957,7 +957,7 @@
 
                                                                $approvals = 
$pending_action->get_pending_action($action_params_approved);
 
-
+                                                               //Not approved
                                                                if(!$approvals)
                                                                {
                                                                        
$substitute = $sosubstitute->get_substitute($_account_id);
@@ -1002,6 +1002,22 @@
                                                                                
phpgwapi_cache::message_set($exc->getMessage(),'error');
                                                                        }
 
+                                                                       //add 
request for order as well
+                                                                       
$action_params = array(
+                                                                               
'appname' => 'property',
+                                                                               
'location' => '.project.workorder',
+                                                                               
'id' => $id,
+                                                                               
'responsible' => $_account_id,
+                                                                               
'responsible_type' => 'user',
+                                                                               
'action' => 'approval',
+                                                                               
'remark' => '',
+                                                                               
'deadline' => ''
+                                                                       );
+
+                                                                       
if(!execMethod('property.sopending_action.get_pending_action', $action_params))
+                                                                       {
+                                                                               
execMethod('property.sopending_action.set_pending_action', $action_params);
+                                                                       }
                                                                }
                                                                else // 
implicite approved
                                                                {




reply via email to

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