Test Failed
Push — CI ( 0f01dd...c95a04 )
by Adam
55:13
created
modules/AOS_Products/metadata/editviewdefs.php 1 patch
Indentation   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -2,129 +2,129 @@
 block discarded – undo
2 2
 $module_name = 'AOS_Products';
3 3
 $viewdefs [$module_name] = 
4 4
 array (
5
-  'EditView' => 
6
-  array (
5
+    'EditView' => 
6
+    array (
7 7
     'templateMeta' => 
8 8
     array (
9
-      'maxColumns' => '2',
10
-      'widths' => 
11
-      array (
9
+        'maxColumns' => '2',
10
+        'widths' => 
11
+        array (
12 12
         0 => 
13 13
         array (
14
-          'label' => '10',
15
-          'field' => '30',
14
+            'label' => '10',
15
+            'field' => '30',
16 16
         ),
17 17
         1 => 
18 18
         array (
19
-          'label' => '10',
20
-          'field' => '30',
19
+            'label' => '10',
20
+            'field' => '30',
21
+        ),
21 22
         ),
22
-      ),
23
-      'form' => 
24
-      array (
23
+        'form' => 
24
+        array (
25 25
         'enctype' => 'multipart/form-data',
26 26
         'headerTpl' => 'modules/AOS_Products/tpls/EditViewHeader.tpl',
27
-      ),
28
-      'includes' => 
29
-      array (
27
+        ),
28
+        'includes' => 
29
+        array (
30 30
         0 => 
31 31
         array (
32
-          'file' => 'modules/AOS_Products/js/products.js',
32
+            'file' => 'modules/AOS_Products/js/products.js',
33 33
         ),
34
-      ),
35
-      'useTabs' => false,
36
-      'tabDefs' => 
37
-      array (
34
+        ),
35
+        'useTabs' => false,
36
+        'tabDefs' => 
37
+        array (
38 38
         'DEFAULT' => 
39 39
         array (
40
-          'newTab' => false,
41
-          'panelDefault' => 'expanded',
40
+            'newTab' => false,
41
+            'panelDefault' => 'expanded',
42
+        ),
42 43
         ),
43
-      ),
44 44
     ),
45 45
     'panels' => 
46 46
     array (
47
-      'default' => 
48
-      array (
47
+        'default' => 
48
+        array (
49 49
         0 => 
50 50
         array (
51
-          0 => 
52
-          array (
51
+            0 => 
52
+            array (
53 53
             'name' => 'name',
54 54
             'label' => 'LBL_NAME',
55
-          ),
56
-          1 => 
57
-          array (
55
+            ),
56
+            1 => 
57
+            array (
58 58
             'name' => 'part_number',
59 59
             'label' => 'LBL_PART_NUMBER',
60
-          ),
60
+            ),
61 61
         ),
62 62
         1 => 
63 63
         array (
64
-          0 => 
65
-          array (
64
+            0 => 
65
+            array (
66 66
             'name' => 'aos_product_category_name',
67 67
             'label' => 'LBL_AOS_PRODUCT_CATEGORYS_NAME',
68
-          ),
69
-          1 => 
70
-          array (
68
+            ),
69
+            1 => 
70
+            array (
71 71
             'name' => 'type',
72 72
             'label' => 'LBL_TYPE',
73
-          ),
73
+            ),
74 74
         ),
75 75
         2 => 
76 76
         array (
77
-          0 => 
78
-          array (
77
+            0 => 
78
+            array (
79 79
             'name' => 'currency_id',
80 80
             'studio' => 'visible',
81 81
             'label' => 'LBL_CURRENCY',
82
-          ),
82
+            ),
83 83
         ),
84 84
         3 => 
85 85
         array (
86
-          0 => 
87
-          array (
86
+            0 => 
87
+            array (
88 88
             'name' => 'cost',
89 89
             'label' => 'LBL_COST',
90
-          ),
91
-          1 => 
92
-          array (
90
+            ),
91
+            1 => 
92
+            array (
93 93
             'name' => 'price',
94 94
             'label' => 'LBL_PRICE',
95
-          ),
95
+            ),
96 96
         ),
97 97
         4 => 
98 98
         array (
99
-          0 => 
100
-          array (
99
+            0 => 
100
+            array (
101 101
             'name' => 'contact',
102 102
             'label' => 'LBL_CONTACT',
103
-          ),
104
-          1 => 
105
-          array (
103
+            ),
104
+            1 => 
105
+            array (
106 106
             'name' => 'url',
107 107
             'label' => 'LBL_URL',
108
-          ),
108
+            ),
109 109
         ),
110 110
         5 => 
111 111
         array (
112
-          0 => 
113
-          array (
112
+            0 => 
113
+            array (
114 114
             'name' => 'description',
115 115
             'label' => 'LBL_DESCRIPTION',
116
-          ),
116
+            ),
117 117
         ),
118 118
         6 => 
119 119
         array (
120
-          0 => 
121
-          array (
120
+            0 => 
121
+            array (
122 122
             'name' => 'product_image',
123 123
             'customCode' => '{$PRODUCT_IMAGE}',
124
-          ),
124
+            ),
125
+        ),
125 126
         ),
126
-      ),
127 127
     ),
128
-  ),
128
+    ),
129 129
 );
130 130
 ?>
Please login to merge, or discard this patch.
modules/AOS_Products/metadata/popupdefs.php 1 patch
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -4,94 +4,94 @@
 block discarded – undo
4 4
     'varName' => 'AOS_Products',
5 5
     'orderBy' => 'aos_products.name',
6 6
     'whereClauses' => array (
7
-  'name' => 'aos_products.name',
8
-  'part_number' => 'aos_products.part_number',
9
-  'cost' => 'aos_products.cost',
10
-  'price' => 'aos_products.price',
11
-  'created_by' => 'aos_products.created_by',
7
+    'name' => 'aos_products.name',
8
+    'part_number' => 'aos_products.part_number',
9
+    'cost' => 'aos_products.cost',
10
+    'price' => 'aos_products.price',
11
+    'created_by' => 'aos_products.created_by',
12 12
 ),
13 13
     'searchInputs' => array (
14
-  1 => 'name',
15
-  4 => 'part_number',
16
-  5 => 'cost',
17
-  6 => 'price',
18
-  7 => 'created_by',
14
+    1 => 'name',
15
+    4 => 'part_number',
16
+    5 => 'cost',
17
+    6 => 'price',
18
+    7 => 'created_by',
19 19
 ),
20 20
     'searchdefs' => array (
21
-  'name' => 
22
-  array (
21
+    'name' => 
22
+    array (
23 23
     'name' => 'name',
24 24
     'width' => '10%',
25
-  ),
26
-  'part_number' => 
27
-  array (
25
+    ),
26
+    'part_number' => 
27
+    array (
28 28
     'name' => 'part_number',
29 29
     'width' => '10%',
30
-  ),
31
-  'cost' => 
32
-  array (
30
+    ),
31
+    'cost' => 
32
+    array (
33 33
     'name' => 'cost',
34 34
     'width' => '10%',
35
-  ),
36
-  'price' => 
37
-  array (
35
+    ),
36
+    'price' => 
37
+    array (
38 38
     'name' => 'price',
39 39
     'width' => '10%',
40
-  ),
41
-  'created_by' => 
42
-  array (
40
+    ),
41
+    'created_by' => 
42
+    array (
43 43
     'name' => 'created_by',
44 44
     'label' => 'LBL_CREATED',
45 45
     'type' => 'enum',
46 46
     'function' => 
47 47
     array (
48
-      'name' => 'get_user_array',
49
-      'params' => 
50
-      array (
48
+        'name' => 'get_user_array',
49
+        'params' => 
50
+        array (
51 51
         0 => false,
52
-      ),
52
+        ),
53 53
     ),
54 54
     'width' => '10%',
55
-  ),
55
+    ),
56 56
 ),
57 57
     'listviewdefs' => array (
58
-  'NAME' => 
59
-  array (
58
+    'NAME' => 
59
+    array (
60 60
     'width' => '25%',
61 61
     'label' => 'LBL_NAME',
62 62
     'default' => true,
63 63
     'link' => true,
64 64
     'name' => 'name',
65
-  ),
66
-  'PART_NUMBER' => 
67
-  array (
65
+    ),
66
+    'PART_NUMBER' => 
67
+    array (
68 68
     'width' => '10%',
69 69
     'label' => 'LBL_PART_NUMBER',
70 70
     'default' => true,
71 71
     'name' => 'part_number',
72
-  ),
73
-  'COST' => 
74
-  array (
72
+    ),
73
+    'COST' => 
74
+    array (
75 75
     'width' => '10%',
76 76
     'label' => 'LBL_COST',
77 77
     'default' => true,
78 78
     'name' => 'cost',
79
-  ),
80
-  'PRICE' => 
81
-  array (
79
+    ),
80
+    'PRICE' => 
81
+    array (
82 82
     'width' => '10%',
83 83
     'label' => 'LBL_PRICE',
84 84
     'default' => true,
85 85
     'name' => 'price',
86
-  ),
87
-  'CURRENCY_ID' =>
88
-  array (
86
+    ),
87
+    'CURRENCY_ID' =>
88
+    array (
89 89
     'type' => 'id',
90 90
     'studio' => 'visible',
91 91
     'label' => 'LBL_CURRENCY',
92 92
     'width' => '10%',
93 93
     'default' => false,
94 94
     'name' => 'currency_id',
95
-  ),
95
+    ),
96 96
 ),
97 97
 );
Please login to merge, or discard this patch.
modules/AOS_Products/metadata/searchdefs.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -2,71 +2,71 @@
 block discarded – undo
2 2
 $module_name = 'AOS_Products';
3 3
 $searchdefs [$module_name] = 
4 4
 array (
5
-  'layout' => 
6
-  array (
5
+    'layout' => 
6
+    array (
7 7
     'basic_search' => 
8 8
     array (
9
-      0 => 'name',
10
-      1 => 
11
-      array (
9
+        0 => 'name',
10
+        1 => 
11
+        array (
12 12
         'name' => 'current_user_only',
13 13
         'label' => 'LBL_CURRENT_USER_FILTER',
14 14
         'type' => 'bool',
15
-      ),
15
+        ),
16 16
         'favorites_only' => array ('name' => 'favorites_only','label' => 'LBL_FAVORITES_FILTER','type' => 'bool',),
17 17
     ),
18 18
     'advanced_search' => 
19 19
     array (
20
-      'name' => 
21
-      array (
20
+        'name' => 
21
+        array (
22 22
         'name' => 'name',
23 23
         'default' => true,
24 24
         'width' => '10%',
25
-      ),
26
-      'part_number' => 
27
-      array (
25
+        ),
26
+        'part_number' => 
27
+        array (
28 28
         'name' => 'part_number',
29 29
         'default' => true,
30 30
         'width' => '10%',
31
-      ),
32
-      'cost' => 
33
-      array (
31
+        ),
32
+        'cost' => 
33
+        array (
34 34
         'name' => 'cost',
35 35
         'default' => true,
36 36
         'width' => '10%',
37
-      ),
38
-      'price' => 
39
-      array (
37
+        ),
38
+        'price' => 
39
+        array (
40 40
         'name' => 'price',
41 41
         'default' => true,
42 42
         'width' => '10%',
43
-      ),
44
-      'created_by' => 
45
-      array (
43
+        ),
44
+        'created_by' => 
45
+        array (
46 46
         'name' => 'created_by',
47 47
         'label' => 'LBL_CREATED',
48 48
         'type' => 'enum',
49 49
         'function' => 
50 50
         array (
51
-          'name' => 'get_user_array',
52
-          'params' => 
53
-          array (
51
+            'name' => 'get_user_array',
52
+            'params' => 
53
+            array (
54 54
             0 => false,
55
-          ),
55
+            ),
56 56
         ),
57 57
         'default' => true,
58 58
         'width' => '10%',
59
-      ),
59
+        ),
60
+    ),
60 61
     ),
61
-  ),
62
-  'templateMeta' => 
63
-  array (
62
+    'templateMeta' => 
63
+    array (
64 64
     'maxColumns' => '3',
65 65
     'widths' => 
66 66
     array (
67
-      'label' => '10',
68
-      'field' => '30',
67
+        'label' => '10',
68
+        'field' => '30',
69
+    ),
69 70
     ),
70
-  ),
71 71
 );
72 72
 ?>
Please login to merge, or discard this patch.
modules/AOS_Products/metadata/studio.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -1,28 +1,28 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Products, Quotations & Invoices modules.
4
- * Extensions to SugarCRM
5
- * @package Advanced OpenSales for SugarCRM
6
- * @subpackage Products
7
- * @copyright SalesAgility Ltd http://www.salesagility.com
8
- * 
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
11
- * the Free Software Foundation; either version 3 of the License, or
12
- * (at your option) any later version.
13
- *
14
- * This program is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
- * GNU General Public License for more details.
18
- *
19
- * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
20
- * along with this program; if not, see http://www.gnu.org/licenses
21
- * or write to the Free Software Foundation,Inc., 51 Franklin Street,
22
- * Fifth Floor, Boston, MA 02110-1301  USA
23
- *
24
- * @author Salesagility Ltd <[email protected]>
25
- */
3
+     * Products, Quotations & Invoices modules.
4
+     * Extensions to SugarCRM
5
+     * @package Advanced OpenSales for SugarCRM
6
+     * @subpackage Products
7
+     * @copyright SalesAgility Ltd http://www.salesagility.com
8
+     * 
9
+     * This program is free software; you can redistribute it and/or modify
10
+     * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
11
+     * the Free Software Foundation; either version 3 of the License, or
12
+     * (at your option) any later version.
13
+     *
14
+     * This program is distributed in the hope that it will be useful,
15
+     * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
+     * GNU General Public License for more details.
18
+     *
19
+     * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
20
+     * along with this program; if not, see http://www.gnu.org/licenses
21
+     * or write to the Free Software Foundation,Inc., 51 Franklin Street,
22
+     * Fifth Floor, Boston, MA 02110-1301  USA
23
+     *
24
+     * @author Salesagility Ltd <[email protected]>
25
+     */
26 26
 
27 27
 /**
28 28
  * This file adds support for studio
Please login to merge, or discard this patch.
modules/AOS_Products/metadata/SearchFields.php 1 patch
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -2,87 +2,87 @@
 block discarded – undo
2 2
 // created: 2013-05-07 12:48:58
3 3
 global $current_user;
4 4
 $searchFields['AOS_Products'] = array (
5
-  'name' => 
6
-  array (
5
+    'name' => 
6
+    array (
7 7
     'query_type' => 'default',
8
-  ),
9
-  'current_user_only' => 
10
-  array (
8
+    ),
9
+    'current_user_only' => 
10
+    array (
11 11
     'query_type' => 'default',
12 12
     'db_field' => 
13 13
     array (
14
-      0 => 'created_by',
14
+        0 => 'created_by',
15 15
     ),
16 16
     'my_items' => true,
17 17
     'vname' => 'LBL_CURRENT_USER_FILTER',
18 18
     'type' => 'bool',
19
-  ),
20
-  'range_price' => 
21
-  array (
19
+    ),
20
+    'range_price' => 
21
+    array (
22 22
     'query_type' => 'default',
23 23
     'enable_range_search' => true,
24
-  ),
25
-  'start_range_price' => 
26
-  array (
24
+    ),
25
+    'start_range_price' => 
26
+    array (
27 27
     'query_type' => 'default',
28 28
     'enable_range_search' => true,
29
-  ),
30
-  'end_range_price' => 
31
-  array (
29
+    ),
30
+    'end_range_price' => 
31
+    array (
32 32
     'query_type' => 'default',
33 33
     'enable_range_search' => true,
34
-  ),
35
-  'range_cost' => 
36
-  array (
34
+    ),
35
+    'range_cost' => 
36
+    array (
37 37
     'query_type' => 'default',
38 38
     'enable_range_search' => true,
39
-  ),
40
-  'start_range_cost' => 
41
-  array (
39
+    ),
40
+    'start_range_cost' => 
41
+    array (
42 42
     'query_type' => 'default',
43 43
     'enable_range_search' => true,
44
-  ),
45
-  'end_range_cost' => 
46
-  array (
44
+    ),
45
+    'end_range_cost' => 
46
+    array (
47 47
     'query_type' => 'default',
48 48
     'enable_range_search' => true,
49
-  ),
50
-  'range_date_entered' => 
51
-  array (
49
+    ),
50
+    'range_date_entered' => 
51
+    array (
52 52
     'query_type' => 'default',
53 53
     'enable_range_search' => true,
54 54
     'is_date_field' => true,
55
-  ),
56
-  'start_range_date_entered' => 
57
-  array (
55
+    ),
56
+    'start_range_date_entered' => 
57
+    array (
58 58
     'query_type' => 'default',
59 59
     'enable_range_search' => true,
60 60
     'is_date_field' => true,
61
-  ),
62
-  'end_range_date_entered' => 
63
-  array (
61
+    ),
62
+    'end_range_date_entered' => 
63
+    array (
64 64
     'query_type' => 'default',
65 65
     'enable_range_search' => true,
66 66
     'is_date_field' => true,
67
-  ),
68
-  'range_date_modified' => 
69
-  array (
67
+    ),
68
+    'range_date_modified' => 
69
+    array (
70 70
     'query_type' => 'default',
71 71
     'enable_range_search' => true,
72 72
     'is_date_field' => true,
73
-  ),
74
-  'start_range_date_modified' => 
75
-  array (
73
+    ),
74
+    'start_range_date_modified' => 
75
+    array (
76 76
     'query_type' => 'default',
77 77
     'enable_range_search' => true,
78 78
     'is_date_field' => true,
79
-  ),
80
-  'end_range_date_modified' => 
81
-  array (
79
+    ),
80
+    'end_range_date_modified' => 
81
+    array (
82 82
     'query_type' => 'default',
83 83
     'enable_range_search' => true,
84 84
     'is_date_field' => true,
85
-  ),
85
+    ),
86 86
     'favorites_only' => array(
87 87
         'query_type'=>'format',
88 88
         'operator' => 'subquery',
Please login to merge, or discard this patch.
modules/AOS_Products/metadata/detailviewdefs.php 1 patch
Indentation   +59 added lines, -59 removed lines patch added patch discarded remove patch
@@ -2,127 +2,127 @@
 block discarded – undo
2 2
 $module_name = 'AOS_Products';
3 3
 $viewdefs [$module_name] = 
4 4
 array (
5
-  'DetailView' => 
6
-  array (
5
+    'DetailView' => 
6
+    array (
7 7
     'templateMeta' => 
8 8
     array (
9
-      'form' => 
10
-      array (
9
+        'form' => 
10
+        array (
11 11
         'buttons' => 
12 12
         array (
13
-          0 => 'EDIT',
14
-          1 => 'DUPLICATE',
15
-          2 => 'DELETE',
13
+            0 => 'EDIT',
14
+            1 => 'DUPLICATE',
15
+            2 => 'DELETE',
16
+        ),
16 17
         ),
17
-      ),
18
-      'maxColumns' => '2',
19
-      'widths' => 
20
-      array (
18
+        'maxColumns' => '2',
19
+        'widths' => 
20
+        array (
21 21
         0 => 
22 22
         array (
23
-          'label' => '10',
24
-          'field' => '30',
23
+            'label' => '10',
24
+            'field' => '30',
25 25
         ),
26 26
         1 => 
27 27
         array (
28
-          'label' => '10',
29
-          'field' => '30',
28
+            'label' => '10',
29
+            'field' => '30',
30
+        ),
30 31
         ),
31
-      ),
32
-      'useTabs' => true,
33
-      'tabDefs' => 
34
-      array (
32
+        'useTabs' => true,
33
+        'tabDefs' => 
34
+        array (
35 35
         'DEFAULT' => 
36 36
         array (
37
-          'newTab' => true,
38
-          'panelDefault' => 'expanded',
37
+            'newTab' => true,
38
+            'panelDefault' => 'expanded',
39
+        ),
39 40
         ),
40
-      ),
41 41
     ),
42 42
     'panels' => 
43 43
     array (
44
-      'default' => 
45
-      array (
44
+        'default' => 
45
+        array (
46 46
         0 => 
47 47
         array (
48
-          0 => 
49
-          array (
48
+            0 => 
49
+            array (
50 50
             'name' => 'name',
51 51
             'label' => 'LBL_NAME',
52
-          ),
53
-          1 => 
54
-          array (
52
+            ),
53
+            1 => 
54
+            array (
55 55
             'name' => 'part_number',
56 56
             'label' => 'LBL_PART_NUMBER',
57
-          ),
57
+            ),
58 58
         ),
59 59
         1 => 
60 60
         array (
61
-          0 => 
62
-          array (
61
+            0 => 
62
+            array (
63 63
             'name' => 'aos_product_category_name',
64 64
             'label' => 'LBL_AOS_PRODUCT_CATEGORYS_NAME',
65
-          ),
66
-          1 => 
67
-          array (
65
+            ),
66
+            1 => 
67
+            array (
68 68
             'name' => 'type',
69 69
             'label' => 'LBL_TYPE',
70
-          ),
70
+            ),
71 71
         ),
72 72
         2 => 
73 73
         array (
74
-          0 => 
75
-          array (
74
+            0 => 
75
+            array (
76 76
             'name' => 'currency_id',
77 77
             'studio' => 'visible',
78 78
             'label' => 'LBL_CURRENCY',
79
-          ),
79
+            ),
80 80
         ),
81 81
         3 => 
82 82
         array (
83
-          0 => 
84
-          array (
83
+            0 => 
84
+            array (
85 85
             'name' => 'cost',
86 86
             'label' => 'LBL_COST',
87
-          ),
88
-          1 => 
89
-          array (
87
+            ),
88
+            1 => 
89
+            array (
90 90
             'name' => 'price',
91 91
             'label' => 'LBL_PRICE',
92
-          ),
92
+            ),
93 93
         ),
94 94
         4 => 
95 95
         array (
96
-          0 => 
97
-          array (
96
+            0 => 
97
+            array (
98 98
             'name' => 'contact',
99 99
             'label' => 'LBL_CONTACT',
100
-          ),
101
-          1 => 
102
-          array (
100
+            ),
101
+            1 => 
102
+            array (
103 103
             'name' => 'url',
104 104
             'label' => 'LBL_URL',
105
-          ),
105
+            ),
106 106
         ),
107 107
         5 => 
108 108
         array (
109
-          0 => 
110
-          array (
109
+            0 => 
110
+            array (
111 111
             'name' => 'description',
112 112
             'label' => 'LBL_DESCRIPTION',
113
-          ),
113
+            ),
114 114
         ),
115 115
         6 => 
116 116
         array (
117
-          0 => 
118
-          array (
117
+            0 => 
118
+            array (
119 119
             'name' => 'product_image',
120 120
             'label' => 'LBL_PRODUCT_IMAGE',
121 121
             'customCode' => '<img src="{$fields.product_image.value}"/>',
122
-          ),
122
+            ),
123 123
         ),
124
-      ),
124
+        ),
125
+    ),
125 126
     ),
126
-  ),
127 127
 );
128 128
 ?>
Please login to merge, or discard this patch.
modules/AOS_Products/metadata/quickcreatedefs.php 1 patch
Indentation   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -2,115 +2,115 @@
 block discarded – undo
2 2
 $module_name = 'AOS_Products';
3 3
 $viewdefs [$module_name] = 
4 4
 array (
5
-  'QuickCreate' => 
6
-  array (
5
+    'QuickCreate' => 
6
+    array (
7 7
     'templateMeta' => 
8 8
     array (
9
-      'maxColumns' => '2',
10
-      'widths' => 
11
-      array (
9
+        'maxColumns' => '2',
10
+        'widths' => 
11
+        array (
12 12
         0 => 
13 13
         array (
14
-          'label' => '10',
15
-          'field' => '30',
14
+            'label' => '10',
15
+            'field' => '30',
16 16
         ),
17 17
         1 => 
18 18
         array (
19
-          'label' => '10',
20
-          'field' => '30',
19
+            'label' => '10',
20
+            'field' => '30',
21
+        ),
21 22
         ),
22
-      ),
23
-      'form' => 
24
-      array (
23
+        'form' => 
24
+        array (
25 25
         'enctype' => 'multipart/form-data',
26 26
         'headerTpl' => 'modules/AOS_Products/tpls/EditViewHeader.tpl',
27
-      ),
28
-      'includes' => 
29
-      array (
27
+        ),
28
+        'includes' => 
29
+        array (
30 30
         0 => 
31 31
         array (
32
-          'file' => 'modules/AOS_Products/js/products.js',
32
+            'file' => 'modules/AOS_Products/js/products.js',
33 33
         ),
34
-      ),
35
-      'useTabs' => false,
36
-      'tabDefs' => 
37
-      array (
34
+        ),
35
+        'useTabs' => false,
36
+        'tabDefs' => 
37
+        array (
38 38
         'DEFAULT' => 
39 39
         array (
40
-          'newTab' => false,
41
-          'panelDefault' => 'expanded',
40
+            'newTab' => false,
41
+            'panelDefault' => 'expanded',
42
+        ),
42 43
         ),
43
-      ),
44 44
     ),
45 45
     'panels' => 
46 46
     array (
47
-      'default' => 
48
-      array (
47
+        'default' => 
48
+        array (
49 49
         0 => 
50 50
         array (
51
-          0 => 
52
-          array (
51
+            0 => 
52
+            array (
53 53
             'name' => 'name',
54 54
             'label' => 'LBL_NAME',
55
-          ),
56
-          1 => 
57
-          array (
55
+            ),
56
+            1 => 
57
+            array (
58 58
             'name' => 'part_number',
59 59
             'label' => 'LBL_PART_NUMBER',
60
-          ),
60
+            ),
61 61
         ),
62 62
         1 => 
63 63
         array (
64
-          0 => 
65
-          array (
64
+            0 => 
65
+            array (
66 66
             'name' => 'url',
67 67
             'label' => 'LBL_URL',
68
-          ),
69
-          1 => 
70
-          array (
68
+            ),
69
+            1 => 
70
+            array (
71 71
             'name' => 'type',
72 72
             'label' => 'LBL_TYPE',
73
-          ),
73
+            ),
74 74
         ),
75 75
         2 => 
76 76
         array (
77
-          0 => 
78
-          array (
77
+            0 => 
78
+            array (
79 79
             'name' => 'cost',
80 80
             'label' => 'LBL_COST',
81
-          ),
82
-          1 => 
83
-          array (
81
+            ),
82
+            1 => 
83
+            array (
84 84
             'name' => 'price',
85 85
             'label' => 'LBL_PRICE',
86
-          ),
86
+            ),
87 87
         ),
88 88
         3 => 
89 89
         array (
90
-          0 => 
91
-          array (
90
+            0 => 
91
+            array (
92 92
             'name' => 'contact',
93 93
             'label' => 'LBL_CONTACT',
94
-          ),
94
+            ),
95 95
         ),
96 96
         4 => 
97 97
         array (
98
-          0 => 
99
-          array (
98
+            0 => 
99
+            array (
100 100
             'name' => 'description',
101 101
             'label' => 'LBL_DESCRIPTION',
102
-          ),
102
+            ),
103 103
         ),
104 104
         5 => 
105 105
         array (
106
-          0 => 
107
-          array (
106
+            0 => 
107
+            array (
108 108
             'name' => 'product_image',
109 109
             'customCode' => '{$PRODUCT_IMAGE}',
110
-          ),
110
+            ),
111
+        ),
111 112
         ),
112
-      ),
113 113
     ),
114
-  ),
114
+    ),
115 115
 );
116 116
 ?>
Please login to merge, or discard this patch.
modules/AOS_Products/metadata/metafiles.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -1,28 +1,28 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Products, Quotations & Invoices modules.
4
- * Extensions to SugarCRM
5
- * @package Advanced OpenSales for SugarCRM
6
- * @subpackage Products
7
- * @copyright SalesAgility Ltd http://www.salesagility.com
8
- * 
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
11
- * the Free Software Foundation; either version 3 of the License, or
12
- * (at your option) any later version.
13
- *
14
- * This program is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
- * GNU General Public License for more details.
18
- *
19
- * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
20
- * along with this program; if not, see http://www.gnu.org/licenses
21
- * or write to the Free Software Foundation,Inc., 51 Franklin Street,
22
- * Fifth Floor, Boston, MA 02110-1301  USA
23
- *
24
- * @author Salesagility Ltd <[email protected]>
25
- */
3
+     * Products, Quotations & Invoices modules.
4
+     * Extensions to SugarCRM
5
+     * @package Advanced OpenSales for SugarCRM
6
+     * @subpackage Products
7
+     * @copyright SalesAgility Ltd http://www.salesagility.com
8
+     * 
9
+     * This program is free software; you can redistribute it and/or modify
10
+     * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
11
+     * the Free Software Foundation; either version 3 of the License, or
12
+     * (at your option) any later version.
13
+     *
14
+     * This program is distributed in the hope that it will be useful,
15
+     * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
+     * GNU General Public License for more details.
18
+     *
19
+     * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
20
+     * along with this program; if not, see http://www.gnu.org/licenses
21
+     * or write to the Free Software Foundation,Inc., 51 Franklin Street,
22
+     * Fifth Floor, Boston, MA 02110-1301  USA
23
+     *
24
+     * @author Salesagility Ltd <[email protected]>
25
+     */
26 26
 
27 27
 /*
28 28
  * Created on August 2 2007
@@ -31,12 +31,12 @@  discard block
 block discarded – undo
31 31
  * Window - Preferences - PHPeclipse - PHP - Code Templates
32 32
  */
33 33
 $module_name = 'AOS_Products';
34
- $metafiles[$module_name] = array(
35
-	'detailviewdefs'  => 	'modules/' . $module_name . '/metadata/detailviewdefs.php', 	
36
-	'editviewdefs'    => 	'modules/' . $module_name . '/metadata/editviewdefs.php',
37
- 	'listviewdefs'    => 	'modules/' . $module_name . '/metadata/listviewdefs.php',
38
- 	'searchdefs'      =>    'modules/' . $module_name . '/metadata/searchdefs.php',
39
- 	'popupdefs'	      =>    'modules/' . $module_name . '/metadata/popupdefs.php',
40
- 	'searchfields'	  =>    'modules/' . $module_name . '/metadata/SearchFields.php',
41
- );
34
+    $metafiles[$module_name] = array(
35
+    'detailviewdefs'  => 	'modules/' . $module_name . '/metadata/detailviewdefs.php', 	
36
+    'editviewdefs'    => 	'modules/' . $module_name . '/metadata/editviewdefs.php',
37
+        'listviewdefs'    => 	'modules/' . $module_name . '/metadata/listviewdefs.php',
38
+        'searchdefs'      =>    'modules/' . $module_name . '/metadata/searchdefs.php',
39
+        'popupdefs'	      =>    'modules/' . $module_name . '/metadata/popupdefs.php',
40
+        'searchfields'	  =>    'modules/' . $module_name . '/metadata/SearchFields.php',
41
+    );
42 42
 ?>
Please login to merge, or discard this patch.
modules/AOS_Products/metadata/listviewdefs.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -1,35 +1,35 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 $listViewDefs ['AOS_Products'] = 
3 3
 array (
4
-  'NAME' => 
5
-  array (
4
+    'NAME' => 
5
+    array (
6 6
     'width' => '15%',
7 7
     'label' => 'LBL_NAME',
8 8
     'default' => true,
9 9
     'link' => true,
10
-  ),
11
-  'PART_NUMBER' => 
12
-  array (
10
+    ),
11
+    'PART_NUMBER' => 
12
+    array (
13 13
     'width' => '10%',
14 14
     'label' => 'LBL_PART_NUMBER',
15 15
     'default' => true,
16
-  ),
17
-  'COST' => 
18
-  array (
16
+    ),
17
+    'COST' => 
18
+    array (
19 19
     'width' => '10%',
20 20
     'label' => 'LBL_COST',
21 21
     'currency_format' => true,
22 22
     'default' => true,
23
-  ),
24
-  'PRICE' => 
25
-  array (
23
+    ),
24
+    'PRICE' => 
25
+    array (
26 26
     'width' => '10%',
27 27
     'label' => 'LBL_PRICE',
28 28
     'currency_format' => true,
29 29
     'default' => true,
30
-  ),
31
-  'AOS_PRODUCT_CATEGORY_NAME' => 
32
-  array (
30
+    ),
31
+    'AOS_PRODUCT_CATEGORY_NAME' => 
32
+    array (
33 33
     'type' => 'relate',
34 34
     'studio' => 'visible',
35 35
     'label' => 'LBL_AOS_PRODUCT_CATEGORYS_NAME',
@@ -38,24 +38,24 @@  discard block
 block discarded – undo
38 38
     'width' => '10%',
39 39
     'default' => true,
40 40
     'related_fields' =>
41
-      array (
42
-          'aos_product_category_id',
43
-      ),
44
-  ),
45
-  'CREATED_BY_NAME' => 
46
-  array (
41
+        array (
42
+            'aos_product_category_id',
43
+        ),
44
+    ),
45
+    'CREATED_BY_NAME' => 
46
+    array (
47 47
     'width' => '10%',
48 48
     'label' => 'LBL_CREATED',
49 49
     'default' => true,
50 50
     'module' => 'Users',
51 51
     'link' => true,
52 52
     'id' => 'CREATED_BY',
53
-  ),
54
-  'DATE_ENTERED' => 
55
-  array (
53
+    ),
54
+    'DATE_ENTERED' => 
55
+    array (
56 56
     'width' => '5%',
57 57
     'label' => 'LBL_DATE_ENTERED',
58 58
     'default' => true,
59
-  ),
59
+    ),
60 60
 );
61 61
 ?>
Please login to merge, or discard this patch.