phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/inc/class.sos_agreement.inc.php, 1.3


From: nomail
Subject: [Phpgroupware-cvs] property/inc/class.sos_agreement.inc.php, 1.3
Date: Mon, 14 Jun 2004 21:58:29 +0200

Update of /property/inc
Modified Files:
        Branch: 
          class.sos_agreement.inc.php

date: 2004/06/14 19:58:29;  author: sigurdne;  state: Exp;  lines: +13 -26

Log Message:
no message
=====================================================================
Index: property/inc/class.sos_agreement.inc.php
diff -u property/inc/class.sos_agreement.inc.php:1.2 
property/inc/class.sos_agreement.inc.php:1.3
--- property/inc/class.sos_agreement.inc.php:1.2        Fri Jun 11 18:45:50 2004
+++ property/inc/class.sos_agreement.inc.php    Mon Jun 14 19:58:29 2004
@@ -89,6 +89,7 @@
                        }
                        else
                        {
+                               $allrows=True;
                                $entity_table = 'fm_s_agreement_detail';
                                $attribute_filter = " AND attrib_detail = 2";
 
@@ -129,36 +130,12 @@
                                $uicols['descr'][]                      = 
lang('address');
                                $uicols['statustext'][]         = 
lang('address');
 
-                               $cols_return[]                          = 
'entity_num';
+                               $cols_return[]                          = 
'p_num';
                                $uicols['input_type'][]         = 'text';
-                               $uicols['name'][]                       = 
'entity_num';
+                               $uicols['name'][]                       = 
'p_num';
                                $uicols['descr'][]                      = 
lang('entity num');
                                $uicols['statustext'][]         = lang('entity 
num');
 
-                               $cols_return[]                          = 
'descr';
-                               $uicols['input_type'][]         = 'text';
-                               $uicols['name'][]                       = 
'descr';
-                               $uicols['descr'][]                      = 
lang('descr');
-                               $uicols['statustext'][]         = lang('descr');
-
-                               $cols_return[]                          = 
'unit';
-                               $uicols['input_type'][]         = 'text';
-                               $uicols['name'][]                       = 
'unit';
-                               $uicols['descr'][]                      = 
lang('unit');
-                               $uicols['statustext'][]         = lang('unit');
-
-                               $cols_return[]                          = 
'quantity';
-                               $uicols['input_type'][]         = 'text';
-                               $uicols['name'][]                       = 
'quantity';
-                               $uicols['descr'][]                      = 
lang('quantity');
-                               $uicols['statustext'][]         = 
lang('quantity');
-
-                               $cols_return[]                          = 
'frequency';
-                               $uicols['input_type'][]         = 'text';
-                               $uicols['name'][]                       = 
'frequency';
-                               $uicols['descr'][]                      = 
lang('frequency');
-                               $uicols['statustext'][]         = 
lang('frequency');
-
                                $cols_return[]                          = 
'cost';
                                $uicols['input_type'][]         = 'text';
                                $uicols['name'][]                       = 
'cost';
@@ -1365,5 +1342,15 @@
 
                        return $receipt;
                }
+
+               function request_next_id()
+               {
+                       $this->db->query("SELECT max(id) as id FROM 
fm_s_agreement");
+                       $this->db->next_record();
+                       $next_id= $this->db->f('id')+1;
+                       return $next_id;
+               }
+
+
        }
 ?>




reply via email to

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