fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [16769] Booking: default values


From: sigurdne
Subject: [Fmsystem-commits] [16769] Booking: default values
Date: Mon, 22 May 2017 16:23:19 -0400 (EDT)

Revision: 16769
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16769
Author:   sigurdne
Date:     2017-05-22 16:23:18 -0400 (Mon, 22 May 2017)
Log Message:
-----------
Booking: default values

Modified Paths:
--------------
    trunk/booking/setup/default_records.inc.php

Modified: trunk/booking/setup/default_records.inc.php
===================================================================
--- trunk/booking/setup/default_records.inc.php 2017-05-22 17:44:00 UTC (rev 
16768)
+++ trunk/booking/setup/default_records.inc.php 2017-05-22 20:23:18 UTC (rev 
16769)
@@ -26,3 +26,25 @@
        // Insert start values for billing sequential numbers
        $oProc->query("INSERT INTO bb_billing_sequential_number_generator ( 
name, value ) VALUES ( 'internal', 1 ), ( 'external', 1 )");
 
+       $GLOBALS['phpgw']->locations->add('.office', 'office', 'booking');
+       $GLOBALS['phpgw']->locations->add('.office.user', 'office/user 
relation', 'booking', false, 'bb_office_user');
+       $GLOBALS['phpgw']->db = clone($GLOBALS['phpgw_setup']->oProc->m_odb);
+
+       $attrib = array
+               (
+               'appname' => 'booking',
+               'location' => '.office.user',
+               'column_name' => 'account_id',
+               'input_text' => 'User',
+               'statustext' => 'System user',
+               'search' => true,
+               'list' => true,
+               'column_info' => array
+                       (
+                       'type' => 'user',
+                       'nullable' => 'False',
+                       'custom' => 1
+               )
+       );
+
+       $GLOBALS['phpgw']->custom_fields->add($attrib, 'bb_office_user');




reply via email to

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