fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17167] property: find agreement for vendors


From: sigurdne
Subject: [Fmsystem-commits] [17167] property: find agreement for vendors
Date: Thu, 19 Oct 2017 09:32:16 -0400 (EDT)

Revision: 17167
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17167
Author:   sigurdne
Date:     2017-10-19 09:32:15 -0400 (Thu, 19 Oct 2017)
Log Message:
-----------
property: find agreement for vendors

Modified Paths:
--------------
    trunk/property/js/portico/workorder.edit.js
    trunk/property/setup/tables_current.inc.php

Modified: trunk/property/js/portico/workorder.edit.js
===================================================================
--- trunk/property/js/portico/workorder.edit.js 2017-10-19 07:33:28 UTC (rev 
17166)
+++ trunk/property/js/portico/workorder.edit.js 2017-10-19 13:32:15 UTC (rev 
17167)
@@ -211,9 +211,16 @@
                                                return;
                                        }
 
-                                       
$("#vendor_contract_id").attr("data-validation", "required");
+                                       if(data.length > 0)
+                                       {
+                                               
$("#vendor_contract_id").attr("data-validation", "required");
+                                               htmlString = "<option value=''> 
kontrakter funnet</option>";
+                                       }
+                                       else
+                                       {
+                                               htmlString = "<option value=''> 
kontrakter ikke funnet</option>";
+                                       }
 
-                                       htmlString = "<option value=''> 
kontrakter funnet</option>";
                                        var obj = data;
 
                                        $.each(obj, function (i)

Modified: trunk/property/setup/tables_current.inc.php
===================================================================
--- trunk/property/setup/tables_current.inc.php 2017-10-19 07:33:28 UTC (rev 
17166)
+++ trunk/property/setup/tables_current.inc.php 2017-10-19 13:32:15 UTC (rev 
17167)
@@ -1584,7 +1584,7 @@
                        'fd' => array(
                                'id' => array('type' => 'int', 'precision' => 
'4', 'nullable' => False),
                                'percent' => array('type' => 'int', 'precision' 
=> '4', 'nullable' => True),
-                               'descr' => array('type' => 'varchar', 
'precision' => '25', 'nullable' => False)
+                               'descr' => array('type' => 'varchar', 
'precision' => '255', 'nullable' => False)
                        ),
                        'pk' => array('id'),
                        'ix' => array(),




reply via email to

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