fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [8705] property: configurable mandatory vendor at wor


From: Sigurd Nes
Subject: [Fmsystem-commits] [8705] property: configurable mandatory vendor at workorder
Date: Mon, 30 Jan 2012 10:30:41 +0000

Revision: 8705
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8705
Author:   sigurdne
Date:     2012-01-30 10:30:40 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
property: configurable mandatory vendor at workorder

Modified Paths:
--------------
    trunk/property/inc/class.uiworkorder.inc.php
    trunk/property/templates/base/config.tpl

Modified: trunk/property/inc/class.uiworkorder.inc.php
===================================================================
--- trunk/property/inc/class.uiworkorder.inc.php        2012-01-30 10:30:01 UTC 
(rev 8704)
+++ trunk/property/inc/class.uiworkorder.inc.php        2012-01-30 10:30:40 UTC 
(rev 8705)
@@ -958,6 +958,12 @@
                                {
                                        
$receipt['error'][]=array('msg'=>lang('Please select a status !'));
                                }
+
+                               
if(isset($config->config_data['workorder_require_vendor']) && 
$config->config_data['workorder_require_vendor'] == 1 && !$values['vendor_id'])
+                               {
+                                       
$receipt['error'][]=array('msg'=>lang('no vendor'));                            
+                               }
+
                                if(!$values['b_account_id'])
                                {
                                        
$receipt['error'][]=array('msg'=>lang('Please select a budget account !'));

Modified: trunk/property/templates/base/config.tpl
===================================================================
--- trunk/property/templates/base/config.tpl    2012-01-30 10:30:01 UTC (rev 
8704)
+++ trunk/property/templates/base/config.tpl    2012-01-30 10:30:40 UTC (rev 
8705)
@@ -93,6 +93,15 @@
                                </select>
                        </td>
                </tr>
+               <tr class="row_on">
+                       <td>{lang_require_vendor_at_workorder}:</td>
+                       <td>
+                               <select 
name="newsettings[workorder_require_vendor]">
+                                       <option value="" 
{selected_workorder_require_vendor_}>NO</option>
+                                       <option value="1" 
{selected_workorder_require_vendor_1}>YES</option>
+                               </select>
+                       </td>
+               </tr>
                <tr class="row_off">
                        <td>{lang_Default_municipal_number}:</td>
                        <td><input name="newsettings[default_municipal]" 
value="{value_default_municipal}"></td>




reply via email to

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