Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 459
0.00% covered (danger)
0.00%
0 / 18
CRAP
0.00% covered (danger)
0.00%
0 / 1
appRelate
0.00% covered (danger)
0.00%
0 / 459
0.00% covered (danger)
0.00%
0 / 18
41412
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
2
 sql_options_get
0.00% covered (danger)
0.00%
0 / 39
0.00% covered (danger)
0.00%
0 / 1
1640
 cuentat_options
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 cuentat_options_sql
0.00% covered (danger)
0.00%
0 / 31
0.00% covered (danger)
0.00%
0 / 1
240
 cuentat_prefereida
0.00% covered (danger)
0.00%
0 / 14
0.00% covered (danger)
0.00%
0 / 1
90
 links_final
0.00% covered (danger)
0.00%
0 / 171
0.00% covered (danger)
0.00%
0 / 1
8742
 enums_final
0.00% covered (danger)
0.00%
0 / 116
0.00% covered (danger)
0.00%
0 / 1
56
 tables_final_info
0.00% covered (danger)
0.00%
0 / 33
0.00% covered (danger)
0.00%
0 / 1
2
 table_link_delete_rules
0.00% covered (danger)
0.00%
0 / 9
0.00% covered (danger)
0.00%
0 / 1
20
 table_make_multiple_catalog
n/a
0 / 0
n/a
0 / 0
1
 table_unmake_child
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 1
30
 log
0.00% covered (danger)
0.00%
0 / 7
0.00% covered (danger)
0.00%
0 / 1
30
 log_tema_to_id
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
12
 log_actions_get
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 log_kv_action_to_id
0.00% covered (danger)
0.00%
0 / 12
0.00% covered (danger)
0.00%
0 / 1
156
 log_action_to_id
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
6
 tables_default_info
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
 enums_default_info
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 links_default_info
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3class appRelate extends appRelateBase {
4    public $tables=array();
5    public $enums=array();
6    public $links=array();
7    public $has_workflow=false;
8
9    function __construct() {
10        $this->tables_default_info();
11        $this->enums_default_info();
12        $this->links_default_info();
13
14        $this->enums_final();
15        $this->tables_final_info();
16        $this->links_final();
17    }
18
19    /*
20    public function sql_link_read($table,$fieldName,$id='') {
21        if( strpos($table,'_pago') && $fieldName=='banco_id' ) {
22            return $this->links['banco_cuenta']['read'];
23        }
24        return parent::sql_link_read($table,$fieldName,$id);
25    }
26    */
27    public function sql_options_get($table,$fieldName,$linkItem=null,$iacase=null,$selectedId=null,$for_edit=true,$for_read=true,$inGrid=false) {
28        global $gIAParametros;
29
30        if($inGrid && ($fieldName=='cuentaT_deliveredto_id' || $linkItem=='cuentat_todas_grid' || $fieldName=='origen_cuentat_id' || $fieldName=='cuentaT_id')) {
31            return $this->cuentat_options_sql('',true);
32        }
33        //echo "T: $table, F: $fieldName, LI: $linkItem";
34        if($table=='iac_usr' && $fieldName=='cuentat_preferida_id')
35        {
36            //echo "<br>".$this->cuentat_options_sql($linkItem,false,$table,$fieldName);
37            return $this->cuentat_options_sql($linkItem,false,$table,$fieldName);
38        }
39        if($fieldName=='cuentaT_id' || $fieldName=='origen_cuentat_id' || $fieldName=='cuentaT_deliveredto_id' || $fieldName=='cuentat_preferida_id') {
40            //echo "<pre>".$this->cuentat_options_sql('',false,$table,$fieldName,$iacase)."</pre>";
41            $con_tiendas = $table == 'vale' && $gIAParametros['abonar_cuentast_tiendas'] != 'Si' ? false : true;
42
43            return $this->cuentat_options_sql('',false,$table,$fieldName,$iacase, $con_tiendas);
44        }
45        /*
46        if( strpos($table,'_pago') && $fieldName=='banco_id' ) {
47            $select="SELECT   bc.banco_cuenta_id, CONCAT_WS(' ',IF(bc.naturaleza='Fiscal','F','N'),b.clave,bc.nombre) FROM banco_cuenta bc JOIN banco b ON b.banco_id=bc.banco_id";
48            $order_by="ORDER BY bc.orden,bc.naturaleza,b.clave,bc.nombre";
49            if(usuarioTipoRony())
50                $where='';
51            elseif($for_edit)
52                $where='';
53            else
54                $where='';
55            return  "$select $where $order_by";
56        }
57        */
58
59        if($fieldName=='tienda_id') {
60            $actualtienda_id= empty($selectedId) ? '' : " OR t.tienda_id=".strit($selectedId);
61            if($table!='cheque' && $table!='pagare')
62                $permiso='cobranza';
63            else
64                $permiso=$table;
65            if($inGrid /** && $linkItem=='tiendas_todas_grid' **/)
66                $sql= 'SELECT /* appRelate:sql_options_get */ tienda_id as id, clave as label FROM tienda t ORDER BY 2';
67            elseif(usuarioTipoRony($_SESSION['usuario_id'])){
68                if($for_edit)
69                    $sql= "SELECT /* appRelate:sql_options_get */ tienda_id as id, clave as label FROM tienda t WHERE vale='Active' $actualtienda_id ORDER BY 2";
70                else
71                    $sql= "SELECT /* appRelate:sql_options_get */ tienda_id as id, clave as label FROM tienda t ORDER BY 2";
72            }
73            elseif($for_edit)
74               //CAMBIAPLANTILLATIENDAS
75               $sql= "SELECT /* appRelate:sql_options_get */ t.tienda_id as id, t.clave as label
76                FROM plantilla_cobranza p JOIN iac_usr u ON p.plantillatienda_id=u.plantillatienda_id JOIN tienda t ON p.tienda_id=t.tienda_id WHERE t.vale='Active' AND u.iac_usr_id=".strit($_SESSION['usuario_id'])." AND p.permiso_$permiso ='Editar' $actualtienda_id ORDER BY 2";
77            elseif($for_read)
78                //CAMBIAPLANTILLATIENDAS
79               $sql= "SELECT /* appRelate:sql_options_get */ t.tienda_id as id, t.clave as label
80                FROM plantilla_cobranza p JOIN iac_usr u ON p.plantillatienda_id=u.plantillatienda_id JOIN tienda t ON p.tienda_id=t.tienda_id  WHERE u.iac_usr_id=".strit($_SESSION['usuario_id'])." AND p.permiso_$permiso = 'Consultar' ORDER BY 2";
81            else
82                $sql= "SELECT /* appRelate:sql_options_get */ tienda_id as id, clave as label FROM tienda t WHERE vale='Active' ORDER BY 2";
83            //echo $sql;
84            return $sql;
85
86        }
87
88
89        if( $iacase!==null && ($iacase->table=='cheque' || $iacase->table=='pagare' || $iacase->table=='vale') && ($fieldName=='cliente_id' || $fieldName=='cliente_proveedor_id' )  ) {
90            $actual_id= empty($selectedId) ? '' : " OR cliente_id=".strit($selectedId);
91            if($fieldName=='cliente_id'){
92
93                $usuario_id =$_SESSION['usuario_id'];
94                $vale = "WHERE (vale='Active' AND receive_cheques=1 AND cliente=1) ";
95
96                $cual_permiso = $iacase->table=='cheque' || $iacase->table=='pagare' ? $iacase->table : "cobranza";
97
98                if(!usuarioTipoRony($usuario_id))
99                    //CAMBIAPLANTILLATIENDAS
100                    $vale .= "AND EXISTS ( SELECT pc.tienda_id FROM plantilla_cobranza pc JOIN iac_usr u ON u.plantillatienda_id = pc.plantillatienda_id JOIN cliente cte ON cte.cliente_id = cliente.cliente_id JOIN JSON_TABLE(cte.origen_bodega, '$[*]' COLUMNS ( tienda_id smallint unsigned PATH '$.tienda_id' )) j ON pc.tienda_id = j.tienda_id WHERE (pc.permiso_cheque <>'Nada' OR pc.permiso_pagare <>'Nada' OR pc.permiso_cobranza <>'Nada') AND u.iac_usr_id = ".strit($usuario_id).")";
101
102                if($for_read)
103                    $vale = "";
104                //VCA restringimos el acceso a clientes, según los permisos que tenga de cobranza (CAMBIAPLANTILLATIENDAS)
105                $sql = "SELECT /* appRelate:sql_options_get */ cliente_id as id, nombre as label FROM cliente $vale $actual_id ORDER BY  orden, 2";
106//                echo "<li>$sql";
107                return  $sql;
108            }
109        }
110        if($fieldName=='banco_cuenta_id') {
111            $select="SELECT /* appRelate:sql_options_get */ bc.banco_cuenta_id, bc.nombre FROM banco_cuenta bc JOIN banco b ON b.banco_id=bc.banco_id";//CONCAT_WS(' ',IF(bc.naturaleza='Fiscal','F','N'),b.clave,bc.nombre)
112            $order_by="ORDER BY bc.orden,bc.naturaleza,b.clave,bc.nombre";
113            if(usuarioTipoRony($_SESSION['usuario_id']))
114                $where='';
115            elseif($for_edit)
116                $where='';
117            else
118                $where='';
119            return  "$select $where $order_by";
120        }
121
122        if($table == 'vale' && $fieldName == 'metodo_pago_id')
123        {
124            return "SELECT banco_mov_tipo_id,tipo,lleva_ide as `data-lleva_ide`,cash as `data-cash`,deposit as `data-deposit`,solicita_link_bancario as `data-solicita_link_bancario`,especial as `data-especial` FROM banco_mov_tipo WHERE deposit='Si' AND link_vale='Q' ORDER BY orden";
125        }
126        return parent::sql_options_get($table,$fieldName,$linkItem,$iacase,$selectedId,$for_edit,$for_read);
127    }
128
129
130    function cuentat_options($usr_id='',$todas=false, $table='', $fieldName='', $conTiendas=true, $soloTiendas=false) {
131        //if(!array_key_exists('cuentat_id',$_SESSION))
132            //$_SESSION['cuentat_id']='';
133        //return ia_SqlOptions($this->cuentat_options_sql($usr_id,$todas, $table, $fieldName, null, $conTiendas, $soloTiendas), $this->cuentat_prefereida('',obtenNombredelPermisoenCuentaT($table, $fieldName)));
134        return ia_Options_array(ia_sqlArray($this->cuentat_options_sql($usr_id,$todas, $table, $fieldName, null, $conTiendas, $soloTiendas),null), $this->cuentat_prefereida('',obtenNombredelPermisoenCuentaT($table, $fieldName)));
135    }
136    function cuentat_options_sql($usr_id='',$todas=false, $table='', $fieldName='', $iacase=null, $conTiendas=true, $soloTiendas=false) {
137        //echo "<pre>T: $table, F: $fieldName</pre>";
138        if(empty($usr_id))
139            $usr_id=$_SESSION['usuario_id'];
140
141        $sinTiendas = '';
142        if(!$conTiendas)
143            $sinTiendas = " AND es_de IN ('Usuario','Huerfana') ";
144
145        $purasTiendas = '';
146        if($soloTiendas)
147            $purasTiendas = " AND es_de='Tienda' ";
148
149        $userProfile = ia_singleton("SELECT * FROM iac_usr WHERE iac_usr_id = ".strit($usr_id));
150
151        if($todas) //No hace override, sea quien sea. Nuevamente quitamos esta restriccion  && ($table!='cheque' && $fieldName!='cuentaT_deliveredto_id')  //|| $userProfile['tipo'] == 'Super user'
152            return "SELECT ".SQL_CACHE." t.cuentat_id,t.usuario,t.tienda_id from cuentat t WHERE 1 $sinTiendas $purasTiendas ORDER BY t.usuario";
153
154        if(usuarioTipoRony($usr_id))
155            return "SELECT ".SQL_CACHE." t.cuentat_id,t.usuario,t.tienda_id from cuentat t WHERE t.vale='Active' $sinTiendas $purasTiendas ORDER BY t.usuario";
156
157        if(empty($userProfile['cuentat_preferida_id']))
158            $userProfile['cuentat_preferida_id'] = -1;
159
160        $npenctaT = obtenNombredelPermisoenCuentaT($table, $fieldName);
161
162        if($npenctaT === false)
163            return "SELECT ".SQL_CACHE." t.cuentat_id,t.usuario,t.tienda_id from cuentat t WHERE t.cuentat_id=-1";
164
165        $ctaTextra = '';
166        if($iacase!=null)
167            if(array_key_exists($fieldName,$iacase->enDB))
168                $ctaTextra=" OR t.cuentat_id='".$iacase->enDB[$fieldName]."' ";
169
170        /**
171        //Si es el primer delivered sólo puede poner delivered a Ã©l mismo. Luego ya puede transferirlo.
172        if(false && $iacase!=null)
173        {
174            if(($iacase->table == 'cheque' || $iacase->table == 'pagare')
175            && $fieldName == 'cuentaT_deliveredto_id' &&
176            // Este renglón revisa si el primer delivered
177            (empty($iacase->enDB['cuentaT_deliveredto_id']) && empty($iacase->enDB['delivered'])) )
178            {
179                $ctatTPref=$this->cuentat_prefereida($usr_id, 'poner_delivered_cheques');
180                $sqltoReturn = "SELECT ".SQL_CACHE." t.cuentat_id,t.usuario,t.tienda_id from cuentat t WHERE t.vale='Active' AND t.cuentat_id = '$ctatTPref'";
181                //echo "<pre>$sqltoReturn</pre>";
182                return $sqltoReturn;
183            }
184        }
185        **/
186
187
188        //echo "U: $usr_id, P: $npenctaT<br/>";
189
190        $ctasT = cuentasTPuede($usr_id, $npenctaT);
191
192
193        if((empty($ctasT) || $ctasT == "''") && $fieldName=='cuentaT_deliveredto_id' && ($table=='cheque' || $table=='pagare'))
194        {
195            $ctasT="'$usr_id'";
196            $ctatTPref = $usr_id;
197            $active="";
198        }
199        else
200        {
201            $ctatTPref = $this->cuentat_prefereida($usr_id, $npenctaT);
202            $active=" t.vale='Active' AND ";
203        }
204
205        $sqltoReturn = "SELECT ".SQL_CACHE." t.cuentat_id,t.usuario,t.tienda_id from cuentat t WHERE $active t.cuentat_id IN ($ctasT$ctaTextra $sinTiendas $purasTiendas ORDER BY t.cuentat_id='$ctatTPref' DESC";
206        //echo "<pre>$sqltoReturn</pre>";
207        return $sqltoReturn;
208    }
209
210    //arreglar: verificar que tenga permiso para la accion solicitada. si no tiene, regresar null.
211    function cuentat_prefereida($usr_id='', $quePermiso='') {
212        if(empty($usr_id))
213            $usr_id=$_SESSION['usuario_id'];
214        //if(usuarioTipoRony($usr_id)) //Es Rony. Ã‰l no aparece en la tabla de permisos, y si no tiene definida cuentat_preferida_id, entonces, regresamos su propia cuenta T.
215            //return 1;
216        //Cambiamos la regla. 09-01-2017
217
218        if(empty($quePermiso))
219            $quePermiso = 'acceso';
220
221        $id=ia_singleread("SELECT /*ctaT preferida*/ ".SQL_CACHE." IF(cuentat_preferida_id IS NULL AND cuentat_propia='Si',iac_usr_id,cuentat_preferida_id) FROM iac_usr WHERE iac_usr_id=".strit($usr_id)." LIMIT 1",0);
222        if(!empty($id) && puedeCuentaT($id,$usr_id,$quePermiso))
223            return $id;
224
225        if(!empty($id) && usuarioTipoRony($usr_id))
226            return 1; //Ya intentó y sigue sin tener cuentat preferida, pone la de Rony.
227
228
229        //$id=ia_singleread("SELECT /*ctaT preferida*/ ".SQL_CACHE." cuentaT_id FROM permiso_ctat WHERE acceso='Si' AND iac_usr_id=".strit($usr_id)." LIMIT 1",0);
230        $ctasTPuede = cuentasTPuede($usr_id,$quePermiso,'arr');
231        //echo print_r($ctasTPuede, true);
232        if(!empty($ctasTPuede))
233            $id = array_values($ctasTPuede)[0];
234
235        if(!empty($id))
236            return $id;
237        else
238            return NULL;
239    }
240    /**
241    function cuentat_prefereida($usr_id='',$tienda_id='') {
242        if(empty($usr_id))
243            $usr_id=$_SESSION['usuario_id'];
244        $id=ia_singleread("SELECT ".SQL_CACHE." cuentat_id FROM cuentat WHERE vale='Active' AND usuario_id=".strit($usr_id)." LIMIT 1",0);
245        if(!empty($id))
246            return $id;
247        if(!empty($tienda_id))
248            $id=ia_singleread("SELECT ".SQL_CACHE." cuentat_id FROM cuentat WHERE vale='Active' AND tienda_id=".strit($tienda_id)." LIMIT 1",0);
249        if(!empty($id))
250            return $id;
251        //return ia_singleread("SELECT t.cuentat_id FROM cuentat t WHERE t.vale='Active' AND tienda_id IN (SELECT tienda_id FROM usuario_cobranza WHERE iac_usr_id=".strit($usr_id).") LIMIT 1",0);
252        //return ia_singleread("SELECT t.cuentat_id FROM cuentat t WHERE t.vale='Active' AND tienda_id IN (SELECT tienda_id FROM usuario_cobranza WHERE iac_usr_id=".strit($usr_id)." AND  (permiso_cobranza = 'Editar' OR permiso_cheque = 'Editar' OR permiso_pagare = 'Editar' ) ) LIMIT 1",0);
253        //CAMBIAPLANTILLATIENDAS
254        return ia_singleread("SELECT t.cuentat_id FROM cuentat t WHERE t.vale='Active' AND tienda_id IN (SELECT p.tienda_id FROM plantilla_cobranza p JOIN iac_usr u ON p.plantillatienda_id=u.plantillatienda_id WHERE iac_usr_id=".strit($usr_id)." AND  (permiso_cobranza = 'Editar' OR permiso_cheque = 'Editar' OR permiso_pagare = 'Editar' ) ) LIMIT 1",0);
255    }
256    */
257
258    /**
259     * appRelate::links_final
260     * Redefine links (select boxes) , esta _final_info no se reescribe
261     * $this->links[table][sql_options] sql para sacar options
262     * $this->links[table][read] sql leer las options
263     */
264    public function links_final(){
265          // falta tienda limiter
266
267
268         $this->links['plantillatienda'] =
269            array (
270            'options' => 'SELECT /*appRelate*/ m.plantillatienda_id as id, plantilla as label FROM plantillatienda m  ORDER BY  2',
271            'read' => 'SELECT /*appRelate*/ plantilla as label FROM plantillatienda m WHERE plantillatienda_id=\'%id%\' ORDER BY  1',
272         );
273        //VCA
274        $this->links['cuentaT_tipo_mov'] =
275        array (
276            'options' => "SELECT  banco_mov_tipo_id as id, tipo as label FROM banco_mov_tipo  WHERE vale='Active' ORDER BY  orden, 2",
277            'read' => "SELECT  tipo as label FROM banco_mov_tipo WHERE banco_mov_tipo_id='%id%' ORDER BY  orden, 1",
278            'orderby' => ' orden,',
279        );
280
281        $this->links['metodo_pago'] =
282        array (
283            'options' => "SELECT  banco_mov_tipo_id as id, tipo as label FROM banco_mov_tipo  WHERE vale='Active' ORDER BY  orden, 2",
284            'read' => "SELECT  tipo as label FROM banco_mov_tipo WHERE banco_mov_tipo_id='%id%' ORDER BY  orden, 1",
285            'orderby' => ' orden,',
286        );
287        $this->links['importador'] =
288            array (
289                'options' => 'SELECT /* appRelate:link final cliente */ importador_id as id, nombre as label FROM importador  WHERE activo=\'Si\' ORDER BY  2',
290                'read' => 'SELECT /* appRelate:link value */ nombre as label FROM importador WHERE importador_id=\'%id%\' ORDER BY  nombre',
291                'orderby' => ' nombre,',
292            );
293        $this->links['cliente'] =
294          array (
295            'options' => 'SELECT /* appRelate:link final cliente */ cliente_id as id, nombre as label FROM cliente  WHERE vale=\'Active\' AND cliente=1 ORDER BY  orden, 2',
296            'read' => 'SELECT /* appRelate:link value */ nombre as label FROM cliente WHERE cliente_id=\'%id%\' ORDER BY  orden, 1',
297            'orderby' => ' orden,',
298          );
299          $this->links['proveedor'] =
300          array (
301            'options' => 'SELECT /* appRelate:link final proveedor */ cliente_id as id, nombre as label FROM cliente  WHERE vale=\'Active\' AND proveedor=1 ORDER BY  orden, 2',
302            'read' => 'SELECT /* appRelate:link value */ nombre as label FROM cliente WHERE cliente_id=\'%id%\' ORDER BY  orden, 1',
303            'orderby' => ' orden,',
304          );
305          $this->links['cliente_proveedor_id']=$this->links['proveedor'];
306          $this->links['cliente_proveedor']=$this->links['proveedor'];
307          $this->links['cliente_y_proveedor'] =
308          array (
309            'options' => 'SELECT /* appRelate:link final cliente y proveedor */ cliente_id as id, nombre as label FROM cliente  WHERE vale=\'Active\'  ORDER BY  orden, 2',
310            'read' => 'SELECT /* appRelate:link value */ nombre as label FROM cliente WHERE cliente_id=\'%id%\' ORDER BY  orden, 1',
311            'orderby' => ' orden,',
312          );
313
314          $this->links['collection'] =
315          array (
316            'options' => 'SELECT /* appRelate:link final tabla */ tabla_id as id, tabla as label FROM tablas  ORDER BY   2',
317            'read' => 'SELECT /* appRelate:link value */ tabla as label FROM tablas WHERE tabla_id=\'%id%\' ',
318            'orderby' => ' ',
319          );
320
321          $this->links['usuario'] =
322          array (
323            'options' => 'SELECT /* appRelate:link final tabla */ iac_usr_id as id, nick as label FROM iac_usr  ORDER BY   2',
324            'read' => 'SELECT /* appRelate:link value */ nick as label FROM iac_usr WHERE iac_usr_id=\'%id%\' ',
325            'orderby' => ' ',
326          );
327
328        $this->links['banco_cuenta'] =
329          array (
330            'options' => 'SELECT /* appRelate:link all */ banco_cuenta_id as id, nombre as label FROM banco_cuenta  ORDER BY  orden, 2',
331            'read' => "SELECT /* appRelate:link_final */  nombre as label FROM banco_cuenta WHERE banco_cuenta_id='%id%'",
332            'orderby' => ' orden,',
333          );
334        /*CONCAT_WS(' ',IF(bc.naturaleza='Fiscal','F','N'),b.clave,bc.nombre)*/
335
336           $this->links['tabla'] =$this->links['tablas'] =$this->links['collection_id'] =$this->links['collection'] ;
337
338        $this->tables['compra']['links_from']['compra_pago']['compra_id']['restrict_delete']=false;
339        $this->tables['compra']['links_from']['compra_pago']['compra_id']['delete_with_parent']=true;
340
341        $this->tables['compra']['links_from']['compra_pago_log']['compra_id']['restrict_delete']=false;
342        $this->tables['compra']['links_from']['compra_pago_log']['compra_id']['delete_with_parent']=true;
343
344        $this->tables['cheque']['links_from']['cheque_pago']['cheque_id']['restrict_delete']=false;
345        $this->tables['cheque']['links_from']['cheque_pago']['cheque_id']['delete_with_parent']=true;
346
347        $this->tables['cheque']['links_from']['cheque_pago_log']['cheque_id']['restrict_delete']=false;
348        $this->tables['cheque']['links_from']['cheque_pago_log']['cheque_id']['delete_with_parent']=true;
349
350        $this->tables['pagare']['links_from']['pagare_pago']['pagare_id']['restrict_delete']=false;
351        $this->tables['pagare']['links_from']['pagare_pago']['pagare_id']['delete_with_parent']=true;
352
353        $this->tables['pagare']['links_from']['pagare_pago_log']['pagare_id']['restrict_delete']=false;
354        $this->tables['pagare']['links_from']['pagare_pago_log']['pagare_id']['delete_with_parent']=true;
355
356        $this->tables['vale']['links_from']['vale_uso_log']['vale_id']['restrict_delete']=false;
357        $this->tables['vale']['links_from']['vale_uso_log']['vale_id']['delete_with_parent']=true;
358
359        $this->tables['vale']['links_from']['vale_uso']['vale_id']['restrict_delete']=false;
360        $this->tables['vale']['links_from']['vale_uso']['vale_id']['delete_with_parent']=true;
361
362        $this->tables['vale']['links_from']['vale_permiso']['vale_id']['restrict_delete']=false;
363        $this->tables['vale']['links_from']['vale_permiso']['vale_id']['delete_with_parent']=true;
364
365        $this->tables['vale']['links_from']['vale_pago']['vale_id']['restrict_delete']=false;
366        $this->tables['vale']['links_from']['vale_pago']['vale_id']['delete_with_parent']=true;
367
368
369        $this->tables['iac_usr']['links_from']['cuentat']['usuario_id']['restrict_delete']=false;
370        $this->tables['iac_usr']['links_from']['cuentat']['usuario_id']['delete_with_parent']=true;
371        $this->tables['iac_usr']['links_from']['permiso_ctat']['iac_usr_id']['restrict_delete']=false;
372        $this->tables['iac_usr']['links_from']['permiso_ctat']['iac_usr_id']['delete_with_parent']=true;
373        $this->tables['iac_usr']['links_from']['delivered']['usuario_deliveres_id']['restrict_delete']=false;
374        $this->tables['iac_usr']['links_from']['delivered']['usuario_deliveres_id']['delete_with_parent']=true;
375        $this->tables['iac_usr']['links_from']['delivered']['usuario_accepts_id']['restrict_delete']=false;
376        $this->tables['iac_usr']['links_from']['delivered']['usuario_accepts_id']['delete_with_parent']=true;
377        $this->tables['iac_usr']['links_from']['vale_permiso']['iac_usr_id']['restrict_delete']=false;
378        $this->tables['iac_usr']['links_from']['vale_permiso']['iac_usr_id']['delete_with_parent']=true;
379        $this->tables['iac_usr']['links_from']['login_log']['usuario_id']['restrict_delete']=false;
380        $this->tables['iac_usr']['links_from']['login_log']['usuario_id']['delete_with_parent']=true;
381
382        $this->tables['banco_cuenta']['links_from']['banco_cuenta_mov_plantilla']['banco_cuenta_id']['restrict_delete']=false;
383        $this->tables['banco_cuenta']['links_from']['mov_verificado_plantilla']['banco_cuenta_id']['restrict_delete']=false;
384
385        $this->tables['banco_cuenta']['links_from']['banco_cuenta_mov']['banco_cuenta_id']['restrict_delete']=false;
386        $this->tables['banco_cuenta']['links_from']['mov_verificado']['banco_cuenta_id']['restrict_delete']=false;
387        $this->tables['banco_cuenta']['links_from']['banco_cuenta_mov_link']['banco_cuenta_id']['restrict_delete']=false;
388        $this->tables['banco_cuenta']['links_from']['banco_cuenta_mov_con_links']['banco_cuenta_id']['restrict_delete']=false;
389        $this->tables['banco_cuenta']['links_from']['cheque_pago']['banco_cuenta_id']['restrict_delete']=false;
390        $this->tables['banco_cuenta']['links_from']['pagare_pago']['banco_cuenta_id']['restrict_delete']=false;
391        $this->tables['banco_cuenta']['links_from']['cheque_pago_log']['banco_cuenta_id']['restrict_delete']=false;
392        $this->tables['banco_cuenta']['links_from']['pagare_pago_log']['banco_cuenta_id']['restrict_delete']=false;
393
394        $this->tables['banco_cuenta']['links_from']['banco_cuenta_mov_con_links']['banco_cuenta_id']['delete_with_parent']=false;
395
396
397        foreach ($this->tables['tienda']['links_from'] as $k=>&$v)
398        {
399            if(is_array($v)){
400                foreach ($v as &$vv)
401                    $vv['restrict_delete'] = false;
402            }
403            else
404                $v['tienda_id']['restrict_delete']=false;
405        }
406
407
408        foreach ($this->tables['cuentat']['links_from'] as $k=>&$v)
409        {
410            if(is_array($v)){
411                foreach ($v as &$vv)
412                    $vv['restrict_delete'] = false;
413            }
414            else
415                $v['cuentaT_id']['restrict_delete']=false;
416        }
417
418        foreach ($this->tables['empresa']['links_from'] as $k=>&$v)
419        {
420            if(is_array($v)){
421                foreach ($v as &$vv)
422                    $vv['restrict_delete'] = false;
423            }
424            else
425                $v['empresa_id']['restrict_delete']=false;
426        }
427
428        foreach ($this->tables['cliente']['links_from'] as $k=>&$v)
429        {
430            if(is_array($v)){
431                foreach ($v as &$vv)
432                    if(is_array($vv))
433                        $vv['restrict_delete'] = false;
434            }
435            else
436                $v['cliente_id']['restrict_delete']=false;
437        }
438
439        foreach ($this->tables['banco_cuenta']['links_from'] as $k=>&$v)
440        {
441            if(is_array($v)){
442                foreach ($v as &$vv)
443                    if(is_array($vv))
444                        $vv['restrict_delete'] = false;
445            }
446            else
447                $v['banco_cuenta_id']['restrict_delete']=false;
448        }
449
450        foreach ($this->tables['cp_cliente_direccion']['links_from'] as $k=>&$v)
451        {
452            if(is_array($v)){
453                foreach ($v as &$vv)
454                    if(is_array($vv))
455                        $vv['restrict_delete'] = false;
456            }
457            else
458                $v['cp_cliente_direccion_id']['restrict_delete']=false;
459        }
460
461        foreach ($this->tables['plantilla_cuentat_gasto']['links_from'] as $k=>&$v)
462        {
463            if(is_array($v)){
464                foreach ($v as &$vv)
465                    if(is_array($vv))
466                        $vv['restrict_delete'] = false;
467            }
468            else
469                $v['plantilla_cuentat_gasto_id']['restrict_delete']=false;
470        }
471
472        foreach ($this->tables['nota_bodega']['links_from'] as $k=>&$v)
473        {
474            if(is_array($v)){
475                foreach ($v as &$vv)
476                    if(is_array($vv)) {
477                        $vv['restrict_delete'] = false;
478                        $vv['delete_with_parent'] = false;
479                        if($k == "nota_bodega_items" || $k == "nota_bodega_items_log")
480                            $vv['delete_with_parent'] = true;
481                    }
482            }
483            else {
484
485                $v['nota_bodega_id']['restrict_delete'] = false;
486                $v['nota_bodega_id']['delete_with_parent'] = false;
487                if($k == "nota_bodega_items" || $k == "nota_bodega_items_log")
488                    $v['nota_bodega_id']['delete_with_parent'] = true;
489            }
490        }
491
492        foreach ($this->tables['bodega']['links_from'] as $k=>&$v)
493        {
494            if(is_array($v)){
495                foreach ($v as &$vv)
496                    if(is_array($vv)) {
497                        $vv['restrict_delete'] = false;
498                        $vv['delete_with_parent'] = false;
499                        if($k == "nota_bodega_items" || $k == "nota_bodega_items_log" || $k == "nota_bodega" || $k == "nota_bodega_autorizacion" || $k == "bodega_existencia_diaria")
500                            $vv['restrict_delete'] = true;
501                    }
502            }
503            else {
504
505                $v['bodega_id']['restrict_delete'] = false;
506                $v['bodega_id']['delete_with_parent'] = false;
507                if($k == "nota_bodega_items" || $k == "nota_bodega_items_log" || $k == "nota_bodega" || $k == "nota_bodega_autorizacion" || $k == "bodega_existencia_diaria")
508                    $v['restrict_delete'] = true;
509            }
510        }
511        foreach ($this->tables['producto_bodega']['links_from'] as $k=>&$v)
512        {
513            if(is_array($v)){
514                foreach ($v as &$vv)
515                    if(is_array($vv)) {
516                        $vv['restrict_delete'] = false;
517                        $vv['delete_with_parent'] = false;
518                        if($k == "nota_bodega_items" || $k == "nota_bodega_items_log" || $k == "nota_bodega" || $k == "nota_bodega_autorizacion" || $k == "bodega_existencia_diaria")
519                            $vv['restrict_delete'] = true;
520                    }
521            }
522            else {
523
524                $v['producto_bodega_id']['restrict_delete'] = false;
525                $v['producto_bodega_id']['delete_with_parent'] = false;
526                if($k == "nota_bodega_items" || $k == "nota_bodega_items_log" || $k == "nota_bodega" || $k == "nota_bodega_autorizacion" || $k == "bodega_existencia_diaria")
527                    $v['restrict_delete'] = true;
528            }
529        }
530        foreach ($this->tables['producto_general']['links_from'] as $k=>&$v)
531        {
532            if(is_array($v)){
533                foreach ($v as &$vv)
534                    if(is_array($vv)) {
535                        $vv['restrict_delete'] = false;
536                        $vv['delete_with_parent'] = false;
537                        if($k == "nota_bodega_items" || $k == "nota_bodega_items_log" || $k == "nota_bodega" || $k == "nota_bodega_autorizacion" || $k == "bodega_existencia_diaria")
538                            $vv['restrict_delete'] = false;
539                    }
540            }
541            else {
542
543                $v['producto_general_id']['restrict_delete'] = false;
544                $v['producto_general_id']['delete_with_parent'] = false;
545                if($k == "nota_bodega_items" || $k == "nota_bodega_items_log" || $k == "nota_bodega" || $k == "nota_bodega_autorizacion" || $k == "bodega_existencia_diaria")
546                    $v['restrict_delete'] = false;
547            }
548        }
549        foreach ($this->tables['producto_general']['links_to'] as $k=>&$v)
550        {
551            if(is_array($v)){
552                foreach ($v as &$vv)
553                    if(is_array($vv)) {
554                        $vv['restrict_delete'] = false;
555                        $vv['delete_with_parent'] = false;
556                        if($k == "nota_bodega_items" || $k == "nota_bodega_items_log" || $k == "nota_bodega" || $k == "nota_bodega_autorizacion" || $k == "bodega_existencia_diaria")
557                            $vv['restrict_delete'] = false;
558                    }
559            }
560            else {
561
562                $v['producto_general_id']['restrict_delete'] = false;
563                $v['producto_general_id']['delete_with_parent'] = false;
564                if($k == "nota_bodega_items" || $k == "nota_bodega_items_log" || $k == "nota_bodega" || $k == "nota_bodega_autorizacion" || $k == "bodega_existencia_diaria")
565                    $v['restrict_delete'] = false;
566            }
567        }
568        /*foreach ($this->tables['nota_archive_bodega']['links_from'] as $k=>&$v)
569        {
570            if(is_array($v)){
571                foreach ($v as &$vv)
572                    if(is_array($vv)) {
573                        $vv['restrict_delete'] = false;
574                        $vv['delete_with_parent'] = true;
575                    }
576            }
577            else {
578
579                $v['nota_bodega_id']['restrict_delete'] = false;
580                $v['nota_bodega_id']['delete_with_parent'] = true;
581            }
582        }*/
583
584//        foreach ($this->tables['nota_bodega_autorizacion']['links_from'] as $k=>&$v)
585//        {
586//            if(is_array($v)){
587//                foreach ($v as &$vv)
588//                    if(is_array($vv)) {
589//                        $vv['restrict_delete'] = false;
590//                        $vv['delete_with_parent'] = false;
591//                    }
592//            }
593//            else {
594//
595//                $v['nota_bodega_id']['restrict_delete'] = false;
596//                $v['nota_bodega_id']['delete_with_parent'] = false;
597//            }
598//        }
599
600//        $this->tables['nota_bodega']['links_from']['inconsistencia_nota_bodega']['nota_bodega_id']['restrict_delete']=false;
601//        $this->tables['nota_bodega']['links_from']['inconsistencia_nota_bodega']['nota_bodega_id']['delete_with_parent']=true;
602//        $this->tables['nota_bodega']['links_from']['nota_bodega_verificacion']['nota_bodega_id']['restrict_delete']=false;
603//        $this->tables['nota_bodega']['links_from']['nota_bodega_verificacion']['nota_bodega_id']['delete_with_parent']=true;
604
605        //echo "<pre>".print_r($this->tables['cliente']['links_from'], true)."</pre>";
606
607        $this->tables['estado']['label_field'] = 'clave';
608
609        unset($this->links['estado']);
610
611        $this->links['categoria'] =
612            array (
613            'options' => 'SELECT /* appRelate:categoria */ categoria_id as id, categoria as label FROM categoria  WHERE activo=\'Si\'  ORDER BY categoria',
614            'read' => 'SELECT /* appRelate:categoria */ categoria as label FROM categoria WHERE categoria_id=\'%id%\' ORDER BY categoria, 1',
615            'orderby' => ' categoria,',
616        );
617
618        $this->links['plantilla_cuentat_gasto'] =
619            array (
620            'options' => 'SELECT /* appRelate:link final plantilla_cuentat_gasto*/ plantilla_cuentat_gasto_id as id, nombre as label FROM plantilla_cuentat_gasto  WHERE 1 ORDER BY  orden, 2',
621            'read' => 'SELECT /* appRelate:link value */ nombre as label FROM plantilla_cuentat_gasto WHERE plantilla_cuentat_gasto_id=\'%id%\' ORDER BY  orden, 1',
622            'orderby' => ' orden,',
623        );
624
625        // JJDPL: 09-12-2021 -> Para bodegas
626        $this->links['origen_id'] = [
627            'options' => 'SELECT /*appRelate*/ m.origen_bodega_id as id, clave as label FROM origen_bodega m  ORDER BY  2',
628            'read' => 'SELECT /*appRelate*/ clave as label FROM origen_bodega m WHERE origen_bodega_id=\'%id%\' ORDER BY  1',
629        ];
630
631        // $this->links['origen_id'] = [
632        //     'options' =>
633        //         "SELECT /*appRelate*/ m.origen_bodega_id as id,
634        //                 IF( m.es = 'Cliente' OR m.es = 'IMPORTACION', m.clave, IF (e.empresa IS NULL, m.clave, CONCAT(m.clave, ' (', e.empresa, ')' ))  ) as label
635        //             FROM origen_bodega m LEFT JOIN empresa e ON m.empresa_id=e.empresa_id  ORDER BY  2",
636        //     'read' =>
637        //         "SELECT /*appRelate*/
638        //             IF( m.es = 'Cliente' OR m.es = 'IMPORTACION', m.clave, IF (e.empresa IS NULL, m.clave, CONCAT(m.clave, ' (', e.empresa, ')' )) ) as label
639        //         FROM origen_bodega m LEFT JOIN empresa e ON m.empresa_id=e.empresa_id WHERE m.origen_bodega_id='%id%' ORDER BY  1",
640        // ];
641
642
643        $this->links['destino_id'] = [
644            'options' => 'SELECT /*appRelate*/ m.origen_bodega_id as id, clave as label FROM origen_bodega m  ORDER BY  2',
645            'read' => 'SELECT /*appRelate*/ clave as label FROM origen_bodega m WHERE origen_bodega_id=\'%id%\' ORDER BY  1',
646        ];
647
648        $this->links['producto_bodega'] = [
649            'options' => 'SELECT /*appRelate*/ m.producto_bodega_id as id, producto as label FROM producto_bodega m  ORDER BY  2',
650            'read' => 'SELECT /*appRelate*/ producto as label FROM producto_bodega m WHERE producto_bodega_id=\'%id%\' ORDER BY  1',
651        ];
652
653        $this->links['producto_bodega_verificacion'] = [
654            'options' => 'SELECT /*appRelate*/ m.producto_bodega_verificacion_id as id, producto as label FROM producto_bodega_verificacion m  ORDER BY  2',
655            'read' => 'SELECT /*appRelate*/ producto as label FROM producto_bodega_verificacion m WHERE producto_bodega_verificacion_id=\'%id%\' ORDER BY  1',
656        ];
657
658        $this->links['bodega_verificador'] = [
659            'options' => 'SELECT /*appRelate*/ m.bodega_grupo_verificador_id as id, grupo_verficiador as label FROM bodega_grupo_verificador m  ORDER BY  2',
660            'read' => 'SELECT /*appRelate*/ grupo_verficiador as label FROM bodega_grupo_verificador m WHERE bodega_grupo_verificador_id=\'%id%\' ORDER BY  1',
661        ];
662
663        $this->links['bodega'] = $this->links['bodega_id'] = [
664            'options' => 'SELECT /*appRelate*/ m.bodega_id as id, bodega as label FROM bodega m  ORDER BY  2',
665            'read' => 'SELECT /*appRelate*/ bodega as label FROM bodega m WHERE bodega_id=\'%id%\' ORDER BY  1',
666        ];
667
668        $this->links['cp_tipofiguratransporte'] = $this->links['TipoFigura'] = [
669            'options' => 'SELECT /*appRelate*/ m.cp_tipofiguratransporte_id as id, Descripcion as label FROM cp_tipofiguratransporte m  ORDER BY  2',
670            'read' => 'SELECT /*appRelate*/ Descripcion as label FROM cp_tipofiguratransporte m WHERE cp_tipofiguratransporte_id=\'%id%\' ORDER BY  1',
671        ];
672
673        $this->links['cp_figuratransporte'] = $this->links['cp_figuratransporte_id'] = [
674            'options' => 'SELECT /*appRelate*/ m.figuratransporte_id as id, NombreFigura as label FROM cp_figuratransporte m  ORDER BY  2',
675            'read' => 'SELECT /*appRelate*/ NombreFigura as label FROM cp_figuratransporte m WHERE figuratransporte_id=\'%id%\' ORDER BY  1',
676        ];
677
678        $this->links['cp_autotransporte'] = $this->links['cp_autotransporte_id'] = [
679            'options' => 'SELECT /*appRelate*/ m.autotransporte_id as id, CONCAT(PlacaVM, " (", descripcion , ")") as label FROM cp_autotransporte m  ORDER BY  2',
680            'read' => 'SELECT /*appRelate*/ CONCAT(PlacaVM, "(", descripcion , ")") as label FROM cp_autotransporte m WHERE autotransporte_id=\'%id%\' ORDER BY  1',
681        ];
682
683        $this->links['cp_cliente'] = $this->links['cp_cliente_id'] = [
684            'options' => 'SELECT /*appRelate*/ m.cp_cliente_id as id, razon_social label FROM cp_cliente m  ORDER BY  2',
685            'read' => 'SELECT /*appRelate*/ razon_social as label FROM cp_cliente m WHERE cp_cliente_id=\'%id%\' ORDER BY  1',
686        ];
687
688
689        $puede_permiso_confidencial = function_exists('usuarioTipoRony') ? usuarioTipoRony() : 1 || Permisador::puede('pedido_china_fabrica') !== 'Nada';
690
691        $this->links['fabrica_id'] = $puede_permiso_confidencial ?
692            array (
693                'options' => 'SELECT /*appRelate*/ m.fabrica_id as id, fabrica as label FROM fabricas m  ORDER BY  2',
694                'read' => 'SELECT /*appRelate*/ fabrica as label FROM fabricas m WHERE fabrica_id=\'%id%\' ORDER BY  1',
695            )
696            :
697            array (
698                'options' => 'SELECT /*appRelate*/ m.fabrica_id as id, fabrica as label FROM fabricas m WHERE fabrica_id=\'XYZ\' ORDER BY  2',
699                'read' => 'SELECT /*appRelate*/ fabrica as label FROM fabricas m WHERE fabrica_id=\'XYZ\' ORDER BY  1',
700            );
701
702
703        // $this->links['nota_bodega'] = $this->links['nota_bodega_id'] = [
704        //     'options' => 'SELECT /*appRelate*/ m.nota_bodega_id as id, numero as label FROM nota_bodega m  ORDER BY  2',
705        //     'read' => 'SELECT /*appRelate*/ numero as label FROM nota_bodega m WHERE nota_bodega_id=\'%id%\' ORDER BY  1',
706        // ];
707
708
709
710        //Poner vale, pagare y lo que sea.
711    }
712
713
714    /**
715     * appRelate::enums_final
716     * Redefine enums , esta _final_info no se reescribe
717     *
718     */
719    public function enums_final() {
720
721        $this->enums['cuentat_mov.tipo']=array('Ingreso'=>'Ingreso','Egreso'=>'Egreso','Transfer Accepted'=>'Transfer Accepted','Transfer Sent'=>'Transfer Sent');
722        $this->enums['cuentat_mov.app_origen'] = function_exists('arrayAppOrigen') ? arrayAppOrigen() : array();
723
724        $this->enums['bodega_eta_es'] = ['Por capturar'=>'Por capturar', 'Capturada'=>'Capturada', 'Estimada por Importador'=>'Estimada por Importador'];
725        // FALTA $this->enums['banco_mov_tipo.tipo'];
726        $this->enums['mostrar_en_ventas'] = ['No'=>'No', 'Si'=>'Si'];
727        // estado_entrada
728        $this->enums['estado_entrada'] = [
729            '' => '',
730            'Ok' => 'Ok',
731            'Diferencias' => 'Hay Diferencias',
732            'Cambios' => 'Con Cambios',
733            'Aceptada' => 'Aceptada',
734        ];
735
736        $this->enums['mostrarTraspaso'] = [
737            'Si' => 'Si',
738            'No' => 'No',
739        ];
740        $this->enums['vale_origen_destino'] = [
741            'Si' => 'Si',
742            'No' => 'No',
743        ];
744
745        $this->enums['ayudantes_requeridos'] = [
746            'No' => 'No',
747            'Si' => 'Si',
748        ];
749        $this->enums['pedido_por_requeridos'] = [
750            'Si' => 'Si',
751            'No' => 'No',
752        ];
753
754        $this->enums['puede_supervisar_bodega'] = [
755            'No' => 'No',
756            'Si' => 'Si',
757        ];
758      $this->enums['forza_cambio_password'] =
759        array (
760            'No' => 'No',
761            'Si' => 'SI',
762        );
763        $this->enums['activo'] = [
764            'No' => 'No',
765            'Si' => 'Si',
766        ];
767      $this->enums['producto_general.activo'] = [
768          'No' => 'No',
769          'Si' => 'Si',
770      ];
771      $this->enums['auto_acepta'] =
772        array (
773            'Si' => 'Si',
774            'No' => 'No',
775        );
776
777        $this->enums['permiso_cheque'] =
778            array (
779            'Nada' => 'Nada',
780            'Consultar' => 'Consultar',
781            'Editar' => "Editar",
782            );
783        $this->enums['permiso_pagare'] =
784            array (
785            'Nada' => 'Nada',
786            'Consultar' => 'Consultar',
787            'Editar' => 'Editar',
788            );
789        $this->enums['permiso_cobranza'] =
790            array (
791            'Nada' => 'Nada',
792            'Consultar' => 'Consultar',
793            'Editar' => 'Editar',
794            );
795
796        $this->enums['puede'] = array (
797            'Nada' => 'Nada',
798            'R/O' => 'Consultar',
799            'R/W' => 'Editar',
800            'A/O' => 'Sólo Agregar',
801            'D/O' => 'Sólo Eliminar');
802
803
804        $this->enums['banco_diccionario_dato.link_vale'] =
805        array (
806            'ND' => 'ND',
807            'Q' => 'Q',
808            'SYS' => 'SYS',
809            'SBC' => 'SBC',
810            'BL' => 'BL',
811            'RJ' => 'RJ',
812            'FID' => 'FIDUCIARIO',
813            'INV' => 'INVERSION'
814        );
815
816        $this->enums['banco_diccionario_dato.es'] =
817        array (
818            'Deposito' => 'Deposito',
819            'Retiro' => 'Retiro',
820        );
821
822        $this->enums['origen'] =
823        array (
824            'fiduciario' => 'fiduciario',
825            'fiduciario_contenedor' => 'fiduciario_contenedor',
826            'banco_cuenta_mov' => 'withdrawal',
827            'cuentat_gasto' => 'cuentat_gasto'
828        );
829
830
831        $this->enums['fiduciario.error'] =
832        array (
833            'Si' => 'Total',
834            'No' => 'No',
835            'Pa' => 'Parcial'
836        );
837
838        $this->enums["fiduciario.error.log"] =
839        array (
840            'Si' => "<img src=\"../img/16-anierror.gif\" width=\"16\" height=\"16\" alt=\"Error\" title=\"Error\" class=\"noborders\"/>",
841            'No' => "<img src=\"../img/16-blank.png\" width=\"16\" height=\"16\" alt=\"\" title=\"\" class=\"noborders\"/>",
842            'Pa' => "<img src=\"../img/16-warning.png\" width=\"16\" height=\"16\" alt=\"Parcial\" title=\"Parcial\" class=\"noborders\"/>"
843        );
844
845        $this->enums['fiduciario_contenedor.error'] =
846        array (
847            'Si' => 'Si',
848            'No' => 'No',
849            'Tu' => 'Arreglado'
850        );
851
852        $this->enums['fiduciario_contenedor.error.log'] =
853        array (
854            'Si' => "<img src=\"../img/16-anierror.gif\" width=\"16\" height=\"16\" alt=\"Error\" title=\"Error\" class=\"noborders\"/>",
855            'No' => "<img src=\"../img/16-blank.png\" width=\"16\" height=\"16\" alt=\"\" title=\"\" class=\"noborders\"/>",
856            'Tu' => "<img src=\"../img/16-warninggreen.png\" width=\"16\" height=\"16\" alt=\"Error Arreglado\" title=\"Error Arreglado\" class=\"noborders\"/>"
857        );
858
859        $this->enums['fiduciario.bloqueado'] =
860        array (
861            'ABIERTO' => 'ABIERTO',
862            'AMBOSMOD' => 'AMBOS MODIFICADOS',
863            'MODIFICADO' => 'MODIFICADO',
864            'CONTMOD' => 'CONTENEDOR MODIFICADO',
865            'CERRADO' => 'CERRADO'
866        );
867
868        $this->enums['fiduciario.bloqueado.log'] =
869        array (
870            'ABIERTO' => "<img src=\"../img/40-unlock-ama.png\" width=\"40\" height=\"40\" alt=\"Abierto\" title=\"Abierto\" class=\"noborders\"/>",
871            'AMBOSMOD' => "<img src=\"../img/ambosmod.gif\" alt=\"Ambos Modificados\" title=\"Ambos Modificados\" class=\"noborders\"/>",
872            'MODIFICADO' => "<img src=\"../img/modificado.gif\" alt=\"Fiduciario Modificado\" title=\"Fiduciario Modificado\" class=\"noborders\"/>",
873            'CONTMOD' => "<img src=\"../img/contmod.gif\" alt=\"Contenedor Modificado\" title=\"Contenedor Modificado\" class=\"noborders\"/>",
874            'CERRADO' => "<img src=\"../img/40-lock-red.png\" width=\"40\" height=\"40\" alt=\"Cerrado\" title=\"Cerrado\" class=\"noborders\"/>"
875        );
876
877        $this->enums['fiduciario_contenedor.bloqueado'] =
878        array (
879            'ABIERTO' => 'ABIERTO',
880            'MODIFICADO' => 'MODIFICADO',
881            'CERRADO' => 'CERRADO'
882        );
883
884        $this->enums['fiduciario_contenedor.bloqueado.log'] =
885        array (
886            'ABIERTO' => "<img src=\"../img/16-unlock.png\" width=\"20\" height=\"20\" alt=\"Abierto\" title=\"Abierto\" class=\"noborders\"/>",
887            'MODIFICADO' => "<img src=\"../img/16-animantedlock.gif\" width=\"20\" height=\"20\" alt=\"Modificado\" title=\"Modificado\" class=\"noborders\"/>",
888            'CERRADO' => "<img src=\"../img/16-lock-red.png\" width=\"16\" height=\"20\" alt=\"Cerrado\" title=\"Cerrado\" class=\"noborders\"/>"
889        );
890
891        $this->enums['puede_gasto'] =
892        array (
893            'Si' => 'Si',
894            'No' => 'No',
895            'RO' => 'Read Only',
896            'CONT' => 'Contabilidad',);
897
898        $this->enums['a_cuentas.activo'] =
899        array (
900            'Si' => 'No',
901            'No' => 'Si',
902        );
903
904        $this->enums['poner_delivered_pagares'] =
905        array (
906            'Si' => 'No',
907            'No' => 'Si',
908        );
909
910        $this->enums['poner_delivered_cheques'] =
911        array (
912            'Si' => 'Si',
913            'No' => 'No',
914        );
915
916        $this->enums['categoria.tipo'] =
917        array (
918            'TODOS' => 'ALL',
919            'DEFAULT' => 'DEFAULT',
920            'NADA' => 'NORMAL',
921        );
922
923        $this->enums['cheque.ultimo_movimiento'] = function_exists('arrayUltimoMovimiento') ? arrayUltimoMovimiento() : array();
924        $this->enums['pagare.ultimo_movimiento'] = function_exists('arrayUltimoMovimiento') ? arrayUltimoMovimiento() : array();
925        $this->enums['vale.ultimo_movimiento']   = function_exists('arrayUltimoMovimiento') ? arrayUltimoMovimiento() : array();
926        $this->enums['doctos.ultimo_movimiento'] = function_exists('arrayUltimoMovimiento') ? arrayUltimoMovimiento() : array();
927
928
929        $this->enums['nota_bodega_items.tipo']  = $this->enums['nb.tipo'] =
930        $this->enums['nota_bodega_autorizacion.tipo'] = $this->enums['nota_archive_bodega.tipo'] = $this->enums['nota_bodega.tipo'] =
931        $this->enums['nbv.tipo'] = $this->enums['nota_bodega_verificacion.tipo'] =
932        $this->enums['solicitud_carta_porte.tipo'] =
933            array (
934                // '' => '',
935                'Movimiento' => 'Venta Tienda',
936                 'Traslado' => 'Traslado',
937                'Devolucion' => 'Devolucion',
938                'Devolucion Fabricante' => 'Venta Container',
939                'Correccion' => 'Ajuste',
940                'Cancelacion' => 'Cancelacion',
941                'Container' => 'Container',
942                'Venta Cliente' => 'Venta Cliente',
943                'Borrado' => 'Borrada'
944            );
945
946        $this->enums['cheque.tipo'] =
947        array (
948          '' => '',
949          'GASTO' => 'GASTO',
950          'NOTA' => 'NOTA',
951        );
952
953        $this->enums['doctos.tipo'] =
954            array (
955                '' => '',
956                'GASTO' => 'GASTO',
957                'NOTA' => 'NOTA',
958            );
959
960
961        $this->enums['compra.tipo'] =
962            array (
963                '' => '',
964                'GASTO' => 'GASTO',
965                'COMPRA' => 'COMPRA',
966            );
967
968        $this->enums['permiso_ctat.pagar_compras'] =
969            array (
970                'Si' => 'Si',
971                'No' => 'No',
972            );
973        $this->enums['plantilla_permiso_ctat.pagar_compras'] =
974            array (
975                'Si' => 'Si',
976                'No' => 'No',
977            );
978
979        $this->enums['producto_general.es_saldo'] = ['No' => 'No', 'Si' => 'Si', 'Algunos' => 'Algunos'];
980
981        $this->enums['producto_general.en_remate'] = ['No' => 'No', 'Si' => 'Si', 'Algunos' => 'Algunos'];
982
983        $this->enums['es_saldo'] = ['No' => 'No', 'Si' => 'Si', ];
984
985        $this->enums['en_remate'] = ['No' => 'No', 'Si' => 'Si',];
986        $this->enums['huerfano'] = array('Si'=>'Si','No'=>'No');
987
988        $this->enums['our_reference_unico'] = ['Si'=>'Si','No'=>'No'];
989        $this->enums['numero_pi_unico'] = ['Si'=>'Si','No'=>'No'];
990        $this->enums['numero_contenedor_unico'] = ['Si'=>'Si','No'=>'No'];
991
992        $this->enums['producto_general.lento'] = ['No' => 'No', 'Si' => 'Si', 'Algunos' => 'Algunos'];
993
994        $this->enums['producto_general.super_lento'] = ['No' => 'No', 'Si' => 'Si', 'Algunos' => 'Algunos'];
995
996
997        $this->enums['lento'] = ['No' => 'No', 'Si' => 'Si',];
998
999        $this->enums['super_lento'] = ['No' => 'No', 'Si' => 'Si',];
1000
1001
1002        $this->enums['nota_bodega_verificacion.match'] = ['No' => 'No', 'Si' => 'Si',];
1003        $this->enums['match'] = ['No' => 'No', 'Si' => 'Si',];
1004
1005        $this->enums['puede_ser_encargado_bodega'] = $this->enums['puede_solo_consultar_bodegas'] = [
1006            'No' => 'No',
1007            'Si' => 'Si',
1008        ];
1009
1010        $this->enums['solicitud_carta_porte.documento'] = $this->enums['documento'] =  [
1011            'carta_porte' => 'CARTA PORTE',
1012            'cfdi_traslado' => 'CFDI DE TRASLADO',
1013            'factura' => 'FACTURA',
1014            'nada' => 'NADA',
1015        ];
1016
1017        $this->enums['solicitud_carta_porte.tipo_generacion_cfdi'] = $this->enums['tipo_generacion_cfdi'] =  [
1018            'inmediato' => 'INMEDIATAMENTE',
1019            'dia_siguiente' => 'DIA SIGUIENTE',
1020            'sin_timbrar' => 'NO TIMBRAR',
1021            'timbrado' => 'TIMBRADO',
1022        ];
1023
1024        $this->enums['cp_figuratransporte.TipoFigura'] = $this->enums['TipoFigura'] = function_exists('arrayTipoFigura') ? arrayTipoFigura() : array();
1025
1026        $this->enums['solicitud_carta_porte.forma_etiquetado'] =
1027        $this->enums['nota_bodega_autorizacion.forma_etiquetado'] =
1028        $this->enums['nota_archive_bodega.forma_etiquetado'] =$this->enums['nota_bodega.forma_etiquetado'] =
1029        $this->enums['forma_etiquetado'] = [
1030            '' => '',
1031            'YA TENIA ETIQUETADO' => 'YA TENIA ETIQUETADO',
1032            'NO TENIA Y SE ETIQUETO' => 'NO TENIA Y SE ETIQUETO',
1033            'REETIQUETADO' => 'REETIQUETADO'
1034        ];
1035
1036        $this->enums['solicitud_carta_porte.tipo_factura'] =
1037        $this->enums['nota_bodega_autorizacion.tipo_factura'] =
1038        $this->enums['nota_archive_bodega.tipo_factura'] = $this->enums['nota_bodega.tipo_factura'] = [
1039            'MST' => 'MOSTRADOR',
1040            'FACTURA' => 'FACTURA',
1041        ];
1042
1043        $this->enums['generado'] = [
1044            'Si' => 'Si',
1045            'No' => 'No'
1046        ];
1047        $this->enums['producto_general.solo_carta_porte'] =
1048        $this->enums['solo_carta_porte'] = [
1049            'Si' => 'Si',
1050            'No' => 'No'
1051        ];
1052
1053        $this->enums['tipo_nota'] = ['CASH' => 'CASH', 'NOTA' => 'NOTA', 'PIÑA' => 'PIÑA'];
1054
1055        $this->enums['nota_bodega_autorizacion.recibido'] =
1056        $this->enums['nota_archive_bodega.recibido'] = $this->enums['nota_bodega.recibido'] = [
1057            'Si' => 'Si',
1058            'No' => 'No',
1059            'Mal' => 'Mal'
1060        ];
1061
1062        $this->enums['iac_usr.puede_clientes'] = [
1063            'Si' => 'RW',
1064            'RO' => 'RO',
1065            'No' => 'No',
1066        ];
1067
1068        $this->enums['autorizacion_recepcion_nota_bodega.tipo'] = [
1069            'autorizacion_salida' => 'Autorzación salida',
1070            'recepcion_salida' => 'Recepción de Salida',
1071            'autorizacion_entrada' => 'Autorzación entrada'
1072        ];
1073
1074        $this->enums['iac_usr.puede_ver_traslados_match'] = [
1075            'Si' => 'Si',
1076            'No' => 'No',
1077        ];
1078        $this->enums['iac_usr.puede_ver_traslados'] = [
1079            'Si' => 'Si',
1080            'No' => 'No',
1081        ];
1082        $this->enums['iac_usr.puede_ver_acuentas'] = [
1083            'Si' => 'Si',
1084            'No' => 'No',
1085        ];
1086        $this->enums['iac_usr.puede_ver_doctos'] = [
1087            'Si' => 'Si',
1088            'No' => 'No',
1089        ];
1090        $this->enums['iac_usr.puede_ver_deliveries'] = [
1091            'Si' => 'Si',
1092            'No' => 'No',
1093        ];
1094        $this->enums['iac_usr.puede_bodega_destinos_especiales'] = [
1095            'Si' => 'Si',
1096            'No' => 'No',
1097        ];
1098        /*$this->enums['nota_bodega.estado_verificacion'] = [
1099            'NO HAN VERIFICADO' => 'No Verificada',
1100            'FALTAN VERIFICACIONES' => 'Verificación Incompleta',
1101            'VERIFICADA' => 'Verificada',
1102            'NO VERIFICADA' => 'No Verificada',
1103            'RONY VERIFICO' => 'Rony Verifico'
1104        ];*/
1105        $this->enums['nota_archive_bodega.estado_verificacion'] =
1106        $this->enums['nota_archive_bodega_autorizacion.estado_verificacion'] =
1107        $this->enums['nota_bodega_autorizacion.estado_verificacion'] =
1108        $this->enums['nota_bodega.estado_verificacion'] = [
1109            'FALTAN VERIFICACIONES' => 'Verificación Incompleta',
1110            'VERIFICADA' => 'Verificada',
1111            'NO VERIFICADA' => 'No Verificada',
1112        ];
1113
1114        $this->enums['nota_bodega.checked'] = [
1115            'checked' => 'Verified',
1116            'not_checked' => 'Not Verified',
1117        ];
1118
1119        $this->enums['nota_archive_bodega.inconsistencias_nivel'] =
1120        $this->enums['nota_archive_bodega_autorizacion.inconsistencias_nivel'] =
1121        $this->enums['nota_bodega_autorizacion.inconsistencias_nivel'] =
1122        $this->enums['nota_bodega.inconsistencias_nivel'] = [
1123            'info' => 'Informativa',
1124            'warning' => 'Warning',
1125            'danger' => 'Danger',
1126        ];
1127
1128        $this->enums['bloquear_notas_automaticamente'] =
1129        $this->enums['chofer_responsable_obligatorio'] =
1130        $this->enums['ayudantes_obligatorio'] = ['Si' => 'Si', 'No' => 'No',];
1131
1132        $this->enums['nota_bodega_autorizacion.autorizacion_ultimo_movimiento'] = ['Si' => 'Si', 'No' => 'No', 'Rechazado' => 'Rechazado'];
1133        $this->enums['nota_bodega_autorizacion.autorizacion_ultimo_movimiento_rony'] = ['Si' => 'Si', 'No' => 'No', 'Rechazado' => 'Rechazado'];
1134
1135        $this->enums['nota_archive_bodega_autorizacion.ultimo_movimiento'] = $this->enums['nota_bodega_autorizacion.ultimo_movimiento'] =
1136            array (
1137                // '' => '',
1138                'entrada' => 'Entrada',
1139                'salida_mayor_kilos' => 'Salida Kilos',
1140                'salida_mayor_rollos' => 'Salida Rollos',
1141                'salida_mayor_metros' => 'Salida Metros',
1142                'modificacion' => 'Nota modificada',
1143                'cancelacion' => 'Nota cancelada',
1144                'descancelacion' => 'Nota descancelada',
1145                'borrado' => 'Nota borrada',
1146                'origen_destino_especial' => 'Origen Destino Especial',
1147                'ajuste_de_inventario' => 'Reset Producto con Nota',
1148                'reset_producto_bodega' => 'Reset Producto',
1149                //'Transferencia' => 'Transferencia',
1150
1151            );
1152
1153        $this->enums['tabla'] = [
1154              'banco_cuenta_mov' => 'banco_cuenta_mov',
1155              'cheque' => 'cheque',
1156              'cliente' => 'cliente',
1157              'cuentat_mov' => 'cuentat_mov',
1158              'deuda' => 'deuda',
1159              'movimiento_divisa' => 'movimiento_divisa',
1160              'pagare' => 'pagare',
1161              'vale' => 'vale',
1162              'linkspendientes' => 'linkspendientes',
1163              'gastosdebanco' => 'gastosdebanco',
1164              'cuentat_gasto' => 'cuentat_gasto',
1165              'links_al_banco_live' => 'links_al_banco_live',
1166              'banco_cuenta_trans' => 'banco_cuenta_trans',
1167              'fiduciario' => 'fiduciario',
1168              'inversion' => 'inversion',
1169              'fiduciario_contenedor' => 'fiduciario_contenedor',
1170              'a_cuentas_live' => 'a_cuentas_live',
1171              'doctos' => 'doctos',
1172              'clientes_saldos' => 'clientes_saldos',
1173              'nota_bodega' => 'nota_bodega',
1174              'nota_bodega_autorizacion' => 'nota_bodega_autorizacion',
1175              'solicitud_carta_porte' => 'solicitud_carta_porte',
1176        ];
1177
1178        $this->enums['banco_gasto_diccionario_dato.resalta_palabras_tipo'] = [
1179            'frase' => 'Frase completa',
1180            'palabra' => 'Palabra por palabra',
1181        ];
1182
1183        $this->enums['ajuste.autorizacion_rony'] = ['Si' => 'Autorizados','No' => 'Rechazados'];
1184        $this->enums['ajuste.autorizacion_de_bodega'] = ['Si' => 'Si','No' => 'No'];
1185        $this->enums['ajuste.autorizacion_propia'] = ['Si' => 'Si','No' => 'No'];
1186        $this->enums['ajuste.cancelado'] = ['Si' => 'Si','No' => 'No'];
1187
1188
1189
1190        $this->enums['ajuste.estatus_peligroso'] = [
1191            'Faltante grande' => 'Faltante grande',
1192            'Sobrante grande' => 'Sobrante grande'
1193        ];
1194
1195
1196        $this->enums['tipo_inversion_empresa_privada']= [
1197            'empresa' => 'Empresa',
1198            'privada' => 'Privada'
1199        ];
1200
1201        $this->enums['ajuste.tipo_ajuste'] = [
1202            '' => '',
1203            'Global' => 'Global',
1204            'Puntual' => 'Puntual'
1205
1206        ];
1207
1208        $this->enums['nota_bodega.producto_general_calidad'] = [
1209            'Muy Buena' => 'Muy Buena',
1210            'Buena' => 'Buena',
1211            'Regular' => 'Regular',
1212            'Mala' => 'Mala',
1213            'Regular|#|Mala' => 'Regular Ã³ Mala',
1214            'Muy Buena|#|Buena' => 'Muy Buena Ã³ Buena'
1215        ];
1216
1217        $this->enums['nota_bodega.nota_unidades'] =
1218            [   'KG' => 'Kg',
1219                'MTS' => 'mts',
1220                'PZA' => 'pza',
1221            ];
1222        $this->enums['ayudantes.mostrarTraspaso'] = ['Si' => 'Si','No' => 'No'];
1223        $this->enums['conversion_pactada'] = ['Si' => 'Si','No' => 'No'];
1224        $this->enums['bodega.activo'] = ['Si' => 'Activo','No' => 'Inactivo'];
1225
1226        $this->enums['nota_bodega.unidades_id']=array('1'=>'Kg','2'=>'mts','3'=>'pza');
1227    }
1228
1229    /**
1230     * appRelate::links_final_info
1231     * Redefine links_default_info que se auto escribe al regenerar, esta _final_info no se reescribe
1232     *
1233     */
1234    public function tables_final_info() {
1235
1236
1237        $this->tables['kv_record_log']['links_to']['collection']=array(
1238         'collection_id' =>
1239        array (
1240          'formato' => 'link_one_select',
1241          'campo' => 'collection_id',
1242          'es' => 'catalog_value',
1243        )
1244        );
1245        $this->tables['cheque']['label_field'] = 'nombre';
1246        $this->tables['pagare']['label_field'] = 'nombre';
1247        $this->tables['vale']['label_field'] = 'vale_number';
1248        $this->tables['cash']['label_field'] = 'cash_number';
1249        $this->tables['nota']['label_field'] = 'nota_number';
1250
1251        $this->table_make_child('plantilla','banco_cuenta_mov_plantilla','plantilla_id','plantilla_id');
1252        $this->table_make_child('plantilla','mov_verificado_plantilla','plantilla_id','plantilla_id');
1253
1254        //VALE MULTIPAGO start ________________________________________________________________________________
1255/*$this->table_make_child('vale','vale_pago','vale_id','vale_id');
1256$this->table_make_child('vale','vale_pago_log','vale_id','vale_id');
1257$this->table_make_child('vale_pago','vale_pago_log','vale_pago_id','vale_pago_id');*/
1258//VALE MULTIPAGO  end _____________________________________________________________________________
1259
1260        //$this->table_make_child('plantilla','plantilla_cobranza','plantilla_id','plantilla_id'); //CAMBIAPLANTILLATIENDAS
1261
1262        //$this->table_make_child('iac_usuario','banco_cuenta_mov_usuario');
1263
1264// pone como hijo de iac_usr los permisos ctat
1265        $this->tables['iac_usr']['links_from']['permiso_ctat']['iac_usr_id']['es']='child';
1266/*
1267         $this->tables['iac_usr']['links_from']['banco_cuenta_mov_usuario'] =
1268          array (
1269            'usuario_id' =>
1270            array (
1271              'formato' => 'addanother',
1272              'campo' => 'usuario_id',
1273              'es' => 'child',
1274              'restrict_delete' => false,
1275              'delete_with_parent' => true,
1276              'on_delete_set_to' => 0,
1277            )
1278          );
1279         $this->tables['iac_usr']['links_from']['mov_verificado_usuario'] =
1280          array (
1281            'usuario_id' =>
1282            array (
1283              'formato' => 'addanother',
1284              'campo' => 'usuario_id',
1285              'es' => 'child',
1286              'restrict_delete' => false,
1287              'delete_with_parent' => true,
1288              'on_delete_set_to' => 0,
1289            )
1290          );
1291*/
1292
1293         // child jqGrid
1294            // permiso en subgrid
1295                // ie $parent=anuncio,$child=anuncio_giro,$fieldName=anuncio_giro_id
1296                //$this->table_child_gridAtribute($parent,$child,$fieldName,'permiso','R/O'); // Nada, R/O, R/W
1297                //$this->table_child_gridAtribute($parent,$child,$fieldName,'no_delete',true); // en true quita delete
1298                //$this->table_child_gridAtribute($parent,$child,$fieldName,'gridPager',array('rowNum'=>10000,'rowList'=>"[10,20,25,50,75,100,250,500,1000,10000]",'pgtext'=>'','pgbuttons'=>false,'pginput'=>false)
1299                 // child jqGrid control true/false= gridAdd, gridDelete,gridUpdate,gridView,gridActions string= modo,width
1300                    //$this->table_child_gridAtribute($parent,$child,$fieldName,$gridAtribute,$valor);
1301           // funcion despliga el child
1302                    // display_method_parent llama metodo de la clase Parent para desplegar/editar el child. parametros: $parent_table,$child_table,$link_este,$child
1303                    // display_method_child llama metodo de la clase Child para desplegar/editar como child parametros: $parent_table,$child_table,$link_este,$child
1304                    // *** del contrario si $this->tables['child']['display_method_child'] se usa esta en el child parametros: $parent_table,$child_table,$link_este,$child
1305        // hide child
1306            //$this->child_hide($tableParent,$tableChild,$fieldName);
1307            $this->child_hide('iac_usr','iac_field_permission','iac_usr_id');
1308            $this->child_hide('iac_usr','iac_table_permission','iac_usr_id');
1309            $this->child_hide('iac_usr','vale_permiso','iac_usr_id');
1310            //$this->childs_order('iac_usr',array('usuario_cobranza','banco_cuenta_mov_usuario','mov_verificado_usuario'));
1311            //$this->tables['iac_usr']['links_from']['banco_cuenta_mov_usuario']['usuario_id']['es']='child';
1312            //$this->table_child_gridAtribute('iac_usr','banco_cuenta_mov_usuario','usuario_id','permiso','R/O');
1313            //$this->tables['iac_usr']['links_from']['mov_verificado_usuario']['usuario_id']['es']='child';
1314            //$this->table_child_gridAtribute('iac_usr','mov_verificado_usuario','usuario_id','permiso','R/O');
1315            //$this->table_child_gridAtribute('iac_usr','usuario_cobranza','iac_usr_id','permiso','R/O');
1316            //$this->table_child_gridAtribute('iac_usr','usuario_cobranza','iac_usr_id','gridWidth',"'90%'");
1317            //$this->table_child_gridAtribute('iac_usr','usuario_cobranza','iac_usr_id','gridColspan',2);
1318
1319
1320            //CAMBIAPLANTILLATIENDAS $this->childs_order('plantilla',array('banco_cuenta_mov_plantilla','mov_verificado_plantilla','iac_usr')); //CAMBIAPLANTILLATIENDAS
1321            $this->table_child_gridAtribute('plantilla','iac_usr','plantilla_id','permiso','R/O');
1322            $this->table_child_gridAtribute('plantilla','iac_usr','plantilla_id','gridWidth',"'95%'");
1323            $this->table_child_gridAtribute('plantilla','iac_usr','plantilla_id','gridColspan',2);
1324            //CAMBIAPLANTILLATIENDAS $this->table_child_gridAtribute('plantilla','plantilla_cobranza','plantilla_id','modo',"jqgrid_inline");
1325            //CAMBIAPLANTILLATIENDAS $this->table_child_gridAtribute('plantilla','plantilla_cobranza','plantilla_id','gridWidth',"'95%'");
1326            //CAMBIAPLANTILLATIENDAS $this->table_child_gridAtribute('plantilla','plantilla_cobranza','plantilla_id','gridColspan',2);
1327            //CAMBIAPLANTILLATIENDAS $this->table_child_gridAtribute('plantilla','plantilla_cobranza','plantilla_id','gridAdd',false);
1328            //CAMBIAPLANTILLATIENDAS $this->table_child_gridAtribute('plantilla','plantilla_cobranza','plantilla_id','gridDelete',false);
1329            $this->table_child_gridAtribute('plantilla','banco_cuenta_mov_plantilla','plantilla_id','gridAdd',false);
1330            $this->table_child_gridAtribute('plantilla','banco_cuenta_mov_plantilla','plantilla_id','gridDelete',false);
1331            $this->table_child_gridAtribute('plantilla','mov_verificado_plantilla','plantilla_id','gridAdd',false);
1332            $this->table_child_gridAtribute('plantilla','mov_verificado_plantilla','plantilla_id','gridDelete',false);
1333
1334            // en constructor app_plantilla
1335                //            $select=". | Set all cuentas in plantilla to: <select name=iaSetCP id=iasetCP onchange=\"set_todos(this.value,1);\" >".str_replace(array("'",PHP_EOL),array('"',''), ia_OptionsSetData( $this->enum_get('banco_cuenta_mov_plantilla','puede'),'',array(''=>'') ))."</select>";
1336                //            $this->table_child_gridAtribute('plantilla','banco_cuenta_mov_plantilla','plantilla_id','title_edit',$select);
1337                //
1338                //            $select=". | Set all cuentas in plantilla to: <select name=iaSetV id=iasetV onchange=\"set_todos(this.value,2);\" >".str_replace(array("'",PHP_EOL),array('"',''), ia_OptionsSetData( $this->enum_get('mov_verificado_plantilla','puede'),'',array(''=>'') ))."</select>";
1339                //            $this->table_child_gridAtribute('plantilla','mov_verificado_plantilla','plantilla_id','title_edit',$select);
1340                //
1341            // en constructor de app_plantillatienda pasan:
1342               // $select1=" Cheque: <select name=iaSetC id=iasetC onchange=\"set_todos(this.value,3);\" >".str_replace(array("'",PHP_EOL),array('"',''), ia_OptionsSetData( $this->enum_get('plantilla_cobranza','permiso_cheque'),'',array(''=>'')))."</select>";
1343               // $select2=" Pagare: <select name=iaSetC id=iasetC onchange=\"set_todos(this.value,4);\" >".str_replace(array("'",PHP_EOL),array('"',''), ia_OptionsSetData( $this->enum_get('plantilla_cobranza','permiso_pagare'),'',array(''=>'')))."</select>";
1344               // $select3=" Cobranza: <select name=iaSetC id=iasetC onchange=\"set_todos(this.value,5);\" >".str_replace(array("'",PHP_EOL),array('"',''), ia_OptionsSetData( $this->enum_get('plantilla_cobranza','permiso_cobranza'),'',array(''=>'')))."</select>";
1345               //  $this->table_child_gridAtribute('plantillatienda','plantilla_cobranza','plantillatienda_id','title_edit','. |'.$select1.$select2.$select3);
1346
1347
1348
1349
1350
1351
1352            $this->tables['cuentat_a_banco_links']['pk_single_field'] = 'cuentat_a_banco_mov_id';
1353            $this->tables['cuentat_a_banco_links']['pk_single_type'] = 'uuid';
1354
1355            $this->tables['links_al_banco']['pk_single_field'] = 'link_id';
1356            $this->tables['links_al_banco']['pk_single_type'] = 'uuid';
1357
1358        $this->tables['doctos']['pk_single_field'] = 'doc_id';
1359        $this->tables['doctos']['pk_single_type'] = 'uuid';
1360
1361
1362            $this->tables['estado']['label_field'] = 'clave';
1363
1364            $this->tables['plantillatienda'] = array (
1365                'es' => 'parent',
1366                'pk_single_field' => 'plantillatienda_id',
1367                'pk_single_type' => 'uuid',
1368                'label_field' => 'plantilla',
1369                'has_seq' => false,
1370                'has_child' => true,
1371                'has_fckeditor' => true,
1372                'has_numeric' => true,
1373                'UNI' =>
1374                array (
1375                  0 => 'plantilla',
1376                ),
1377                'links_from' =>
1378                array (
1379                  'iac_usr' =>
1380                  array (
1381                    'plantillatienda_id' =>
1382                    array (
1383                      'es' => 'catalog_entry',
1384                      'formato' => 'jqgrid',
1385                      'to_table' => 'iac_usr',
1386                      'to_field' => 'plantillatienda_id',
1387                      'this_table' => 'plantillatienda',
1388                      'this_field' => 'plantillatienda_id',
1389                      'restrict_delete' => true,
1390                      'delete_with_parent' => false,
1391                      'on_delete_set_to' => 0,
1392                    ),
1393                  ),
1394                  'plantilla_cobranza' =>
1395                  array (
1396                    'plantillatienda_id' =>
1397                    array (
1398                      'es' => 'child',
1399                      'formato' => 'jqgrid',
1400                      'to_table' => 'plantilla_cobranza',
1401                      'to_field' => 'plantillatienda_id',
1402                      'this_table' => 'plantillatienda',
1403                      'this_field' => 'plantillatienda_id',
1404                      'restrict_delete' => false,
1405                      'delete_with_parent' => true,
1406                      'on_delete_set_to' => 0,
1407                    ),
1408                  ),
1409                ),
1410              );
1411
1412        $this->tables['a_cuentas']['links_to']['metodo_pago']=array(
1413         'metodo_pago_id' =>
1414        array (
1415          'es' => 'catalog',
1416          'formato' => 'link_one_select',
1417          'to_table' => 'banco_mov_tipo',
1418          'to_field' => 'banco_mov_tipo_id',
1419          'this_table' => 'a_cuentas',
1420          'this_field' => 'metodo_pago_id',
1421        )
1422        );
1423
1424        // JJDPL: 10-12-2021 -> Para bodegas
1425        $this->tables['producto_bodega']['pk_single_field'] = 'producto_bodega_id';
1426        $this->tables['producto_bodega']['pk_single_type'] = 'uuid';
1427        $this->tables['producto_bodega']['label_field'] = 'producto';
1428
1429        unset($this->tables['iac_usr']['links_from']['bodega_verificador']);
1430        unset($this->tables['ajuste_autorizacion']);
1431
1432
1433        // child type
1434            //$this->table_child_type($parent,$child,$esChild='single_catalog',$formato='link_one_select');
1435
1436        // order childs
1437            //$this->childs_order($tableParent,$order=array());
1438
1439
1440
1441
1442        // child delete rules
1443            //$this->table_link_delete_allRule('table',true,true); // set all child tables for table to restrict_delete, delete with parent
1444            //$this->table_link_delete_rules($tableRestrict,$tableToCheck,$fieldName,$restrict_delete=true,$delete_with_parent=false,$on_delete_set_to='0');
1445
1446        // make unmake childs
1447            //$this->table_make_child($parent,$child,$parent_link='',$child_link='',$restrict_delete=false,$delete_with_parent=true,$on_delete_set_to=0,$formato='addanother',$es='child');
1448            //$this->table_unmake_child($parent,$child,$esParent='catalog_entry',$esChild='single_catalog',$formato='link_one_select')
1449
1450
1451        /*
1452            has_seq es array( 'fieldName'=>array('tipo'=>'seqid/seqphp','pad'=>5,'prefijoField' => 'Nombre campo','prefijo' => 'text','insert_value' => 'en insert clause') )
1453                si el campo es R/O o nada o esta en empty al hacer insert poner el siguiente sequence number para el prefijo en seqphp y el id en id
1454                de la forma $prefijo.$sequencenumber
1455        */
1456    }
1457
1458    public function table_link_delete_rules($tableRestrict,$tableToCheck,$fieldName,$restrict_delete=true,$delete_with_parent=false,$on_delete_set_to='0') {
1459        if(!array_key_exists($tableRestrict,$this->tables))
1460            return " appRelate::table_link_delete_rules no tableRestrict $tableRestrict";
1461        if(!array_key_exists($tableToCheck,$this->tables[$tableRestrict]['links_from']))
1462            return " appRelate::table_link_delete_rules no tableToCheck $tableToCheck";
1463        if(!array_key_exists($fieldName,$this->tables[$tableRestrict]['links_from'][$tableToCheck]))
1464            return " appRelate::table_link_delete_rules no linkField $tableToCheck.$fieldName";
1465        $this->tables[$tableRestrict]['links_from'][$tableToCheck][$fieldName]['restrict_delete']=$restrict_delete;
1466        $this->tables[$tableRestrict]['links_from'][$tableToCheck][$fieldName]['delete_with_parent']=$delete_with_parent;
1467        $this->tables[$tableRestrict]['links_from'][$tableToCheck][$fieldName]['on_delete_set_to']=$on_delete_set_to;
1468    }
1469
1470    public function table_make_multiple_catalog($table,$field,$catalog,$formato='') {
1471    }
1472
1473    public function table_unmake_child($parent,$child,$esParent='catalog_entry',$esChild='single_catalog',$formato='link_one_select') {
1474        global $gAppRelate;
1475
1476        if(array_key_exists('links_from',$this->tables[$parent]) ) {
1477            if(array_key_exists($child,$this->tables[$parent]['links_from']) ) {
1478                $es='';
1479                foreach( $this->tables[$parent]['links_from'][$child] as $es=>$d )
1480                    break;
1481                if($es) {
1482                    $this->tables[$parent]['links_from'][$child][$es]['es']=$esChild;
1483                    $this->tables[$parent]['links_from'][$child][$es]['formato']=$formato;
1484                    $this->tables[$child]['links_to'][$parent][$es]['es']=$esParent;
1485                }
1486            }
1487        }
1488    }
1489    function log($action,$tema,$id,$msg,$usuario=null,$documento='') {
1490        if(empty($usuario))
1491            $usuario= array_key_exists('usuario',$_SESSION) ? $_SESSION['usuario'] : '?';
1492        if(!is_numeric($tema))
1493            $tema=$this->log_tema_to_id($tema);
1494        if(!is_numeric($action))
1495            $action=$this->log_kv_action_to_id($action);
1496        ia_query("INSERT INTO kv_record_log(alta_db,kv_accion_log_id,collection_id,record_id,note,usuario) VALUES(NOW(),".stritc($this->log_kv_action_to_id($action)).stritc($tema).stritc($id).stritc($msg).strit($usuario).")");
1497        //ia_query("INSERT /* appRelateBase:log */ INTO iac_log(fecha,iac_log_hecho_id,iac_table_id,record,nota,usuario) VALUES(NOW(),".stritc($action).stritc($tema).stritc($id).stritc($msg).strit($usuario).")");
1498
1499    }
1500
1501    function log_tema_to_id($tema) {
1502        //if($tema=='iac_usr')
1503        //    $tema='usuario_cobranza';
1504        $tabla= ia_singleread("SELECT tabla_id FROM tablas WHERE tabla=".strit($tema),0);
1505        if($tabla)
1506            return $tabla;
1507        return 0;
1508        if(array_key_exists($tema,$this->tables))
1509            return $this->tables[$tema]['iac_table_id'];
1510        return 0;
1511    }
1512
1513    function log_actions_get() {
1514        return array( 'sin permiso'=>1,'bad login'=>2
1515                    ,'view'=>10,'edit'=>11,'update'=>11,'insert'=>12,'delete'=>13
1516                    ,'list'=>20,'export'=>22,'print'=>23,'send as email'=>24,'search'=>29
1517                    ,'login'=>31,'logout'=>32
1518                    ,'other'=>254
1519                );
1520    }
1521
1522    function log_kv_action_to_id($action) {
1523         if(is_numeric($action))  return $action;
1524         elseif( strcasecmp($action,"insert")==0 ) $action="Alta";
1525         elseif( strcasecmp($action,"update")==0 ) $action="Editar";
1526         elseif( strcasecmp($action,"delete")==0 ) $action="Borrar";
1527         elseif( strcasecmp($action,"verifica")==0 ) $action="Verificar";
1528         elseif( strcasecmp($action,"liga")==0 ) $action="Ligar";
1529         elseif( strcasecmp($action,"acuenta")==0 ) $action="A cuenta";
1530         elseif( strcasecmp($action,"entrar")==0 ) $action="Login";
1531         elseif( strcasecmp($action,"salir")==0 ) $action="Logout";
1532         elseif( strcasecmp($action,"permiso")==0 ) $action="Sin permiso";
1533         elseif( strcasecmp($action,"mal login")==0 ) $action="Bad login";
1534         /*
1535         elseif( strcasecmp($action,"")==0 ) $action="Alerta seguridad";
1536         elseif( strcasecmp($action,"")==0 ) $action="Alerta del sistema";
1537         elseif( strcasecmp($action,"")==0 ) $action="Aviso del sistema";
1538         elseif( strcasecmp($action,"")==0 ) $action="Romper link - EC";
1539         elseif( strcasecmp($action,"")==0 ) $action="Bloquear masivamente - EC";
1540         elseif( strcasecmp($action,"")==0 ) $action="Borrar - EC";
1541         elseif( strcasecmp($action,"")==0 ) $action="Borrar masivamente - EC";
1542         elseif( strcasecmp($action,"")==0 ) $action="Borrar masivamente v - EC";
1543         elseif( strcasecmp($action,"")==0 ) $action="Hacer link manual - EC";
1544         */
1545
1546        return ia_singleread("SELECT kv_accion_log_id FROM kv_accion_log WHERE accion=".strit($action),70);
1547    }
1548
1549    function log_action_to_id($action) {
1550        $actions=$this->log_actions_get();
1551        if(array_key_exists($action,$actions))
1552            return $actions[$action];
1553        return $actions['other'];
1554    }
1555
1556    /**
1557     * appRelate::links_default_info
1558     * Definicion default de las relaciones entre tablas, no cambiar cambiar en links_final_info()
1559     *
1560     */
1561       /* TALBE_DEFAULT_INFO START */
1562    public function tables_default_info() {
1563    $this->has_workflow=false;
1564    $this->tables=array (
1565  'a_cuentas_live' =>
1566  array (
1567    'es' => 'child',
1568    'pk_single_field' => 'doc_pago_id',
1569    'pk_single_type' => 'uuid',
1570    'label_field' => 'doc_id',
1571    'has_seq' => false,
1572    'has_child' => false,
1573    'has_date' => true,
1574    'has_numeric' => true,
1575    'has_datetime' => true,
1576    'links_to' =>
1577    array (
1578      'cliente' =>
1579      array (
1580        'cliente_id' =>
1581        array (
1582          'es' => 'catalog',
1583          'formato' => 'link_one_select',
1584          'to_table' => 'cliente',
1585          'to_field' => 'cliente_id',
1586          'this_table' => 'a_cuentas_live',
1587          'this_field' => 'cliente_id',
1588        ),
1589      ),
1590      'moneda' =>
1591      array (
1592        'moneda_id' =>
1593        array (
1594          'es' => 'catalog',
1595          'formato' => 'link_one_select',
1596          'to_table' => 'moneda',
1597          'to_field' => 'moneda_id',
1598          'this_table' => 'a_cuentas_live',
1599          'this_field' => 'moneda_id',
1600        ),
1601      ),
1602      'cuentat' =>
1603      array (
1604        'cuentaT_id' =>
1605        array (
1606          'es' => 'catalog',
1607          'formato' => 'link_one_select',
1608          'to_table' => 'cuentat',
1609          'to_field' => 'cuentaT_id',
1610          'this_table' => 'a_cuentas_live',
1611          'this_field' => 'cuentaT_id',
1612        ),
1613        'cuentaT_deliveredto_id' =>
1614        array (
1615          'es' => 'catalog',
1616          'formato' => 'link_one_select',
1617          'to_table' => 'cuentat',
1618          'to_field' => 'cuentaT_id',
1619          'this_table' => 'a_cuentas_live',
1620          'this_field' => 'cuentaT_deliveredto_id',
1621        ),
1622        'origen_cuentat_id' =>
1623        array (
1624          'es' => 'catalog',
1625          'formato' => 'link_one_select',
1626          'to_table' => 'cuentat',
1627          'to_field' => 'cuentaT_id',
1628          'this_table' => 'a_cuentas_live',
1629          'this_field' => 'origen_cuentat_id',
1630        ),
1631      ),
1632      'metodo_pago' =>
1633      array (
1634        'metodo_pago_id' =>
1635        array (
1636          'es' => 'catalog',
1637          'formato' => 'link_one_select',
1638          'to_table' => 'metodo_pago',
1639          'to_field' => 'metodo_pago_id',
1640          'this_table' => 'a_cuentas_live',
1641          'this_field' => 'metodo_pago_id',
1642        ),
1643      ),
1644      'banco_cuenta_mov_link' =>
1645      array (
1646        'banco_cuenta_mov_link_id' =>
1647        array (
1648          'es' => 'catalog',
1649          'formato' => 'link_one_select',
1650          'to_table' => 'banco_cuenta_mov_link',
1651          'to_field' => 'banco_cuenta_mov_link_id',
1652          'this_table' => 'a_cuentas_live',
1653          'this_field' => 'banco_cuenta_mov_link_id',
1654        ),
1655      ),
1656      'banco_cuenta' =>
1657      array (
1658        'banco_cuenta_id' =>
1659        array (
1660          'es' => 'catalog',
1661          'formato' => 'link_one_select',
1662          'to_table' => 'banco_cuenta',
1663          'to_field' => 'banco_cuenta_id',
1664          'this_table' => 'a_cuentas_live',
1665          'this_field' => 'banco_cuenta_id',
1666        ),
1667      ),
1668      'empresa' =>
1669      array (
1670        'empresa_id' =>
1671        array (
1672          'es' => 'catalog',
1673          'formato' => 'link_one_select',
1674          'to_table' => 'empresa',
1675          'to_field' => 'empresa_id',
1676          'this_table' => 'a_cuentas_live',
1677          'this_field' => 'empresa_id',
1678        ),
1679      ),
1680      'cuentat_mov' =>
1681      array (
1682        'cuenta_t_mov_id' =>
1683        array (
1684          'es' => 'catalog',
1685          'formato' => 'link_one_select',
1686          'to_table' => 'cuentat_mov',
1687          'to_field' => 'cuentaT_mov_id',
1688          'this_table' => 'a_cuentas_live',
1689          'this_field' => 'cuenta_t_mov_id',
1690        ),
1691      ),
1692      'tienda' =>
1693      array (
1694        'tienda_id' =>
1695        array (
1696          'es' => 'catalog',
1697          'formato' => 'link_one_select',
1698          'to_table' => 'tienda',
1699          'to_field' => 'tienda_id',
1700          'this_table' => 'a_cuentas_live',
1701          'this_field' => 'tienda_id',
1702        ),
1703      ),
1704    ),
1705  ),
1706  'agenda_clientes' =>
1707  array (
1708    'es' => 'data',
1709    'pk_single_field' => 'agenda_clientes_id',
1710    'pk_single_type' => 'uuid',
1711    'label_field' => 'nombre',
1712    'has_seq' => false,
1713    'has_child' => false,
1714    'has_fckeditor' => true,
1715    'has_file_upload' => true,
1716  ),
1717  'agrupa' =>
1718  array (
1719    'es' => 'data',
1720    'label_field' => 'grupo',
1721    'orden' => true,
1722    'has_seq' => false,
1723    'has_child' => false,
1724  ),
1725  'agrupa_def' =>
1726  array (
1727    'es' => 'data',
1728    'pk_single_field' => 'grupo',
1729    'pk_single_type' => 'value',
1730    'label_field' => 'subGrupoTable',
1731    'has_seq' => false,
1732    'has_child' => false,
1733  ),
1734  'ajuste' =>
1735  array (
1736    'es' => 'parent',
1737    'pk_single_field' => 'ajuste_id',
1738    'pk_single_type' => 'uuid',
1739    'label_field' => 'bodega_id',
1740    'has_seq' => false,
1741    'has_child' => true,
1742    'has_numeric' => true,
1743    'has_fckeditor' => true,
1744    'has_datetime' => true,
1745    'links_to' =>
1746    array (
1747      'bodega' =>
1748      array (
1749        'bodega_id' =>
1750        array (
1751          'es' => 'catalog',
1752          'formato' => 'link_one_select',
1753          'to_table' => 'bodega',
1754          'to_field' => 'bodega_id',
1755          'this_table' => 'ajuste',
1756          'this_field' => 'bodega_id',
1757        ),
1758      ),
1759      'producto_general' =>
1760      array (
1761        'producto_general_id' =>
1762        array (
1763          'es' => 'catalog',
1764          'formato' => 'link_one_select',
1765          'to_table' => 'producto_general',
1766          'to_field' => 'producto_general_id',
1767          'this_table' => 'ajuste',
1768          'this_field' => 'producto_general_id',
1769        ),
1770      ),
1771      'nota_bodega' =>
1772      array (
1773        'nota_bodega_id' =>
1774        array (
1775          'es' => 'catalog',
1776          'formato' => 'link_one_select',
1777          'to_table' => 'nota_bodega',
1778          'to_field' => '?',
1779          'this_table' => 'ajuste',
1780          'this_field' => 'nota_bodega_id',
1781        ),
1782      ),
1783    ),
1784    'links_from' =>
1785    array (
1786      'ajuste_autorizacion' =>
1787      array (
1788        'ajuste_id' =>
1789        array (
1790          'es' => 'child',
1791          'formato' => 'jqgrid',
1792          'to_table' => 'ajuste_autorizacion',
1793          'to_field' => 'ajuste_id',
1794          'this_table' => 'ajuste',
1795          'this_field' => 'ajuste_id',
1796          'restrict_delete' => false,
1797          'delete_with_parent' => true,
1798          'on_delete_set_to' => 0,
1799        ),
1800      ),
1801      'ajuste_item' =>
1802      array (
1803        'ajuste_id' =>
1804        array (
1805          'es' => 'child',
1806          'formato' => 'jqgrid',
1807          'to_table' => 'ajuste_item',
1808          'to_field' => 'ajuste_id',
1809          'this_table' => 'ajuste',
1810          'this_field' => 'ajuste_id',
1811          'restrict_delete' => false,
1812          'delete_with_parent' => true,
1813          'on_delete_set_to' => 0,
1814        ),
1815      ),
1816    ),
1817  ),
1818  'ajuste_autorizacion' =>
1819  array (
1820    'es' => 'child',
1821    'pk_single_field' => 'ajuste_autorizacion',
1822    'pk_single_type' => 'auto_increment',
1823    'label_field' => 'nota_bodega_id',
1824    'has_seq' => false,
1825    'has_child' => false,
1826    'has_datetime' => true,
1827    'has_fckeditor' => true,
1828    'UNI' =>
1829    array (
1830      'ajuste_id' =>
1831      array (
1832        1 => 'ajuste_id',
1833        2 => 'iac_usr_id',
1834        3 => 'tabla_origen',
1835      ),
1836    ),
1837    'links_to' =>
1838    array (
1839      'nota_bodega' =>
1840      array (
1841        'nota_bodega_id' =>
1842        array (
1843          'es' => 'catalog',
1844          'formato' => 'link_one_select',
1845          'to_table' => 'nota_bodega',
1846          'to_field' => '?',
1847          'this_table' => 'ajuste_autorizacion',
1848          'this_field' => 'nota_bodega_id',
1849        ),
1850      ),
1851      'ajuste' =>
1852      array (
1853        'ajuste_id' =>
1854        array (
1855          'es' => 'catalog',
1856          'formato' => 'link_one_select',
1857          'to_table' => 'ajuste',
1858          'to_field' => 'ajuste_id',
1859          'this_table' => 'ajuste_autorizacion',
1860          'this_field' => 'ajuste_id',
1861        ),
1862      ),
1863      'iac_usr' =>
1864      array (
1865        'iac_usr_id' =>
1866        array (
1867          'es' => 'catalog',
1868          'formato' => 'link_one_select',
1869          'to_table' => 'iac_usr',
1870          'to_field' => 'iac_usr_id',
1871          'this_table' => 'ajuste_autorizacion',
1872          'this_field' => 'iac_usr_id',
1873        ),
1874      ),
1875    ),
1876  ),
1877  'ajuste_hist' =>
1878  array (
1879    'es' => 'data',
1880    'pk_single_field' => 'history_id',
1881    'pk_single_type' => 'auto_increment',
1882    'label_field' => 'action',
1883    'has_seq' => false,
1884    'has_child' => false,
1885    'has_datetime' => true,
1886    'links_from' =>
1887    array (
1888      'bodega_hist' =>
1889      array (
1890        'es' => 'one2one',
1891      ),
1892      'cheque_hist' =>
1893      array (
1894        'es' => 'one2one',
1895      ),
1896      'cliente_hist' =>
1897      array (
1898        'es' => 'one2one',
1899      ),
1900      'color_hist' =>
1901      array (
1902        'es' => 'one2one',
1903      ),
1904      'estado_bodega_hist' =>
1905      array (
1906        'es' => 'one2one',
1907      ),
1908      'importador_hist' =>
1909      array (
1910        'es' => 'one2one',
1911      ),
1912      'nota_bodega_hist' =>
1913      array (
1914        'es' => 'one2one',
1915      ),
1916      'nota_bodega_verificacion_hist' =>
1917      array (
1918        'es' => 'one2one',
1919      ),
1920      'origen_bodega_bodega_hist' =>
1921      array (
1922        'es' => 'one2one',
1923      ),
1924      'origen_bodega_hist' =>
1925      array (
1926        'es' => 'one2one',
1927      ),
1928      'pagare_hist' =>
1929      array (
1930        'es' => 'one2one',
1931      ),
1932      'pedido_hist' =>
1933      array (
1934        'es' => 'one2one',
1935      ),
1936      'permiso_bodega_hist' =>
1937      array (
1938        'es' => 'one2one',
1939      ),
1940      'producto_bodega_hist' =>
1941      array (
1942        'es' => 'one2one',
1943      ),
1944      'producto_color_hist' =>
1945      array (
1946        'es' => 'one2one',
1947      ),
1948      'producto_general_hist' =>
1949      array (
1950        'es' => 'one2one',
1951      ),
1952      'solicitud_carta_porte_hist' =>
1953      array (
1954        'es' => 'one2one',
1955      ),
1956      'tienda_hist' =>
1957      array (
1958        'es' => 'one2one',
1959      ),
1960      'vale_hist' =>
1961      array (
1962        'es' => 'one2one',
1963      ),
1964    ),
1965  ),
1966  'ajuste_item' =>
1967  array (
1968    'es' => 'child',
1969    'pk_single_field' => 'ajuste_item_id',
1970    'pk_single_type' => 'uuid',
1971    'label_field' => 'ajuste_id',
1972    'has_seq' => false,
1973    'has_child' => false,
1974    'has_numeric' => true,
1975    'has_fckeditor' => true,
1976    'links_to' =>
1977    array (
1978      'ajuste' =>
1979      array (
1980        'ajuste_id' =>
1981        array (
1982          'es' => 'catalog',
1983          'formato' => 'link_one_select',
1984          'to_table' => 'ajuste',
1985          'to_field' => 'ajuste_id',
1986          'this_table' => 'ajuste_item',
1987          'this_field' => 'ajuste_id',
1988        ),
1989      ),
1990      'color' =>
1991      array (
1992        'color_id' =>
1993        array (
1994          'es' => 'catalog',
1995          'formato' => 'link_one_select',
1996          'to_table' => 'color',
1997          'to_field' => 'color_id',
1998          'this_table' => 'ajuste_item',
1999          'this_field' => 'color_id',
2000        ),
2001      ),
2002      'producto_bodega' =>
2003      array (
2004        'producto_bodega_id' =>
2005        array (
2006          'es' => 'catalog',
2007          'formato' => 'link_one_select',
2008          'to_table' => 'producto_bodega',
2009          'to_field' => '?',
2010          'this_table' => 'ajuste_item',
2011          'this_field' => 'producto_bodega_id',
2012        ),
2013      ),
2014    ),
2015  ),
2016  'asignacion' =>
2017  array (
2018    'es' => 'child',
2019    'pk_single_field' => 'asignacion_id',
2020    'pk_single_type' => 'uuid',
2021    'label_field' => 'cuentat_gasto_id',
2022    'has_seq' => false,
2023    'has_child' => false,
2024    'has_datetime' => true,
2025    'links_to' =>
2026    array (
2027      'iac_usr' =>
2028      array (
2029        'usuario_id' =>
2030        array (
2031          'es' => 'catalog',
2032          'formato' => 'link_one_select',
2033          'to_table' => 'iac_usr',
2034          'to_field' => 'iac_usr_id',
2035          'this_table' => 'asignacion',
2036          'this_field' => 'usuario_id',
2037        ),
2038      ),
2039      'cuentat_gasto' =>
2040      array (
2041        'cuentat_gasto_id' =>
2042        array (
2043          'es' => 'catalog',
2044          'formato' => 'link_one_select',
2045          'to_table' => 'cuentat_gasto',
2046          'to_field' => 'cuentat_gasto_id',
2047          'this_table' => 'asignacion',
2048          'this_field' => 'cuentat_gasto_id',
2049        ),
2050      ),
2051      'plantilla_cuentat_gasto' =>
2052      array (
2053        'plantilla_cuentat_gasto_id' =>
2054        array (
2055          'es' => 'catalog',
2056          'formato' => 'link_one_select',
2057          'to_table' => 'plantilla_cuentat_gasto',
2058          'to_field' => 'plantilla_cuentat_gasto_id',
2059          'this_table' => 'asignacion',
2060          'this_field' => 'plantilla_cuentat_gasto_id',
2061        ),
2062      ),
2063    ),
2064  ),
2065  'auto_complete' =>
2066  array (
2067    'es' => 'data',
2068    'pk_single_field' => 'id_auto_complete',
2069    'pk_single_type' => 'auto_increment',
2070    'label_field' => 'valor',
2071    'has_seq' => false,
2072    'has_child' => false,
2073    'UNI' =>
2074    array (
2075      'insert_update' =>
2076      array (
2077        1 => 'tabla',
2078        2 => 'valor',
2079      ),
2080    ),
2081  ),
2082  'autorizacion_modificacion_importante_log' =>
2083  array (
2084    'es' => 'child',
2085    'pk_single_field' => 'autorizacion_modificacion_importante_log_id',
2086    'pk_single_type' => 'uuid',
2087    'label_field' => 'nota_bodega_id',
2088    'has_seq' => false,
2089    'has_child' => false,
2090    'has_datetime' => true,
2091    'has_fckeditor' => true,
2092    'links_to' =>
2093    array (
2094      'nota_bodega' =>
2095      array (
2096        'nota_bodega_id' =>
2097        array (
2098          'es' => 'catalog',
2099          'formato' => 'link_one_select',
2100          'to_table' => 'nota_bodega',
2101          'to_field' => '?',
2102          'this_table' => 'autorizacion_modificacion_importante_log',
2103          'this_field' => 'nota_bodega_id',
2104        ),
2105      ),
2106      'iac_usr' =>
2107      array (
2108        'iac_usr_id' =>
2109        array (
2110          'es' => 'catalog',
2111          'formato' => 'link_one_select',
2112          'to_table' => 'iac_usr',
2113          'to_field' => 'iac_usr_id',
2114          'this_table' => 'autorizacion_modificacion_importante_log',
2115          'this_field' => 'iac_usr_id',
2116        ),
2117      ),
2118    ),
2119  ),
2120  'autorizacion_recepcion_nota_bodega' =>
2121  array (
2122    'es' => 'child',
2123    'pk_single_field' => 'autorizacion_recepcion_nota_bodega_id',
2124    'pk_single_type' => 'uuid',
2125    'label_field' => 'nota_bodega_id',
2126    'has_seq' => false,
2127    'has_child' => false,
2128    'has_datetime' => true,
2129    'has_fckeditor' => true,
2130    'UNI' =>
2131    array (
2132      'autorizacion_unica_nota' =>
2133      array (
2134        1 => 'nota_bodega_id',
2135        2 => 'tipo',
2136        3 => 'iac_usr_id',
2137      ),
2138    ),
2139    'links_to' =>
2140    array (
2141      'nota_bodega' =>
2142      array (
2143        'nota_bodega_id' =>
2144        array (
2145          'es' => 'catalog',
2146          'formato' => 'link_one_select',
2147          'to_table' => 'nota_bodega',
2148          'to_field' => '?',
2149          'this_table' => 'autorizacion_recepcion_nota_bodega',
2150          'this_field' => 'nota_bodega_id',
2151        ),
2152      ),
2153      'iac_usr' =>
2154      array (
2155        'iac_usr_id' =>
2156        array (
2157          'es' => 'catalog',
2158          'formato' => 'link_one_select',
2159          'to_table' => 'iac_usr',
2160          'to_field' => 'iac_usr_id',
2161          'this_table' => 'autorizacion_recepcion_nota_bodega',
2162          'this_field' => 'iac_usr_id',
2163        ),
2164      ),
2165    ),
2166  ),
2167  'ayudantes' =>
2168  array (
2169    'es' => 'data',
2170    'pk_single_field' => 'ayudante_id',
2171    'pk_single_type' => 'uuid',
2172    'label_field' => 'nombre',
2173    'orden' => true,
2174    'has_seq' => false,
2175    'has_child' => false,
2176    'has_fckeditor' => true,
2177    'UNI' =>
2178    array (
2179      'ayudante_nombre' =>
2180      array (
2181        1 => 'nombre',
2182        2 => 'es_encargado',
2183      ),
2184    ),
2185  ),
2186  'banco' =>
2187  array (
2188    'es' => 'parent',
2189    'pk_single_field' => 'banco_id',
2190    'pk_single_type' => 'auto_increment',
2191    'label_field' => 'clave',
2192    'has_seq' => false,
2193    'has_child' => true,
2194    'has_fckeditor' => true,
2195    'UNI' =>
2196    array (
2197      0 => 'clave',
2198    ),
2199    'links_from' =>
2200    array (
2201      'banco_cuenta' =>
2202      array (
2203        'banco_id' =>
2204        array (
2205          'es' => 'child',
2206          'formato' => 'jqgrid',
2207          'to_table' => 'banco_cuenta',
2208          'to_field' => 'banco_id',
2209          'this_table' => 'banco',
2210          'this_field' => 'banco_id',
2211          'restrict_delete' => true,
2212          'delete_with_parent' => false,
2213          'on_delete_set_to' => 0,
2214        ),
2215      ),
2216      'banco_cuenta_mov' =>
2217      array (
2218        'banco_id' =>
2219        array (
2220          'es' => 'child',
2221          'formato' => 'jqgrid',
2222          'to_table' => 'banco_cuenta_mov',
2223          'to_field' => 'banco_id',
2224          'this_table' => 'banco',
2225          'this_field' => 'banco_id',
2226          'restrict_delete' => true,
2227          'delete_with_parent' => false,
2228          'on_delete_set_to' => 0,
2229        ),
2230      ),
2231      'banco_cuenta_mov_con_links' =>
2232      array (
2233        'banco_id' =>
2234        array (
2235          'es' => 'child',
2236          'formato' => 'jqgrid',
2237          'to_table' => 'banco_cuenta_mov_con_links',
2238          'to_field' => 'banco_id',
2239          'this_table' => 'banco',
2240          'this_field' => 'banco_id',
2241          'restrict_delete' => true,
2242          'delete_with_parent' => false,
2243          'on_delete_set_to' => 0,
2244        ),
2245      ),
2246      'banco_cuenta_saldos' =>
2247      array (
2248        'banco_id' =>
2249        array (
2250          'es' => 'child',
2251          'formato' => 'jqgrid',
2252          'to_table' => 'banco_cuenta_saldos',
2253          'to_field' => 'banco_id',
2254          'this_table' => 'banco',
2255          'this_field' => 'banco_id',
2256          'restrict_delete' => false,
2257          'delete_with_parent' => true,
2258          'on_delete_set_to' => 0,
2259        ),
2260      ),
2261      'banco_cuenta_trans' =>
2262      array (
2263        'origen_banco_cuenta_id' =>
2264        array (
2265          'es' => 'catalog_entry',
2266          'formato' => 'link_one_select',
2267          'to_table' => 'banco_cuenta_trans',
2268          'to_field' => 'origen_banco_cuenta_id',
2269          'this_table' => 'banco',
2270          'this_field' => 'banco_id',
2271          'restrict_delete' => false,
2272          'delete_with_parent' => true,
2273          'on_delete_set_to' => 0,
2274        ),
2275        'destino_banco_cuenta_id' =>
2276        array (
2277          'es' => 'catalog_entry',
2278          'formato' => 'link_one_select',
2279          'to_table' => 'banco_cuenta_trans',
2280          'to_field' => 'destino_banco_cuenta_id',
2281          'this_table' => 'banco',
2282          'this_field' => 'banco_id',
2283          'restrict_delete' => false,
2284          'delete_with_parent' => true,
2285          'on_delete_set_to' => 0,
2286        ),
2287      ),
2288      'banco_cuenta_trans_pend' =>
2289      array (
2290        'origen_banco_cuenta_id' =>
2291        array (
2292          'es' => 'catalog_entry',
2293          'formato' => 'link_one_select',
2294          'to_table' => 'banco_cuenta_trans_pend',
2295          'to_field' => 'origen_banco_cuenta_id',
2296          'this_table' => 'banco',
2297          'this_field' => 'banco_id',
2298          'restrict_delete' => false,
2299          'delete_with_parent' => true,
2300          'on_delete_set_to' => 0,
2301        ),
2302        'destino_banco_cuenta_id' =>
2303        array (
2304          'es' => 'catalog_entry',
2305          'formato' => 'link_one_select',
2306          'to_table' => 'banco_cuenta_trans_pend',
2307          'to_field' => 'destino_banco_cuenta_id',
2308          'this_table' => 'banco',
2309          'this_field' => 'banco_id',
2310          'restrict_delete' => false,
2311          'delete_with_parent' => true,
2312          'on_delete_set_to' => 0,
2313        ),
2314      ),
2315      'cheque' =>
2316      array (
2317        'banco_id' =>
2318        array (
2319          'es' => 'catalog_entry',
2320          'formato' => 'jqgrid',
2321          'to_table' => 'cheque',
2322          'to_field' => 'banco_id',
2323          'this_table' => 'banco',
2324          'this_field' => 'banco_id',
2325          'restrict_delete' => true,
2326          'delete_with_parent' => false,
2327          'on_delete_set_to' => 0,
2328        ),
2329      ),
2330      'cheque_log' =>
2331      array (
2332        'banco_id' =>
2333        array (
2334          'es' => 'catalog_entry',
2335          'formato' => 'jqgrid',
2336          'to_table' => 'cheque_log',
2337          'to_field' => 'banco_id',
2338          'this_table' => 'banco',
2339          'this_field' => 'banco_id',
2340          'restrict_delete' => true,
2341          'delete_with_parent' => false,
2342          'on_delete_set_to' => 0,
2343        ),
2344      ),
2345      'compra' =>
2346      array (
2347        'banco_id' =>
2348        array (
2349          'es' => 'catalog_entry',
2350          'formato' => 'jqgrid',
2351          'to_table' => 'compra',
2352          'to_field' => 'banco_id',
2353          'this_table' => 'banco',
2354          'this_field' => 'banco_id',
2355          'restrict_delete' => true,
2356          'delete_with_parent' => false,
2357          'on_delete_set_to' => 0,
2358        ),
2359      ),
2360      'compra_log' =>
2361      array (
2362        'banco_id' =>
2363        array (
2364          'es' => 'catalog_entry',
2365          'formato' => 'jqgrid',
2366          'to_table' => 'compra_log',
2367          'to_field' => 'banco_id',
2368          'this_table' => 'banco',
2369          'this_field' => 'banco_id',
2370          'restrict_delete' => true,
2371          'delete_with_parent' => false,
2372          'on_delete_set_to' => 0,
2373        ),
2374      ),
2375      'mov_verificado' =>
2376      array (
2377        'banco_id' =>
2378        array (
2379          'es' => 'catalog_entry',
2380          'formato' => 'jqgrid',
2381          'to_table' => 'mov_verificado',
2382          'to_field' => 'banco_id',
2383          'this_table' => 'banco',
2384          'this_field' => 'banco_id',
2385          'restrict_delete' => true,
2386          'delete_with_parent' => false,
2387          'on_delete_set_to' => 0,
2388        ),
2389      ),
2390      'mov_verificado_con_links' =>
2391      array (
2392        'banco_id' =>
2393        array (
2394          'es' => 'catalog_entry',
2395          'formato' => 'jqgrid',
2396          'to_table' => 'mov_verificado_con_links',
2397          'to_field' => 'banco_id',
2398          'this_table' => 'banco',
2399          'this_field' => 'banco_id',
2400          'restrict_delete' => true,
2401          'delete_with_parent' => false,
2402          'on_delete_set_to' => 0,
2403        ),
2404      ),
2405      'pagare' =>
2406      array (
2407        'banco_id' =>
2408        array (
2409          'es' => 'catalog_entry',
2410          'formato' => 'jqgrid',
2411          'to_table' => 'pagare',
2412          'to_field' => 'banco_id',
2413          'this_table' => 'banco',
2414          'this_field' => 'banco_id',
2415          'restrict_delete' => true,
2416          'delete_with_parent' => false,
2417          'on_delete_set_to' => 0,
2418        ),
2419      ),
2420      'pagare_log' =>
2421      array (
2422        'banco_id' =>
2423        array (
2424          'es' => 'catalog_entry',
2425          'formato' => 'jqgrid',
2426          'to_table' => 'pagare_log',
2427          'to_field' => 'banco_id',
2428          'this_table' => 'banco',
2429          'this_field' => 'banco_id',
2430          'restrict_delete' => true,
2431          'delete_with_parent' => false,
2432          'on_delete_set_to' => 0,
2433        ),
2434      ),
2435      'pagare_test' =>
2436      array (
2437        'banco_id' =>
2438        array (
2439          'es' => 'catalog_entry',
2440          'formato' => 'jqgrid',
2441          'to_table' => 'pagare_test',
2442          'to_field' => 'banco_id',
2443          'this_table' => 'banco',
2444          'this_field' => 'banco_id',
2445          'restrict_delete' => true,
2446          'delete_with_parent' => false,
2447          'on_delete_set_to' => 0,
2448        ),
2449      ),
2450    ),
2451  ),
2452  'banco_cuenta' =>
2453  array (
2454    'es' => 'parent',
2455    'pk_single_field' => 'banco_cuenta_id',
2456    'pk_single_type' => 'auto_increment',
2457    'label_field' => 'nombre',
2458    'vale' => true,
2459    'orden' => true,
2460    'has_seq' => false,
2461    'has_child' => true,
2462    'has_datetime' => true,
2463    'has_fckeditor' => true,
2464    'UNI' =>
2465    array (
2466      0 => 'nombre',
2467      'nombre' =>
2468      array (
2469        1 => 'nombre',
2470      ),
2471    ),
2472    'links_from' =>
2473    array (
2474      'a_cuentas_live' =>
2475      array (
2476        'banco_cuenta_id' =>
2477        array (
2478          'es' => 'catalog_entry',
2479          'formato' => 'jqgrid',
2480          'to_table' => 'a_cuentas_live',
2481          'to_field' => 'banco_cuenta_id',
2482          'this_table' => 'banco_cuenta',
2483          'this_field' => 'banco_cuenta_id',
2484          'restrict_delete' => true,
2485          'delete_with_parent' => false,
2486          'on_delete_set_to' => 0,
2487        ),
2488      ),
2489      'banco_cuenta_mov' =>
2490      array (
2491        'banco_cuenta_id' =>
2492        array (
2493          'es' => 'child',
2494          'formato' => 'jqgrid',
2495          'to_table' => 'banco_cuenta_mov',
2496          'to_field' => 'banco_cuenta_id',
2497          'this_table' => 'banco_cuenta',
2498          'this_field' => 'banco_cuenta_id',
2499          'restrict_delete' => true,
2500          'delete_with_parent' => false,
2501          'on_delete_set_to' => 0,
2502        ),
2503      ),
2504      'banco_cuenta_mov_con_links' =>
2505      array (
2506        'banco_cuenta_id' =>
2507        array (
2508          'es' => 'child',
2509          'formato' => 'jqgrid',
2510          'to_table' => 'banco_cuenta_mov_con_links',
2511          'to_field' => 'banco_cuenta_id',
2512          'this_table' => 'banco_cuenta',
2513          'this_field' => 'banco_cuenta_id',
2514          'restrict_delete' => false,
2515          'delete_with_parent' => true,
2516          'on_delete_set_to' => 0,
2517        ),
2518      ),
2519      'banco_cuenta_mov_plantilla' =>
2520      array (
2521        'banco_cuenta_id' =>
2522        array (
2523          'es' => 'child',
2524          'formato' => 'jqgrid',
2525          'to_table' => 'banco_cuenta_mov_plantilla',
2526          'to_field' => 'banco_cuenta_id',
2527          'this_table' => 'banco_cuenta',
2528          'this_field' => 'banco_cuenta_id',
2529          'restrict_delete' => false,
2530          'delete_with_parent' => true,
2531          'on_delete_set_to' => 0,
2532        ),
2533      ),
2534      'banco_cuenta_trans' =>
2535      array (
2536        'banco_cuenta_id' =>
2537        array (
2538          'es' => 'child',
2539          'formato' => 'jqgrid',
2540          'to_table' => 'banco_cuenta_trans',
2541          'to_field' => 'banco_cuenta_id',
2542          'this_table' => 'banco_cuenta',
2543          'this_field' => 'banco_cuenta_id',
2544          'restrict_delete' => true,
2545          'delete_with_parent' => false,
2546          'on_delete_set_to' => 0,
2547        ),
2548      ),
2549      'cash_pago' =>
2550      array (
2551        'banco_cuenta_id' =>
2552        array (
2553          'es' => 'catalog_entry',
2554          'formato' => 'jqgrid',
2555          'to_table' => 'cash_pago',
2556          'to_field' => 'banco_cuenta_id',
2557          'this_table' => 'banco_cuenta',
2558          'this_field' => 'banco_cuenta_id',
2559          'restrict_delete' => true,
2560          'delete_with_parent' => false,
2561          'on_delete_set_to' => 0,
2562        ),
2563      ),
2564      'cheque_pago' =>
2565      array (
2566        'banco_cuenta_id' =>
2567        array (
2568          'es' => 'catalog_entry',
2569          'formato' => 'jqgrid',
2570          'to_table' => 'cheque_pago',
2571          'to_field' => 'banco_cuenta_id',
2572          'this_table' => 'banco_cuenta',
2573          'this_field' => 'banco_cuenta_id',
2574          'restrict_delete' => true,
2575          'delete_with_parent' => false,
2576          'on_delete_set_to' => 0,
2577        ),
2578      ),
2579      'cheque_pago_log' =>
2580      array (
2581        'banco_cuenta_id' =>
2582        array (
2583          'es' => 'catalog_entry',
2584          'formato' => 'jqgrid',
2585          'to_table' => 'cheque_pago_log',
2586          'to_field' => 'banco_cuenta_id',
2587          'this_table' => 'banco_cuenta',
2588          'this_field' => 'banco_cuenta_id',
2589          'restrict_delete' => true,
2590          'delete_with_parent' => false,
2591          'on_delete_set_to' => 0,
2592        ),
2593      ),
2594      'compra_pago' =>
2595      array (
2596        'banco_cuenta_id' =>
2597        array (
2598          'es' => 'catalog_entry',
2599          'formato' => 'jqgrid',
2600          'to_table' => 'compra_pago',
2601          'to_field' => 'banco_cuenta_id',
2602          'this_table' => 'banco_cuenta',
2603          'this_field' => 'banco_cuenta_id',
2604          'restrict_delete' => true,
2605          'delete_with_parent' => false,
2606          'on_delete_set_to' => 0,
2607        ),
2608      ),
2609      'compra_pago_log' =>
2610      array (
2611        'banco_cuenta_id' =>
2612        array (
2613          'es' => 'catalog_entry',
2614          'formato' => 'jqgrid',
2615          'to_table' => 'compra_pago_log',
2616          'to_field' => 'banco_cuenta_id',
2617          'this_table' => 'banco_cuenta',
2618          'this_field' => 'banco_cuenta_id',
2619          'restrict_delete' => true,
2620          'delete_with_parent' => false,
2621          'on_delete_set_to' => 0,
2622        ),
2623      ),
2624      'coso' =>
2625      array (
2626        'banco_cuenta_id' =>
2627        array (
2628          'es' => 'catalog_entry',
2629          'formato' => 'jqgrid',
2630          'to_table' => 'coso',
2631          'to_field' => 'banco_cuenta_id',
2632          'this_table' => 'banco_cuenta',
2633          'this_field' => 'banco_cuenta_id',
2634          'restrict_delete' => true,
2635          'delete_with_parent' => false,
2636          'on_delete_set_to' => 0,
2637        ),
2638      ),
2639      'cuentat_a_banco' =>
2640      array (
2641        'banco_cuenta_id' =>
2642        array (
2643          'es' => 'catalog_entry',
2644          'formato' => 'jqgrid',
2645          'to_table' => 'cuentat_a_banco',
2646          'to_field' => 'banco_cuenta_id',
2647          'this_table' => 'banco_cuenta',
2648          'this_field' => 'banco_cuenta_id',
2649          'restrict_delete' => true,
2650          'delete_with_parent' => false,
2651          'on_delete_set_to' => 0,
2652        ),
2653      ),
2654      'cuentat_a_banco_links' =>
2655      array (
2656        'banco_cuenta_id' =>
2657        array (
2658          'es' => 'catalog_entry',
2659          'formato' => 'jqgrid',
2660          'to_table' => 'cuentat_a_banco_links',
2661          'to_field' => 'banco_cuenta_id',
2662          'this_table' => 'banco_cuenta',
2663          'this_field' => 'banco_cuenta_id',
2664          'restrict_delete' => true,
2665          'delete_with_parent' => false,
2666          'on_delete_set_to' => 0,
2667        ),
2668      ),
2669      'cuentat_a_banco_tc' =>
2670      array (
2671        'banco_cuenta_id' =>
2672        array (
2673          'es' => 'catalog_entry',
2674          'formato' => 'jqgrid',
2675          'to_table' => 'cuentat_a_banco_tc',
2676          'to_field' => 'banco_cuenta_id',
2677          'this_table' => 'banco_cuenta',
2678          'this_field' => 'banco_cuenta_id',
2679          'restrict_delete' => true,
2680          'delete_with_parent' => false,
2681          'on_delete_set_to' => 0,
2682        ),
2683      ),
2684      'cuentat_mov' =>
2685      array (
2686        'banco_cuenta_id' =>
2687        array (
2688          'es' => 'catalog_entry',
2689          'formato' => 'jqgrid',
2690          'to_table' => 'cuentat_mov',
2691          'to_field' => 'banco_cuenta_id',
2692          'this_table' => 'banco_cuenta',
2693          'this_field' => 'banco_cuenta_id',
2694          'restrict_delete' => true,
2695          'delete_with_parent' => false,
2696          'on_delete_set_to' => 0,
2697        ),
2698      ),
2699      'cuentat_mov_con_links' =>
2700      array (
2701        'banco_cuenta_id' =>
2702        array (
2703          'es' => 'catalog_entry',
2704          'formato' => 'jqgrid',
2705          'to_table' => 'cuentat_mov_con_links',
2706          'to_field' => 'banco_cuenta_id',
2707          'this_table' => 'banco_cuenta',
2708          'this_field' => 'banco_cuenta_id',
2709          'restrict_delete' => true,
2710          'delete_with_parent' => false,
2711          'on_delete_set_to' => 0,
2712        ),
2713      ),
2714      'cuentat_mov_live' =>
2715      array (
2716        'banco_cuenta_id' =>
2717        array (
2718          'es' => 'catalog_entry',
2719          'formato' => 'jqgrid',
2720          'to_table' => 'cuentat_mov_live',
2721          'to_field' => 'banco_cuenta_id',
2722          'this_table' => 'banco_cuenta',
2723          'this_field' => 'banco_cuenta_id',
2724          'restrict_delete' => true,
2725          'delete_with_parent' => false,
2726          'on_delete_set_to' => 0,
2727        ),
2728      ),
2729      'cuentat_mov_tmp' =>
2730      array (
2731        'banco_cuenta_id' =>
2732        array (
2733          'es' => 'catalog_entry',
2734          'formato' => 'jqgrid',
2735          'to_table' => 'cuentat_mov_tmp',
2736          'to_field' => 'banco_cuenta_id',
2737          'this_table' => 'banco_cuenta',
2738          'this_field' => 'banco_cuenta_id',
2739          'restrict_delete' => true,
2740          'delete_with_parent' => false,
2741          'on_delete_set_to' => 0,
2742        ),
2743      ),
2744      'deposita_en' =>
2745      array (
2746        'banco_cuenta_id' =>
2747        array (
2748          'es' => 'catalog_entry',
2749          'formato' => 'jqgrid',
2750          'to_table' => 'deposita_en',
2751          'to_field' => 'banco_cuenta_id',
2752          'this_table' => 'banco_cuenta',
2753          'this_field' => 'banco_cuenta_id',
2754          'restrict_delete' => true,
2755          'delete_with_parent' => false,
2756          'on_delete_set_to' => 0,
2757        ),
2758      ),
2759      'deuda_pago' =>
2760      array (
2761        'banco_cuenta_id' =>
2762        array (
2763          'es' => 'catalog_entry',
2764          'formato' => 'jqgrid',
2765          'to_table' => 'deuda_pago',
2766          'to_field' => 'banco_cuenta_id',
2767          'this_table' => 'banco_cuenta',
2768          'this_field' => 'banco_cuenta_id',
2769          'restrict_delete' => true,
2770          'delete_with_parent' => false,
2771          'on_delete_set_to' => 0,
2772        ),
2773      ),
2774      'doctos' =>
2775      array (
2776        'banco_cuenta_id' =>
2777        array (
2778          'es' => 'catalog_entry',
2779          'formato' => 'jqgrid',
2780          'to_table' => 'doctos',
2781          'to_field' => 'banco_cuenta_id',
2782          'this_table' => 'banco_cuenta',
2783          'this_field' => 'banco_cuenta_id',
2784          'restrict_delete' => true,
2785          'delete_with_parent' => false,
2786          'on_delete_set_to' => 0,
2787        ),
2788      ),
2789      'fiduciario' =>
2790      array (
2791        'banco_cuenta_id' =>
2792        array (
2793          'es' => 'catalog_entry',
2794          'formato' => 'jqgrid',
2795          'to_table' => 'fiduciario',
2796          'to_field' => 'banco_cuenta_id',
2797          'this_table' => 'banco_cuenta',
2798          'this_field' => 'banco_cuenta_id',
2799          'restrict_delete' => true,
2800          'delete_with_parent' => false,
2801          'on_delete_set_to' => 0,
2802        ),
2803      ),
2804      'fiduciario_contenedor' =>
2805      array (
2806        'banco_cuenta_id' =>
2807        array (
2808          'es' => 'catalog_entry',
2809          'formato' => 'jqgrid',
2810          'to_table' => 'fiduciario_contenedor',
2811          'to_field' => 'banco_cuenta_id',
2812          'this_table' => 'banco_cuenta',
2813          'this_field' => 'banco_cuenta_id',
2814          'restrict_delete' => true,
2815          'delete_with_parent' => false,
2816          'on_delete_set_to' => 0,
2817        ),
2818      ),
2819      'fiduciario_reembolso' =>
2820      array (
2821        'banco_cuenta_id' =>
2822        array (
2823          'es' => 'catalog_entry',
2824          'formato' => 'jqgrid',
2825          'to_table' => 'fiduciario_reembolso',
2826          'to_field' => 'banco_cuenta_id',
2827          'this_table' => 'banco_cuenta',
2828          'this_field' => 'banco_cuenta_id',
2829          'restrict_delete' => true,
2830          'delete_with_parent' => false,
2831          'on_delete_set_to' => 0,
2832        ),
2833      ),
2834      'gastosdebanco' =>
2835      array (
2836        'banco_cuenta_id' =>
2837        array (
2838          'es' => 'catalog_entry',
2839          'formato' => 'jqgrid',
2840          'to_table' => 'gastosdebanco',
2841          'to_field' => 'banco_cuenta_id',
2842          'this_table' => 'banco_cuenta',
2843          'this_field' => 'banco_cuenta_id',
2844          'restrict_delete' => true,
2845          'delete_with_parent' => false,
2846          'on_delete_set_to' => 0,
2847        ),
2848      ),
2849      'inversion' =>
2850      array (
2851        'banco_cuenta_id' =>
2852        array (
2853          'es' => 'catalog_entry',
2854          'formato' => 'jqgrid',
2855          'to_table' => 'inversion',
2856          'to_field' => 'banco_cuenta_id',
2857          'this_table' => 'banco_cuenta',
2858          'this_field' => 'banco_cuenta_id',
2859          'restrict_delete' => true,
2860          'delete_with_parent' => false,
2861          'on_delete_set_to' => 0,
2862        ),
2863      ),
2864      'inversion_reembolso' =>
2865      array (
2866        'banco_cuenta_id' =>
2867        array (
2868          'es' => 'catalog_entry',
2869          'formato' => 'jqgrid',
2870          'to_table' => 'inversion_reembolso',
2871          'to_field' => 'banco_cuenta_id',
2872          'this_table' => 'banco_cuenta',
2873          'this_field' => 'banco_cuenta_id',
2874          'restrict_delete' => true,
2875          'delete_with_parent' => false,
2876          'on_delete_set_to' => 0,
2877        ),
2878      ),
2879      'links_al_banco' =>
2880      array (
2881        'banco_cuenta_id' =>
2882        array (
2883          'es' => 'catalog_entry',
2884          'formato' => 'jqgrid',
2885          'to_table' => 'links_al_banco',
2886          'to_field' => 'banco_cuenta_id',
2887          'this_table' => 'banco_cuenta',
2888          'this_field' => 'banco_cuenta_id',
2889          'restrict_delete' => true,
2890          'delete_with_parent' => false,
2891          'on_delete_set_to' => 0,
2892        ),
2893      ),
2894      'links_al_banco_live' =>
2895      array (
2896        'banco_cuenta_id' =>
2897        array (
2898          'es' => 'catalog_entry',
2899          'formato' => 'jqgrid',
2900          'to_table' => 'links_al_banco_live',
2901          'to_field' => 'banco_cuenta_id',
2902          'this_table' => 'banco_cuenta',
2903          'this_field' => 'banco_cuenta_id',
2904          'restrict_delete' => true,
2905          'delete_with_parent' => false,
2906          'on_delete_set_to' => 0,
2907        ),
2908      ),
2909      'linkspendientes' =>
2910      array (
2911        'banco_cuenta_id' =>
2912        array (
2913          'es' => 'catalog_entry',
2914          'formato' => 'jqgrid',
2915          'to_table' => 'linkspendientes',
2916          'to_field' => 'banco_cuenta_id',
2917          'this_table' => 'banco_cuenta',
2918          'this_field' => 'banco_cuenta_id',
2919          'restrict_delete' => true,
2920          'delete_with_parent' => false,
2921          'on_delete_set_to' => 0,
2922        ),
2923      ),
2924      'mov_verificado' =>
2925      array (
2926        'banco_cuenta_id' =>
2927        array (
2928          'es' => 'catalog_entry',
2929          'formato' => 'jqgrid',
2930          'to_table' => 'mov_verificado',
2931          'to_field' => 'banco_cuenta_id',
2932          'this_table' => 'banco_cuenta',
2933          'this_field' => 'banco_cuenta_id',
2934          'restrict_delete' => true,
2935          'delete_with_parent' => false,
2936          'on_delete_set_to' => 0,
2937        ),
2938      ),
2939      'mov_verificado_con_links' =>
2940      array (
2941        'banco_cuenta_id' =>
2942        array (
2943          'es' => 'catalog_entry',
2944          'formato' => 'jqgrid',
2945          'to_table' => 'mov_verificado_con_links',
2946          'to_field' => 'banco_cuenta_id',
2947          'this_table' => 'banco_cuenta',
2948          'this_field' => 'banco_cuenta_id',
2949          'restrict_delete' => true,
2950          'delete_with_parent' => false,
2951          'on_delete_set_to' => 0,
2952        ),
2953      ),
2954      'mov_verificado_plantilla' =>
2955      array (
2956        'banco_cuenta_id' =>
2957        array (
2958          'es' => 'catalog_entry',
2959          'formato' => 'jqgrid',
2960          'to_table' => 'mov_verificado_plantilla',
2961          'to_field' => 'banco_cuenta_id',
2962          'this_table' => 'banco_cuenta',
2963          'this_field' => 'banco_cuenta_id',
2964          'restrict_delete' => true,
2965          'delete_with_parent' => false,
2966          'on_delete_set_to' => 0,
2967        ),
2968      ),
2969      'nota_pago' =>
2970      array (
2971        'banco_cuenta_id' =>
2972        array (
2973          'es' => 'catalog_entry',
2974          'formato' => 'jqgrid',
2975          'to_table' => 'nota_pago',
2976          'to_field' => 'banco_cuenta_id',
2977          'this_table' => 'banco_cuenta',
2978          'this_field' => 'banco_cuenta_id',
2979          'restrict_delete' => true,
2980          'delete_with_parent' => false,
2981          'on_delete_set_to' => 0,
2982        ),
2983      ),
2984      'pagare_pago' =>
2985      array (
2986        'banco_cuenta_id' =>
2987        array (
2988          'es' => 'catalog_entry',
2989          'formato' => 'jqgrid',
2990          'to_table' => 'pagare_pago',
2991          'to_field' => 'banco_cuenta_id',
2992          'this_table' => 'banco_cuenta',
2993          'this_field' => 'banco_cuenta_id',
2994          'restrict_delete' => true,
2995          'delete_with_parent' => false,
2996          'on_delete_set_to' => 0,
2997        ),
2998      ),
2999      'pagare_pago_log' =>
3000      array (
3001        'banco_cuenta_id' =>
3002        array (
3003          'es' => 'catalog_entry',
3004          'formato' => 'jqgrid',
3005          'to_table' => 'pagare_pago_log',
3006          'to_field' => 'banco_cuenta_id',
3007          'this_table' => 'banco_cuenta',
3008          'this_field' => 'banco_cuenta_id',
3009          'restrict_delete' => true,
3010          'delete_with_parent' => false,
3011          'on_delete_set_to' => 0,
3012        ),
3013      ),
3014      'solicitud_carta_porte' =>
3015      array (
3016        'banco_cuenta_id' =>
3017        array (
3018          'es' => 'catalog_entry',
3019          'formato' => 'jqgrid',
3020          'to_table' => 'solicitud_carta_porte',
3021          'to_field' => 'banco_cuenta_id',
3022          'this_table' => 'banco_cuenta',
3023          'this_field' => 'banco_cuenta_id',
3024          'restrict_delete' => true,
3025          'delete_with_parent' => false,
3026          'on_delete_set_to' => 0,
3027        ),
3028      ),
3029      'vale' =>
3030      array (
3031        'banco_cuenta_id' =>
3032        array (
3033          'es' => 'catalog_entry',
3034          'formato' => 'jqgrid',
3035          'to_table' => 'vale',
3036          'to_field' => 'banco_cuenta_id',
3037          'this_table' => 'banco_cuenta',
3038          'this_field' => 'banco_cuenta_id',
3039          'restrict_delete' => true,
3040          'delete_with_parent' => false,
3041          'on_delete_set_to' => 0,
3042        ),
3043      ),
3044      'vale_log' =>
3045      array (
3046        'banco_cuenta_id' =>
3047        array (
3048          'es' => 'catalog_entry',
3049          'formato' => 'jqgrid',
3050          'to_table' => 'vale_log',
3051          'to_field' => 'banco_cuenta_id',
3052          'this_table' => 'banco_cuenta',
3053          'this_field' => 'banco_cuenta_id',
3054          'restrict_delete' => true,
3055          'delete_with_parent' => false,
3056          'on_delete_set_to' => 0,
3057        ),
3058      ),
3059      'vale_pago' =>
3060      array (
3061        'banco_cuenta_id' =>
3062        array (
3063          'es' => 'catalog_entry',
3064          'formato' => 'jqgrid',
3065          'to_table' => 'vale_pago',
3066          'to_field' => 'banco_cuenta_id',
3067          'this_table' => 'banco_cuenta',
3068          'this_field' => 'banco_cuenta_id',
3069          'restrict_delete' => true,
3070          'delete_with_parent' => false,
3071          'on_delete_set_to' => 0,
3072        ),
3073      ),
3074      'vale_pago_log' =>
3075      array (
3076        'banco_cuenta_id' =>
3077        array (
3078          'es' => 'catalog_entry',
3079          'formato' => 'jqgrid',
3080          'to_table' => 'vale_pago_log',
3081          'to_field' => 'banco_cuenta_id',
3082          'this_table' => 'banco_cuenta',
3083          'this_field' => 'banco_cuenta_id',
3084          'restrict_delete' => true,
3085          'delete_with_parent' => false,
3086          'on_delete_set_to' => 0,
3087        ),
3088      ),
3089      'vale_uso' =>
3090      array (
3091        'banco_cuenta_id' =>
3092        array (
3093          'es' => 'catalog_entry',
3094          'formato' => 'jqgrid',
3095          'to_table' => 'vale_uso',
3096          'to_field' => 'banco_cuenta_id',
3097          'this_table' => 'banco_cuenta',
3098          'this_field' => 'banco_cuenta_id',
3099          'restrict_delete' => true,
3100          'delete_with_parent' => false,
3101          'on_delete_set_to' => 0,
3102        ),
3103      ),
3104      'vale_uso_log' =>
3105      array (
3106        'banco_cuenta_id' =>
3107        array (
3108          'es' => 'catalog_entry',
3109          'formato' => 'jqgrid',
3110          'to_table' => 'vale_uso_log',
3111          'to_field' => 'banco_cuenta_id',
3112          'this_table' => 'banco_cuenta',
3113          'this_field' => 'banco_cuenta_id',
3114          'restrict_delete' => true,
3115          'delete_with_parent' => false,
3116          'on_delete_set_to' => 0,
3117        ),
3118      ),
3119      'banco_cuenta_saldos' =>
3120      array (
3121        'es' => 'one2one',
3122      ),
3123      'banco_cuenta_saldos_hist' =>
3124      array (
3125        'es' => 'one2one',
3126      ),
3127      'deposita_en_lista_cuentas' =>
3128      array (
3129        'es' => 'one2one',
3130      ),
3131    ),
3132    'links_to' =>
3133    array (
3134      'empresa' =>
3135      array (
3136        'empresa_id' =>
3137        array (
3138          'es' => 'catalog',
3139          'formato' => 'link_one_select',
3140          'to_table' => 'empresa',
3141          'to_field' => 'empresa_id',
3142          'this_table' => 'banco_cuenta',
3143          'this_field' => 'empresa_id',
3144        ),
3145      ),
3146      'banco' =>
3147      array (
3148        'banco_id' =>
3149        array (
3150          'es' => 'catalog',
3151          'formato' => 'link_one_select',
3152          'to_table' => 'banco',
3153          'to_field' => 'banco_id',
3154          'this_table' => 'banco_cuenta',
3155          'this_field' => 'banco_id',
3156        ),
3157      ),
3158      'moneda' =>
3159      array (
3160        'moneda_id' =>
3161        array (
3162          'es' => 'catalog',
3163          'formato' => 'link_one_select',
3164          'to_table' => 'moneda',
3165          'to_field' => 'moneda_id',
3166          'this_table' => 'banco_cuenta',
3167          'this_field' => 'moneda_id',
3168        ),
3169      ),
3170    ),
3171  ),
3172  'banco_cuenta_mov' =>
3173  array (
3174    'es' => 'child',
3175    'PK' =>
3176    array (
3177      0 => 'banco_cuenta_mov_id',
3178      1 => 'fecha',
3179    ),
3180    'label_field' => 'numero',
3181    'has_seq' => false,
3182    'has_child' => true,
3183    'has_datetime' => true,
3184    'has_fckeditor' => true,
3185    'has_file_upload' => true,
3186    'has_date' => true,
3187    'links_to' =>
3188    array (
3189      'banco_cuenta' =>
3190      array (
3191        'banco_cuenta_id' =>
3192        array (
3193          'es' => 'catalog',
3194          'formato' => 'link_one_select',
3195          'to_table' => 'banco_cuenta',
3196          'to_field' => 'banco_cuenta_id',
3197          'this_table' => 'banco_cuenta_mov',
3198          'this_field' => 'banco_cuenta_id',
3199        ),
3200      ),
3201      'banco_mov_tipo' =>
3202      array (
3203        'banco_mov_tipo_id' =>
3204        array (
3205          'es' => 'catalog',
3206          'formato' => 'link_one_select',
3207          'to_table' => 'banco_mov_tipo',
3208          'to_field' => 'banco_mov_tipo_id',
3209          'this_table' => 'banco_cuenta_mov',
3210          'this_field' => 'banco_mov_tipo_id',
3211        ),
3212      ),
3213      'banco' =>
3214      array (
3215        'banco_id' =>
3216        array (
3217          'es' => 'catalog',
3218          'formato' => 'link_one_select',
3219          'to_table' => 'banco',
3220          'to_field' => 'banco_id',
3221          'this_table' => 'banco_cuenta_mov',
3222          'this_field' => 'banco_id',
3223        ),
3224      ),
3225      'mov_verificado' =>
3226      array (
3227        'mov_verificado_id' =>
3228        array (
3229          'es' => 'catalog',
3230          'formato' => 'link_one_select',
3231          'to_table' => 'mov_verificado',
3232          'to_field' => 'mov_verificado_id',
3233          'this_table' => 'banco_cuenta_mov',
3234          'this_field' => 'mov_verificado_id',
3235        ),
3236      ),
3237      'empresa' =>
3238      array (
3239        'empresa_id' =>
3240        array (
3241          'es' => 'catalog',
3242          'formato' => 'link_one_select',
3243          'to_table' => 'empresa',
3244          'to_field' => 'empresa_id',
3245          'this_table' => 'banco_cuenta_mov',
3246          'this_field' => 'empresa_id',
3247        ),
3248        'bc_empresa_id' =>
3249        array (
3250          'es' => 'catalog',
3251          'formato' => 'link_one_select',
3252          'to_table' => 'empresa',
3253          'to_field' => 'empresa_id',
3254          'this_table' => 'banco_cuenta_mov',
3255          'this_field' => 'bc_empresa_id',
3256        ),
3257      ),
3258      'tienda' =>
3259      array (
3260        'tienda_id' =>
3261        array (
3262          'es' => 'catalog',
3263          'formato' => 'link_one_select',
3264          'to_table' => 'tienda',
3265          'to_field' => 'tienda_id',
3266          'this_table' => 'banco_cuenta_mov',
3267          'this_field' => 'tienda_id',
3268        ),
3269        'linkconfirmado_tienda_id' =>
3270        array (
3271          'es' => 'catalog',
3272          'formato' => 'link_one_select',
3273          'to_table' => 'tienda',
3274          'to_field' => 'tienda_id',
3275          'this_table' => 'banco_cuenta_mov',
3276          'this_field' => 'linkconfirmado_tienda_id',
3277        ),
3278      ),
3279      'cliente' =>
3280      array (
3281        'contpaq_cliente_id' =>
3282        array (
3283          'es' => 'catalog',
3284          'formato' => 'link_one_select',
3285          'to_table' => 'cliente',
3286          'to_field' => 'cliente_id',
3287          'this_table' => 'banco_cuenta_mov',
3288          'this_field' => 'contpaq_cliente_id',
3289        ),
3290      ),
3291      'categoria_gasto' =>
3292      array (
3293        'categoria_gasto_id' =>
3294        array (
3295          'es' => 'catalog',
3296          'formato' => 'link_one_select',
3297          'to_table' => 'categoria_gasto',
3298          'to_field' => 'categoria_gasto_id',
3299          'this_table' => 'banco_cuenta_mov',
3300          'this_field' => 'categoria_gasto_id',
3301        ),
3302      ),
3303      'moneda' =>
3304      array (
3305        'moneda_id' =>
3306        array (
3307          'es' => 'catalog',
3308          'formato' => 'link_one_select',
3309          'to_table' => 'moneda',
3310          'to_field' => 'moneda_id',
3311          'this_table' => 'banco_cuenta_mov',
3312          'this_field' => 'moneda_id',
3313        ),
3314      ),
3315    ),
3316    'links_from' =>
3317    array (
3318      'banco_cuenta_mov_con_links' =>
3319      array (
3320        'banco_cuenta_mov_id' =>
3321        array (
3322          'es' => 'catalog_entry',
3323          'formato' => 'link_one_select',
3324          'to_table' => 'banco_cuenta_mov_con_links',
3325          'to_field' => 'banco_cuenta_mov_id',
3326          'this_table' => 'banco_cuenta_mov',
3327          'this_field' => '?',
3328          'restrict_delete' => false,
3329          'delete_with_parent' => true,
3330          'on_delete_set_to' => 0,
3331        ),
3332      ),
3333      'banco_cuenta_mov_link' =>
3334      array (
3335        'banco_cuenta_mov_id' =>
3336        array (
3337          'es' => 'catalog_entry',
3338          'formato' => 'link_one_select',
3339          'to_table' => 'banco_cuenta_mov_link',
3340          'to_field' => 'banco_cuenta_mov_id',
3341          'this_table' => 'banco_cuenta_mov',
3342          'this_field' => '?',
3343          'restrict_delete' => true,
3344          'delete_with_parent' => false,
3345          'on_delete_set_to' => 0,
3346        ),
3347      ),
3348      'fiduciario' =>
3349      array (
3350        'banco_cuenta_mov_id' =>
3351        array (
3352          'es' => 'catalog_entry',
3353          'formato' => 'link_one_select',
3354          'to_table' => 'fiduciario',
3355          'to_field' => 'banco_cuenta_mov_id',
3356          'this_table' => 'banco_cuenta_mov',
3357          'this_field' => '?',
3358          'restrict_delete' => true,
3359          'delete_with_parent' => false,
3360          'on_delete_set_to' => 0,
3361        ),
3362      ),
3363      'fiduciario_reembolso' =>
3364      array (
3365        'banco_cuenta_mov_id' =>
3366        array (
3367          'es' => 'catalog_entry',
3368          'formato' => 'link_one_select',
3369          'to_table' => 'fiduciario_reembolso',
3370          'to_field' => 'banco_cuenta_mov_id',
3371          'this_table' => 'banco_cuenta_mov',
3372          'this_field' => '?',
3373          'restrict_delete' => true,
3374          'delete_with_parent' => false,
3375          'on_delete_set_to' => 0,
3376        ),
3377      ),
3378      'gastosdebanco' =>
3379      array (
3380        'banco_cuenta_mov_id' =>
3381        array (
3382          'es' => 'catalog_entry',
3383          'formato' => 'link_one_select',
3384          'to_table' => 'gastosdebanco',
3385          'to_field' => 'banco_cuenta_mov_id',
3386          'this_table' => 'banco_cuenta_mov',
3387          'this_field' => '?',
3388          'restrict_delete' => true,
3389          'delete_with_parent' => false,
3390          'on_delete_set_to' => 0,
3391        ),
3392      ),
3393      'inversion' =>
3394      array (
3395        'banco_cuenta_mov_id' =>
3396        array (
3397          'es' => 'catalog_entry',
3398          'formato' => 'link_one_select',
3399          'to_table' => 'inversion',
3400          'to_field' => 'banco_cuenta_mov_id',
3401          'this_table' => 'banco_cuenta_mov',
3402          'this_field' => '?',
3403          'restrict_delete' => true,
3404          'delete_with_parent' => false,
3405          'on_delete_set_to' => 0,
3406        ),
3407      ),
3408      'inversion_reembolso' =>
3409      array (
3410        'banco_cuenta_mov_id' =>
3411        array (
3412          'es' => 'catalog_entry',
3413          'formato' => 'link_one_select',
3414          'to_table' => 'inversion_reembolso',
3415          'to_field' => 'banco_cuenta_mov_id',
3416          'this_table' => 'banco_cuenta_mov',
3417          'this_field' => '?',
3418          'restrict_delete' => true,
3419          'delete_with_parent' => false,
3420          'on_delete_set_to' => 0,
3421        ),
3422      ),
3423      'mov_verificado' =>
3424      array (
3425        'banco_cuenta_mov_id' =>
3426        array (
3427          'es' => 'catalog_entry',
3428          'formato' => 'link_one_select',
3429          'to_table' => 'mov_verificado',
3430          'to_field' => 'banco_cuenta_mov_id',
3431          'this_table' => 'banco_cuenta_mov',
3432          'this_field' => '?',
3433          'restrict_delete' => true,
3434          'delete_with_parent' => false,
3435          'on_delete_set_to' => 0,
3436        ),
3437      ),
3438      'mov_verificado_con_links' =>
3439      array (
3440        'banco_cuenta_mov_id' =>
3441        array (
3442          'es' => 'catalog_entry',
3443          'formato' => 'link_one_select',
3444          'to_table' => 'mov_verificado_con_links',
3445          'to_field' => 'banco_cuenta_mov_id',
3446          'this_table' => 'banco_cuenta_mov',
3447          'this_field' => '?',
3448          'restrict_delete' => true,
3449          'delete_with_parent' => false,
3450          'on_delete_set_to' => 0,
3451        ),
3452      ),
3453    ),
3454  ),
3455  'banco_cuenta_mov_con_links' =>
3456  array (
3457    'es' => 'child',
3458    'label_field' => 'banco_cuenta_mov_id',
3459    'has_seq' => false,
3460    'has_child' => false,
3461    'has_datetime' => true,
3462    'has_numeric' => true,
3463    'links_to' =>
3464    array (
3465      'banco_cuenta_mov' =>
3466      array (
3467        'banco_cuenta_mov_id' =>
3468        array (
3469          'es' => 'catalog',
3470          'formato' => 'link_one_select',
3471          'to_table' => 'banco_cuenta_mov',
3472          'to_field' => '?',
3473          'this_table' => 'banco_cuenta_mov_con_links',
3474          'this_field' => 'banco_cuenta_mov_id',
3475        ),
3476      ),
3477      'banco_cuenta' =>
3478      array (
3479        'banco_cuenta_id' =>
3480        array (
3481          'es' => 'catalog',
3482          'formato' => 'link_one_select',
3483          'to_table' => 'banco_cuenta',
3484          'to_field' => 'banco_cuenta_id',
3485          'this_table' => 'banco_cuenta_mov_con_links',
3486          'this_field' => 'banco_cuenta_id',
3487        ),
3488      ),
3489      'banco_mov_tipo' =>
3490      array (
3491        'banco_mov_tipo_id' =>
3492        array (
3493          'es' => 'catalog',
3494          'formato' => 'link_one_select',
3495          'to_table' => 'banco_mov_tipo',
3496          'to_field' => 'banco_mov_tipo_id',
3497          'this_table' => 'banco_cuenta_mov_con_links',
3498          'this_field' => 'banco_mov_tipo_id',
3499        ),
3500      ),
3501      'banco' =>
3502      array (
3503        'banco_id' =>
3504        array (
3505          'es' => 'catalog',
3506          'formato' => 'link_one_select',
3507          'to_table' => 'banco',
3508          'to_field' => 'banco_id',
3509          'this_table' => 'banco_cuenta_mov_con_links',
3510          'this_field' => 'banco_id',
3511        ),
3512      ),
3513      'mov_verificado' =>
3514      array (
3515        'mov_verificado_id' =>
3516        array (
3517          'es' => 'catalog',
3518          'formato' => 'link_one_select',
3519          'to_table' => 'mov_verificado',
3520          'to_field' => 'mov_verificado_id',
3521          'this_table' => 'banco_cuenta_mov_con_links',
3522          'this_field' => 'mov_verificado_id',
3523        ),
3524      ),
3525      'empresa' =>
3526      array (
3527        'empresa_id' =>
3528        array (
3529          'es' => 'catalog',
3530          'formato' => 'link_one_select',
3531          'to_table' => 'empresa',
3532          'to_field' => 'empresa_id',
3533          'this_table' => 'banco_cuenta_mov_con_links',
3534          'this_field' => 'empresa_id',
3535        ),
3536      ),
3537      'tienda' =>
3538      array (
3539        'tienda_id' =>
3540        array (
3541          'es' => 'catalog',
3542          'formato' => 'link_one_select',
3543          'to_table' => 'tienda',
3544          'to_field' => 'tienda_id',
3545          'this_table' => 'banco_cuenta_mov_con_links',
3546          'this_field' => 'tienda_id',
3547        ),
3548        'link_tienda_id' =>
3549        array (
3550          'es' => 'catalog',
3551          'formato' => 'link_one_select',
3552          'to_table' => 'tienda',
3553          'to_field' => 'tienda_id',
3554          'this_table' => 'banco_cuenta_mov_con_links',
3555          'this_field' => 'link_tienda_id',
3556        ),
3557      ),
3558      'categoria_gasto' =>
3559      array (
3560        'categoria_gasto_id' =>
3561        array (
3562          'es' => 'catalog',
3563          'formato' => 'link_one_select',
3564          'to_table' => 'categoria_gasto',
3565          'to_field' => 'categoria_gasto_id',
3566          'this_table' => 'banco_cuenta_mov_con_links',
3567          'this_field' => 'categoria_gasto_id',
3568        ),
3569      ),
3570      'banco_cuenta_mov_link' =>
3571      array (
3572        'banco_cuenta_mov_link_id' =>
3573        array (
3574          'es' => 'catalog',
3575          'formato' => 'link_one_select',
3576          'to_table' => 'banco_cuenta_mov_link',
3577          'to_field' => 'banco_cuenta_mov_link_id',
3578          'this_table' => 'banco_cuenta_mov_con_links',
3579          'this_field' => 'banco_cuenta_mov_link_id',
3580        ),
3581      ),
3582    ),
3583  ),
3584  'banco_cuenta_mov_link' =>
3585  array (
3586    'es' => 'parent',
3587    'pk_single_field' => 'banco_cuenta_mov_link_id',
3588    'pk_single_type' => 'uuid',
3589    'label_field' => 'banco_cuenta_mov_id',
3590    'has_seq' => false,
3591    'has_child' => true,
3592    'has_datetime' => true,
3593    'links_from' =>
3594    array (
3595      'a_cuentas_live' =>
3596      array (
3597        'banco_cuenta_mov_link_id' =>
3598        array (
3599          'es' => 'catalog_entry',
3600          'formato' => 'jqgrid',
3601          'to_table' => 'a_cuentas_live',
3602          'to_field' => 'banco_cuenta_mov_link_id',
3603          'this_table' => 'banco_cuenta_mov_link',
3604          'this_field' => 'banco_cuenta_mov_link_id',
3605          'restrict_delete' => true,
3606          'delete_with_parent' => false,
3607          'on_delete_set_to' => 0,
3608        ),
3609      ),
3610      'banco_cuenta_mov_con_links' =>
3611      array (
3612        'banco_cuenta_mov_link_id' =>
3613        array (
3614          'es' => 'catalog_entry',
3615          'formato' => 'jqgrid',
3616          'to_table' => 'banco_cuenta_mov_con_links',
3617          'to_field' => 'banco_cuenta_mov_link_id',
3618          'this_table' => 'banco_cuenta_mov_link',
3619          'this_field' => 'banco_cuenta_mov_link_id',
3620          'restrict_delete' => true,
3621          'delete_with_parent' => false,
3622          'on_delete_set_to' => 0,
3623        ),
3624      ),
3625      'banco_cuenta_trans' =>
3626      array (
3627        'banco_cuenta_mov_link_id' =>
3628        array (
3629          'es' => 'catalog_entry',
3630          'formato' => 'jqgrid',
3631          'to_table' => 'banco_cuenta_trans',
3632          'to_field' => 'banco_cuenta_mov_link_id',
3633          'this_table' => 'banco_cuenta_mov_link',
3634          'this_field' => 'banco_cuenta_mov_link_id',
3635          'restrict_delete' => true,
3636          'delete_with_parent' => false,
3637          'on_delete_set_to' => 0,
3638        ),
3639      ),
3640      'cash_pago' =>
3641      array (
3642        'banco_cuenta_mov_link_id' =>
3643        array (
3644          'es' => 'catalog_entry',
3645          'formato' => 'jqgrid',
3646          'to_table' => 'cash_pago',
3647          'to_field' => 'banco_cuenta_mov_link_id',
3648          'this_table' => 'banco_cuenta_mov_link',
3649          'this_field' => 'banco_cuenta_mov_link_id',
3650          'restrict_delete' => true,
3651          'delete_with_parent' => false,
3652          'on_delete_set_to' => 0,
3653        ),
3654      ),
3655      'cheque_pago' =>
3656      array (
3657        'banco_cuenta_mov_link_id' =>
3658        array (
3659          'es' => 'catalog_entry',
3660          'formato' => 'jqgrid',
3661          'to_table' => 'cheque_pago',
3662          'to_field' => 'banco_cuenta_mov_link_id',
3663          'this_table' => 'banco_cuenta_mov_link',
3664          'this_field' => 'banco_cuenta_mov_link_id',
3665          'restrict_delete' => true,
3666          'delete_with_parent' => false,
3667          'on_delete_set_to' => 0,
3668        ),
3669      ),
3670      'cheque_pago_log' =>
3671      array (
3672        'banco_cuenta_mov_link_id' =>
3673        array (
3674          'es' => 'catalog_entry',
3675          'formato' => 'jqgrid',
3676          'to_table' => 'cheque_pago_log',
3677          'to_field' => 'banco_cuenta_mov_link_id',
3678          'this_table' => 'banco_cuenta_mov_link',
3679          'this_field' => 'banco_cuenta_mov_link_id',
3680          'restrict_delete' => true,
3681          'delete_with_parent' => false,
3682          'on_delete_set_to' => 0,
3683        ),
3684      ),
3685      'compra_pago' =>
3686      array (
3687        'banco_cuenta_mov_link_id' =>
3688        array (
3689          'es' => 'catalog_entry',
3690          'formato' => 'jqgrid',
3691          'to_table' => 'compra_pago',
3692          'to_field' => 'banco_cuenta_mov_link_id',
3693          'this_table' => 'banco_cuenta_mov_link',
3694          'this_field' => 'banco_cuenta_mov_link_id',
3695          'restrict_delete' => true,
3696          'delete_with_parent' => false,
3697          'on_delete_set_to' => 0,
3698        ),
3699      ),
3700      'compra_pago_log' =>
3701      array (
3702        'banco_cuenta_mov_link_id' =>
3703        array (
3704          'es' => 'catalog_entry',
3705          'formato' => 'jqgrid',
3706          'to_table' => 'compra_pago_log',
3707          'to_field' => 'banco_cuenta_mov_link_id',
3708          'this_table' => 'banco_cuenta_mov_link',
3709          'this_field' => 'banco_cuenta_mov_link_id',
3710          'restrict_delete' => true,
3711          'delete_with_parent' => false,
3712          'on_delete_set_to' => 0,
3713        ),
3714      ),
3715      'cuentat_a_banco' =>
3716      array (
3717        'banco_cuenta_mov_link_id' =>
3718        array (
3719          'es' => 'catalog_entry',
3720          'formato' => 'jqgrid',
3721          'to_table' => 'cuentat_a_banco',
3722          'to_field' => 'banco_cuenta_mov_link_id',
3723          'this_table' => 'banco_cuenta_mov_link',
3724          'this_field' => 'banco_cuenta_mov_link_id',
3725          'restrict_delete' => true,
3726          'delete_with_parent' => false,
3727          'on_delete_set_to' => 0,
3728        ),
3729      ),
3730      'cuentat_a_banco_links' =>
3731      array (
3732        'banco_cuenta_mov_link_id' =>
3733        array (
3734          'es' => 'catalog_entry',
3735          'formato' => 'jqgrid',
3736          'to_table' => 'cuentat_a_banco_links',
3737          'to_field' => 'banco_cuenta_mov_link_id',
3738          'this_table' => 'banco_cuenta_mov_link',
3739          'this_field' => 'banco_cuenta_mov_link_id',
3740          'restrict_delete' => true,
3741          'delete_with_parent' => false,
3742          'on_delete_set_to' => 0,
3743        ),
3744      ),
3745      'cuentat_a_banco_tc' =>
3746      array (
3747        'banco_cuenta_mov_link_id' =>
3748        array (
3749          'es' => 'catalog_entry',
3750          'formato' => 'jqgrid',
3751          'to_table' => 'cuentat_a_banco_tc',
3752          'to_field' => 'banco_cuenta_mov_link_id',
3753          'this_table' => 'banco_cuenta_mov_link',
3754          'this_field' => 'banco_cuenta_mov_link_id',
3755          'restrict_delete' => true,
3756          'delete_with_parent' => false,
3757          'on_delete_set_to' => 0,
3758        ),
3759      ),
3760      'cuentat_mov' =>
3761      array (
3762        'banco_cuenta_mov_link_id' =>
3763        array (
3764          'es' => 'catalog_entry',
3765          'formato' => 'jqgrid',
3766          'to_table' => 'cuentat_mov',
3767          'to_field' => 'banco_cuenta_mov_link_id',
3768          'this_table' => 'banco_cuenta_mov_link',
3769          'this_field' => 'banco_cuenta_mov_link_id',
3770          'restrict_delete' => true,
3771          'delete_with_parent' => false,
3772          'on_delete_set_to' => 0,
3773        ),
3774      ),
3775      'cuentat_mov_live' =>
3776      array (
3777        'banco_cuenta_mov_link_id' =>
3778        array (
3779          'es' => 'catalog_entry',
3780          'formato' => 'jqgrid',
3781          'to_table' => 'cuentat_mov_live',
3782          'to_field' => 'banco_cuenta_mov_link_id',
3783          'this_table' => 'banco_cuenta_mov_link',
3784          'this_field' => 'banco_cuenta_mov_link_id',
3785          'restrict_delete' => true,
3786          'delete_with_parent' => false,
3787          'on_delete_set_to' => 0,
3788        ),
3789      ),
3790      'cuentat_mov_tmp' =>
3791      array (
3792        'banco_cuenta_mov_link_id' =>
3793        array (
3794          'es' => 'catalog_entry',
3795          'formato' => 'jqgrid',
3796          'to_table' => 'cuentat_mov_tmp',
3797          'to_field' => 'banco_cuenta_mov_link_id',
3798          'this_table' => 'banco_cuenta_mov_link',
3799          'this_field' => 'banco_cuenta_mov_link_id',
3800          'restrict_delete' => true,
3801          'delete_with_parent' => false,
3802          'on_delete_set_to' => 0,
3803        ),
3804      ),
3805      'deuda_pago' =>
3806      array (
3807        'banco_cuenta_mov_link_id' =>
3808        array (
3809          'es' => 'catalog_entry',
3810          'formato' => 'jqgrid',
3811          'to_table' => 'deuda_pago',
3812          'to_field' => 'banco_cuenta_mov_link_id',
3813          'this_table' => 'banco_cuenta_mov_link',
3814          'this_field' => 'banco_cuenta_mov_link_id',
3815          'restrict_delete' => true,
3816          'delete_with_parent' => false,
3817          'on_delete_set_to' => 0,
3818        ),
3819      ),
3820      'fiduciario_reembolso' =>
3821      array (
3822        'banco_cuenta_mov_link_id' =>
3823        array (
3824          'es' => 'catalog_entry',
3825          'formato' => 'jqgrid',
3826          'to_table' => 'fiduciario_reembolso',
3827          'to_field' => 'banco_cuenta_mov_link_id',
3828          'this_table' => 'banco_cuenta_mov_link',
3829          'this_field' => 'banco_cuenta_mov_link_id',
3830          'restrict_delete' => true,
3831          'delete_with_parent' => false,
3832          'on_delete_set_to' => 0,
3833        ),
3834      ),
3835      'inversion_reembolso' =>
3836      array (
3837        'banco_cuenta_mov_link_id' =>
3838        array (
3839          'es' => 'catalog_entry',
3840          'formato' => 'jqgrid',
3841          'to_table' => 'inversion_reembolso',
3842          'to_field' => 'banco_cuenta_mov_link_id',
3843          'this_table' => 'banco_cuenta_mov_link',
3844          'this_field' => 'banco_cuenta_mov_link_id',
3845          'restrict_delete' => true,
3846          'delete_with_parent' => false,
3847          'on_delete_set_to' => 0,
3848        ),
3849      ),
3850      'links_al_banco' =>
3851      array (
3852        'banco_cuenta_mov_link_id' =>
3853        array (
3854          'es' => 'catalog_entry',
3855          'formato' => 'jqgrid',
3856          'to_table' => 'links_al_banco',
3857          'to_field' => 'banco_cuenta_mov_link_id',
3858          'this_table' => 'banco_cuenta_mov_link',
3859          'this_field' => 'banco_cuenta_mov_link_id',
3860          'restrict_delete' => true,
3861          'delete_with_parent' => false,
3862          'on_delete_set_to' => 0,
3863        ),
3864      ),
3865      'links_al_banco_live' =>
3866      array (
3867        'banco_cuenta_mov_link_id' =>
3868        array (
3869          'es' => 'catalog_entry',
3870          'formato' => 'jqgrid',
3871          'to_table' => 'links_al_banco_live',
3872          'to_field' => 'banco_cuenta_mov_link_id',
3873          'this_table' => 'banco_cuenta_mov_link',
3874          'this_field' => 'banco_cuenta_mov_link_id',
3875          'restrict_delete' => true,
3876          'delete_with_parent' => false,
3877          'on_delete_set_to' => 0,
3878        ),
3879      ),
3880      'mov_verificado_con_links' =>
3881      array (
3882        'banco_cuenta_mov_link_id' =>
3883        array (
3884          'es' => 'catalog_entry',
3885          'formato' => 'jqgrid',
3886          'to_table' => 'mov_verificado_con_links',
3887          'to_field' => 'banco_cuenta_mov_link_id',
3888          'this_table' => 'banco_cuenta_mov_link',
3889          'this_field' => 'banco_cuenta_mov_link_id',
3890          'restrict_delete' => true,
3891          'delete_with_parent' => false,
3892          'on_delete_set_to' => 0,
3893        ),
3894      ),
3895      'nota_pago' =>
3896      array (
3897        'banco_cuenta_mov_link_id' =>
3898        array (
3899          'es' => 'catalog_entry',
3900          'formato' => 'jqgrid',
3901          'to_table' => 'nota_pago',
3902          'to_field' => 'banco_cuenta_mov_link_id',
3903          'this_table' => 'banco_cuenta_mov_link',
3904          'this_field' => 'banco_cuenta_mov_link_id',
3905          'restrict_delete' => true,
3906          'delete_with_parent' => false,
3907          'on_delete_set_to' => 0,
3908        ),
3909      ),
3910      'pagare_pago' =>
3911      array (
3912        'banco_cuenta_mov_link_id' =>
3913        array (
3914          'es' => 'catalog_entry',
3915          'formato' => 'jqgrid',
3916          'to_table' => 'pagare_pago',
3917          'to_field' => 'banco_cuenta_mov_link_id',
3918          'this_table' => 'banco_cuenta_mov_link',
3919          'this_field' => 'banco_cuenta_mov_link_id',
3920          'restrict_delete' => true,
3921          'delete_with_parent' => false,
3922          'on_delete_set_to' => 0,
3923        ),
3924      ),
3925      'pagare_pago_log' =>
3926      array (
3927        'banco_cuenta_mov_link_id' =>
3928        array (
3929          'es' => 'catalog_entry',
3930          'formato' => 'jqgrid',
3931          'to_table' => 'pagare_pago_log',
3932          'to_field' => 'banco_cuenta_mov_link_id',
3933          'this_table' => 'banco_cuenta_mov_link',
3934          'this_field' => 'banco_cuenta_mov_link_id',
3935          'restrict_delete' => true,
3936          'delete_with_parent' => false,
3937          'on_delete_set_to' => 0,
3938        ),
3939      ),
3940      'vale' =>
3941      array (
3942        'banco_cuenta_mov_link_id' =>
3943        array (
3944          'es' => 'catalog_entry',
3945          'formato' => 'jqgrid',
3946          'to_table' => 'vale',
3947          'to_field' => 'banco_cuenta_mov_link_id',
3948          'this_table' => 'banco_cuenta_mov_link',
3949          'this_field' => 'banco_cuenta_mov_link_id',
3950          'restrict_delete' => true,
3951          'delete_with_parent' => false,
3952          'on_delete_set_to' => 0,
3953        ),
3954      ),
3955      'vale_log' =>
3956      array (
3957        'banco_cuenta_mov_link_id' =>
3958        array (
3959          'es' => 'catalog_entry',
3960          'formato' => 'jqgrid',
3961          'to_table' => 'vale_log',
3962          'to_field' => 'banco_cuenta_mov_link_id',
3963          'this_table' => 'banco_cuenta_mov_link',
3964          'this_field' => 'banco_cuenta_mov_link_id',
3965          'restrict_delete' => true,
3966          'delete_with_parent' => false,
3967          'on_delete_set_to' => 0,
3968        ),
3969      ),
3970      'vale_pago' =>
3971      array (
3972        'banco_cuenta_mov_link_id' =>
3973        array (
3974          'es' => 'catalog_entry',
3975          'formato' => 'jqgrid',
3976          'to_table' => 'vale_pago',
3977          'to_field' => 'banco_cuenta_mov_link_id',
3978          'this_table' => 'banco_cuenta_mov_link',
3979          'this_field' => 'banco_cuenta_mov_link_id',
3980          'restrict_delete' => true,
3981          'delete_with_parent' => false,
3982          'on_delete_set_to' => 0,
3983        ),
3984      ),
3985      'vale_pago_log' =>
3986      array (
3987        'banco_cuenta_mov_link_id' =>
3988        array (
3989          'es' => 'catalog_entry',
3990          'formato' => 'jqgrid',
3991          'to_table' => 'vale_pago_log',
3992          'to_field' => 'banco_cuenta_mov_link_id',
3993          'this_table' => 'banco_cuenta_mov_link',
3994          'this_field' => 'banco_cuenta_mov_link_id',
3995          'restrict_delete' => true,
3996          'delete_with_parent' => false,
3997          'on_delete_set_to' => 0,
3998        ),
3999      ),
4000      'vale_uso' =>
4001      array (
4002        'banco_cuenta_mov_link_id' =>
4003        array (
4004          'es' => 'catalog_entry',
4005          'formato' => 'jqgrid',
4006          'to_table' => 'vale_uso',
4007          'to_field' => 'banco_cuenta_mov_link_id',
4008          'this_table' => 'banco_cuenta_mov_link',
4009          'this_field' => 'banco_cuenta_mov_link_id',
4010          'restrict_delete' => true,
4011          'delete_with_parent' => false,
4012          'on_delete_set_to' => 0,
4013        ),
4014      ),
4015      'vale_uso_log' =>
4016      array (
4017        'banco_cuenta_mov_link_id' =>
4018        array (
4019          'es' => 'catalog_entry',
4020          'formato' => 'jqgrid',
4021          'to_table' => 'vale_uso_log',
4022          'to_field' => 'banco_cuenta_mov_link_id',
4023          'this_table' => 'banco_cuenta_mov_link',
4024          'this_field' => 'banco_cuenta_mov_link_id',
4025          'restrict_delete' => true,
4026          'delete_with_parent' => false,
4027          'on_delete_set_to' => 0,
4028        ),
4029      ),
4030    ),
4031    'links_to' =>
4032    array (
4033      'banco_cuenta_mov' =>
4034      array (
4035        'banco_cuenta_mov_id' =>
4036        array (
4037          'es' => 'catalog',
4038          'formato' => 'link_one_select',
4039          'to_table' => 'banco_cuenta_mov',
4040          'to_field' => '?',
4041          'this_table' => 'banco_cuenta_mov_link',
4042          'this_field' => 'banco_cuenta_mov_id',
4043        ),
4044      ),
4045      'tienda' =>
4046      array (
4047        'tienda_id' =>
4048        array (
4049          'es' => 'catalog',
4050          'formato' => 'link_one_select',
4051          'to_table' => 'tienda',
4052          'to_field' => 'tienda_id',
4053          'this_table' => 'banco_cuenta_mov_link',
4054          'this_field' => 'tienda_id',
4055        ),
4056      ),
4057    ),
4058  ),
4059  'banco_cuenta_mov_plantilla' =>
4060  array (
4061    'es' => 'child',
4062    'pk_single_field' => 'banco_cuenta_mov_plantilla_id',
4063    'pk_single_type' => 'auto_increment',
4064    'label_field' => 'plantilla_id',
4065    'has_seq' => false,
4066    'has_child' => false,
4067    'UNI' =>
4068    array (
4069      'plantilla_id' =>
4070      array (
4071        1 => 'plantilla_id',
4072        2 => 'banco_cuenta_id',
4073      ),
4074    ),
4075    'links_to' =>
4076    array (
4077      'banco_cuenta' =>
4078      array (
4079        'banco_cuenta_id' =>
4080        array (
4081          'es' => 'catalog',
4082          'formato' => 'link_one_select',
4083          'to_table' => 'banco_cuenta',
4084          'to_field' => 'banco_cuenta_id',
4085          'this_table' => 'banco_cuenta_mov_plantilla',
4086          'this_field' => 'banco_cuenta_id',
4087        ),
4088      ),
4089      'plantilla' =>
4090      array (
4091        'plantilla_id' =>
4092        array (
4093          'es' => 'catalog',
4094          'formato' => 'link_one_select',
4095          'to_table' => 'plantilla',
4096          'to_field' => 'plantilla_id',
4097          'this_table' => 'banco_cuenta_mov_plantilla',
4098          'this_field' => 'plantilla_id',
4099        ),
4100      ),
4101    ),
4102  ),
4103  'banco_cuenta_saldos' =>
4104  array (
4105    'es' => 'child',
4106    'pk_single_field' => 'banco_cuenta_id',
4107    'pk_single_type' => 'value',
4108    'label_field' => 'nombre',
4109    'orden' => true,
4110    'has_seq' => false,
4111    'has_child' => false,
4112    'has_numeric' => true,
4113    'has_datetime' => true,
4114    'links_to' =>
4115    array (
4116      'banco' =>
4117      array (
4118        'banco_id' =>
4119        array (
4120          'es' => 'catalog',
4121          'formato' => 'link_one_select',
4122          'to_table' => 'banco',
4123          'to_field' => 'banco_id',
4124          'this_table' => 'banco_cuenta_saldos',
4125          'this_field' => 'banco_id',
4126        ),
4127      ),
4128      'moneda' =>
4129      array (
4130        'moneda_id' =>
4131        array (
4132          'es' => 'catalog',
4133          'formato' => 'link_one_select',
4134          'to_table' => 'moneda',
4135          'to_field' => 'moneda_id',
4136          'this_table' => 'banco_cuenta_saldos',
4137          'this_field' => 'moneda_id',
4138        ),
4139      ),
4140    ),
4141    'links_from' =>
4142    array (
4143      'banco_cuenta' =>
4144      array (
4145        'es' => 'one2one',
4146      ),
4147      'banco_cuenta_saldos_hist' =>
4148      array (
4149        'es' => 'one2one',
4150      ),
4151      'deposita_en_lista_cuentas' =>
4152      array (
4153        'es' => 'one2one',
4154      ),
4155    ),
4156  ),
4157  'banco_cuenta_saldos_hist' =>
4158  array (
4159    'es' => 'data',
4160    'pk_single_field' => 'banco_cuenta_id',
4161    'pk_single_type' => 'value',
4162    'label_field' => 'nombre',
4163    'orden' => true,
4164    'has_seq' => false,
4165    'has_child' => false,
4166    'has_numeric' => true,
4167    'has_datetime' => true,
4168    'links_from' =>
4169    array (
4170      'banco_cuenta' =>
4171      array (
4172        'es' => 'one2one',
4173      ),
4174      'banco_cuenta_saldos' =>
4175      array (
4176        'es' => 'one2one',
4177      ),
4178      'deposita_en_lista_cuentas' =>
4179      array (
4180        'es' => 'one2one',
4181      ),
4182    ),
4183  ),
4184  'banco_cuenta_tipo' =>
4185  array (
4186    'es' => 'data',
4187    'pk_single_field' => 'banco_cuenta_tipo_id',
4188    'pk_single_type' => 'auto_increment',
4189    'label_field' => 'banco_cuenta_tipo',
4190    'vale' => true,
4191    'orden' => true,
4192    'has_seq' => false,
4193    'has_child' => false,
4194    'UNI' =>
4195    array (
4196      0 => 'banco_cuenta_tipo',
4197    ),
4198  ),
4199  'banco_cuenta_trans' =>
4200  array (
4201    'es' => 'child',
4202    'pk_single_field' => 'banco_cuenta_trans_id',
4203    'pk_single_type' => 'uuid',
4204    'label_field' => 'referencia',
4205    'has_seq' => false,
4206    'has_child' => false,
4207    'has_datetime' => true,
4208    'has_numeric' => true,
4209    'has_date' => true,
4210    'has_file_upload' => true,
4211    'links_to' =>
4212    array (
4213      'banco' =>
4214      array (
4215        'origen_banco_cuenta_id' =>
4216        array (
4217          'es' => 'catalog',
4218          'formato' => 'link_one_select',
4219          'to_table' => 'banco',
4220          'to_field' => 'banco_id',
4221          'this_table' => 'banco_cuenta_trans',
4222          'this_field' => 'origen_banco_cuenta_id',
4223        ),
4224        'destino_banco_cuenta_id' =>
4225        array (
4226          'es' => 'catalog',
4227          'formato' => 'link_one_select',
4228          'to_table' => 'banco',
4229          'to_field' => 'banco_id',
4230          'this_table' => 'banco_cuenta_trans',
4231          'this_field' => 'destino_banco_cuenta_id',
4232        ),
4233      ),
4234      'banco_cuenta_mov_link' =>
4235      array (
4236        'banco_cuenta_mov_link_id' =>
4237        array (
4238          'es' => 'catalog',
4239          'formato' => 'link_one_select',
4240          'to_table' => 'banco_cuenta_mov_link',
4241          'to_field' => 'banco_cuenta_mov_link_id',
4242          'this_table' => 'banco_cuenta_trans',
4243          'this_field' => 'banco_cuenta_mov_link_id',
4244        ),
4245      ),
4246      'cuentat' =>
4247      array (
4248        'cuentaT_id' =>
4249        array (
4250          'es' => 'catalog',
4251          'formato' => 'link_one_select',
4252          'to_table' => 'cuentat',
4253          'to_field' => 'cuentaT_id',
4254          'this_table' => 'banco_cuenta_trans',
4255          'this_field' => 'cuentaT_id',
4256        ),
4257        'cuentaT_deliveredto_id' =>
4258        array (
4259          'es' => 'catalog',
4260          'formato' => 'link_one_select',
4261          'to_table' => 'cuentat',
4262          'to_field' => 'cuentaT_id',
4263          'this_table' => 'banco_cuenta_trans',
4264          'this_field' => 'cuentaT_deliveredto_id',
4265        ),
4266        'cuentaT_transferto_id' =>
4267        array (
4268          'es' => 'catalog',
4269          'formato' => 'link_one_select',
4270          'to_table' => 'cuentat',
4271          'to_field' => 'cuentaT_id',
4272          'this_table' => 'banco_cuenta_trans',
4273          'this_field' => 'cuentaT_transferto_id',
4274        ),
4275      ),
4276      'cuentat_tipo_mov' =>
4277      array (
4278        'cuentaT_tipo_mov_id' =>
4279        array (
4280          'es' => 'catalog',
4281          'formato' => 'link_one_select',
4282          'to_table' => 'cuentat_tipo_mov',
4283          'to_field' => 'cuentaT_tipo_mov_id',
4284          'this_table' => 'banco_cuenta_trans',
4285          'this_field' => 'cuentaT_tipo_mov_id',
4286        ),
4287      ),
4288      'moneda' =>
4289      array (
4290        'moneda_id' =>
4291        array (
4292          'es' => 'catalog',
4293          'formato' => 'link_one_select',
4294          'to_table' => 'moneda',
4295          'to_field' => 'moneda_id',
4296          'this_table' => 'banco_cuenta_trans',
4297          'this_field' => 'moneda_id',
4298        ),
4299        'origen_moneda_id' =>
4300        array (
4301          'es' => 'catalog',
4302          'formato' => 'link_one_select',
4303          'to_table' => 'moneda',
4304          'to_field' => 'moneda_id',
4305          'this_table' => 'banco_cuenta_trans',
4306          'this_field' => 'origen_moneda_id',
4307        ),
4308      ),
4309      'banco_cuenta' =>
4310      array (
4311        'banco_cuenta_id' =>
4312        array (
4313          'es' => 'catalog',
4314          'formato' => 'link_one_select',
4315          'to_table' => 'banco_cuenta',
4316          'to_field' => 'banco_cuenta_id',
4317          'this_table' => 'banco_cuenta_trans',
4318          'this_field' => 'banco_cuenta_id',
4319        ),
4320      ),
4321      'tienda' =>
4322      array (
4323        'tienda_id' =>
4324        array (
4325          'es' => 'catalog',
4326          'formato' => 'link_one_select',
4327          'to_table' => 'tienda',
4328          'to_field' => 'tienda_id',
4329          'this_table' => 'banco_cuenta_trans',
4330          'this_field' => 'tienda_id',
4331        ),
4332      ),
4333      'empresa' =>
4334      array (
4335        'empresa_id' =>
4336        array (
4337          'es' => 'catalog',
4338          'formato' => 'link_one_select',
4339          'to_table' => 'empresa',
4340          'to_field' => 'empresa_id',
4341          'this_table' => 'banco_cuenta_trans',
4342          'this_field' => 'empresa_id',
4343        ),
4344      ),
4345      'cliente' =>
4346      array (
4347        'contpaq_cliente_id' =>
4348        array (
4349          'es' => 'catalog',
4350          'formato' => 'link_one_select',
4351          'to_table' => 'cliente',
4352          'to_field' => 'cliente_id',
4353          'this_table' => 'banco_cuenta_trans',
4354          'this_field' => 'contpaq_cliente_id',
4355        ),
4356      ),
4357    ),
4358  ),
4359  'banco_cuenta_trans_pend' =>
4360  array (
4361    'es' => 'data',
4362    'pk_single_field' => 'banco_cuenta_trans_pend_id',
4363    'pk_single_type' => 'uuid',
4364    'label_field' => 'alta_por',
4365    'has_seq' => false,
4366    'has_child' => false,
4367    'has_datetime' => true,
4368    'has_numeric' => true,
4369    'has_fckeditor' => true,
4370    'links_to' =>
4371    array (
4372      'banco' =>
4373      array (
4374        'origen_banco_cuenta_id' =>
4375        array (
4376          'es' => 'catalog',
4377          'formato' => 'link_one_select',
4378          'to_table' => 'banco',
4379          'to_field' => 'banco_id',
4380          'this_table' => 'banco_cuenta_trans_pend',
4381          'this_field' => 'origen_banco_cuenta_id',
4382        ),
4383        'destino_banco_cuenta_id' =>
4384        array (
4385          'es' => 'catalog',
4386          'formato' => 'link_one_select',
4387          'to_table' => 'banco',
4388          'to_field' => 'banco_id',
4389          'this_table' => 'banco_cuenta_trans_pend',
4390          'this_field' => 'destino_banco_cuenta_id',
4391        ),
4392      ),
4393    ),
4394  ),
4395  'banco_diccionario_dato' =>
4396  array (
4397    'es' => 'child',
4398    'pk_single_field' => 'banco_diccionario_dato_id',
4399    'pk_single_type' => 'uuid',
4400    'label_field' => 'nombre',
4401    'vale' => true,
4402    'orden' => true,
4403    'has_seq' => false,
4404    'has_child' => false,
4405    'links_to' =>
4406    array (
4407      'categoria_gasto' =>
4408      array (
4409        'categoria_gasto_id' =>
4410        array (
4411          'es' => 'catalog',
4412          'formato' => 'link_one_select',
4413          'to_table' => 'categoria_gasto',
4414          'to_field' => 'categoria_gasto_id',
4415          'this_table' => 'banco_diccionario_dato',
4416          'this_field' => 'categoria_gasto_id',
4417        ),
4418      ),
4419      'banco_mov_tipo' =>
4420      array (
4421        'banco_mov_tipo_id' =>
4422        array (
4423          'es' => 'catalog',
4424          'formato' => 'link_one_select',
4425          'to_table' => 'banco_mov_tipo',
4426          'to_field' => 'banco_mov_tipo_id',
4427          'this_table' => 'banco_diccionario_dato',
4428          'this_field' => 'banco_mov_tipo_id',
4429        ),
4430      ),
4431    ),
4432  ),
4433  'banco_gasto_diccionario_dato' =>
4434  array (
4435    'es' => 'data',
4436    'pk_single_field' => 'banco_gasto_diccionario_dato_id',
4437    'pk_single_type' => 'uuid',
4438    'label_field' => 'titulo',
4439    'has_seq' => false,
4440    'has_child' => false,
4441  ),
4442  'banco_mov_remarks' =>
4443  array (
4444    'es' => 'data',
4445    'pk_single_field' => 'banco_mov_remarks_id',
4446    'pk_single_type' => 'uuid',
4447    'label_field' => 'remarks',
4448    'vale' => true,
4449    'orden' => true,
4450    'has_seq' => false,
4451    'has_child' => false,
4452  ),
4453  'banco_mov_tipo' =>
4454  array (
4455    'es' => 'parent',
4456    'pk_single_field' => 'banco_mov_tipo_id',
4457    'pk_single_type' => 'auto_increment',
4458    'label_field' => 'tipo',
4459    'vale' => true,
4460    'orden' => true,
4461    'has_seq' => false,
4462    'has_child' => true,
4463    'UNI' =>
4464    array (
4465      0 => 'tipo',
4466      'tipo' =>
4467      array (
4468        1 => 'tipo',
4469      ),
4470    ),
4471    'links_from' =>
4472    array (
4473      'banco_cuenta_mov' =>
4474      array (
4475        'banco_mov_tipo_id' =>
4476        array (
4477          'es' => 'catalog_entry',
4478          'formato' => 'jqgrid',
4479          'to_table' => 'banco_cuenta_mov',
4480          'to_field' => 'banco_mov_tipo_id',
4481          'this_table' => 'banco_mov_tipo',
4482          'this_field' => 'banco_mov_tipo_id',
4483          'restrict_delete' => true,
4484          'delete_with_parent' => false,
4485          'on_delete_set_to' => 0,
4486        ),
4487      ),
4488      'banco_cuenta_mov_con_links' =>
4489      array (
4490        'banco_mov_tipo_id' =>
4491        array (
4492          'es' => 'catalog_entry',
4493          'formato' => 'jqgrid',
4494          'to_table' => 'banco_cuenta_mov_con_links',
4495          'to_field' => 'banco_mov_tipo_id',
4496          'this_table' => 'banco_mov_tipo',
4497          'this_field' => 'banco_mov_tipo_id',
4498          'restrict_delete' => true,
4499          'delete_with_parent' => false,
4500          'on_delete_set_to' => 0,
4501        ),
4502      ),
4503      'banco_diccionario_dato' =>
4504      array (
4505        'banco_mov_tipo_id' =>
4506        array (
4507          'es' => 'catalog_entry',
4508          'formato' => 'jqgrid',
4509          'to_table' => 'banco_diccionario_dato',
4510          'to_field' => 'banco_mov_tipo_id',
4511          'this_table' => 'banco_mov_tipo',
4512          'this_field' => 'banco_mov_tipo_id',
4513          'restrict_delete' => true,
4514          'delete_with_parent' => false,
4515          'on_delete_set_to' => 0,
4516        ),
4517      ),
4518      'mov_verificado' =>
4519      array (
4520        'banco_mov_tipo_id' =>
4521        array (
4522          'es' => 'catalog_entry',
4523          'formato' => 'jqgrid',
4524          'to_table' => 'mov_verificado',
4525          'to_field' => 'banco_mov_tipo_id',
4526          'this_table' => 'banco_mov_tipo',
4527          'this_field' => 'banco_mov_tipo_id',
4528          'restrict_delete' => true,
4529          'delete_with_parent' => false,
4530          'on_delete_set_to' => 0,
4531        ),
4532      ),
4533      'mov_verificado_con_links' =>
4534      array (
4535        'banco_mov_tipo_id' =>
4536        array (
4537          'es' => 'catalog_entry',
4538          'formato' => 'jqgrid',
4539          'to_table' => 'mov_verificado_con_links',
4540          'to_field' => 'banco_mov_tipo_id',
4541          'this_table' => 'banco_mov_tipo',
4542          'this_field' => 'banco_mov_tipo_id',
4543          'restrict_delete' => true,
4544          'delete_with_parent' => false,
4545          'on_delete_set_to' => 0,
4546        ),
4547      ),
4548    ),
4549  ),
4550  'bodega' =>
4551  array (
4552    'es' => 'parent',
4553    'pk_single_field' => 'bodega_id',
4554    'pk_single_type' => 'uuid',
4555    'label_field' => 'grupo',
4556    'has_seq' => false,
4557    'has_child' => true,
4558    'has_fckeditor' => true,
4559    'UNI' =>
4560    array (
4561      0 => 'bodega',
4562    ),
4563    'links_from' =>
4564    array (
4565      'ajuste' =>
4566      array (
4567        'bodega_id' =>
4568        array (
4569          'es' => 'catalog_entry',
4570          'formato' => 'jqgrid',
4571          'to_table' => 'ajuste',
4572          'to_field' => 'bodega_id',
4573          'this_table' => 'bodega',
4574          'this_field' => 'bodega_id',
4575          'restrict_delete' => true,
4576          'delete_with_parent' => false,
4577          'on_delete_set_to' => 0,
4578        ),
4579      ),
4580      'bodega_existencia_diaria' =>
4581      array (
4582        'bodega_id' =>
4583        array (
4584          'es' => 'child',
4585          'formato' => 'jqgrid',
4586          'to_table' => 'bodega_existencia_diaria',
4587          'to_field' => 'bodega_id',
4588          'this_table' => 'bodega',
4589          'this_field' => 'bodega_id',
4590          'restrict_delete' => true,
4591          'delete_with_parent' => false,
4592          'on_delete_set_to' => 0,
4593        ),
4594      ),
4595      'bodega_grupo_verificador_verfica_bodega' =>
4596      array (
4597        'bodega_id' =>
4598        array (
4599          'es' => 'child',
4600          'formato' => 'jqgrid',
4601          'to_table' => 'bodega_grupo_verificador_verfica_bodega',
4602          'to_field' => 'bodega_id',
4603          'this_table' => 'bodega',
4604          'this_field' => 'bodega_id',
4605          'restrict_delete' => true,
4606          'delete_with_parent' => false,
4607          'on_delete_set_to' => 0,
4608        ),
4609      ),
4610      'bodega_verificador' =>
4611      array (
4612        'bodega_id' =>
4613        array (
4614          'es' => 'child',
4615          'formato' => 'key_value_select',
4616          'to_table' => 'bodega_verificador',
4617          'to_field' => 'bodega_id',
4618          'this_table' => 'bodega',
4619          'this_field' => 'bodega_id',
4620          'restrict_delete' => true,
4621          'delete_with_parent' => false,
4622          'on_delete_set_to' => 0,
4623        ),
4624        'bodega_verificadora_id' =>
4625        array (
4626          'es' => 'child',
4627          'formato' => 'key_value_select',
4628          'to_table' => 'bodega_verificador',
4629          'to_field' => 'bodega_verificadora_id',
4630          'this_table' => 'bodega',
4631          'this_field' => 'bodega_id',
4632          'restrict_delete' => true,
4633          'delete_with_parent' => false,
4634          'on_delete_set_to' => 0,
4635        ),
4636      ),
4637      'inconsistencia_nota_bodega' =>
4638      array (
4639        'bodega_id' =>
4640        array (
4641          'es' => 'child',
4642          'formato' => 'jqgrid',
4643          'to_table' => 'inconsistencia_nota_bodega',
4644          'to_field' => 'bodega_id',
4645          'this_table' => 'bodega',
4646          'this_field' => 'bodega_id',
4647          'restrict_delete' => true,
4648          'delete_with_parent' => false,
4649          'on_delete_set_to' => 0,
4650        ),
4651      ),
4652      'nota_bodega' =>
4653      array (
4654        'bodega_id' =>
4655        array (
4656          'es' => 'child',
4657          'formato' => 'jqgrid',
4658          'to_table' => 'nota_bodega',
4659          'to_field' => 'bodega_id',
4660          'this_table' => 'bodega',
4661          'this_field' => 'bodega_id',
4662          'restrict_delete' => true,
4663          'delete_with_parent' => false,
4664          'on_delete_set_to' => 0,
4665        ),
4666      ),
4667      'nota_bodega_autorizacion' =>
4668      array (
4669        'bodega_id' =>
4670        array (
4671          'es' => 'child',
4672          'formato' => 'jqgrid',
4673          'to_table' => 'nota_bodega_autorizacion',
4674          'to_field' => 'bodega_id',
4675          'this_table' => 'bodega',
4676          'this_field' => 'bodega_id',
4677          'restrict_delete' => true,
4678          'delete_with_parent' => false,
4679          'on_delete_set_to' => 0,
4680        ),
4681      ),
4682      'nota_bodega_items' =>
4683      array (
4684        'bodega_id' =>
4685        array (
4686          'es' => 'child',
4687          'formato' => 'jqgrid',
4688          'to_table' => 'nota_bodega_items',
4689          'to_field' => 'bodega_id',
4690          'this_table' => 'bodega',
4691          'this_field' => 'bodega_id',
4692          'restrict_delete' => true,
4693          'delete_with_parent' => false,
4694          'on_delete_set_to' => 0,
4695        ),
4696      ),
4697      'nota_bodega_items_log' =>
4698      array (
4699        'bodega_id' =>
4700        array (
4701          'es' => 'child',
4702          'formato' => 'jqgrid',
4703          'to_table' => 'nota_bodega_items_log',
4704          'to_field' => 'bodega_id',
4705          'this_table' => 'bodega',
4706          'this_field' => 'bodega_id',
4707          'restrict_delete' => true,
4708          'delete_with_parent' => false,
4709          'on_delete_set_to' => 0,
4710        ),
4711      ),
4712      'nota_bodega_log' =>
4713      array (
4714        'bodega_id' =>
4715        array (
4716          'es' => 'child',
4717          'formato' => 'jqgrid',
4718          'to_table' => 'nota_bodega_log',
4719          'to_field' => 'bodega_id',
4720          'this_table' => 'bodega',
4721          'this_field' => 'bodega_id',
4722          'restrict_delete' => true,
4723          'delete_with_parent' => false,
4724          'on_delete_set_to' => 0,
4725        ),
4726      ),
4727      'nota_bodega_verificacion' =>
4728      array (
4729        'bodega_id' =>
4730        array (
4731          'es' => 'child',
4732          'formato' => 'jqgrid',
4733          'to_table' => 'nota_bodega_verificacion',
4734          'to_field' => 'bodega_id',
4735          'this_table' => 'bodega',
4736          'this_field' => 'bodega_id',
4737          'restrict_delete' => true,
4738          'delete_with_parent' => false,
4739          'on_delete_set_to' => 0,
4740        ),
4741      ),
4742      'nota_bodega_verificacion_items' =>
4743      array (
4744        'bodega_id' =>
4745        array (
4746          'es' => 'child',
4747          'formato' => 'jqgrid',
4748          'to_table' => 'nota_bodega_verificacion_items',
4749          'to_field' => 'bodega_id',
4750          'this_table' => 'bodega',
4751          'this_field' => 'bodega_id',
4752          'restrict_delete' => true,
4753          'delete_with_parent' => false,
4754          'on_delete_set_to' => 0,
4755        ),
4756      ),
4757      'origen_bodega' =>
4758      array (
4759        'bodega_id' =>
4760        array (
4761          'es' => 'child',
4762          'formato' => 'jqgrid',
4763          'to_table' => 'origen_bodega',
4764          'to_field' => 'bodega_id',
4765          'this_table' => 'bodega',
4766          'this_field' => 'bodega_id',
4767          'restrict_delete' => true,
4768          'delete_with_parent' => false,
4769          'on_delete_set_to' => 0,
4770        ),
4771      ),
4772      'origen_bodega_bodega' =>
4773      array (
4774        'bodega_id' =>
4775        array (
4776          'es' => 'child',
4777          'formato' => 'jqgrid',
4778          'to_table' => 'origen_bodega_bodega',
4779          'to_field' => 'bodega_id',
4780          'this_table' => 'bodega',
4781          'this_field' => 'bodega_id',
4782          'restrict_delete' => true,
4783          'delete_with_parent' => false,
4784          'on_delete_set_to' => 0,
4785        ),
4786      ),
4787      'pedir_producto' =>
4788      array (
4789        'bodega_id' =>
4790        array (
4791          'es' => 'catalog_entry',
4792          'formato' => 'jqgrid',
4793          'to_table' => 'pedir_producto',
4794          'to_field' => 'bodega_id',
4795          'this_table' => 'bodega',
4796          'this_field' => 'bodega_id',
4797          'restrict_delete' => true,
4798          'delete_with_parent' => false,
4799          'on_delete_set_to' => 0,
4800        ),
4801      ),
4802      'permiso_bodega' =>
4803      array (
4804        'bodega_id' =>
4805        array (
4806          'es' => 'child',
4807          'formato' => 'jqgrid',
4808          'to_table' => 'permiso_bodega',
4809          'to_field' => 'bodega_id',
4810          'this_table' => 'bodega',
4811          'this_field' => 'bodega_id',
4812          'restrict_delete' => true,
4813          'delete_with_parent' => false,
4814          'on_delete_set_to' => 0,
4815        ),
4816      ),
4817      'producto_bodega' =>
4818      array (
4819        'bodega_id' =>
4820        array (
4821          'es' => 'child',
4822          'formato' => 'jqgrid',
4823          'to_table' => 'producto_bodega',
4824          'to_field' => 'bodega_id',
4825          'this_table' => 'bodega',
4826          'this_field' => 'bodega_id',
4827          'restrict_delete' => true,
4828          'delete_with_parent' => false,
4829          'on_delete_set_to' => 0,
4830        ),
4831      ),
4832      'producto_bodega_verificacion' =>
4833      array (
4834        'bodega_id' =>
4835        array (
4836          'es' => 'child',
4837          'formato' => 'jqgrid',
4838          'to_table' => 'producto_bodega_verificacion',
4839          'to_field' => 'bodega_id',
4840          'this_table' => 'bodega',
4841          'this_field' => 'bodega_id',
4842          'restrict_delete' => true,
4843          'delete_with_parent' => false,
4844          'on_delete_set_to' => 0,
4845        ),
4846      ),
4847      'reset_history' =>
4848      array (
4849        'bodega_id' =>
4850        array (
4851          'es' => 'catalog_entry',
4852          'formato' => 'jqgrid',
4853          'to_table' => 'reset_history',
4854          'to_field' => 'bodega_id',
4855          'this_table' => 'bodega',
4856          'this_field' => 'bodega_id',
4857          'restrict_delete' => true,
4858          'delete_with_parent' => false,
4859          'on_delete_set_to' => 0,
4860        ),
4861      ),
4862    ),
4863    'links_to' =>
4864    array (
4865      'empresa' =>
4866      array (
4867        'empresa_id' =>
4868        array (
4869          'es' => 'catalog',
4870          'formato' => 'link_one_select',
4871          'to_table' => 'empresa',
4872          'to_field' => 'empresa_id',
4873          'this_table' => 'bodega',
4874          'this_field' => 'empresa_id',
4875        ),
4876      ),
4877      'cp_cliente_direccion' =>
4878      array (
4879        'cp_cliente_direccion_id' =>
4880        array (
4881          'es' => 'catalog',
4882          'formato' => 'link_one_select',
4883          'to_table' => 'cp_cliente_direccion',
4884          'to_field' => 'cp_cliente_direccion_id',
4885          'this_table' => 'bodega',
4886          'this_field' => 'cp_cliente_direccion_id',
4887        ),
4888      ),
4889    ),
4890  ),
4891  'bodega_existencia_diaria' =>
4892  array (
4893    'es' => 'child',
4894    'PK' =>
4895    array (
4896      0 => 'fecha',
4897      1 => 'producto_general_id',
4898      2 => 'color_id',
4899      3 => 'bodega_id',
4900    ),
4901    'label_field' => 'bodega_existencia_diaria_id',
4902    'has_seq' => false,
4903    'has_child' => false,
4904    'has_date' => true,
4905    'links_to' =>
4906    array (
4907      'producto_general' =>
4908      array (
4909        'producto_general_id' =>
4910        array (
4911          'es' => 'catalog',
4912          'formato' => 'link_one_select',
4913          'to_table' => 'producto_general',
4914          'to_field' => 'producto_general_id',
4915          'this_table' => 'bodega_existencia_diaria',
4916          'this_field' => 'producto_general_id',
4917        ),
4918      ),
4919      'color' =>
4920      array (
4921        'color_id' =>
4922        array (
4923          'es' => 'catalog',
4924          'formato' => 'link_one_select',
4925          'to_table' => 'color',
4926          'to_field' => 'color_id',
4927          'this_table' => 'bodega_existencia_diaria',
4928          'this_field' => 'color_id',
4929        ),
4930      ),
4931      'bodega' =>
4932      array (
4933        'bodega_id' =>
4934        array (
4935          'es' => 'catalog',
4936          'formato' => 'link_one_select',
4937          'to_table' => 'bodega',
4938          'to_field' => 'bodega_id',
4939          'this_table' => 'bodega_existencia_diaria',
4940          'this_field' => 'bodega_id',
4941        ),
4942      ),
4943      'producto_bodega' =>
4944      array (
4945        'producto_bodega_id' =>
4946        array (
4947          'es' => 'catalog',
4948          'formato' => 'link_one_select',
4949          'to_table' => 'producto_bodega',
4950          'to_field' => '?',
4951          'this_table' => 'bodega_existencia_diaria',
4952          'this_field' => 'producto_bodega_id',
4953        ),
4954      ),
4955    ),
4956  ),
4957  'bodega_grupo_verificador' =>
4958  array (
4959    'es' => 'parent',
4960    'pk_single_field' => 'bodega_grupo_verificador_id',
4961    'pk_single_type' => 'auto_increment',
4962    'label_field' => 'grupo_verficiador',
4963    'has_seq' => false,
4964    'has_child' => true,
4965    'has_fckeditor' => true,
4966    'has_file_upload' => true,
4967    'has_date' => true,
4968    'UNI' =>
4969    array (
4970      0 => 'grupo_verficiador',
4971    ),
4972    'links_from' =>
4973    array (
4974      'bodega_grupo_verificador_verfica_bodega' =>
4975      array (
4976        'bodega_grupo_verificador_id' =>
4977        array (
4978          'es' => 'child',
4979          'formato' => 'jqgrid',
4980          'to_table' => 'bodega_grupo_verificador_verfica_bodega',
4981          'to_field' => 'bodega_grupo_verificador_id',
4982          'this_table' => 'bodega_grupo_verificador',
4983          'this_field' => 'bodega_grupo_verificador_id',
4984          'restrict_delete' => false,
4985          'delete_with_parent' => true,
4986          'on_delete_set_to' => 0,
4987        ),
4988      ),
4989      'bodega_grupo_verificador_verifica_usuario' =>
4990      array (
4991        'bodega_grupo_verificador_id' =>
4992        array (
4993          'es' => 'child',
4994          'formato' => 'jqgrid',
4995          'to_table' => 'bodega_grupo_verificador_verifica_usuario',
4996          'to_field' => 'bodega_grupo_verificador_id',
4997          'this_table' => 'bodega_grupo_verificador',
4998          'this_field' => 'bodega_grupo_verificador_id',
4999          'restrict_delete' => false,
5000          'delete_with_parent' => true,
5001          'on_delete_set_to' => 0,
5002        ),
5003      ),
5004      'bodega_grupo_verificador_verifica_usuario_consulta' =>
5005      array (
5006        'bodega_grupo_verificador_id' =>
5007        array (
5008          'es' => 'child',
5009          'formato' => 'jqgrid',
5010          'to_table' => 'bodega_grupo_verificador_verifica_usuario_consulta',
5011          'to_field' => 'bodega_grupo_verificador_id',
5012          'this_table' => 'bodega_grupo_verificador',
5013          'this_field' => 'bodega_grupo_verificador_id',
5014          'restrict_delete' => false,
5015          'delete_with_parent' => true,
5016          'on_delete_set_to' => 0,
5017        ),
5018      ),
5019      'nota_bodega_verificacion_items' =>
5020      array (
5021        'bodega_grupo_verificador_id' =>
5022        array (
5023          'es' => 'catalog_entry',
5024          'formato' => 'jqgrid',
5025          'to_table' => 'nota_bodega_verificacion_items',
5026          'to_field' => 'bodega_grupo_verificador_id',
5027          'this_table' => 'bodega_grupo_verificador',
5028          'this_field' => 'bodega_grupo_verificador_id',
5029          'restrict_delete' => true,
5030          'delete_with_parent' => false,
5031          'on_delete_set_to' => 0,
5032        ),
5033      ),
5034    ),
5035  ),
5036  'bodega_grupo_verificador_verfica_bodega' =>
5037  array (
5038    'es' => 'child',
5039    'pk_single_field' => 'bodega_grupo_verificador_verfica_bodega_id',
5040    'pk_single_type' => 'auto_increment',
5041    'label_field' => 'bodega_id',
5042    'has_seq' => false,
5043    'has_child' => false,
5044    'UNI' =>
5045    array (
5046      'grupo_bodega' =>
5047      array (
5048        1 => 'bodega_grupo_verificador_id',
5049        2 => 'bodega_id',
5050      ),
5051    ),
5052    'links_to' =>
5053    array (
5054      'bodega_grupo_verificador' =>
5055      array (
5056        'bodega_grupo_verificador_id' =>
5057        array (
5058          'es' => 'catalog',
5059          'formato' => 'link_one_select',
5060          'to_table' => 'bodega_grupo_verificador',
5061          'to_field' => 'bodega_grupo_verificador_id',
5062          'this_table' => 'bodega_grupo_verificador_verfica_bodega',
5063          'this_field' => 'bodega_grupo_verificador_id',
5064        ),
5065      ),
5066      'bodega' =>
5067      array (
5068        'bodega_id' =>
5069        array (
5070          'es' => 'catalog',
5071          'formato' => 'link_one_select',
5072          'to_table' => 'bodega',
5073          'to_field' => 'bodega_id',
5074          'this_table' => 'bodega_grupo_verificador_verfica_bodega',
5075          'this_field' => 'bodega_id',
5076        ),
5077      ),
5078    ),
5079    'links_from' =>
5080    array (
5081      'bodega_grupo_verificador_verifica_usuario' =>
5082      array (
5083        'es' => 'one2one',
5084      ),
5085      'bodega_grupo_verificador_verifica_usuario_consulta' =>
5086      array (
5087        'es' => 'one2one',
5088      ),
5089    ),
5090  ),
5091  'bodega_grupo_verificador_verifica_usuario' =>
5092  array (
5093    'es' => 'child',
5094    'pk_single_field' => 'bodega_grupo_verificador_verfica_bodega_id',
5095    'pk_single_type' => 'auto_increment',
5096    'label_field' => 'alta_por',
5097    'has_seq' => false,
5098    'has_child' => false,
5099    'UNI' =>
5100    array (
5101      'grupo_usuario' =>
5102      array (
5103        1 => 'bodega_grupo_verificador_id',
5104        2 => 'iac_usr_id',
5105      ),
5106    ),
5107    'links_to' =>
5108    array (
5109      'bodega_grupo_verificador' =>
5110      array (
5111        'bodega_grupo_verificador_id' =>
5112        array (
5113          'es' => 'catalog',
5114          'formato' => 'link_one_select',
5115          'to_table' => 'bodega_grupo_verificador',
5116          'to_field' => 'bodega_grupo_verificador_id',
5117          'this_table' => 'bodega_grupo_verificador_verifica_usuario',
5118          'this_field' => 'bodega_grupo_verificador_id',
5119        ),
5120      ),
5121      'iac_usr' =>
5122      array (
5123        'iac_usr_id' =>
5124        array (
5125          'es' => 'catalog',
5126          'formato' => 'link_one_select',
5127          'to_table' => 'iac_usr',
5128          'to_field' => 'iac_usr_id',
5129          'this_table' => 'bodega_grupo_verificador_verifica_usuario',
5130          'this_field' => 'iac_usr_id',
5131        ),
5132      ),
5133    ),
5134    'links_from' =>
5135    array (
5136      'bodega_grupo_verificador_verfica_bodega' =>
5137      array (
5138        'es' => 'one2one',
5139      ),
5140      'bodega_grupo_verificador_verifica_usuario_consulta' =>
5141      array (
5142        'es' => 'one2one',
5143      ),
5144    ),
5145  ),
5146  'bodega_grupo_verificador_verifica_usuario_consulta' =>
5147  array (
5148    'es' => 'child',
5149    'pk_single_field' => 'bodega_grupo_verificador_verfica_bodega_id',
5150    'pk_single_type' => 'auto_increment',
5151    'label_field' => 'alta_por',
5152    'has_seq' => false,
5153    'has_child' => false,
5154    'UNI' =>
5155    array (
5156      'grupo_usuario' =>
5157      array (
5158        1 => 'bodega_grupo_verificador_id',
5159        2 => 'iac_usr_id',
5160      ),
5161    ),
5162    'links_to' =>
5163    array (
5164      'bodega_grupo_verificador' =>
5165      array (
5166        'bodega_grupo_verificador_id' =>
5167        array (
5168          'es' => 'catalog',
5169          'formato' => 'link_one_select',
5170          'to_table' => 'bodega_grupo_verificador',
5171          'to_field' => 'bodega_grupo_verificador_id',
5172          'this_table' => 'bodega_grupo_verificador_verifica_usuario_consulta',
5173          'this_field' => 'bodega_grupo_verificador_id',
5174        ),
5175      ),
5176      'iac_usr' =>
5177      array (
5178        'iac_usr_id' =>
5179        array (
5180          'es' => 'catalog',
5181          'formato' => 'link_one_select',
5182          'to_table' => 'iac_usr',
5183          'to_field' => 'iac_usr_id',
5184          'this_table' => 'bodega_grupo_verificador_verifica_usuario_consulta',
5185          'this_field' => 'iac_usr_id',
5186        ),
5187      ),
5188    ),
5189    'links_from' =>
5190    array (
5191      'bodega_grupo_verificador_verfica_bodega' =>
5192      array (
5193        'es' => 'one2one',
5194      ),
5195      'bodega_grupo_verificador_verifica_usuario' =>
5196      array (
5197        'es' => 'one2one',
5198      ),
5199    ),
5200  ),
5201  'bodega_hist' =>
5202  array (
5203    'es' => 'data',
5204    'pk_single_field' => 'history_id',
5205    'pk_single_type' => 'auto_increment',
5206    'label_field' => 'action',
5207    'has_seq' => false,
5208    'has_child' => false,
5209    'has_datetime' => true,
5210    'links_from' =>
5211    array (
5212      'ajuste_hist' =>
5213      array (
5214        'es' => 'one2one',
5215      ),
5216      'cheque_hist' =>
5217      array (
5218        'es' => 'one2one',
5219      ),
5220      'cliente_hist' =>
5221      array (
5222        'es' => 'one2one',
5223      ),
5224      'color_hist' =>
5225      array (
5226        'es' => 'one2one',
5227      ),
5228      'estado_bodega_hist' =>
5229      array (
5230        'es' => 'one2one',
5231      ),
5232      'importador_hist' =>
5233      array (
5234        'es' => 'one2one',
5235      ),
5236      'nota_bodega_hist' =>
5237      array (
5238        'es' => 'one2one',
5239      ),
5240      'nota_bodega_verificacion_hist' =>
5241      array (
5242        'es' => 'one2one',
5243      ),
5244      'origen_bodega_bodega_hist' =>
5245      array (
5246        'es' => 'one2one',
5247      ),
5248      'origen_bodega_hist' =>
5249      array (
5250        'es' => 'one2one',
5251      ),
5252      'pagare_hist' =>
5253      array (
5254        'es' => 'one2one',
5255      ),
5256      'pedido_hist' =>
5257      array (
5258        'es' => 'one2one',
5259      ),
5260      'permiso_bodega_hist' =>
5261      array (
5262        'es' => 'one2one',
5263      ),
5264      'producto_bodega_hist' =>
5265      array (
5266        'es' => 'one2one',
5267      ),
5268      'producto_color_hist' =>
5269      array (
5270        'es' => 'one2one',
5271      ),
5272      'producto_general_hist' =>
5273      array (
5274        'es' => 'one2one',
5275      ),
5276      'solicitud_carta_porte_hist' =>
5277      array (
5278        'es' => 'one2one',
5279      ),
5280      'tienda_hist' =>
5281      array (
5282        'es' => 'one2one',
5283      ),
5284      'vale_hist' =>
5285      array (
5286        'es' => 'one2one',
5287      ),
5288    ),
5289  ),
5290  'bodega_verificador' =>
5291  array (
5292    'es' => 'parent',
5293    'pk_single_field' => 'bodega_verificador_id',
5294    'pk_single_type' => 'uuid',
5295    'label_field' => 'bodega_id',
5296    'has_seq' => false,
5297    'has_child' => true,
5298    'UNI' =>
5299    array (
5300      'bodega_verificadora' =>
5301      array (
5302        1 => 'bodega_id',
5303        2 => 'bodega_verificadora_id',
5304      ),
5305      'bodega_usuario' =>
5306      array (
5307        1 => 'iac_usr_id',
5308        2 => 'bodega_id',
5309      ),
5310    ),
5311    'links_to' =>
5312    array (
5313      'bodega' =>
5314      array (
5315        'bodega_id' =>
5316        array (
5317          'es' => 'catalog',
5318          'formato' => 'key_value_select',
5319          'to_table' => 'bodega',
5320          'to_field' => 'bodega_id',
5321          'this_table' => 'bodega_verificador',
5322          'this_field' => 'bodega_id',
5323          'key_value_select' =>
5324          array (
5325            0 =>
5326            array (
5327              'table' => 'bodega_verificadora',
5328              'table_pk' => 'bodega_verificadora_id',
5329              'label' => 'bodega_verificadora',
5330              'relateid' => 'bodega_verificadora_id',
5331              'linkid' => 'bodega_id',
5332            ),
5333            1 =>
5334            array (
5335              'table' => 'iac_usr',
5336              'table_pk' => 'iac_usr_id',
5337              'label' => 'nick',
5338              'relateid' => 'iac_usr_id',
5339              'linkid' => 'bodega_id',
5340            ),
5341          ),
5342        ),
5343        'bodega_verificadora_id' =>
5344        array (
5345          'es' => 'catalog',
5346          'formato' => 'key_value_select',
5347          'to_table' => 'bodega',
5348          'to_field' => 'bodega_id',
5349          'this_table' => 'bodega_verificador',
5350          'this_field' => 'bodega_verificadora_id',
5351          'key_value_select' =>
5352          array (
5353            0 =>
5354            array (
5355              'table' => 'bodega_verificadora',
5356              'table_pk' => 'bodega_verificadora_id',
5357              'label' => 'bodega_verificadora',
5358              'relateid' => 'bodega_verificadora_id',
5359              'linkid' => 'bodega_id',
5360            ),
5361            1 =>
5362            array (
5363              'table' => 'iac_usr',
5364              'table_pk' => 'iac_usr_id',
5365              'label' => 'nick',
5366              'relateid' => 'iac_usr_id',
5367              'linkid' => 'bodega_id',
5368            ),
5369          ),
5370        ),
5371      ),
5372      'iac_usr' =>
5373      array (
5374        'iac_usr_id' =>
5375        array (
5376          'es' => 'catalog',
5377          'formato' => 'key_value_select',
5378          'to_table' => 'iac_usr',
5379          'to_field' => 'iac_usr_id',
5380          'this_table' => 'bodega_verificador',
5381          'this_field' => 'iac_usr_id',
5382          'key_value_select' =>
5383          array (
5384            0 =>
5385            array (
5386              'table' => 'bodega',
5387              'table_pk' => 'bodega_id',
5388              'label' => 'grupo',
5389              'relateid' => 'bodega_id',
5390              'linkid' => 'iac_usr_id',
5391            ),
5392            1 =>
5393            array (
5394              'table' => 'bodega_verificadora',
5395              'table_pk' => 'bodega_verificadora_id',
5396              'label' => 'bodega_verificadora',
5397              'relateid' => 'bodega_verificadora_id',
5398              'linkid' => 'iac_usr_id',
5399            ),
5400          ),
5401        ),
5402      ),
5403    ),
5404    'links_from' =>
5405    array (
5406      'nota_bodega_verificacion' =>
5407      array (
5408        'bodega_verificador_id' =>
5409        array (
5410          'es' => 'catalog_entry',
5411          'formato' => 'key_value_select',
5412          'to_table' => 'nota_bodega_verificacion',
5413          'to_field' => 'bodega_verificador_id',
5414          'this_table' => 'bodega_verificador',
5415          'this_field' => 'bodega_verificador_id',
5416          'restrict_delete' => true,
5417          'delete_with_parent' => false,
5418          'on_delete_set_to' => 0,
5419        ),
5420      ),
5421      'producto_bodega_verificacion' =>
5422      array (
5423        'bodega_verificador_id' =>
5424        array (
5425          'es' => 'catalog_entry',
5426          'formato' => 'key_value_select',
5427          'to_table' => 'producto_bodega_verificacion',
5428          'to_field' => 'bodega_verificador_id',
5429          'this_table' => 'bodega_verificador',
5430          'this_field' => 'bodega_verificador_id',
5431          'restrict_delete' => true,
5432          'delete_with_parent' => false,
5433          'on_delete_set_to' => 0,
5434        ),
5435      ),
5436    ),
5437  ),
5438  'brain' =>
5439  array (
5440    'es' => 'data',
5441    'label_field' => 'link_expira_dias',
5442    'has_seq' => false,
5443    'has_child' => false,
5444    'has_numeric' => true,
5445  ),
5446  'brain_avisos' =>
5447  array (
5448    'es' => 'data',
5449    'pk_single_field' => 'brain_avisos_id',
5450    'pk_single_type' => 'uuid',
5451    'label_field' => 'para',
5452    'has_seq' => false,
5453    'has_child' => false,
5454    'has_file_upload' => true,
5455    'has_fckeditor' => true,
5456    'has_datetime' => true,
5457  ),
5458  'brain_store' =>
5459  array (
5460    'es' => 'data',
5461    'pk_single_field' => 'brain_store_id',
5462    'pk_single_type' => 'value',
5463    'label_field' => 'md5',
5464    'has_seq' => false,
5465    'has_child' => false,
5466    'has_fckeditor' => true,
5467    'has_datetime' => true,
5468  ),
5469  'campos_exists' =>
5470  array (
5471    'es' => 'data',
5472    'pk_single_field' => 'campos_exists_id',
5473    'pk_single_type' => 'auto_increment',
5474    'label_field' => 'valor',
5475    'has_seq' => false,
5476    'has_child' => false,
5477    'has_datetime' => true,
5478    'UNI' =>
5479    array (
5480      'insert_update' =>
5481      array (
5482        1 => 'campo_id',
5483        2 => 'tabla_exists',
5484        3 => 'tabla_origen',
5485      ),
5486    ),
5487  ),
5488  'cash' =>
5489  array (
5490    'es' => 'parent',
5491    'pk_single_field' => 'cash_id',
5492    'pk_single_type' => 'uuid',
5493    'label_field' => 'cliente_id',
5494    'has_seq' => false,
5495    'has_child' => true,
5496    'has_date' => true,
5497    'has_numeric' => true,
5498    'has_fckeditor' => true,
5499    'links_to' =>
5500    array (
5501      'cliente' =>
5502      array (
5503        'cliente_id' =>
5504        array (
5505          'es' => 'catalog',
5506          'formato' => 'link_one_select',
5507          'to_table' => 'cliente',
5508          'to_field' => 'cliente_id',
5509          'this_table' => 'cash',
5510          'this_field' => 'cliente_id',
5511        ),
5512      ),
5513      'tienda' =>
5514      array (
5515        'tienda_id' =>
5516        array (
5517          'es' => 'catalog',
5518          'formato' => 'link_one_select',
5519          'to_table' => 'tienda',
5520          'to_field' => 'tienda_id',
5521          'this_table' => 'cash',
5522          'this_field' => 'tienda_id',
5523        ),
5524      ),
5525      'payment_conditions' =>
5526      array (
5527        'payment_conditions_id' =>
5528        array (
5529          'es' => 'catalog',
5530          'formato' => 'link_one_select',
5531          'to_table' => 'payment_conditions',
5532          'to_field' => 'payment_conditions_id',
5533          'this_table' => 'cash',
5534          'this_field' => 'payment_conditions_id',
5535        ),
5536      ),
5537    ),
5538    'links_from' =>
5539    array (
5540      'cash_pago' =>
5541      array (
5542        'cash_id' =>
5543        array (
5544          'es' => 'child',
5545          'formato' => 'jqgrid',
5546          'to_table' => 'cash_pago',
5547          'to_field' => 'cash_id',
5548          'this_table' => 'cash',
5549          'this_field' => 'cash_id',
5550          'restrict_delete' => false,
5551          'delete_with_parent' => true,
5552          'on_delete_set_to' => 0,
5553        ),
5554      ),
5555    ),
5556  ),
5557  'cash_pago' =>
5558  array (
5559    'es' => 'child',
5560    'pk_single_field' => 'cash_pago_id',
5561    'pk_single_type' => 'uuid',
5562    'label_field' => 'cash_id',
5563    'has_seq' => false,
5564    'has_child' => false,
5565    'has_date' => true,
5566    'has_numeric' => true,
5567    'links_to' =>
5568    array (
5569      'cash' =>
5570      array (
5571        'cash_id' =>
5572        array (
5573          'es' => 'catalog',
5574          'formato' => 'link_one_select',
5575          'to_table' => 'cash',
5576          'to_field' => 'cash_id',
5577          'this_table' => 'cash_pago',
5578          'this_field' => 'cash_id',
5579        ),
5580      ),
5581      'moneda' =>
5582      array (
5583        'moneda_id' =>
5584        array (
5585          'es' => 'catalog',
5586          'formato' => 'link_one_select',
5587          'to_table' => 'moneda',
5588          'to_field' => 'moneda_id',
5589          'this_table' => 'cash_pago',
5590          'this_field' => 'moneda_id',
5591        ),
5592      ),
5593      'metodo_pago' =>
5594      array (
5595        'metodo_pago_id' =>
5596        array (
5597          'es' => 'catalog',
5598          'formato' => 'link_one_select',
5599          'to_table' => 'metodo_pago',
5600          'to_field' => 'metodo_pago_id',
5601          'this_table' => 'cash_pago',
5602          'this_field' => 'metodo_pago_id',
5603        ),
5604      ),
5605      'banco_cuenta' =>
5606      array (
5607        'banco_cuenta_id' =>
5608        array (
5609          'es' => 'catalog',
5610          'formato' => 'link_one_select',
5611          'to_table' => 'banco_cuenta',
5612          'to_field' => 'banco_cuenta_id',
5613          'this_table' => 'cash_pago',
5614          'this_field' => 'banco_cuenta_id',
5615        ),
5616      ),
5617      'banco_cuenta_mov_link' =>
5618      array (
5619        'banco_cuenta_mov_link_id' =>
5620        array (
5621          'es' => 'catalog',
5622          'formato' => 'link_one_select',
5623          'to_table' => 'banco_cuenta_mov_link',
5624          'to_field' => 'banco_cuenta_mov_link_id',
5625          'this_table' => 'cash_pago',
5626          'this_field' => 'banco_cuenta_mov_link_id',
5627        ),
5628      ),
5629      'cuentat_mov' =>
5630      array (
5631        'cuenta_t_mov_id' =>
5632        array (
5633          'es' => 'catalog',
5634          'formato' => 'link_one_select',
5635          'to_table' => 'cuentat_mov',
5636          'to_field' => 'cuentaT_mov_id',
5637          'this_table' => 'cash_pago',
5638          'this_field' => 'cuenta_t_mov_id',
5639        ),
5640      ),
5641    ),
5642  ),
5643  'categoria' =>
5644  array (
5645    'es' => 'parent',
5646    'pk_single_field' => 'categoria_id',
5647    'pk_single_type' => 'auto_increment',
5648    'label_field' => 'categoria',
5649    'has_seq' => false,
5650    'has_child' => true,
5651    'links_from' =>
5652    array (
5653      'categoria_gasto' =>
5654      array (
5655        'categoria_gasto_parent_id' =>
5656        array (
5657          'es' => 'catalog_entry',
5658          'formato' => 'link_one_select',
5659          'to_table' => 'categoria_gasto',
5660          'to_field' => 'categoria_gasto_parent_id',
5661          'this_table' => 'categoria',
5662          'this_field' => 'categoria_id',
5663          'restrict_delete' => true,
5664          'delete_with_parent' => false,
5665          'on_delete_set_to' => 0,
5666        ),
5667      ),
5668      'cheque' =>
5669      array (
5670        'categoria_id' =>
5671        array (
5672          'es' => 'catalog_entry',
5673          'formato' => 'jqgrid',
5674          'to_table' => 'cheque',
5675          'to_field' => 'categoria_id',
5676          'this_table' => 'categoria',
5677          'this_field' => 'categoria_id',
5678          'restrict_delete' => true,
5679          'delete_with_parent' => false,
5680          'on_delete_set_to' => 0,
5681        ),
5682      ),
5683      'cheque_log' =>
5684      array (
5685        'categoria_id' =>
5686        array (
5687          'es' => 'catalog_entry',
5688          'formato' => 'jqgrid',
5689          'to_table' => 'cheque_log',
5690          'to_field' => 'categoria_id',
5691          'this_table' => 'categoria',
5692          'this_field' => 'categoria_id',
5693          'restrict_delete' => true,
5694          'delete_with_parent' => false,
5695          'on_delete_set_to' => 0,
5696        ),
5697      ),
5698      'clientes_saldos_cat' =>
5699      array (
5700        'categoria_id' =>
5701        array (
5702          'es' => 'catalog_entry',
5703          'formato' => 'jqgrid',
5704          'to_table' => 'clientes_saldos_cat',
5705          'to_field' => 'categoria_id',
5706          'this_table' => 'categoria',
5707          'this_field' => 'categoria_id',
5708          'restrict_delete' => true,
5709          'delete_with_parent' => false,
5710          'on_delete_set_to' => 0,
5711        ),
5712      ),
5713      'clientes_saldos_live' =>
5714      array (
5715        'categoria_id' =>
5716        array (
5717          'es' => 'catalog_entry',
5718          'formato' => 'jqgrid',
5719          'to_table' => 'clientes_saldos_live',
5720          'to_field' => 'categoria_id',
5721          'this_table' => 'categoria',
5722          'this_field' => 'categoria_id',
5723          'restrict_delete' => true,
5724          'delete_with_parent' => false,
5725          'on_delete_set_to' => 0,
5726        ),
5727      ),
5728      'compra' =>
5729      array (
5730        'categoria_id' =>
5731        array (
5732          'es' => 'catalog_entry',
5733          'formato' => 'jqgrid',
5734          'to_table' => 'compra',
5735          'to_field' => 'categoria_id',
5736          'this_table' => 'categoria',
5737          'this_field' => 'categoria_id',
5738          'restrict_delete' => true,
5739          'delete_with_parent' => false,
5740          'on_delete_set_to' => 0,
5741        ),
5742      ),
5743      'compra_log' =>
5744      array (
5745        'categoria_id' =>
5746        array (
5747          'es' => 'catalog_entry',
5748          'formato' => 'jqgrid',
5749          'to_table' => 'compra_log',
5750          'to_field' => 'categoria_id',
5751          'this_table' => 'categoria',
5752          'this_field' => 'categoria_id',
5753          'restrict_delete' => true,
5754          'delete_with_parent' => false,
5755          'on_delete_set_to' => 0,
5756        ),
5757      ),
5758      'doctos' =>
5759      array (
5760        'categoria_id' =>
5761        array (
5762          'es' => 'catalog_entry',
5763          'formato' => 'jqgrid',
5764          'to_table' => 'doctos',
5765          'to_field' => 'categoria_id',
5766          'this_table' => 'categoria',
5767          'this_field' => 'categoria_id',
5768          'restrict_delete' => true,
5769          'delete_with_parent' => false,
5770          'on_delete_set_to' => 0,
5771        ),
5772      ),
5773      'pagare' =>
5774      array (
5775        'categoria_id' =>
5776        array (
5777          'es' => 'catalog_entry',
5778          'formato' => 'jqgrid',
5779          'to_table' => 'pagare',
5780          'to_field' => 'categoria_id',
5781          'this_table' => 'categoria',
5782          'this_field' => 'categoria_id',
5783          'restrict_delete' => true,
5784          'delete_with_parent' => false,
5785          'on_delete_set_to' => 0,
5786        ),
5787      ),
5788      'pagare_log' =>
5789      array (
5790        'categoria_id' =>
5791        array (
5792          'es' => 'catalog_entry',
5793          'formato' => 'jqgrid',
5794          'to_table' => 'pagare_log',
5795          'to_field' => 'categoria_id',
5796          'this_table' => 'categoria',
5797          'this_field' => 'categoria_id',
5798          'restrict_delete' => true,
5799          'delete_with_parent' => false,
5800          'on_delete_set_to' => 0,
5801        ),
5802      ),
5803      'pagare_test' =>
5804      array (
5805        'categoria_id' =>
5806        array (
5807          'es' => 'catalog_entry',
5808          'formato' => 'jqgrid',
5809          'to_table' => 'pagare_test',
5810          'to_field' => 'categoria_id',
5811          'this_table' => 'categoria',
5812          'this_field' => 'categoria_id',
5813          'restrict_delete' => true,
5814          'delete_with_parent' => false,
5815          'on_delete_set_to' => 0,
5816        ),
5817      ),
5818      'vale' =>
5819      array (
5820        'categoria_id' =>
5821        array (
5822          'es' => 'catalog_entry',
5823          'formato' => 'jqgrid',
5824          'to_table' => 'vale',
5825          'to_field' => 'categoria_id',
5826          'this_table' => 'categoria',
5827          'this_field' => 'categoria_id',
5828          'restrict_delete' => true,
5829          'delete_with_parent' => false,
5830          'on_delete_set_to' => 0,
5831        ),
5832      ),
5833      'vale_log' =>
5834      array (
5835        'categoria_id' =>
5836        array (
5837          'es' => 'catalog_entry',
5838          'formato' => 'jqgrid',
5839          'to_table' => 'vale_log',
5840          'to_field' => 'categoria_id',
5841          'this_table' => 'categoria',
5842          'this_field' => 'categoria_id',
5843          'restrict_delete' => true,
5844          'delete_with_parent' => false,
5845          'on_delete_set_to' => 0,
5846        ),
5847      ),
5848    ),
5849  ),
5850  'categoria_gasto' =>
5851  array (
5852    'es' => 'parent',
5853    'pk_single_field' => 'categoria_gasto_id',
5854    'pk_single_type' => 'uuid',
5855    'label_field' => 'nombre',
5856    'orden' => true,
5857    'has_seq' => false,
5858    'has_child' => true,
5859    'UNI' =>
5860    array (
5861      'nombre_unico' =>
5862      array (
5863        1 => 'nombre',
5864        2 => 'categoria_gasto_parent_id',
5865      ),
5866    ),
5867    'links_from' =>
5868    array (
5869      'banco_cuenta_mov' =>
5870      array (
5871        'categoria_gasto_id' =>
5872        array (
5873          'es' => 'catalog_entry',
5874          'formato' => 'jqgrid',
5875          'to_table' => 'banco_cuenta_mov',
5876          'to_field' => 'categoria_gasto_id',
5877          'this_table' => 'categoria_gasto',
5878          'this_field' => 'categoria_gasto_id',
5879          'restrict_delete' => true,
5880          'delete_with_parent' => false,
5881          'on_delete_set_to' => 0,
5882        ),
5883      ),
5884      'banco_cuenta_mov_con_links' =>
5885      array (
5886        'categoria_gasto_id' =>
5887        array (
5888          'es' => 'catalog_entry',
5889          'formato' => 'jqgrid',
5890          'to_table' => 'banco_cuenta_mov_con_links',
5891          'to_field' => 'categoria_gasto_id',
5892          'this_table' => 'categoria_gasto',
5893          'this_field' => 'categoria_gasto_id',
5894          'restrict_delete' => true,
5895          'delete_with_parent' => false,
5896          'on_delete_set_to' => 0,
5897        ),
5898      ),
5899      'banco_diccionario_dato' =>
5900      array (
5901        'categoria_gasto_id' =>
5902        array (
5903          'es' => 'catalog_entry',
5904          'formato' => 'jqgrid',
5905          'to_table' => 'banco_diccionario_dato',
5906          'to_field' => 'categoria_gasto_id',
5907          'this_table' => 'categoria_gasto',
5908          'this_field' => 'categoria_gasto_id',
5909          'restrict_delete' => true,
5910          'delete_with_parent' => false,
5911          'on_delete_set_to' => 0,
5912        ),
5913      ),
5914      'fiduciario_contenedor_gasto' =>
5915      array (
5916        'categoria_gasto_id' =>
5917        array (
5918          'es' => 'catalog_entry',
5919          'formato' => 'jqgrid',
5920          'to_table' => 'fiduciario_contenedor_gasto',
5921          'to_field' => 'categoria_gasto_id',
5922          'this_table' => 'categoria_gasto',
5923          'this_field' => 'categoria_gasto_id',
5924          'restrict_delete' => true,
5925          'delete_with_parent' => false,
5926          'on_delete_set_to' => 0,
5927        ),
5928      ),
5929      'gastosdebanco' =>
5930      array (
5931        'categoria_gasto_id' =>
5932        array (
5933          'es' => 'catalog_entry',
5934          'formato' => 'jqgrid',
5935          'to_table' => 'gastosdebanco',
5936          'to_field' => 'categoria_gasto_id',
5937          'this_table' => 'categoria_gasto',
5938          'this_field' => 'categoria_gasto_id',
5939          'restrict_delete' => true,
5940          'delete_with_parent' => false,
5941          'on_delete_set_to' => 0,
5942        ),
5943      ),
5944      'mov_verificado' =>
5945      array (
5946        'categoria_gasto_id' =>
5947        array (
5948          'es' => 'catalog_entry',
5949          'formato' => 'jqgrid',
5950          'to_table' => 'mov_verificado',
5951          'to_field' => 'categoria_gasto_id',
5952          'this_table' => 'categoria_gasto',
5953          'this_field' => 'categoria_gasto_id',
5954          'restrict_delete' => true,
5955          'delete_with_parent' => false,
5956          'on_delete_set_to' => 0,
5957        ),
5958      ),
5959      'subcategoria_gasto' =>
5960      array (
5961        'categoria_gasto_id' =>
5962        array (
5963          'es' => 'child',
5964          'formato' => 'jqgrid',
5965          'to_table' => 'subcategoria_gasto',
5966          'to_field' => 'categoria_gasto_id',
5967          'this_table' => 'categoria_gasto',
5968          'this_field' => 'categoria_gasto_id',
5969          'restrict_delete' => true,
5970          'delete_with_parent' => false,
5971          'on_delete_set_to' => 0,
5972        ),
5973      ),
5974    ),
5975    'links_to' =>
5976    array (
5977      'categoria' =>
5978      array (
5979        'categoria_gasto_parent_id' =>
5980        array (
5981          'es' => 'catalog',
5982          'formato' => 'link_one_select',
5983          'to_table' => 'categoria',
5984          'to_field' => 'categoria_id',
5985          'this_table' => 'categoria_gasto',
5986          'this_field' => 'categoria_gasto_parent_id',
5987        ),
5988      ),
5989    ),
5990  ),
5991  'checked_document' =>
5992  array (
5993    'es' => 'child',
5994    'pk_single_field' => 'checked_document_id',
5995    'pk_single_type' => 'auto_increment',
5996    'label_field' => 'tema',
5997    'has_seq' => false,
5998    'has_child' => false,
5999    'UNI' =>
6000    array (
6001      'registro_unico' =>
6002      array (
6003        1 => 'iac_usr_id',
6004        2 => 'tema',
6005        3 => 'documento_id',
6006      ),
6007    ),
6008    'links_to' =>
6009    array (
6010      'iac_usr' =>
6011      array (
6012        'iac_usr_id' =>
6013        array (
6014          'es' => 'catalog',
6015          'formato' => 'link_one_select',
6016          'to_table' => 'iac_usr',
6017          'to_field' => 'iac_usr_id',
6018          'this_table' => 'checked_document',
6019          'this_field' => 'iac_usr_id',
6020        ),
6021      ),
6022    ),
6023  ),
6024  'cheque' =>
6025  array (
6026    'es' => 'parent',
6027    'pk_single_field' => 'cheque_id',
6028    'pk_single_type' => 'uuid',
6029    'label_field' => 'cliente_id',
6030    'has_seq' => false,
6031    'has_child' => true,
6032    'has_numeric' => true,
6033    'has_date' => true,
6034    'has_file_upload' => true,
6035    'has_datetime' => true,
6036    'has_fckeditor' => true,
6037    'links_to' =>
6038    array (
6039      'cliente' =>
6040      array (
6041        'cliente_id' =>
6042        array (
6043          'es' => 'catalog',
6044          'formato' => 'link_one_select',
6045          'to_table' => 'cliente',
6046          'to_field' => 'cliente_id',
6047          'this_table' => 'cheque',
6048          'this_field' => 'cliente_id',
6049        ),
6050        'cliente_proveedor_id' =>
6051        array (
6052          'es' => 'catalog',
6053          'formato' => 'link_one_select',
6054          'to_table' => 'cliente',
6055          'to_field' => 'cliente_id',
6056          'this_table' => 'cheque',
6057          'this_field' => 'cliente_proveedor_id',
6058        ),
6059      ),
6060      'tienda' =>
6061      array (
6062        'tienda_id' =>
6063        array (
6064          'es' => 'catalog',
6065          'formato' => 'link_one_select',
6066          'to_table' => 'tienda',
6067          'to_field' => 'tienda_id',
6068          'this_table' => 'cheque',
6069          'this_field' => 'tienda_id',
6070        ),
6071      ),
6072      'moneda' =>
6073      array (
6074        'moneda_id' =>
6075        array (
6076          'es' => 'catalog',
6077          'formato' => 'link_one_select',
6078          'to_table' => 'moneda',
6079          'to_field' => 'moneda_id',
6080          'this_table' => 'cheque',
6081          'this_field' => 'moneda_id',
6082        ),
6083      ),
6084      'banco' =>
6085      array (
6086        'banco_id' =>
6087        array (
6088          'es' => 'catalog',
6089          'formato' => 'link_one_select',
6090          'to_table' => 'banco',
6091          'to_field' => 'banco_id',
6092          'this_table' => 'cheque',
6093          'this_field' => 'banco_id',
6094        ),
6095      ),
6096      'cuentat' =>
6097      array (
6098        'cuentaT_deliveredto_id' =>
6099        array (
6100          'es' => 'catalog',
6101          'formato' => 'link_one_select',
6102          'to_table' => 'cuentat',
6103          'to_field' => 'cuentaT_id',
6104          'this_table' => 'cheque',
6105          'this_field' => 'cuentaT_deliveredto_id',
6106        ),
6107        'cuentaT_transferto_id' =>
6108        array (
6109          'es' => 'catalog',
6110          'formato' => 'link_one_select',
6111          'to_table' => 'cuentat',
6112          'to_field' => 'cuentaT_id',
6113          'this_table' => 'cheque',
6114          'this_field' => 'cuentaT_transferto_id',
6115        ),
6116        'origen_cuentat_id' =>
6117        array (
6118          'es' => 'catalog',
6119          'formato' => 'link_one_select',
6120          'to_table' => 'cuentat',
6121          'to_field' => 'cuentaT_id',
6122          'this_table' => 'cheque',
6123          'this_field' => 'origen_cuentat_id',
6124        ),
6125      ),
6126      'categoria' =>
6127      array (
6128        'categoria_id' =>
6129        array (
6130          'es' => 'catalog',
6131          'formato' => 'link_one_select',
6132          'to_table' => 'categoria',
6133          'to_field' => 'categoria_id',
6134          'this_table' => 'cheque',
6135          'this_field' => 'categoria_id',
6136        ),
6137      ),
6138      'cuentat_mov' =>
6139      array (
6140        'cuentat_mov_id' =>
6141        array (
6142          'es' => 'catalog',
6143          'formato' => 'link_one_select',
6144          'to_table' => 'cuentat_mov',
6145          'to_field' => 'cuentaT_mov_id',
6146          'this_table' => 'cheque',
6147          'this_field' => 'cuentat_mov_id',
6148        ),
6149      ),
6150    ),
6151    'links_from' =>
6152    array (
6153      'cheque_pago' =>
6154      array (
6155        'cheque_id' =>
6156        array (
6157          'es' => 'child',
6158          'formato' => 'jqgrid',
6159          'to_table' => 'cheque_pago',
6160          'to_field' => 'cheque_id',
6161          'this_table' => 'cheque',
6162          'this_field' => 'cheque_id',
6163          'restrict_delete' => true,
6164          'delete_with_parent' => false,
6165          'on_delete_set_to' => 0,
6166        ),
6167      ),
6168      'cheque_pago_log' =>
6169      array (
6170        'cheque_id' =>
6171        array (
6172          'es' => 'child',
6173          'formato' => 'jqgrid',
6174          'to_table' => 'cheque_pago_log',
6175          'to_field' => 'cheque_id',
6176          'this_table' => 'cheque',
6177          'this_field' => 'cheque_id',
6178          'restrict_delete' => true,
6179          'delete_with_parent' => false,
6180          'on_delete_set_to' => 0,
6181        ),
6182      ),
6183      'cheque_log' =>
6184      array (
6185        'es' => 'one2one',
6186      ),
6187    ),
6188  ),
6189  'cheque_hist' =>
6190  array (
6191    'es' => 'data',
6192    'pk_single_field' => 'history_id',
6193    'pk_single_type' => 'auto_increment',
6194    'label_field' => 'action',
6195    'has_seq' => false,
6196    'has_child' => false,
6197    'has_datetime' => true,
6198    'links_from' =>
6199    array (
6200      'ajuste_hist' =>
6201      array (
6202        'es' => 'one2one',
6203      ),
6204      'bodega_hist' =>
6205      array (
6206        'es' => 'one2one',
6207      ),
6208      'cliente_hist' =>
6209      array (
6210        'es' => 'one2one',
6211      ),
6212      'color_hist' =>
6213      array (
6214        'es' => 'one2one',
6215      ),
6216      'estado_bodega_hist' =>
6217      array (
6218        'es' => 'one2one',
6219      ),
6220      'importador_hist' =>
6221      array (
6222        'es' => 'one2one',
6223      ),
6224      'nota_bodega_hist' =>
6225      array (
6226        'es' => 'one2one',
6227      ),
6228      'nota_bodega_verificacion_hist' =>
6229      array (
6230        'es' => 'one2one',
6231      ),
6232      'origen_bodega_bodega_hist' =>
6233      array (
6234        'es' => 'one2one',
6235      ),
6236      'origen_bodega_hist' =>
6237      array (
6238        'es' => 'one2one',
6239      ),
6240      'pagare_hist' =>
6241      array (
6242        'es' => 'one2one',
6243      ),
6244      'pedido_hist' =>
6245      array (
6246        'es' => 'one2one',
6247      ),
6248      'permiso_bodega_hist' =>
6249      array (
6250        'es' => 'one2one',
6251      ),
6252      'producto_bodega_hist' =>
6253      array (
6254        'es' => 'one2one',
6255      ),
6256      'producto_color_hist' =>
6257      array (
6258        'es' => 'one2one',
6259      ),
6260      'producto_general_hist' =>
6261      array (
6262        'es' => 'one2one',
6263      ),
6264      'solicitud_carta_porte_hist' =>
6265      array (
6266        'es' => 'one2one',
6267      ),
6268      'tienda_hist' =>
6269      array (
6270        'es' => 'one2one',
6271      ),
6272      'vale_hist' =>
6273      array (
6274        'es' => 'one2one',
6275      ),
6276    ),
6277  ),
6278  'cheque_log' =>
6279  array (
6280    'es' => 'child',
6281    'pk_single_field' => 'cheque_id',
6282    'pk_single_type' => 'uuid',
6283    'label_field' => 'cliente_id',
6284    'has_seq' => false,
6285    'has_child' => false,
6286    'has_numeric' => true,
6287    'has_date' => true,
6288    'has_fckeditor' => true,
6289    'has_file_upload' => true,
6290    'has_datetime' => true,
6291    'links_to' =>
6292    array (
6293      'cliente' =>
6294      array (
6295        'cliente_id' =>
6296        array (
6297          'es' => 'catalog',
6298          'formato' => 'link_one_select',
6299          'to_table' => 'cliente',
6300          'to_field' => 'cliente_id',
6301          'this_table' => 'cheque_log',
6302          'this_field' => 'cliente_id',
6303        ),
6304        'cliente_proveedor_id' =>
6305        array (
6306          'es' => 'catalog',
6307          'formato' => 'link_one_select',
6308          'to_table' => 'cliente',
6309          'to_field' => 'cliente_id',
6310          'this_table' => 'cheque_log',
6311          'this_field' => 'cliente_proveedor_id',
6312        ),
6313      ),
6314      'tienda' =>
6315      array (
6316        'tienda_id' =>
6317        array (
6318          'es' => 'catalog',
6319          'formato' => 'link_one_select',
6320          'to_table' => 'tienda',
6321          'to_field' => 'tienda_id',
6322          'this_table' => 'cheque_log',
6323          'this_field' => 'tienda_id',
6324        ),
6325      ),
6326      'moneda' =>
6327      array (
6328        'moneda_id' =>
6329        array (
6330          'es' => 'catalog',
6331          'formato' => 'link_one_select',
6332          'to_table' => 'moneda',
6333          'to_field' => 'moneda_id',
6334          'this_table' => 'cheque_log',
6335          'this_field' => 'moneda_id',
6336        ),
6337      ),
6338      'banco' =>
6339      array (
6340        'banco_id' =>
6341        array (
6342          'es' => 'catalog',
6343          'formato' => 'link_one_select',
6344          'to_table' => 'banco',
6345          'to_field' => 'banco_id',
6346          'this_table' => 'cheque_log',
6347          'this_field' => 'banco_id',
6348        ),
6349      ),
6350      'cuentat' =>
6351      array (
6352        'cuentaT_deliveredto_id' =>
6353        array (
6354          'es' => 'catalog',
6355          'formato' => 'link_one_select',
6356          'to_table' => 'cuentat',
6357          'to_field' => 'cuentaT_id',
6358          'this_table' => 'cheque_log',
6359          'this_field' => 'cuentaT_deliveredto_id',
6360        ),
6361        'cuentaT_transferto_id' =>
6362        array (
6363          'es' => 'catalog',
6364          'formato' => 'link_one_select',
6365          'to_table' => 'cuentat',
6366          'to_field' => 'cuentaT_id',
6367          'this_table' => 'cheque_log',
6368          'this_field' => 'cuentaT_transferto_id',
6369        ),
6370        'origen_cuentat_id' =>
6371        array (
6372          'es' => 'catalog',
6373          'formato' => 'link_one_select',
6374          'to_table' => 'cuentat',
6375          'to_field' => 'cuentaT_id',
6376          'this_table' => 'cheque_log',
6377          'this_field' => 'origen_cuentat_id',
6378        ),
6379      ),
6380      'categoria' =>
6381      array (
6382        'categoria_id' =>
6383        array (
6384          'es' => 'catalog',
6385          'formato' => 'link_one_select',
6386          'to_table' => 'categoria',
6387          'to_field' => 'categoria_id',
6388          'this_table' => 'cheque_log',
6389          'this_field' => 'categoria_id',
6390        ),
6391      ),
6392      'cuentat_mov' =>
6393      array (
6394        'cuentat_mov_id' =>
6395        array (
6396          'es' => 'catalog',
6397          'formato' => 'link_one_select',
6398          'to_table' => 'cuentat_mov',
6399          'to_field' => 'cuentaT_mov_id',
6400          'this_table' => 'cheque_log',
6401          'this_field' => 'cuentat_mov_id',
6402        ),
6403      ),
6404    ),
6405    'links_from' =>
6406    array (
6407      'cheque' =>
6408      array (
6409        'es' => 'one2one',
6410      ),
6411    ),
6412  ),
6413  'cheque_pago' =>
6414  array (
6415    'es' => 'parent',
6416    'pk_single_field' => 'cheque_pago_id',
6417    'pk_single_type' => 'uuid',
6418    'label_field' => 'cheque_id',
6419    'has_seq' => false,
6420    'has_child' => true,
6421    'has_datetime' => true,
6422    'has_numeric' => true,
6423    'has_fckeditor' => true,
6424    'has_file_upload' => true,
6425    'links_to' =>
6426    array (
6427      'cheque' =>
6428      array (
6429        'cheque_id' =>
6430        array (
6431          'es' => 'catalog',
6432          'formato' => 'link_one_select',
6433          'to_table' => 'cheque',
6434          'to_field' => 'cheque_id',
6435          'this_table' => 'cheque_pago',
6436          'this_field' => 'cheque_id',
6437        ),
6438      ),
6439      'moneda' =>
6440      array (
6441        'moneda_id' =>
6442        array (
6443          'es' => 'catalog',
6444          'formato' => 'link_one_select',
6445          'to_table' => 'moneda',
6446          'to_field' => 'moneda_id',
6447          'this_table' => 'cheque_pago',
6448          'this_field' => 'moneda_id',
6449        ),
6450      ),
6451      'metodo_pago' =>
6452      array (
6453        'metodo_pago_id' =>
6454        array (
6455          'es' => 'catalog',
6456          'formato' => 'link_one_select',
6457          'to_table' => 'metodo_pago',
6458          'to_field' => 'metodo_pago_id',
6459          'this_table' => 'cheque_pago',
6460          'this_field' => 'metodo_pago_id',
6461        ),
6462      ),
6463      'banco_cuenta' =>
6464      array (
6465        'banco_cuenta_id' =>
6466        array (
6467          'es' => 'catalog',
6468          'formato' => 'link_one_select',
6469          'to_table' => 'banco_cuenta',
6470          'to_field' => 'banco_cuenta_id',
6471          'this_table' => 'cheque_pago',
6472          'this_field' => 'banco_cuenta_id',
6473        ),
6474      ),
6475      'banco_cuenta_mov_link' =>
6476      array (
6477        'banco_cuenta_mov_link_id' =>
6478        array (
6479          'es' => 'catalog',
6480          'formato' => 'link_one_select',
6481          'to_table' => 'banco_cuenta_mov_link',
6482          'to_field' => 'banco_cuenta_mov_link_id',
6483          'this_table' => 'cheque_pago',
6484          'this_field' => 'banco_cuenta_mov_link_id',
6485        ),
6486      ),
6487      'cuentat_mov' =>
6488      array (
6489        'cuenta_t_mov_id' =>
6490        array (
6491          'es' => 'catalog',
6492          'formato' => 'link_one_select',
6493          'to_table' => 'cuentat_mov',
6494          'to_field' => 'cuentaT_mov_id',
6495          'this_table' => 'cheque_pago',
6496          'this_field' => 'cuenta_t_mov_id',
6497        ),
6498      ),
6499      'cuentat' =>
6500      array (
6501        'cuentaT_id' =>
6502        array (
6503          'es' => 'catalog',
6504          'formato' => 'link_one_select',
6505          'to_table' => 'cuentat',
6506          'to_field' => 'cuentaT_id',
6507          'this_table' => 'cheque_pago',
6508          'this_field' => 'cuentaT_id',
6509        ),
6510      ),
6511      'empresa' =>
6512      array (
6513        'empresa_id' =>
6514        array (
6515          'es' => 'catalog',
6516          'formato' => 'link_one_select',
6517          'to_table' => 'empresa',
6518          'to_field' => 'empresa_id',
6519          'this_table' => 'cheque_pago',
6520          'this_field' => 'empresa_id',
6521        ),
6522      ),
6523      'tienda' =>
6524      array (
6525        'tienda_id' =>
6526        array (
6527          'es' => 'catalog',
6528          'formato' => 'link_one_select',
6529          'to_table' => 'tienda',
6530          'to_field' => 'tienda_id',
6531          'this_table' => 'cheque_pago',
6532          'this_field' => 'tienda_id',
6533        ),
6534      ),
6535    ),
6536    'links_from' =>
6537    array (
6538      'cheque_pago_log' =>
6539      array (
6540        'cheque_pago_id' =>
6541        array (
6542          'es' => 'child',
6543          'formato' => 'jqgrid',
6544          'to_table' => 'cheque_pago_log',
6545          'to_field' => 'cheque_pago_id',
6546          'this_table' => 'cheque_pago',
6547          'this_field' => 'cheque_pago_id',
6548          'restrict_delete' => false,
6549          'delete_with_parent' => true,
6550          'on_delete_set_to' => 0,
6551        ),
6552      ),
6553    ),
6554  ),
6555  'cheque_pago_log' =>
6556  array (
6557    'es' => 'child',
6558    'pk_single_field' => 'cheque_pago_log_id',
6559    'pk_single_type' => 'uuid',
6560    'label_field' => 'cheque_pago_id',
6561    'has_seq' => false,
6562    'has_child' => false,
6563    'has_date' => true,
6564    'has_datetime' => true,
6565    'has_numeric' => true,
6566    'has_file_upload' => true,
6567    'links_to' =>
6568    array (
6569      'cheque_pago' =>
6570      array (
6571        'cheque_pago_id' =>
6572        array (
6573          'es' => 'catalog',
6574          'formato' => 'link_one_select',
6575          'to_table' => 'cheque_pago',
6576          'to_field' => 'cheque_pago_id',
6577          'this_table' => 'cheque_pago_log',
6578          'this_field' => 'cheque_pago_id',
6579        ),
6580      ),
6581      'cheque' =>
6582      array (
6583        'cheque_id' =>
6584        array (
6585          'es' => 'catalog',
6586          'formato' => 'link_one_select',
6587          'to_table' => 'cheque',
6588          'to_field' => 'cheque_id',
6589          'this_table' => 'cheque_pago_log',
6590          'this_field' => 'cheque_id',
6591        ),
6592      ),
6593      'moneda' =>
6594      array (
6595        'moneda_id' =>
6596        array (
6597          'es' => 'catalog',
6598          'formato' => 'link_one_select',
6599          'to_table' => 'moneda',
6600          'to_field' => 'moneda_id',
6601          'this_table' => 'cheque_pago_log',
6602          'this_field' => 'moneda_id',
6603        ),
6604      ),
6605      'metodo_pago' =>
6606      array (
6607        'metodo_pago_id' =>
6608        array (
6609          'es' => 'catalog',
6610          'formato' => 'link_one_select',
6611          'to_table' => 'metodo_pago',
6612          'to_field' => 'metodo_pago_id',
6613          'this_table' => 'cheque_pago_log',
6614          'this_field' => 'metodo_pago_id',
6615        ),
6616      ),
6617      'banco_cuenta' =>
6618      array (
6619        'banco_cuenta_id' =>
6620        array (
6621          'es' => 'catalog',
6622          'formato' => 'link_one_select',
6623          'to_table' => 'banco_cuenta',
6624          'to_field' => 'banco_cuenta_id',
6625          'this_table' => 'cheque_pago_log',
6626          'this_field' => 'banco_cuenta_id',
6627        ),
6628      ),
6629      'banco_cuenta_mov_link' =>
6630      array (
6631        'banco_cuenta_mov_link_id' =>
6632        array (
6633          'es' => 'catalog',
6634          'formato' => 'link_one_select',
6635          'to_table' => 'banco_cuenta_mov_link',
6636          'to_field' => 'banco_cuenta_mov_link_id',
6637          'this_table' => 'cheque_pago_log',
6638          'this_field' => 'banco_cuenta_mov_link_id',
6639        ),
6640      ),
6641      'cuentat' =>
6642      array (
6643        'cuentaT_id' =>
6644        array (
6645          'es' => 'catalog',
6646          'formato' => 'link_one_select',
6647          'to_table' => 'cuentat',
6648          'to_field' => 'cuentaT_id',
6649          'this_table' => 'cheque_pago_log',
6650          'this_field' => 'cuentaT_id',
6651        ),
6652      ),
6653      'empresa' =>
6654      array (
6655        'empresa_id' =>
6656        array (
6657          'es' => 'catalog',
6658          'formato' => 'link_one_select',
6659          'to_table' => 'empresa',
6660          'to_field' => 'empresa_id',
6661          'this_table' => 'cheque_pago_log',
6662          'this_field' => 'empresa_id',
6663        ),
6664      ),
6665      'tienda' =>
6666      array (
6667        'tienda_id' =>
6668        array (
6669          'es' => 'catalog',
6670          'formato' => 'link_one_select',
6671          'to_table' => 'tienda',
6672          'to_field' => 'tienda_id',
6673          'this_table' => 'cheque_pago_log',
6674          'this_field' => 'tienda_id',
6675        ),
6676      ),
6677      'cuentat_mov' =>
6678      array (
6679        'cuenta_t_mov_id' =>
6680        array (
6681          'es' => 'catalog',
6682          'formato' => 'link_one_select',
6683          'to_table' => 'cuentat_mov',
6684          'to_field' => 'cuentaT_mov_id',
6685          'this_table' => 'cheque_pago_log',
6686          'this_field' => 'cuenta_t_mov_id',
6687        ),
6688      ),
6689    ),
6690  ),
6691  'cliente' =>
6692  array (
6693    'es' => 'parent',
6694    'pk_single_field' => 'cliente_id',
6695    'pk_single_type' => 'uuid',
6696    'label_field' => 'nombre',
6697    'vale' => true,
6698    'orden' => true,
6699    'has_seq' => false,
6700    'has_child' => true,
6701    'has_fckeditor' => true,
6702    'has_file_upload' => true,
6703    'has_numeric' => true,
6704    'has_date' => true,
6705    'links_from' =>
6706    array (
6707      'a_cuentas_live' =>
6708      array (
6709        'cliente_id' =>
6710        array (
6711          'es' => 'catalog_entry',
6712          'formato' => 'jqgrid',
6713          'to_table' => 'a_cuentas_live',
6714          'to_field' => 'cliente_id',
6715          'this_table' => 'cliente',
6716          'this_field' => 'cliente_id',
6717          'restrict_delete' => true,
6718          'delete_with_parent' => false,
6719          'on_delete_set_to' => 0,
6720        ),
6721      ),
6722      'banco_cuenta_mov' =>
6723      array (
6724        'contpaq_cliente_id' =>
6725        array (
6726          'es' => 'catalog_entry',
6727          'formato' => 'link_one_select',
6728          'to_table' => 'banco_cuenta_mov',
6729          'to_field' => 'contpaq_cliente_id',
6730          'this_table' => 'cliente',
6731          'this_field' => 'cliente_id',
6732          'restrict_delete' => true,
6733          'delete_with_parent' => false,
6734          'on_delete_set_to' => 0,
6735        ),
6736      ),
6737      'banco_cuenta_trans' =>
6738      array (
6739        'contpaq_cliente_id' =>
6740        array (
6741          'es' => 'catalog_entry',
6742          'formato' => 'link_one_select',
6743          'to_table' => 'banco_cuenta_trans',
6744          'to_field' => 'contpaq_cliente_id',
6745          'this_table' => 'cliente',
6746          'this_field' => 'cliente_id',
6747          'restrict_delete' => true,
6748          'delete_with_parent' => false,
6749          'on_delete_set_to' => 0,
6750        ),
6751      ),
6752      'cash' =>
6753      array (
6754        'cliente_id' =>
6755        array (
6756          'es' => 'catalog_entry',
6757          'formato' => 'jqgrid',
6758          'to_table' => 'cash',
6759          'to_field' => 'cliente_id',
6760          'this_table' => 'cliente',
6761          'this_field' => 'cliente_id',
6762          'restrict_delete' => true,
6763          'delete_with_parent' => false,
6764          'on_delete_set_to' => 0,
6765        ),
6766      ),
6767      'cheque' =>
6768      array (
6769        'cliente_id' =>
6770        array (
6771          'es' => 'catalog_entry',
6772          'formato' => 'jqgrid',
6773          'to_table' => 'cheque',
6774          'to_field' => 'cliente_id',
6775          'this_table' => 'cliente',
6776          'this_field' => 'cliente_id',
6777          'restrict_delete' => true,
6778          'delete_with_parent' => false,
6779          'on_delete_set_to' => 0,
6780        ),
6781        'cliente_proveedor_id' =>
6782        array (
6783          'es' => 'catalog_entry',
6784          'formato' => 'jqgrid',
6785          'to_table' => 'cheque',
6786          'to_field' => 'cliente_proveedor_id',
6787          'this_table' => 'cliente',
6788          'this_field' => 'cliente_id',
6789          'restrict_delete' => true,
6790          'delete_with_parent' => false,
6791          'on_delete_set_to' => 0,
6792        ),
6793      ),
6794      'cheque_log' =>
6795      array (
6796        'cliente_id' =>
6797        array (
6798          'es' => 'catalog_entry',
6799          'formato' => 'jqgrid',
6800          'to_table' => 'cheque_log',
6801          'to_field' => 'cliente_id',
6802          'this_table' => 'cliente',
6803          'this_field' => 'cliente_id',
6804          'restrict_delete' => true,
6805          'delete_with_parent' => false,
6806          'on_delete_set_to' => 0,
6807        ),
6808        'cliente_proveedor_id' =>
6809        array (
6810          'es' => 'catalog_entry',
6811          'formato' => 'jqgrid',
6812          'to_table' => 'cheque_log',
6813          'to_field' => 'cliente_proveedor_id',
6814          'this_table' => 'cliente',
6815          'this_field' => 'cliente_id',
6816          'restrict_delete' => true,
6817          'delete_with_parent' => false,
6818          'on_delete_set_to' => 0,
6819        ),
6820      ),
6821      'cliente_facturacion' =>
6822      array (
6823        'contpaq_cliente_id' =>
6824        array (
6825          'es' => 'catalog_entry',
6826          'formato' => 'link_one_select',
6827          'to_table' => 'cliente_facturacion',
6828          'to_field' => 'contpaq_cliente_id',
6829          'this_table' => 'cliente',
6830          'this_field' => 'cliente_id',
6831          'restrict_delete' => false,
6832          'delete_with_parent' => true,
6833          'on_delete_set_to' => 0,
6834        ),
6835      ),
6836      'clientes_saldos_cat' =>
6837      array (
6838        'cliente_id' =>
6839        array (
6840          'es' => 'catalog_entry',
6841          'formato' => 'link_one_select',
6842          'to_table' => 'clientes_saldos_cat',
6843          'to_field' => 'cliente_id',
6844          'this_table' => 'cliente',
6845          'this_field' => 'cliente_id',
6846          'restrict_delete' => false,
6847          'delete_with_parent' => true,
6848          'on_delete_set_to' => 0,
6849        ),
6850        'saldo_cliente_moneda_id' =>
6851        array (
6852          'es' => 'catalog_entry',
6853          'formato' => 'link_one_select',
6854          'to_table' => 'clientes_saldos_cat',
6855          'to_field' => 'saldo_cliente_moneda_id',
6856          'this_table' => 'cliente',
6857          'this_field' => 'cliente_id',
6858          'restrict_delete' => true,
6859          'delete_with_parent' => false,
6860          'on_delete_set_to' => 0,
6861        ),
6862      ),
6863      'clientes_saldos_live' =>
6864      array (
6865        'cliente_id' =>
6866        array (
6867          'es' => 'catalog_entry',
6868          'formato' => 'link_one_select',
6869          'to_table' => 'clientes_saldos_live',
6870          'to_field' => 'cliente_id',
6871          'this_table' => 'cliente',
6872          'this_field' => 'cliente_id',
6873          'restrict_delete' => false,
6874          'delete_with_parent' => true,
6875          'on_delete_set_to' => 0,
6876        ),
6877        'saldo_cliente_moneda_id' =>
6878        array (
6879          'es' => 'catalog_entry',
6880          'formato' => 'link_one_select',
6881          'to_table' => 'clientes_saldos_live',
6882          'to_field' => 'saldo_cliente_moneda_id',
6883          'this_table' => 'cliente',
6884          'this_field' => 'cliente_id',
6885          'restrict_delete' => true,
6886          'delete_with_parent' => false,
6887          'on_delete_set_to' => 0,
6888        ),
6889      ),
6890      'compra' =>
6891      array (
6892        'cliente_id' =>
6893        array (
6894          'es' => 'catalog_entry',
6895          'formato' => 'jqgrid',
6896          'to_table' => 'compra',
6897          'to_field' => 'cliente_id',
6898          'this_table' => 'cliente',
6899          'this_field' => 'cliente_id',
6900          'restrict_delete' => true,
6901          'delete_with_parent' => false,
6902          'on_delete_set_to' => 0,
6903        ),
6904        'cliente_proveedor_id' =>
6905        array (
6906          'es' => 'catalog_entry',
6907          'formato' => 'jqgrid',
6908          'to_table' => 'compra',
6909          'to_field' => 'cliente_proveedor_id',
6910          'this_table' => 'cliente',
6911          'this_field' => 'cliente_id',
6912          'restrict_delete' => true,
6913          'delete_with_parent' => false,
6914          'on_delete_set_to' => 0,
6915        ),
6916      ),
6917      'compra_log' =>
6918      array (
6919        'cliente_id' =>
6920        array (
6921          'es' => 'catalog_entry',
6922          'formato' => 'jqgrid',
6923          'to_table' => 'compra_log',
6924          'to_field' => 'cliente_id',
6925          'this_table' => 'cliente',
6926          'this_field' => 'cliente_id',
6927          'restrict_delete' => true,
6928          'delete_with_parent' => false,
6929          'on_delete_set_to' => 0,
6930        ),
6931        'cliente_proveedor_id' =>
6932        array (
6933          'es' => 'catalog_entry',
6934          'formato' => 'jqgrid',
6935          'to_table' => 'compra_log',
6936          'to_field' => 'cliente_proveedor_id',
6937          'this_table' => 'cliente',
6938          'this_field' => 'cliente_id',
6939          'restrict_delete' => true,
6940          'delete_with_parent' => false,
6941          'on_delete_set_to' => 0,
6942        ),
6943      ),
6944      'cp_cliente' =>
6945      array (
6946        'cliente_id' =>
6947        array (
6948          'es' => 'child',
6949          'formato' => 'jqgrid',
6950          'to_table' => 'cp_cliente',
6951          'to_field' => 'cliente_id',
6952          'this_table' => 'cliente',
6953          'this_field' => 'cliente_id',
6954          'restrict_delete' => true,
6955          'delete_with_parent' => false,
6956          'on_delete_set_to' => 0,
6957        ),
6958      ),
6959      'cuentat_a_banco' =>
6960      array (
6961        'contpaq_cliente_id' =>
6962        array (
6963          'es' => 'catalog_entry',
6964          'formato' => 'link_one_select',
6965          'to_table' => 'cuentat_a_banco',
6966          'to_field' => 'contpaq_cliente_id',
6967          'this_table' => 'cliente',
6968          'this_field' => 'cliente_id',
6969          'restrict_delete' => true,
6970          'delete_with_parent' => false,
6971          'on_delete_set_to' => 0,
6972        ),
6973      ),
6974      'cuentat_a_banco_tc' =>
6975      array (
6976        'contpaq_cliente_id' =>
6977        array (
6978          'es' => 'catalog_entry',
6979          'formato' => 'link_one_select',
6980          'to_table' => 'cuentat_a_banco_tc',
6981          'to_field' => 'contpaq_cliente_id',
6982          'this_table' => 'cliente',
6983          'this_field' => 'cliente_id',
6984          'restrict_delete' => true,
6985          'delete_with_parent' => false,
6986          'on_delete_set_to' => 0,
6987        ),
6988      ),
6989      'doctos' =>
6990      array (
6991        'cliente_id' =>
6992        array (
6993          'es' => 'catalog_entry',
6994          'formato' => 'jqgrid',
6995          'to_table' => 'doctos',
6996          'to_field' => 'cliente_id',
6997          'this_table' => 'cliente',
6998          'this_field' => 'cliente_id',
6999          'restrict_delete' => true,
7000          'delete_with_parent' => false,
7001          'on_delete_set_to' => 0,
7002        ),
7003        'saldo_cliente_moneda_id' =>
7004        array (
7005          'es' => 'catalog_entry',
7006          'formato' => 'jqgrid',
7007          'to_table' => 'doctos',
7008          'to_field' => 'saldo_cliente_moneda_id',
7009          'this_table' => 'cliente',
7010          'this_field' => 'cliente_id',
7011          'restrict_delete' => true,
7012          'delete_with_parent' => false,
7013          'on_delete_set_to' => 0,
7014        ),
7015      ),
7016      'fiduciario_contenedor' =>
7017      array (
7018        'cliente_id' =>
7019        array (
7020          'es' => 'catalog_entry',
7021          'formato' => 'jqgrid',
7022          'to_table' => 'fiduciario_contenedor',
7023          'to_field' => 'cliente_id',
7024          'this_table' => 'cliente',
7025          'this_field' => 'cliente_id',
7026          'restrict_delete' => true,
7027          'delete_with_parent' => false,
7028          'on_delete_set_to' => 0,
7029        ),
7030      ),
7031      'movimiento_divisa' =>
7032      array (
7033        'cliente_id' =>
7034        array (
7035          'es' => 'catalog_entry',
7036          'formato' => 'jqgrid',
7037          'to_table' => 'movimiento_divisa',
7038          'to_field' => 'cliente_id',
7039          'this_table' => 'cliente',
7040          'this_field' => 'cliente_id',
7041          'restrict_delete' => true,
7042          'delete_with_parent' => false,
7043          'on_delete_set_to' => 0,
7044        ),
7045      ),
7046      'nota' =>
7047      array (
7048        'cliente_id' =>
7049        array (
7050          'es' => 'catalog_entry',
7051          'formato' => 'jqgrid',
7052          'to_table' => 'nota',
7053          'to_field' => 'cliente_id',
7054          'this_table' => 'cliente',
7055          'this_field' => 'cliente_id',
7056          'restrict_delete' => true,
7057          'delete_with_parent' => false,
7058          'on_delete_set_to' => 0,
7059        ),
7060      ),
7061      'nota_bodega' =>
7062      array (
7063        'cliente_id' =>
7064        array (
7065          'es' => 'catalog_entry',
7066          'formato' => 'jqgrid',
7067          'to_table' => 'nota_bodega',
7068          'to_field' => 'cliente_id',
7069          'this_table' => 'cliente',
7070          'this_field' => 'cliente_id',
7071          'restrict_delete' => true,
7072          'delete_with_parent' => false,
7073          'on_delete_set_to' => 0,
7074        ),
7075        'cliente_actual_id' =>
7076        array (
7077          'es' => 'catalog_entry',
7078          'formato' => 'jqgrid',
7079          'to_table' => 'nota_bodega',
7080          'to_field' => 'cliente_actual_id',
7081          'this_table' => 'cliente',
7082          'this_field' => 'cliente_id',
7083          'restrict_delete' => true,
7084          'delete_with_parent' => false,
7085          'on_delete_set_to' => 0,
7086        ),
7087      ),
7088      'nota_bodega_autorizacion' =>
7089      array (
7090        'cliente_id' =>
7091        array (
7092          'es' => 'catalog_entry',
7093          'formato' => 'jqgrid',
7094          'to_table' => 'nota_bodega_autorizacion',
7095          'to_field' => 'cliente_id',
7096          'this_table' => 'cliente',
7097          'this_field' => 'cliente_id',
7098          'restrict_delete' => true,
7099          'delete_with_parent' => false,
7100          'on_delete_set_to' => 0,
7101        ),
7102        'cliente_actual_id' =>
7103        array (
7104          'es' => 'catalog_entry',
7105          'formato' => 'jqgrid',
7106          'to_table' => 'nota_bodega_autorizacion',
7107          'to_field' => 'cliente_actual_id',
7108          'this_table' => 'cliente',
7109          'this_field' => 'cliente_id',
7110          'restrict_delete' => true,
7111          'delete_with_parent' => false,
7112          'on_delete_set_to' => 0,
7113        ),
7114      ),
7115      'nota_bodega_log' =>
7116      array (
7117        'cliente_id' =>
7118        array (
7119          'es' => 'catalog_entry',
7120          'formato' => 'jqgrid',
7121          'to_table' => 'nota_bodega_log',
7122          'to_field' => 'cliente_id',
7123          'this_table' => 'cliente',
7124          'this_field' => 'cliente_id',
7125          'restrict_delete' => true,
7126          'delete_with_parent' => false,
7127          'on_delete_set_to' => 0,
7128        ),
7129        'cliente_actual_id' =>
7130        array (
7131          'es' => 'catalog_entry',
7132          'formato' => 'jqgrid',
7133          'to_table' => 'nota_bodega_log',
7134          'to_field' => 'cliente_actual_id',
7135          'this_table' => 'cliente',
7136          'this_field' => 'cliente_id',
7137          'restrict_delete' => true,
7138          'delete_with_parent' => false,
7139          'on_delete_set_to' => 0,
7140        ),
7141      ),
7142      'nota_bodega_verificacion' =>
7143      array (
7144        'cliente_id' =>
7145        array (
7146          'es' => 'catalog_entry',
7147          'formato' => 'jqgrid',
7148          'to_table' => 'nota_bodega_verificacion',
7149          'to_field' => 'cliente_id',
7150          'this_table' => 'cliente',
7151          'this_field' => 'cliente_id',
7152          'restrict_delete' => true,
7153          'delete_with_parent' => false,
7154          'on_delete_set_to' => 0,
7155        ),
7156        'cliente_actual_id' =>
7157        array (
7158          'es' => 'catalog_entry',
7159          'formato' => 'jqgrid',
7160          'to_table' => 'nota_bodega_verificacion',
7161          'to_field' => 'cliente_actual_id',
7162          'this_table' => 'cliente',
7163          'this_field' => 'cliente_id',
7164          'restrict_delete' => true,
7165          'delete_with_parent' => false,
7166          'on_delete_set_to' => 0,
7167        ),
7168      ),
7169      'origen_bodega' =>
7170      array (
7171        'cliente_id' =>
7172        array (
7173          'es' => 'catalog_entry',
7174          'formato' => 'jqgrid',
7175          'to_table' => 'origen_bodega',
7176          'to_field' => 'cliente_id',
7177          'this_table' => 'cliente',
7178          'this_field' => 'cliente_id',
7179          'restrict_delete' => true,
7180          'delete_with_parent' => false,
7181          'on_delete_set_to' => 0,
7182        ),
7183      ),
7184      'pagare' =>
7185      array (
7186        'cliente_id' =>
7187        array (
7188          'es' => 'catalog_entry',
7189          'formato' => 'jqgrid',
7190          'to_table' => 'pagare',
7191          'to_field' => 'cliente_id',
7192          'this_table' => 'cliente',
7193          'this_field' => 'cliente_id',
7194          'restrict_delete' => true,
7195          'delete_with_parent' => false,
7196          'on_delete_set_to' => 0,
7197        ),
7198        'cliente_proveedor_id' =>
7199        array (
7200          'es' => 'catalog_entry',
7201          'formato' => 'jqgrid',
7202          'to_table' => 'pagare',
7203          'to_field' => 'cliente_proveedor_id',
7204          'this_table' => 'cliente',
7205          'this_field' => 'cliente_id',
7206          'restrict_delete' => true,
7207          'delete_with_parent' => false,
7208          'on_delete_set_to' => 0,
7209        ),
7210      ),
7211      'pagare_log' =>
7212      array (
7213        'cliente_id' =>
7214        array (
7215          'es' => 'catalog_entry',
7216          'formato' => 'jqgrid',
7217          'to_table' => 'pagare_log',
7218          'to_field' => 'cliente_id',
7219          'this_table' => 'cliente',
7220          'this_field' => 'cliente_id',
7221          'restrict_delete' => true,
7222          'delete_with_parent' => false,
7223          'on_delete_set_to' => 0,
7224        ),
7225        'cliente_proveedor_id' =>
7226        array (
7227          'es' => 'catalog_entry',
7228          'formato' => 'jqgrid',
7229          'to_table' => 'pagare_log',
7230          'to_field' => 'cliente_proveedor_id',
7231          'this_table' => 'cliente',
7232          'this_field' => 'cliente_id',
7233          'restrict_delete' => true,
7234          'delete_with_parent' => false,
7235          'on_delete_set_to' => 0,
7236        ),
7237      ),
7238      'pagare_test' =>
7239      array (
7240        'cliente_id' =>
7241        array (
7242          'es' => 'catalog_entry',
7243          'formato' => 'jqgrid',
7244          'to_table' => 'pagare_test',
7245          'to_field' => 'cliente_id',
7246          'this_table' => 'cliente',
7247          'this_field' => 'cliente_id',
7248          'restrict_delete' => true,
7249          'delete_with_parent' => false,
7250          'on_delete_set_to' => 0,
7251        ),
7252        'cliente_proveedor_id' =>
7253        array (
7254          'es' => 'catalog_entry',
7255          'formato' => 'jqgrid',
7256          'to_table' => 'pagare_test',
7257          'to_field' => 'cliente_proveedor_id',
7258          'this_table' => 'cliente',
7259          'this_field' => 'cliente_id',
7260          'restrict_delete' => true,
7261          'delete_with_parent' => false,
7262          'on_delete_set_to' => 0,
7263        ),
7264      ),
7265      'pedido' =>
7266      array (
7267        'cliente_id' =>
7268        array (
7269          'es' => 'catalog_entry',
7270          'formato' => 'jqgrid',
7271          'to_table' => 'pedido',
7272          'to_field' => 'cliente_id',
7273          'this_table' => 'cliente',
7274          'this_field' => 'cliente_id',
7275          'restrict_delete' => true,
7276          'delete_with_parent' => false,
7277          'on_delete_set_to' => 0,
7278        ),
7279      ),
7280      'vale' =>
7281      array (
7282        'cliente_id' =>
7283        array (
7284          'es' => 'catalog_entry',
7285          'formato' => 'jqgrid',
7286          'to_table' => 'vale',
7287          'to_field' => 'cliente_id',
7288          'this_table' => 'cliente',
7289          'this_field' => 'cliente_id',
7290          'restrict_delete' => true,
7291          'delete_with_parent' => false,
7292          'on_delete_set_to' => 0,
7293        ),
7294      ),
7295      'vale_log' =>
7296      array (
7297        'cliente_id' =>
7298        array (
7299          'es' => 'catalog_entry',
7300          'formato' => 'jqgrid',
7301          'to_table' => 'vale_log',
7302          'to_field' => 'cliente_id',
7303          'this_table' => 'cliente',
7304          'this_field' => 'cliente_id',
7305          'restrict_delete' => true,
7306          'delete_with_parent' => false,
7307          'on_delete_set_to' => 0,
7308        ),
7309      ),
7310      'cliente_resumen' =>
7311      array (
7312        'es' => 'one2one',
7313      ),
7314    ),
7315    'links_to' =>
7316    array (
7317      'tienda' =>
7318      array (
7319        'tienda_id' =>
7320        array (
7321          'es' => 'catalog',
7322          'formato' => 'link_one_select',
7323          'to_table' => 'tienda',
7324          'to_field' => 'tienda_id',
7325          'this_table' => 'cliente',
7326          'this_field' => 'tienda_id',
7327        ),
7328      ),
7329      'moneda' =>
7330      array (
7331        'saldo_cliente_moneda_id' =>
7332        array (
7333          'es' => 'catalog',
7334          'formato' => 'link_one_select',
7335          'to_table' => 'moneda',
7336          'to_field' => 'moneda_id',
7337          'this_table' => 'cliente',
7338          'this_field' => 'saldo_cliente_moneda_id',
7339        ),
7340      ),
7341    ),
7342  ),
7343  'cliente_facturacion' =>
7344  array (
7345    'es' => 'data',
7346    'pk_single_field' => 'cliente_facturacion_id',
7347    'pk_single_type' => 'uuid',
7348    'label_field' => 'nombre',
7349    'has_seq' => false,
7350    'has_child' => false,
7351    'links_to' =>
7352    array (
7353      'cliente' =>
7354      array (
7355        'contpaq_cliente_id' =>
7356        array (
7357          'es' => 'catalog',
7358          'formato' => 'link_one_select',
7359          'to_table' => 'cliente',
7360          'to_field' => 'cliente_id',
7361          'this_table' => 'cliente_facturacion',
7362          'this_field' => 'contpaq_cliente_id',
7363        ),
7364      ),
7365    ),
7366  ),
7367  'cliente_hist' =>
7368  array (
7369    'es' => 'data',
7370    'pk_single_field' => 'history_id',
7371    'pk_single_type' => 'auto_increment',
7372    'label_field' => 'action',
7373    'has_seq' => false,
7374    'has_child' => false,
7375    'has_datetime' => true,
7376    'links_from' =>
7377    array (
7378      'ajuste_hist' =>
7379      array (
7380        'es' => 'one2one',
7381      ),
7382      'bodega_hist' =>
7383      array (
7384        'es' => 'one2one',
7385      ),
7386      'cheque_hist' =>
7387      array (
7388        'es' => 'one2one',
7389      ),
7390      'color_hist' =>
7391      array (
7392        'es' => 'one2one',
7393      ),
7394      'estado_bodega_hist' =>
7395      array (
7396        'es' => 'one2one',
7397      ),
7398      'importador_hist' =>
7399      array (
7400        'es' => 'one2one',
7401      ),
7402      'nota_bodega_hist' =>
7403      array (
7404        'es' => 'one2one',
7405      ),
7406      'nota_bodega_verificacion_hist' =>
7407      array (
7408        'es' => 'one2one',
7409      ),
7410      'origen_bodega_bodega_hist' =>
7411      array (
7412        'es' => 'one2one',
7413      ),
7414      'origen_bodega_hist' =>
7415      array (
7416        'es' => 'one2one',
7417      ),
7418      'pagare_hist' =>
7419      array (
7420        'es' => 'one2one',
7421      ),
7422      'pedido_hist' =>
7423      array (
7424        'es' => 'one2one',
7425      ),
7426      'permiso_bodega_hist' =>
7427      array (
7428        'es' => 'one2one',
7429      ),
7430      'producto_bodega_hist' =>
7431      array (
7432        'es' => 'one2one',
7433      ),
7434      'producto_color_hist' =>
7435      array (
7436        'es' => 'one2one',
7437      ),
7438      'producto_general_hist' =>
7439      array (
7440        'es' => 'one2one',
7441      ),
7442      'solicitud_carta_porte_hist' =>
7443      array (
7444        'es' => 'one2one',
7445      ),
7446      'tienda_hist' =>
7447      array (
7448        'es' => 'one2one',
7449      ),
7450      'vale_hist' =>
7451      array (
7452        'es' => 'one2one',
7453      ),
7454    ),
7455  ),
7456  'cliente_resumen' =>
7457  array (
7458    'es' => 'data',
7459    'pk_single_field' => 'cliente_id',
7460    'pk_single_type' => 'uuid',
7461    'label_field' => 'cuantos_vales_pagados',
7462    'has_seq' => false,
7463    'has_child' => false,
7464    'has_numeric' => true,
7465    'has_date' => true,
7466    'links_from' =>
7467    array (
7468      'cliente' =>
7469      array (
7470        'es' => 'one2one',
7471      ),
7472    ),
7473  ),
7474  'clientes_saldos_cat' =>
7475  array (
7476    'es' => 'child',
7477    'PK' =>
7478    array (
7479      0 => 'cliente_id',
7480      1 => 'categoria_id',
7481    ),
7482    'label_field' => 'nombre',
7483    'has_seq' => false,
7484    'has_child' => false,
7485    'has_date' => true,
7486    'links_to' =>
7487    array (
7488      'cliente' =>
7489      array (
7490        'cliente_id' =>
7491        array (
7492          'es' => 'catalog',
7493          'formato' => 'link_one_select',
7494          'to_table' => 'cliente',
7495          'to_field' => 'cliente_id',
7496          'this_table' => 'clientes_saldos_cat',
7497          'this_field' => 'cliente_id',
7498        ),
7499        'saldo_cliente_moneda_id' =>
7500        array (
7501          'es' => 'catalog',
7502          'formato' => 'link_one_select',
7503          'to_table' => 'cliente',
7504          'to_field' => 'cliente_id',
7505          'this_table' => 'clientes_saldos_cat',
7506          'this_field' => 'saldo_cliente_moneda_id',
7507        ),
7508      ),
7509      'categoria' =>
7510      array (
7511        'categoria_id' =>
7512        array (
7513          'es' => 'catalog',
7514          'formato' => 'link_one_select',
7515          'to_table' => 'categoria',
7516          'to_field' => 'categoria_id',
7517          'this_table' => 'clientes_saldos_cat',
7518          'this_field' => 'categoria_id',
7519        ),
7520      ),
7521      'tienda' =>
7522      array (
7523        'tienda_id' =>
7524        array (
7525          'es' => 'catalog',
7526          'formato' => 'link_one_select',
7527          'to_table' => 'tienda',
7528          'to_field' => 'tienda_id',
7529          'this_table' => 'clientes_saldos_cat',
7530          'this_field' => 'tienda_id',
7531        ),
7532      ),
7533    ),
7534  ),
7535  'clientes_saldos_live' =>
7536  array (
7537    'es' => 'child',
7538    'PK' =>
7539    array (
7540      0 => 'cliente_id',
7541      1 => 'categoria_id',
7542    ),
7543    'label_field' => 'nombre',
7544    'has_seq' => false,
7545    'has_child' => false,
7546    'has_date' => true,
7547    'links_to' =>
7548    array (
7549      'cliente' =>
7550      array (
7551        'cliente_id' =>
7552        array (
7553          'es' => 'catalog',
7554          'formato' => 'link_one_select',
7555          'to_table' => 'cliente',
7556          'to_field' => 'cliente_id',
7557          'this_table' => 'clientes_saldos_live',
7558          'this_field' => 'cliente_id',
7559        ),
7560        'saldo_cliente_moneda_id' =>
7561        array (
7562          'es' => 'catalog',
7563          'formato' => 'link_one_select',
7564          'to_table' => 'cliente',
7565          'to_field' => 'cliente_id',
7566          'this_table' => 'clientes_saldos_live',
7567          'this_field' => 'saldo_cliente_moneda_id',
7568        ),
7569      ),
7570      'categoria' =>
7571      array (
7572        'categoria_id' =>
7573        array (
7574          'es' => 'catalog',
7575          'formato' => 'link_one_select',
7576          'to_table' => 'categoria',
7577          'to_field' => 'categoria_id',
7578          'this_table' => 'clientes_saldos_live',
7579          'this_field' => 'categoria_id',
7580        ),
7581      ),
7582      'tienda' =>
7583      array (
7584        'tienda_id' =>
7585        array (
7586          'es' => 'catalog',
7587          'formato' => 'link_one_select',
7588          'to_table' => 'tienda',
7589          'to_field' => 'tienda_id',
7590          'this_table' => 'clientes_saldos_live',
7591          'this_field' => 'tienda_id',
7592        ),
7593      ),
7594    ),
7595  ),
7596  'color' =>
7597  array (
7598    'es' => 'parent',
7599    'pk_single_field' => 'color_id',
7600    'pk_single_type' => 'uuid',
7601    'label_field' => 'color',
7602    'orden' => true,
7603    'has_seq' => false,
7604    'has_child' => true,
7605    'UNI' =>
7606    array (
7607      0 => 'color',
7608    ),
7609    'links_from' =>
7610    array (
7611      'ajuste_item' =>
7612      array (
7613        'color_id' =>
7614        array (
7615          'es' => 'catalog_entry',
7616          'formato' => 'jqgrid',
7617          'to_table' => 'ajuste_item',
7618          'to_field' => 'color_id',
7619          'this_table' => 'color',
7620          'this_field' => 'color_id',
7621          'restrict_delete' => true,
7622          'delete_with_parent' => false,
7623          'on_delete_set_to' => 0,
7624        ),
7625      ),
7626      'bodega_existencia_diaria' =>
7627      array (
7628        'color_id' =>
7629        array (
7630          'es' => 'catalog_entry',
7631          'formato' => 'jqgrid',
7632          'to_table' => 'bodega_existencia_diaria',
7633          'to_field' => 'color_id',
7634          'this_table' => 'color',
7635          'this_field' => 'color_id',
7636          'restrict_delete' => true,
7637          'delete_with_parent' => false,
7638          'on_delete_set_to' => 0,
7639        ),
7640      ),
7641      'nota_bodega_items' =>
7642      array (
7643        'color_id' =>
7644        array (
7645          'es' => 'catalog_entry',
7646          'formato' => 'jqgrid',
7647          'to_table' => 'nota_bodega_items',
7648          'to_field' => 'color_id',
7649          'this_table' => 'color',
7650          'this_field' => 'color_id',
7651          'restrict_delete' => true,
7652          'delete_with_parent' => false,
7653          'on_delete_set_to' => 0,
7654        ),
7655      ),
7656      'nota_bodega_items_log' =>
7657      array (
7658        'color_id' =>
7659        array (
7660          'es' => 'catalog_entry',
7661          'formato' => 'jqgrid',
7662          'to_table' => 'nota_bodega_items_log',
7663          'to_field' => 'color_id',
7664          'this_table' => 'color',
7665          'this_field' => 'color_id',
7666          'restrict_delete' => true,
7667          'delete_with_parent' => false,
7668          'on_delete_set_to' => 0,
7669        ),
7670      ),
7671      'nota_bodega_verificacion_items' =>
7672      array (
7673        'color_id' =>
7674        array (
7675          'es' => 'catalog_entry',
7676          'formato' => 'jqgrid',
7677          'to_table' => 'nota_bodega_verificacion_items',
7678          'to_field' => 'color_id',
7679          'this_table' => 'color',
7680          'this_field' => 'color_id',
7681          'restrict_delete' => true,
7682          'delete_with_parent' => false,
7683          'on_delete_set_to' => 0,
7684        ),
7685      ),
7686      'pedido_items' =>
7687      array (
7688        'color_id' =>
7689        array (
7690          'es' => 'catalog_entry',
7691          'formato' => 'jqgrid',
7692          'to_table' => 'pedido_items',
7693          'to_field' => 'color_id',
7694          'this_table' => 'color',
7695          'this_field' => 'color_id',
7696          'restrict_delete' => true,
7697          'delete_with_parent' => false,
7698          'on_delete_set_to' => 0,
7699        ),
7700      ),
7701      'pedido_recomienda_items' =>
7702      array (
7703        'color_id' =>
7704        array (
7705          'es' => 'catalog_entry',
7706          'formato' => 'jqgrid',
7707          'to_table' => 'pedido_recomienda_items',
7708          'to_field' => 'color_id',
7709          'this_table' => 'color',
7710          'this_field' => 'color_id',
7711          'restrict_delete' => true,
7712          'delete_with_parent' => false,
7713          'on_delete_set_to' => 0,
7714        ),
7715      ),
7716      'pedir_producto' =>
7717      array (
7718        'color_id' =>
7719        array (
7720          'es' => 'catalog_entry',
7721          'formato' => 'jqgrid',
7722          'to_table' => 'pedir_producto',
7723          'to_field' => 'color_id',
7724          'this_table' => 'color',
7725          'this_field' => 'color_id',
7726          'restrict_delete' => true,
7727          'delete_with_parent' => false,
7728          'on_delete_set_to' => 0,
7729        ),
7730      ),
7731      'producto_bodega' =>
7732      array (
7733        'color_id' =>
7734        array (
7735          'es' => 'catalog_entry',
7736          'formato' => 'jqgrid',
7737          'to_table' => 'producto_bodega',
7738          'to_field' => 'color_id',
7739          'this_table' => 'color',
7740          'this_field' => 'color_id',
7741          'restrict_delete' => true,
7742          'delete_with_parent' => false,
7743          'on_delete_set_to' => 0,
7744        ),
7745      ),
7746      'producto_bodega_verificacion' =>
7747      array (
7748        'color_id' =>
7749        array (
7750          'es' => 'catalog_entry',
7751          'formato' => 'jqgrid',
7752          'to_table' => 'producto_bodega_verificacion',
7753          'to_field' => 'color_id',
7754          'this_table' => 'color',
7755          'this_field' => 'color_id',
7756          'restrict_delete' => true,
7757          'delete_with_parent' => false,
7758          'on_delete_set_to' => 0,
7759        ),
7760      ),
7761      'producto_color' =>
7762      array (
7763        'color_id' =>
7764        array (
7765          'es' => 'child',
7766          'formato' => 'jqgrid',
7767          'to_table' => 'producto_color',
7768          'to_field' => 'color_id',
7769          'this_table' => 'color',
7770          'this_field' => 'color_id',
7771          'restrict_delete' => true,
7772          'delete_with_parent' => false,
7773          'on_delete_set_to' => 0,
7774        ),
7775      ),
7776      'producto_color_nuevo' =>
7777      array (
7778        'color_id' =>
7779        array (
7780          'es' => 'child',
7781          'formato' => 'jqgrid',
7782          'to_table' => 'producto_color_nuevo',
7783          'to_field' => 'color_id',
7784          'this_table' => 'color',
7785          'this_field' => 'color_id',
7786          'restrict_delete' => true,
7787          'delete_with_parent' => false,
7788          'on_delete_set_to' => 0,
7789        ),
7790      ),
7791      'producto_color_oculta' =>
7792      array (
7793        'color_id' =>
7794        array (
7795          'es' => 'child',
7796          'formato' => 'jqgrid',
7797          'to_table' => 'producto_color_oculta',
7798          'to_field' => 'color_id',
7799          'this_table' => 'color',
7800          'this_field' => 'color_id',
7801          'restrict_delete' => true,
7802          'delete_with_parent' => false,
7803          'on_delete_set_to' => 0,
7804        ),
7805      ),
7806      'reset_history' =>
7807      array (
7808        'color_id' =>
7809        array (
7810          'es' => 'catalog_entry',
7811          'formato' => 'jqgrid',
7812          'to_table' => 'reset_history',
7813          'to_field' => 'color_id',
7814          'this_table' => 'color',
7815          'this_field' => 'color_id',
7816          'restrict_delete' => true,
7817          'delete_with_parent' => false,
7818          'on_delete_set_to' => 0,
7819        ),
7820      ),
7821      'solicitud_carta_porte_items' =>
7822      array (
7823        'color_id' =>
7824        array (
7825          'es' => 'catalog_entry',
7826          'formato' => 'jqgrid',
7827          'to_table' => 'solicitud_carta_porte_items',
7828          'to_field' => 'color_id',
7829          'this_table' => 'color',
7830          'this_field' => 'color_id',
7831          'restrict_delete' => true,
7832          'delete_with_parent' => false,
7833          'on_delete_set_to' => 0,
7834        ),
7835      ),
7836    ),
7837  ),
7838  'color_hist' =>
7839  array (
7840    'es' => 'data',
7841    'pk_single_field' => 'history_id',
7842    'pk_single_type' => 'auto_increment',
7843    'label_field' => 'action',
7844    'has_seq' => false,
7845    'has_child' => false,
7846    'has_datetime' => true,
7847    'links_from' =>
7848    array (
7849      'ajuste_hist' =>
7850      array (
7851        'es' => 'one2one',
7852      ),
7853      'bodega_hist' =>
7854      array (
7855        'es' => 'one2one',
7856      ),
7857      'cheque_hist' =>
7858      array (
7859        'es' => 'one2one',
7860      ),
7861      'cliente_hist' =>
7862      array (
7863        'es' => 'one2one',
7864      ),
7865      'estado_bodega_hist' =>
7866      array (
7867        'es' => 'one2one',
7868      ),
7869      'importador_hist' =>
7870      array (
7871        'es' => 'one2one',
7872      ),
7873      'nota_bodega_hist' =>
7874      array (
7875        'es' => 'one2one',
7876      ),
7877      'nota_bodega_verificacion_hist' =>
7878      array (
7879        'es' => 'one2one',
7880      ),
7881      'origen_bodega_bodega_hist' =>
7882      array (
7883        'es' => 'one2one',
7884      ),
7885      'origen_bodega_hist' =>
7886      array (
7887        'es' => 'one2one',
7888      ),
7889      'pagare_hist' =>
7890      array (
7891        'es' => 'one2one',
7892      ),
7893      'pedido_hist' =>
7894      array (
7895        'es' => 'one2one',
7896      ),
7897      'permiso_bodega_hist' =>
7898      array (
7899        'es' => 'one2one',
7900      ),
7901      'producto_bodega_hist' =>
7902      array (
7903        'es' => 'one2one',
7904      ),
7905      'producto_color_hist' =>
7906      array (
7907        'es' => 'one2one',
7908      ),
7909      'producto_general_hist' =>
7910      array (
7911        'es' => 'one2one',
7912      ),
7913      'solicitud_carta_porte_hist' =>
7914      array (
7915        'es' => 'one2one',
7916      ),
7917      'tienda_hist' =>
7918      array (
7919        'es' => 'one2one',
7920      ),
7921      'vale_hist' =>
7922      array (
7923        'es' => 'one2one',
7924      ),
7925    ),
7926  ),
7927  'compra' =>
7928  array (
7929    'es' => 'parent',
7930    'pk_single_field' => 'compra_id',
7931    'pk_single_type' => 'uuid',
7932    'label_field' => 'cliente_id',
7933    'has_seq' => false,
7934    'has_child' => true,
7935    'has_numeric' => true,
7936    'has_date' => true,
7937    'has_file_upload' => true,
7938    'has_datetime' => true,
7939    'has_fckeditor' => true,
7940    'links_to' =>
7941    array (
7942      'cliente' =>
7943      array (
7944        'cliente_id' =>
7945        array (
7946          'es' => 'catalog',
7947          'formato' => 'link_one_select',
7948          'to_table' => 'cliente',
7949          'to_field' => 'cliente_id',
7950          'this_table' => 'compra',
7951          'this_field' => 'cliente_id',
7952        ),
7953        'cliente_proveedor_id' =>
7954        array (
7955          'es' => 'catalog',
7956          'formato' => 'link_one_select',
7957          'to_table' => 'cliente',
7958          'to_field' => 'cliente_id',
7959          'this_table' => 'compra',
7960          'this_field' => 'cliente_proveedor_id',
7961        ),
7962      ),
7963      'tienda' =>
7964      array (
7965        'tienda_id' =>
7966        array (
7967          'es' => 'catalog',
7968          'formato' => 'link_one_select',
7969          'to_table' => 'tienda',
7970          'to_field' => 'tienda_id',
7971          'this_table' => 'compra',
7972          'this_field' => 'tienda_id',
7973        ),
7974      ),
7975      'moneda' =>
7976      array (
7977        'moneda_id' =>
7978        array (
7979          'es' => 'catalog',
7980          'formato' => 'link_one_select',
7981          'to_table' => 'moneda',
7982          'to_field' => 'moneda_id',
7983          'this_table' => 'compra',
7984          'this_field' => 'moneda_id',
7985        ),
7986      ),
7987      'banco' =>
7988      array (
7989        'banco_id' =>
7990        array (
7991          'es' => 'catalog',
7992          'formato' => 'link_one_select',
7993          'to_table' => 'banco',
7994          'to_field' => 'banco_id',
7995          'this_table' => 'compra',
7996          'this_field' => 'banco_id',
7997        ),
7998      ),
7999      'cuentat' =>
8000      array (
8001        'cuentaT_deliveredto_id' =>
8002        array (
8003          'es' => 'catalog',
8004          'formato' => 'link_one_select',
8005          'to_table' => 'cuentat',
8006          'to_field' => 'cuentaT_id',
8007          'this_table' => 'compra',
8008          'this_field' => 'cuentaT_deliveredto_id',
8009        ),
8010        'cuentaT_transferto_id' =>
8011        array (
8012          'es' => 'catalog',
8013          'formato' => 'link_one_select',
8014          'to_table' => 'cuentat',
8015          'to_field' => 'cuentaT_id',
8016          'this_table' => 'compra',
8017          'this_field' => 'cuentaT_transferto_id',
8018        ),
8019        'origen_cuentat_id' =>
8020        array (
8021          'es' => 'catalog',
8022          'formato' => 'link_one_select',
8023          'to_table' => 'cuentat',
8024          'to_field' => 'cuentaT_id',
8025          'this_table' => 'compra',
8026          'this_field' => 'origen_cuentat_id',
8027        ),
8028      ),
8029      'categoria' =>
8030      array (
8031        'categoria_id' =>
8032        array (
8033          'es' => 'catalog',
8034          'formato' => 'link_one_select',
8035          'to_table' => 'categoria',
8036          'to_field' => 'categoria_id',
8037          'this_table' => 'compra',
8038          'this_field' => 'categoria_id',
8039        ),
8040      ),
8041      'cuentat_mov' =>
8042      array (
8043        'cuentat_mov_id' =>
8044        array (
8045          'es' => 'catalog',
8046          'formato' => 'link_one_select',
8047          'to_table' => 'cuentat_mov',
8048          'to_field' => 'cuentaT_mov_id',
8049          'this_table' => 'compra',
8050          'this_field' => 'cuentat_mov_id',
8051        ),
8052      ),
8053    ),
8054    'links_from' =>
8055    array (
8056      'compra_pago' =>
8057      array (
8058        'compra_id' =>
8059        array (
8060          'es' => 'child',
8061          'formato' => 'jqgrid',
8062          'to_table' => 'compra_pago',
8063          'to_field' => 'compra_id',
8064          'this_table' => 'compra',
8065          'this_field' => 'compra_id',
8066          'restrict_delete' => true,
8067          'delete_with_parent' => false,
8068          'on_delete_set_to' => 0,
8069        ),
8070      ),
8071      'compra_pago_log' =>
8072      array (
8073        'compra_id' =>
8074        array (
8075          'es' => 'child',
8076          'formato' => 'jqgrid',
8077          'to_table' => 'compra_pago_log',
8078          'to_field' => 'compra_id',
8079          'this_table' => 'compra',
8080          'this_field' => 'compra_id',
8081          'restrict_delete' => true,
8082          'delete_with_parent' => false,
8083          'on_delete_set_to' => 0,
8084        ),
8085      ),
8086      'compra_log' =>
8087      array (
8088        'es' => 'one2one',
8089      ),
8090    ),
8091  ),
8092  'compra_log' =>
8093  array (
8094    'es' => 'child',
8095    'pk_single_field' => 'compra_id',
8096    'pk_single_type' => 'uuid',
8097    'label_field' => 'cliente_id',
8098    'has_seq' => false,
8099    'has_child' => false,
8100    'has_numeric' => true,
8101    'has_date' => true,
8102    'has_fckeditor' => true,
8103    'has_file_upload' => true,
8104    'has_datetime' => true,
8105    'links_to' =>
8106    array (
8107      'cliente' =>
8108      array (
8109        'cliente_id' =>
8110        array (
8111          'es' => 'catalog',
8112          'formato' => 'link_one_select',
8113          'to_table' => 'cliente',
8114          'to_field' => 'cliente_id',
8115          'this_table' => 'compra_log',
8116          'this_field' => 'cliente_id',
8117        ),
8118        'cliente_proveedor_id' =>
8119        array (
8120          'es' => 'catalog',
8121          'formato' => 'link_one_select',
8122          'to_table' => 'cliente',
8123          'to_field' => 'cliente_id',
8124          'this_table' => 'compra_log',
8125          'this_field' => 'cliente_proveedor_id',
8126        ),
8127      ),
8128      'tienda' =>
8129      array (
8130        'tienda_id' =>
8131        array (
8132          'es' => 'catalog',
8133          'formato' => 'link_one_select',
8134          'to_table' => 'tienda',
8135          'to_field' => 'tienda_id',
8136          'this_table' => 'compra_log',
8137          'this_field' => 'tienda_id',
8138        ),
8139      ),
8140      'moneda' =>
8141      array (
8142        'moneda_id' =>
8143        array (
8144          'es' => 'catalog',
8145          'formato' => 'link_one_select',
8146          'to_table' => 'moneda',
8147          'to_field' => 'moneda_id',
8148          'this_table' => 'compra_log',
8149          'this_field' => 'moneda_id',
8150        ),
8151      ),
8152      'banco' =>
8153      array (
8154        'banco_id' =>
8155        array (
8156          'es' => 'catalog',
8157          'formato' => 'link_one_select',
8158          'to_table' => 'banco',
8159          'to_field' => 'banco_id',
8160          'this_table' => 'compra_log',
8161          'this_field' => 'banco_id',
8162        ),
8163      ),
8164      'cuentat' =>
8165      array (
8166        'cuentaT_deliveredto_id' =>
8167        array (
8168          'es' => 'catalog',
8169          'formato' => 'link_one_select',
8170          'to_table' => 'cuentat',
8171          'to_field' => 'cuentaT_id',
8172          'this_table' => 'compra_log',
8173          'this_field' => 'cuentaT_deliveredto_id',
8174        ),
8175        'cuentaT_transferto_id' =>
8176        array (
8177          'es' => 'catalog',
8178          'formato' => 'link_one_select',
8179          'to_table' => 'cuentat',
8180          'to_field' => 'cuentaT_id',
8181          'this_table' => 'compra_log',
8182          'this_field' => 'cuentaT_transferto_id',
8183        ),
8184        'origen_cuentat_id' =>
8185        array (
8186          'es' => 'catalog',
8187          'formato' => 'link_one_select',
8188          'to_table' => 'cuentat',
8189          'to_field' => 'cuentaT_id',
8190          'this_table' => 'compra_log',
8191          'this_field' => 'origen_cuentat_id',
8192        ),
8193      ),
8194      'categoria' =>
8195      array (
8196        'categoria_id' =>
8197        array (
8198          'es' => 'catalog',
8199          'formato' => 'link_one_select',
8200          'to_table' => 'categoria',
8201          'to_field' => 'categoria_id',
8202          'this_table' => 'compra_log',
8203          'this_field' => 'categoria_id',
8204        ),
8205      ),
8206      'cuentat_mov' =>
8207      array (
8208        'cuentat_mov_id' =>
8209        array (
8210          'es' => 'catalog',
8211          'formato' => 'link_one_select',
8212          'to_table' => 'cuentat_mov',
8213          'to_field' => 'cuentaT_mov_id',
8214          'this_table' => 'compra_log',
8215          'this_field' => 'cuentat_mov_id',
8216        ),
8217      ),
8218    ),
8219    'links_from' =>
8220    array (
8221      'compra' =>
8222      array (
8223        'es' => 'one2one',
8224      ),
8225    ),
8226  ),
8227  'compra_pago' =>
8228  array (
8229    'es' => 'parent',
8230    'pk_single_field' => 'compra_pago_id',
8231    'pk_single_type' => 'uuid',
8232    'label_field' => 'compra_id',
8233    'has_seq' => false,
8234    'has_child' => true,
8235    'has_date' => true,
8236    'has_numeric' => true,
8237    'has_datetime' => true,
8238    'has_fckeditor' => true,
8239    'has_file_upload' => true,
8240    'links_to' =>
8241    array (
8242      'compra' =>
8243      array (
8244        'compra_id' =>
8245        array (
8246          'es' => 'catalog',
8247          'formato' => 'link_one_select',
8248          'to_table' => 'compra',
8249          'to_field' => 'compra_id',
8250          'this_table' => 'compra_pago',
8251          'this_field' => 'compra_id',
8252        ),
8253      ),
8254      'moneda' =>
8255      array (
8256        'moneda_id' =>
8257        array (
8258          'es' => 'catalog',
8259          'formato' => 'link_one_select',
8260          'to_table' => 'moneda',
8261          'to_field' => 'moneda_id',
8262          'this_table' => 'compra_pago',
8263          'this_field' => 'moneda_id',
8264        ),
8265      ),
8266      'metodo_pago' =>
8267      array (
8268        'metodo_pago_id' =>
8269        array (
8270          'es' => 'catalog',
8271          'formato' => 'link_one_select',
8272          'to_table' => 'metodo_pago',
8273          'to_field' => 'metodo_pago_id',
8274          'this_table' => 'compra_pago',
8275          'this_field' => 'metodo_pago_id',
8276        ),
8277      ),
8278      'banco_cuenta' =>
8279      array (
8280        'banco_cuenta_id' =>
8281        array (
8282          'es' => 'catalog',
8283          'formato' => 'link_one_select',
8284          'to_table' => 'banco_cuenta',
8285          'to_field' => 'banco_cuenta_id',
8286          'this_table' => 'compra_pago',
8287          'this_field' => 'banco_cuenta_id',
8288        ),
8289      ),
8290      'banco_cuenta_mov_link' =>
8291      array (
8292        'banco_cuenta_mov_link_id' =>
8293        array (
8294          'es' => 'catalog',
8295          'formato' => 'link_one_select',
8296          'to_table' => 'banco_cuenta_mov_link',
8297          'to_field' => 'banco_cuenta_mov_link_id',
8298          'this_table' => 'compra_pago',
8299          'this_field' => 'banco_cuenta_mov_link_id',
8300        ),
8301      ),
8302      'cuentat_mov' =>
8303      array (
8304        'cuenta_t_mov_id' =>
8305        array (
8306          'es' => 'catalog',
8307          'formato' => 'link_one_select',
8308          'to_table' => 'cuentat_mov',
8309          'to_field' => 'cuentaT_mov_id',
8310          'this_table' => 'compra_pago',
8311          'this_field' => 'cuenta_t_mov_id',
8312        ),
8313      ),
8314      'cuentat' =>
8315      array (
8316        'cuentaT_id' =>
8317        array (
8318          'es' => 'catalog',
8319          'formato' => 'link_one_select',
8320          'to_table' => 'cuentat',
8321          'to_field' => 'cuentaT_id',
8322          'this_table' => 'compra_pago',
8323          'this_field' => 'cuentaT_id',
8324        ),
8325      ),
8326      'empresa' =>
8327      array (
8328        'empresa_id' =>
8329        array (
8330          'es' => 'catalog',
8331          'formato' => 'link_one_select',
8332          'to_table' => 'empresa',
8333          'to_field' => 'empresa_id',
8334          'this_table' => 'compra_pago',
8335          'this_field' => 'empresa_id',
8336        ),
8337      ),
8338      'tienda' =>
8339      array (
8340        'tienda_id' =>
8341        array (
8342          'es' => 'catalog',
8343          'formato' => 'link_one_select',
8344          'to_table' => 'tienda',
8345          'to_field' => 'tienda_id',
8346          'this_table' => 'compra_pago',
8347          'this_field' => 'tienda_id',
8348        ),
8349      ),
8350    ),
8351    'links_from' =>
8352    array (
8353      'compra_pago_log' =>
8354      array (
8355        'compra_pago_id' =>
8356        array (
8357          'es' => 'child',
8358          'formato' => 'jqgrid',
8359          'to_table' => 'compra_pago_log',
8360          'to_field' => 'compra_pago_id',
8361          'this_table' => 'compra_pago',
8362          'this_field' => 'compra_pago_id',
8363          'restrict_delete' => false,
8364          'delete_with_parent' => true,
8365          'on_delete_set_to' => 0,
8366        ),
8367      ),
8368    ),
8369  ),
8370  'compra_pago_log' =>
8371  array (
8372    'es' => 'child',
8373    'pk_single_field' => 'compra_pago_log_id',
8374    'pk_single_type' => 'uuid',
8375    'label_field' => 'compra_pago_id',
8376    'has_seq' => false,
8377    'has_child' => false,
8378    'has_date' => true,
8379    'has_numeric' => true,
8380    'has_datetime' => true,
8381    'has_file_upload' => true,
8382    'links_to' =>
8383    array (
8384      'compra_pago' =>
8385      array (
8386        'compra_pago_id' =>
8387        array (
8388          'es' => 'catalog',
8389          'formato' => 'link_one_select',
8390          'to_table' => 'compra_pago',
8391          'to_field' => 'compra_pago_id',
8392          'this_table' => 'compra_pago_log',
8393          'this_field' => 'compra_pago_id',
8394        ),
8395      ),
8396      'compra' =>
8397      array (
8398        'compra_id' =>
8399        array (
8400          'es' => 'catalog',
8401          'formato' => 'link_one_select',
8402          'to_table' => 'compra',
8403          'to_field' => 'compra_id',
8404          'this_table' => 'compra_pago_log',
8405          'this_field' => 'compra_id',
8406        ),
8407      ),
8408      'moneda' =>
8409      array (
8410        'moneda_id' =>
8411        array (
8412          'es' => 'catalog',
8413          'formato' => 'link_one_select',
8414          'to_table' => 'moneda',
8415          'to_field' => 'moneda_id',
8416          'this_table' => 'compra_pago_log',
8417          'this_field' => 'moneda_id',
8418        ),
8419      ),
8420      'metodo_pago' =>
8421      array (
8422        'metodo_pago_id' =>
8423        array (
8424          'es' => 'catalog',
8425          'formato' => 'link_one_select',
8426          'to_table' => 'metodo_pago',
8427          'to_field' => 'metodo_pago_id',
8428          'this_table' => 'compra_pago_log',
8429          'this_field' => 'metodo_pago_id',
8430        ),
8431      ),
8432      'banco_cuenta' =>
8433      array (
8434        'banco_cuenta_id' =>
8435        array (
8436          'es' => 'catalog',
8437          'formato' => 'link_one_select',
8438          'to_table' => 'banco_cuenta',
8439          'to_field' => 'banco_cuenta_id',
8440          'this_table' => 'compra_pago_log',
8441          'this_field' => 'banco_cuenta_id',
8442        ),
8443      ),
8444      'banco_cuenta_mov_link' =>
8445      array (
8446        'banco_cuenta_mov_link_id' =>
8447        array (
8448          'es' => 'catalog',
8449          'formato' => 'link_one_select',
8450          'to_table' => 'banco_cuenta_mov_link',
8451          'to_field' => 'banco_cuenta_mov_link_id',
8452          'this_table' => 'compra_pago_log',
8453          'this_field' => 'banco_cuenta_mov_link_id',
8454        ),
8455      ),
8456      'cuentat' =>
8457      array (
8458        'cuentaT_id' =>
8459        array (
8460          'es' => 'catalog',
8461          'formato' => 'link_one_select',
8462          'to_table' => 'cuentat',
8463          'to_field' => 'cuentaT_id',
8464          'this_table' => 'compra_pago_log',
8465          'this_field' => 'cuentaT_id',
8466        ),
8467      ),
8468      'empresa' =>
8469      array (
8470        'empresa_id' =>
8471        array (
8472          'es' => 'catalog',
8473          'formato' => 'link_one_select',
8474          'to_table' => 'empresa',
8475          'to_field' => 'empresa_id',
8476          'this_table' => 'compra_pago_log',
8477          'this_field' => 'empresa_id',
8478        ),
8479      ),
8480      'tienda' =>
8481      array (
8482        'tienda_id' =>
8483        array (
8484          'es' => 'catalog',
8485          'formato' => 'link_one_select',
8486          'to_table' => 'tienda',
8487          'to_field' => 'tienda_id',
8488          'this_table' => 'compra_pago_log',
8489          'this_field' => 'tienda_id',
8490        ),
8491      ),
8492      'cuentat_mov' =>
8493      array (
8494        'cuenta_t_mov_id' =>
8495        array (
8496          'es' => 'catalog',
8497          'formato' => 'link_one_select',
8498          'to_table' => 'cuentat_mov',
8499          'to_field' => 'cuentaT_mov_id',
8500          'this_table' => 'compra_pago_log',
8501          'this_field' => 'cuenta_t_mov_id',
8502        ),
8503      ),
8504    ),
8505  ),
8506  'coordenada' =>
8507  array (
8508    'es' => 'data',
8509    'PK' =>
8510    array (
8511      0 => 'origen',
8512      1 => 'id',
8513    ),
8514    'label_field' => 'top',
8515    'has_seq' => false,
8516    'has_child' => false,
8517  ),
8518  'coso' =>
8519  array (
8520    'es' => 'child',
8521    'label_field' => 'semaforo',
8522    'has_seq' => false,
8523    'has_child' => false,
8524    'links_to' =>
8525    array (
8526      'banco_cuenta' =>
8527      array (
8528        'banco_cuenta_id' =>
8529        array (
8530          'es' => 'catalog',
8531          'formato' => 'link_one_select',
8532          'to_table' => 'banco_cuenta',
8533          'to_field' => 'banco_cuenta_id',
8534          'this_table' => 'coso',
8535          'this_field' => 'banco_cuenta_id',
8536        ),
8537      ),
8538      'cuentat' =>
8539      array (
8540        'cuentaT_id' =>
8541        array (
8542          'es' => 'catalog',
8543          'formato' => 'link_one_select',
8544          'to_table' => 'cuentat',
8545          'to_field' => 'cuentaT_id',
8546          'this_table' => 'coso',
8547          'this_field' => 'cuentaT_id',
8548        ),
8549      ),
8550      'tienda' =>
8551      array (
8552        'tienda_id' =>
8553        array (
8554          'es' => 'catalog',
8555          'formato' => 'link_one_select',
8556          'to_table' => 'tienda',
8557          'to_field' => 'tienda_id',
8558          'this_table' => 'coso',
8559          'this_field' => 'tienda_id',
8560        ),
8561      ),
8562    ),
8563  ),
8564  'cp_autotransporte' =>
8565  array (
8566    'es' => 'child',
8567    'pk_single_field' => 'autotransporte_id',
8568    'pk_single_type' => 'uuid',
8569    'label_field' => 'PermSCT',
8570    'has_seq' => false,
8571    'has_child' => true,
8572    'links_to' =>
8573    array (
8574      'empresa' =>
8575      array (
8576        'empresa_id' =>
8577        array (
8578          'es' => 'catalog',
8579          'formato' => 'link_one_select',
8580          'to_table' => 'empresa',
8581          'to_field' => 'empresa_id',
8582          'this_table' => 'cp_autotransporte',
8583          'this_field' => 'empresa_id',
8584        ),
8585      ),
8586    ),
8587    'links_from' =>
8588    array (
8589      'nota_bodega' =>
8590      array (
8591        'cp_autotransporte_id' =>
8592        array (
8593          'es' => 'catalog_entry',
8594          'formato' => 'link_one_select',
8595          'to_table' => 'nota_bodega',
8596          'to_field' => 'cp_autotransporte_id',
8597          'this_table' => 'cp_autotransporte',
8598          'this_field' => 'autotransporte_id',
8599          'restrict_delete' => true,
8600          'delete_with_parent' => false,
8601          'on_delete_set_to' => 0,
8602        ),
8603      ),
8604      'nota_bodega_autorizacion' =>
8605      array (
8606        'cp_autotransporte_id' =>
8607        array (
8608          'es' => 'catalog_entry',
8609          'formato' => 'link_one_select',
8610          'to_table' => 'nota_bodega_autorizacion',
8611          'to_field' => 'cp_autotransporte_id',
8612          'this_table' => 'cp_autotransporte',
8613          'this_field' => 'autotransporte_id',
8614          'restrict_delete' => true,
8615          'delete_with_parent' => false,
8616          'on_delete_set_to' => 0,
8617        ),
8618      ),
8619      'nota_bodega_log' =>
8620      array (
8621        'cp_autotransporte_id' =>
8622        array (
8623          'es' => 'catalog_entry',
8624          'formato' => 'link_one_select',
8625          'to_table' => 'nota_bodega_log',
8626          'to_field' => 'cp_autotransporte_id',
8627          'this_table' => 'cp_autotransporte',
8628          'this_field' => 'autotransporte_id',
8629          'restrict_delete' => true,
8630          'delete_with_parent' => false,
8631          'on_delete_set_to' => 0,
8632        ),
8633      ),
8634      'nota_bodega_verificacion' =>
8635      array (
8636        'cp_autotransporte_id' =>
8637        array (
8638          'es' => 'catalog_entry',
8639          'formato' => 'link_one_select',
8640          'to_table' => 'nota_bodega_verificacion',
8641          'to_field' => 'cp_autotransporte_id',
8642          'this_table' => 'cp_autotransporte',
8643          'this_field' => 'autotransporte_id',
8644          'restrict_delete' => true,
8645          'delete_with_parent' => false,
8646          'on_delete_set_to' => 0,
8647        ),
8648      ),
8649      'solicitud_carta_porte' =>
8650      array (
8651        'cp_autotransporte_id' =>
8652        array (
8653          'es' => 'catalog_entry',
8654          'formato' => 'link_one_select',
8655          'to_table' => 'solicitud_carta_porte',
8656          'to_field' => 'cp_autotransporte_id',
8657          'this_table' => 'cp_autotransporte',
8658          'this_field' => 'autotransporte_id',
8659          'restrict_delete' => true,
8660          'delete_with_parent' => false,
8661          'on_delete_set_to' => 0,
8662        ),
8663      ),
8664    ),
8665  ),
8666  'cp_cliente' =>
8667  array (
8668    'es' => 'parent',
8669    'pk_single_field' => 'cp_cliente_id',
8670    'pk_single_type' => 'uuid',
8671    'label_field' => 'cliente_id',
8672    'has_seq' => false,
8673    'has_child' => true,
8674    'UNI' =>
8675    array (
8676      'multiples_clientes' =>
8677      array (
8678        1 => 'rfc',
8679        2 => 'razon_social',
8680      ),
8681    ),
8682    'links_to' =>
8683    array (
8684      'cliente' =>
8685      array (
8686        'cliente_id' =>
8687        array (
8688          'es' => 'catalog',
8689          'formato' => 'link_one_select',
8690          'to_table' => 'cliente',
8691          'to_field' => 'cliente_id',
8692          'this_table' => 'cp_cliente',
8693          'this_field' => 'cliente_id',
8694        ),
8695      ),
8696    ),
8697    'links_from' =>
8698    array (
8699      'cp_cliente_direccion' =>
8700      array (
8701        'cp_cliente_id' =>
8702        array (
8703          'es' => 'child',
8704          'formato' => 'jqgrid',
8705          'to_table' => 'cp_cliente_direccion',
8706          'to_field' => 'cp_cliente_id',
8707          'this_table' => 'cp_cliente',
8708          'this_field' => 'cp_cliente_id',
8709          'restrict_delete' => true,
8710          'delete_with_parent' => false,
8711          'on_delete_set_to' => 0,
8712        ),
8713      ),
8714      'nota_bodega' =>
8715      array (
8716        'cp_cliente_id' =>
8717        array (
8718          'es' => 'catalog_entry',
8719          'formato' => 'jqgrid',
8720          'to_table' => 'nota_bodega',
8721          'to_field' => 'cp_cliente_id',
8722          'this_table' => 'cp_cliente',
8723          'this_field' => 'cp_cliente_id',
8724          'restrict_delete' => true,
8725          'delete_with_parent' => false,
8726          'on_delete_set_to' => 0,
8727        ),
8728      ),
8729      'nota_bodega_autorizacion' =>
8730      array (
8731        'cp_cliente_id' =>
8732        array (
8733          'es' => 'catalog_entry',
8734          'formato' => 'jqgrid',
8735          'to_table' => 'nota_bodega_autorizacion',
8736          'to_field' => 'cp_cliente_id',
8737          'this_table' => 'cp_cliente',
8738          'this_field' => 'cp_cliente_id',
8739          'restrict_delete' => true,
8740          'delete_with_parent' => false,
8741          'on_delete_set_to' => 0,
8742        ),
8743      ),
8744      'nota_bodega_log' =>
8745      array (
8746        'cp_cliente_id' =>
8747        array (
8748          'es' => 'catalog_entry',
8749          'formato' => 'jqgrid',
8750          'to_table' => 'nota_bodega_log',
8751          'to_field' => 'cp_cliente_id',
8752          'this_table' => 'cp_cliente',
8753          'this_field' => 'cp_cliente_id',
8754          'restrict_delete' => true,
8755          'delete_with_parent' => false,
8756          'on_delete_set_to' => 0,
8757        ),
8758      ),
8759      'nota_bodega_verificacion' =>
8760      array (
8761        'cp_cliente_id' =>
8762        array (
8763          'es' => 'catalog_entry',
8764          'formato' => 'jqgrid',
8765          'to_table' => 'nota_bodega_verificacion',
8766          'to_field' => 'cp_cliente_id',
8767          'this_table' => 'cp_cliente',
8768          'this_field' => 'cp_cliente_id',
8769          'restrict_delete' => true,
8770          'delete_with_parent' => false,
8771          'on_delete_set_to' => 0,
8772        ),
8773      ),
8774    ),
8775  ),
8776  'cp_cliente_direccion' =>
8777  array (
8778    'es' => 'parent',
8779    'pk_single_field' => 'cp_cliente_direccion_id',
8780    'pk_single_type' => 'uuid',
8781    'label_field' => 'cp_cliente_id',
8782    'has_seq' => false,
8783    'has_child' => true,
8784    'UNI' =>
8785    array (
8786      'multiples_direcciones' =>
8787      array (
8788        1 => 'cp_cliente_id',
8789        2 => 'codigo_postal',
8790        3 => 'calle',
8791        4 => 'numero_exterior',
8792        5 => 'numero_interior',
8793      ),
8794    ),
8795    'links_from' =>
8796    array (
8797      'bodega' =>
8798      array (
8799        'cp_cliente_direccion_id' =>
8800        array (
8801          'es' => 'catalog_entry',
8802          'formato' => 'jqgrid',
8803          'to_table' => 'bodega',
8804          'to_field' => 'cp_cliente_direccion_id',
8805          'this_table' => 'cp_cliente_direccion',
8806          'this_field' => 'cp_cliente_direccion_id',
8807          'restrict_delete' => true,
8808          'delete_with_parent' => false,
8809          'on_delete_set_to' => 0,
8810        ),
8811      ),
8812      'empresa' =>
8813      array (
8814        'cp_cliente_direccion_id' =>
8815        array (
8816          'es' => 'catalog_entry',
8817          'formato' => 'jqgrid',
8818          'to_table' => 'empresa',
8819          'to_field' => 'cp_cliente_direccion_id',
8820          'this_table' => 'cp_cliente_direccion',
8821          'this_field' => 'cp_cliente_direccion_id',
8822          'restrict_delete' => true,
8823          'delete_with_parent' => false,
8824          'on_delete_set_to' => 0,
8825        ),
8826      ),
8827      'origen_bodega' =>
8828      array (
8829        'cp_cliente_direccion_id' =>
8830        array (
8831          'es' => 'catalog_entry',
8832          'formato' => 'jqgrid',
8833          'to_table' => 'origen_bodega',
8834          'to_field' => 'cp_cliente_direccion_id',
8835          'this_table' => 'cp_cliente_direccion',
8836          'this_field' => 'cp_cliente_direccion_id',
8837          'restrict_delete' => true,
8838          'delete_with_parent' => false,
8839          'on_delete_set_to' => 0,
8840        ),
8841      ),
8842      'tienda' =>
8843      array (
8844        'cp_cliente_direccion_id' =>
8845        array (
8846          'es' => 'catalog_entry',
8847          'formato' => 'jqgrid',
8848          'to_table' => 'tienda',
8849          'to_field' => 'cp_cliente_direccion_id',
8850          'this_table' => 'cp_cliente_direccion',
8851          'this_field' => 'cp_cliente_direccion_id',
8852          'restrict_delete' => true,
8853          'delete_with_parent' => false,
8854          'on_delete_set_to' => 0,
8855        ),
8856      ),
8857    ),
8858    'links_to' =>
8859    array (
8860      'cp_cliente' =>
8861      array (
8862        'cp_cliente_id' =>
8863        array (
8864          'es' => 'catalog',
8865          'formato' => 'link_one_select',
8866          'to_table' => 'cp_cliente',
8867          'to_field' => 'cp_cliente_id',
8868          'this_table' => 'cp_cliente_direccion',
8869          'this_field' => 'cp_cliente_id',
8870        ),
8871      ),
8872      'empresa' =>
8873      array (
8874        'empresa_id' =>
8875        array (
8876          'es' => 'catalog',
8877          'formato' => 'link_one_select',
8878          'to_table' => 'empresa',
8879          'to_field' => 'empresa_id',
8880          'this_table' => 'cp_cliente_direccion',
8881          'this_field' => 'empresa_id',
8882        ),
8883      ),
8884    ),
8885  ),
8886  'cp_figuratransporte' =>
8887  array (
8888    'es' => 'child',
8889    'pk_single_field' => 'figuratransporte_id',
8890    'pk_single_type' => 'uuid',
8891    'label_field' => 'TipoFigura',
8892    'has_seq' => false,
8893    'has_child' => true,
8894    'links_to' =>
8895    array (
8896      'empresa' =>
8897      array (
8898        'empresa_id' =>
8899        array (
8900          'es' => 'catalog',
8901          'formato' => 'link_one_select',
8902          'to_table' => 'empresa',
8903          'to_field' => 'empresa_id',
8904          'this_table' => 'cp_figuratransporte',
8905          'this_field' => 'empresa_id',
8906        ),
8907      ),
8908    ),
8909    'links_from' =>
8910    array (
8911      'nota_bodega' =>
8912      array (
8913        'cp_figuratransporte_id' =>
8914        array (
8915          'es' => 'catalog_entry',
8916          'formato' => 'link_one_select',
8917          'to_table' => 'nota_bodega',
8918          'to_field' => 'cp_figuratransporte_id',
8919          'this_table' => 'cp_figuratransporte',
8920          'this_field' => 'figuratransporte_id',
8921          'restrict_delete' => true,
8922          'delete_with_parent' => false,
8923          'on_delete_set_to' => 0,
8924        ),
8925      ),
8926      'nota_bodega_autorizacion' =>
8927      array (
8928        'cp_figuratransporte_id' =>
8929        array (
8930          'es' => 'catalog_entry',
8931          'formato' => 'link_one_select',
8932          'to_table' => 'nota_bodega_autorizacion',
8933          'to_field' => 'cp_figuratransporte_id',
8934          'this_table' => 'cp_figuratransporte',
8935          'this_field' => 'figuratransporte_id',
8936          'restrict_delete' => true,
8937          'delete_with_parent' => false,
8938          'on_delete_set_to' => 0,
8939        ),
8940      ),
8941      'nota_bodega_log' =>
8942      array (
8943        'cp_figuratransporte_id' =>
8944        array (
8945          'es' => 'catalog_entry',
8946          'formato' => 'link_one_select',
8947          'to_table' => 'nota_bodega_log',
8948          'to_field' => 'cp_figuratransporte_id',
8949          'this_table' => 'cp_figuratransporte',
8950          'this_field' => 'figuratransporte_id',
8951          'restrict_delete' => true,
8952          'delete_with_parent' => false,
8953          'on_delete_set_to' => 0,
8954        ),
8955      ),
8956      'nota_bodega_verificacion' =>
8957      array (
8958        'cp_figuratransporte_id' =>
8959        array (
8960          'es' => 'catalog_entry',
8961          'formato' => 'link_one_select',
8962          'to_table' => 'nota_bodega_verificacion',
8963          'to_field' => 'cp_figuratransporte_id',
8964          'this_table' => 'cp_figuratransporte',
8965          'this_field' => 'figuratransporte_id',
8966          'restrict_delete' => true,
8967          'delete_with_parent' => false,
8968          'on_delete_set_to' => 0,
8969        ),
8970      ),
8971      'solicitud_carta_porte' =>
8972      array (
8973        'cp_figuratransporte_id' =>
8974        array (
8975          'es' => 'catalog_entry',
8976          'formato' => 'link_one_select',
8977          'to_table' => 'solicitud_carta_porte',
8978          'to_field' => 'cp_figuratransporte_id',
8979          'this_table' => 'cp_figuratransporte',
8980          'this_field' => 'figuratransporte_id',
8981          'restrict_delete' => true,
8982          'delete_with_parent' => false,
8983          'on_delete_set_to' => 0,
8984        ),
8985      ),
8986    ),
8987  ),
8988  'cp_sat_codigo_postal' =>
8989  array (
8990    'es' => 'data',
8991    'pk_single_field' => 'cp_sat_codigo_postal_id',
8992    'pk_single_type' => 'auto_increment',
8993    'label_field' => 'codigo_postal',
8994    'has_seq' => false,
8995    'has_child' => false,
8996  ),
8997  'cp_sat_estado' =>
8998  array (
8999    'es' => 'data',
9000    'pk_single_field' => 'cp_sat_estado_id',
9001    'pk_single_type' => 'auto_increment',
9002    'label_field' => 'estado',
9003    'has_seq' => false,
9004    'has_child' => false,
9005  ),
9006  'cp_tipofiguratransporte' =>
9007  array (
9008    'es' => 'data',
9009    'pk_single_field' => 'cp_tipofiguratransporte_id',
9010    'pk_single_type' => 'value',
9011    'label_field' => 'ClaveFiguraTransporte',
9012    'has_seq' => false,
9013    'has_child' => false,
9014  ),
9015  'cuentat' =>
9016  array (
9017    'es' => 'parent',
9018    'pk_single_field' => 'cuentaT_id',
9019    'pk_single_type' => 'auto_increment',
9020    'label_field' => 'usuario',
9021    'vale' => true,
9022    'orden' => true,
9023    'has_seq' => false,
9024    'has_child' => true,
9025    'has_numeric' => true,
9026    'has_datetime' => true,
9027    'UNI' =>
9028    array (
9029      'usuario_unico' =>
9030      array (
9031        1 => 'usuario',
9032        2 => 'es_de',
9033      ),
9034    ),
9035    'links_from' =>
9036    array (
9037      'a_cuentas_live' =>
9038      array (
9039        'cuentaT_id' =>
9040        array (
9041          'es' => 'catalog_entry',
9042          'formato' => 'jqgrid',
9043          'to_table' => 'a_cuentas_live',
9044          'to_field' => 'cuentaT_id',
9045          'this_table' => 'cuentat',
9046          'this_field' => 'cuentaT_id',
9047          'restrict_delete' => true,
9048          'delete_with_parent' => false,
9049          'on_delete_set_to' => 0,
9050        ),
9051        'cuentaT_deliveredto_id' =>
9052        array (
9053          'es' => 'catalog_entry',
9054          'formato' => 'jqgrid',
9055          'to_table' => 'a_cuentas_live',
9056          'to_field' => 'cuentaT_deliveredto_id',
9057          'this_table' => 'cuentat',
9058          'this_field' => 'cuentaT_id',
9059          'restrict_delete' => true,
9060          'delete_with_parent' => false,
9061          'on_delete_set_to' => 0,
9062        ),
9063        'origen_cuentat_id' =>
9064        array (
9065          'es' => 'catalog_entry',
9066          'formato' => 'jqgrid',
9067          'to_table' => 'a_cuentas_live',
9068          'to_field' => 'origen_cuentat_id',
9069          'this_table' => 'cuentat',
9070          'this_field' => 'cuentaT_id',
9071          'restrict_delete' => true,
9072          'delete_with_parent' => false,
9073          'on_delete_set_to' => 0,
9074        ),
9075      ),
9076      'banco_cuenta_trans' =>
9077      array (
9078        'cuentaT_id' =>
9079        array (
9080          'es' => 'catalog_entry',
9081          'formato' => 'jqgrid',
9082          'to_table' => 'banco_cuenta_trans',
9083          'to_field' => 'cuentaT_id',
9084          'this_table' => 'cuentat',
9085          'this_field' => 'cuentaT_id',
9086          'restrict_delete' => true,
9087          'delete_with_parent' => false,
9088          'on_delete_set_to' => 0,
9089        ),
9090        'cuentaT_deliveredto_id' =>
9091        array (
9092          'es' => 'catalog_entry',
9093          'formato' => 'jqgrid',
9094          'to_table' => 'banco_cuenta_trans',
9095          'to_field' => 'cuentaT_deliveredto_id',
9096          'this_table' => 'cuentat',
9097          'this_field' => 'cuentaT_id',
9098          'restrict_delete' => true,
9099          'delete_with_parent' => false,
9100          'on_delete_set_to' => 0,
9101        ),
9102        'cuentaT_transferto_id' =>
9103        array (
9104          'es' => 'catalog_entry',
9105          'formato' => 'jqgrid',
9106          'to_table' => 'banco_cuenta_trans',
9107          'to_field' => 'cuentaT_transferto_id',
9108          'this_table' => 'cuentat',
9109          'this_field' => 'cuentaT_id',
9110          'restrict_delete' => true,
9111          'delete_with_parent' => false,
9112          'on_delete_set_to' => 0,
9113        ),
9114      ),
9115      'cheque' =>
9116      array (
9117        'cuentaT_deliveredto_id' =>
9118        array (
9119          'es' => 'catalog_entry',
9120          'formato' => 'link_one_select',
9121          'to_table' => 'cheque',
9122          'to_field' => 'cuentaT_deliveredto_id',
9123          'this_table' => 'cuentat',
9124          'this_field' => 'cuentaT_id',
9125          'restrict_delete' => true,
9126          'delete_with_parent' => false,
9127          'on_delete_set_to' => 0,
9128        ),
9129        'cuentaT_transferto_id' =>
9130        array (
9131          'es' => 'catalog_entry',
9132          'formato' => 'link_one_select',
9133          'to_table' => 'cheque',
9134          'to_field' => 'cuentaT_transferto_id',
9135          'this_table' => 'cuentat',
9136          'this_field' => 'cuentaT_id',
9137          'restrict_delete' => true,
9138          'delete_with_parent' => false,
9139          'on_delete_set_to' => 0,
9140        ),
9141        'origen_cuentat_id' =>
9142        array (
9143          'es' => 'catalog_entry',
9144          'formato' => 'link_one_select',
9145          'to_table' => 'cheque',
9146          'to_field' => 'origen_cuentat_id',
9147          'this_table' => 'cuentat',
9148          'this_field' => 'cuentaT_id',
9149          'restrict_delete' => true,
9150          'delete_with_parent' => false,
9151          'on_delete_set_to' => 0,
9152        ),
9153      ),
9154      'cheque_log' =>
9155      array (
9156        'cuentaT_deliveredto_id' =>
9157        array (
9158          'es' => 'catalog_entry',
9159          'formato' => 'link_one_select',
9160          'to_table' => 'cheque_log',
9161          'to_field' => 'cuentaT_deliveredto_id',
9162          'this_table' => 'cuentat',
9163          'this_field' => 'cuentaT_id',
9164          'restrict_delete' => true,
9165          'delete_with_parent' => false,
9166          'on_delete_set_to' => 0,
9167        ),
9168        'cuentaT_transferto_id' =>
9169        array (
9170          'es' => 'catalog_entry',
9171          'formato' => 'link_one_select',
9172          'to_table' => 'cheque_log',
9173          'to_field' => 'cuentaT_transferto_id',
9174          'this_table' => 'cuentat',
9175          'this_field' => 'cuentaT_id',
9176          'restrict_delete' => true,
9177          'delete_with_parent' => false,
9178          'on_delete_set_to' => 0,
9179        ),
9180        'origen_cuentat_id' =>
9181        array (
9182          'es' => 'catalog_entry',
9183          'formato' => 'link_one_select',
9184          'to_table' => 'cheque_log',
9185          'to_field' => 'origen_cuentat_id',
9186          'this_table' => 'cuentat',
9187          'this_field' => 'cuentaT_id',
9188          'restrict_delete' => true,
9189          'delete_with_parent' => false,
9190          'on_delete_set_to' => 0,
9191        ),
9192      ),
9193      'cheque_pago' =>
9194      array (
9195        'cuentaT_id' =>
9196        array (
9197          'es' => 'catalog_entry',
9198          'formato' => 'jqgrid',
9199          'to_table' => 'cheque_pago',
9200          'to_field' => 'cuentaT_id',
9201          'this_table' => 'cuentat',
9202          'this_field' => 'cuentaT_id',
9203          'restrict_delete' => true,
9204          'delete_with_parent' => false,
9205          'on_delete_set_to' => 0,
9206        ),
9207      ),
9208      'cheque_pago_log' =>
9209      array (
9210        'cuentaT_id' =>
9211        array (
9212          'es' => 'catalog_entry',
9213          'formato' => 'jqgrid',
9214          'to_table' => 'cheque_pago_log',
9215          'to_field' => 'cuentaT_id',
9216          'this_table' => 'cuentat',
9217          'this_field' => 'cuentaT_id',
9218          'restrict_delete' => true,
9219          'delete_with_parent' => false,
9220          'on_delete_set_to' => 0,
9221        ),
9222      ),
9223      'compra' =>
9224      array (
9225        'cuentaT_deliveredto_id' =>
9226        array (
9227          'es' => 'catalog_entry',
9228          'formato' => 'link_one_select',
9229          'to_table' => 'compra',
9230          'to_field' => 'cuentaT_deliveredto_id',
9231          'this_table' => 'cuentat',
9232          'this_field' => 'cuentaT_id',
9233          'restrict_delete' => true,
9234          'delete_with_parent' => false,
9235          'on_delete_set_to' => 0,
9236        ),
9237        'cuentaT_transferto_id' =>
9238        array (
9239          'es' => 'catalog_entry',
9240          'formato' => 'link_one_select',
9241          'to_table' => 'compra',
9242          'to_field' => 'cuentaT_transferto_id',
9243          'this_table' => 'cuentat',
9244          'this_field' => 'cuentaT_id',
9245          'restrict_delete' => true,
9246          'delete_with_parent' => false,
9247          'on_delete_set_to' => 0,
9248        ),
9249        'origen_cuentat_id' =>
9250        array (
9251          'es' => 'catalog_entry',
9252          'formato' => 'link_one_select',
9253          'to_table' => 'compra',
9254          'to_field' => 'origen_cuentat_id',
9255          'this_table' => 'cuentat',
9256          'this_field' => 'cuentaT_id',
9257          'restrict_delete' => true,
9258          'delete_with_parent' => false,
9259          'on_delete_set_to' => 0,
9260        ),
9261      ),
9262      'compra_log' =>
9263      array (
9264        'cuentaT_deliveredto_id' =>
9265        array (
9266          'es' => 'catalog_entry',
9267          'formato' => 'link_one_select',
9268          'to_table' => 'compra_log',
9269          'to_field' => 'cuentaT_deliveredto_id',
9270          'this_table' => 'cuentat',
9271          'this_field' => 'cuentaT_id',
9272          'restrict_delete' => true,
9273          'delete_with_parent' => false,
9274          'on_delete_set_to' => 0,
9275        ),
9276        'cuentaT_transferto_id' =>
9277        array (
9278          'es' => 'catalog_entry',
9279          'formato' => 'link_one_select',
9280          'to_table' => 'compra_log',
9281          'to_field' => 'cuentaT_transferto_id',
9282          'this_table' => 'cuentat',
9283          'this_field' => 'cuentaT_id',
9284          'restrict_delete' => true,
9285          'delete_with_parent' => false,
9286          'on_delete_set_to' => 0,
9287        ),
9288        'origen_cuentat_id' =>
9289        array (
9290          'es' => 'catalog_entry',
9291          'formato' => 'link_one_select',
9292          'to_table' => 'compra_log',
9293          'to_field' => 'origen_cuentat_id',
9294          'this_table' => 'cuentat',
9295          'this_field' => 'cuentaT_id',
9296          'restrict_delete' => true,
9297          'delete_with_parent' => false,
9298          'on_delete_set_to' => 0,
9299        ),
9300      ),
9301      'compra_pago' =>
9302      array (
9303        'cuentaT_id' =>
9304        array (
9305          'es' => 'catalog_entry',
9306          'formato' => 'jqgrid',
9307          'to_table' => 'compra_pago',
9308          'to_field' => 'cuentaT_id',
9309          'this_table' => 'cuentat',
9310          'this_field' => 'cuentaT_id',
9311          'restrict_delete' => true,
9312          'delete_with_parent' => false,
9313          'on_delete_set_to' => 0,
9314        ),
9315      ),
9316      'compra_pago_log' =>
9317      array (
9318        'cuentaT_id' =>
9319        array (
9320          'es' => 'catalog_entry',
9321          'formato' => 'jqgrid',
9322          'to_table' => 'compra_pago_log',
9323          'to_field' => 'cuentaT_id',
9324          'this_table' => 'cuentat',
9325          'this_field' => 'cuentaT_id',
9326          'restrict_delete' => true,
9327          'delete_with_parent' => false,
9328          'on_delete_set_to' => 0,
9329        ),
9330      ),
9331      'coso' =>
9332      array (
9333        'cuentaT_id' =>
9334        array (
9335          'es' => 'catalog_entry',
9336          'formato' => 'jqgrid',
9337          'to_table' => 'coso',
9338          'to_field' => 'cuentaT_id',
9339          'this_table' => 'cuentat',
9340          'this_field' => 'cuentaT_id',
9341          'restrict_delete' => true,
9342          'delete_with_parent' => false,
9343          'on_delete_set_to' => 0,
9344        ),
9345      ),
9346      'cuentat' =>
9347      array (
9348        'aceptar_cuentat_id' =>
9349        array (
9350          'es' => 'catalog_entry',
9351          'formato' => 'link_one_select',
9352          'to_table' => 'cuentat',
9353          'to_field' => 'aceptar_cuentat_id',
9354          'this_table' => 'cuentat',
9355          'this_field' => 'cuentaT_id',
9356          'restrict_delete' => true,
9357          'delete_with_parent' => false,
9358          'on_delete_set_to' => 0,
9359        ),
9360      ),
9361      'cuentat_a_banco' =>
9362      array (
9363        'cuentaT_id' =>
9364        array (
9365          'es' => 'child',
9366          'formato' => 'jqgrid',
9367          'to_table' => 'cuentat_a_banco',
9368          'to_field' => 'cuentaT_id',
9369          'this_table' => 'cuentat',
9370          'this_field' => 'cuentaT_id',
9371          'restrict_delete' => false,
9372          'delete_with_parent' => true,
9373          'on_delete_set_to' => 0,
9374        ),
9375        'cuentaT_deliveredto_id' =>
9376        array (
9377          'es' => 'child',
9378          'formato' => 'jqgrid',
9379          'to_table' => 'cuentat_a_banco',
9380          'to_field' => 'cuentaT_deliveredto_id',
9381          'this_table' => 'cuentat',
9382          'this_field' => 'cuentaT_id',
9383          'restrict_delete' => true,
9384          'delete_with_parent' => false,
9385          'on_delete_set_to' => 0,
9386        ),
9387        'cuentaT_transferto_id' =>
9388        array (
9389          'es' => 'child',
9390          'formato' => 'jqgrid',
9391          'to_table' => 'cuentat_a_banco',
9392          'to_field' => 'cuentaT_transferto_id',
9393          'this_table' => 'cuentat',
9394          'this_field' => 'cuentaT_id',
9395          'restrict_delete' => true,
9396          'delete_with_parent' => false,
9397          'on_delete_set_to' => 0,
9398        ),
9399      ),
9400      'cuentat_a_banco_links' =>
9401      array (
9402        'cuentat_a_banco_mov_id' =>
9403        array (
9404          'es' => 'child',
9405          'formato' => 'jqgrid',
9406          'to_table' => 'cuentat_a_banco_links',
9407          'to_field' => 'cuentat_a_banco_mov_id',
9408          'this_table' => 'cuentat',
9409          'this_field' => 'cuentaT_id',
9410          'restrict_delete' => false,
9411          'delete_with_parent' => true,
9412          'on_delete_set_to' => 0,
9413        ),
9414        'cuentaT_id' =>
9415        array (
9416          'es' => 'child',
9417          'formato' => 'jqgrid',
9418          'to_table' => 'cuentat_a_banco_links',
9419          'to_field' => 'cuentaT_id',
9420          'this_table' => 'cuentat',
9421          'this_field' => 'cuentaT_id',
9422          'restrict_delete' => true,
9423          'delete_with_parent' => false,
9424          'on_delete_set_to' => 0,
9425        ),
9426        'cuentaT_deliveredto_id' =>
9427        array (
9428          'es' => 'child',
9429          'formato' => 'jqgrid',
9430          'to_table' => 'cuentat_a_banco_links',
9431          'to_field' => 'cuentaT_deliveredto_id',
9432          'this_table' => 'cuentat',
9433          'this_field' => 'cuentaT_id',
9434          'restrict_delete' => true,
9435          'delete_with_parent' => false,
9436          'on_delete_set_to' => 0,
9437        ),
9438        'cuentaT_transferto_id' =>
9439        array (
9440          'es' => 'child',
9441          'formato' => 'jqgrid',
9442          'to_table' => 'cuentat_a_banco_links',
9443          'to_field' => 'cuentaT_transferto_id',
9444          'this_table' => 'cuentat',
9445          'this_field' => 'cuentaT_id',
9446          'restrict_delete' => true,
9447          'delete_with_parent' => false,
9448          'on_delete_set_to' => 0,
9449        ),
9450      ),
9451      'cuentat_a_banco_tc' =>
9452      array (
9453        'cuentaT_id' =>
9454        array (
9455          'es' => 'child',
9456          'formato' => 'jqgrid',
9457          'to_table' => 'cuentat_a_banco_tc',
9458          'to_field' => 'cuentaT_id',
9459          'this_table' => 'cuentat',
9460          'this_field' => 'cuentaT_id',
9461          'restrict_delete' => false,
9462          'delete_with_parent' => true,
9463          'on_delete_set_to' => 0,
9464        ),
9465        'cuentaT_deliveredto_id' =>
9466        array (
9467          'es' => 'child',
9468          'formato' => 'jqgrid',
9469          'to_table' => 'cuentat_a_banco_tc',
9470          'to_field' => 'cuentaT_deliveredto_id',
9471          'this_table' => 'cuentat',
9472          'this_field' => 'cuentaT_id',
9473          'restrict_delete' => true,
9474          'delete_with_parent' => false,
9475          'on_delete_set_to' => 0,
9476        ),
9477        'cuentaT_transferto_id' =>
9478        array (
9479          'es' => 'child',
9480          'formato' => 'jqgrid',
9481          'to_table' => 'cuentat_a_banco_tc',
9482          'to_field' => 'cuentaT_transferto_id',
9483          'this_table' => 'cuentat',
9484          'this_field' => 'cuentaT_id',
9485          'restrict_delete' => true,
9486          'delete_with_parent' => false,
9487          'on_delete_set_to' => 0,
9488        ),
9489      ),
9490      'cuentat_gasto' =>
9491      array (
9492        'cuentaT_id' =>
9493        array (
9494          'es' => 'child',
9495          'formato' => 'jqgrid',
9496          'to_table' => 'cuentat_gasto',
9497          'to_field' => 'cuentaT_id',
9498          'this_table' => 'cuentat',
9499          'this_field' => 'cuentaT_id',
9500          'restrict_delete' => true,
9501          'delete_with_parent' => false,
9502          'on_delete_set_to' => 0,
9503        ),
9504        'activo_cuentaT_mov_id' =>
9505        array (
9506          'es' => 'child',
9507          'formato' => 'jqgrid',
9508          'to_table' => 'cuentat_gasto',
9509          'to_field' => 'activo_cuentaT_mov_id',
9510          'this_table' => 'cuentat',
9511          'this_field' => 'cuentaT_id',
9512          'restrict_delete' => true,
9513          'delete_with_parent' => false,
9514          'on_delete_set_to' => 0,
9515        ),
9516        'cancelado_cuentaT_mov_id' =>
9517        array (
9518          'es' => 'child',
9519          'formato' => 'jqgrid',
9520          'to_table' => 'cuentat_gasto',
9521          'to_field' => 'cancelado_cuentaT_mov_id',
9522          'this_table' => 'cuentat',
9523          'this_field' => 'cuentaT_id',
9524          'restrict_delete' => true,
9525          'delete_with_parent' => false,
9526          'on_delete_set_to' => 0,
9527        ),
9528      ),
9529      'cuentat_ingreso' =>
9530      array (
9531        'cuentaT_id' =>
9532        array (
9533          'es' => 'child',
9534          'formato' => 'jqgrid',
9535          'to_table' => 'cuentat_ingreso',
9536          'to_field' => 'cuentaT_id',
9537          'this_table' => 'cuentat',
9538          'this_field' => 'cuentaT_id',
9539          'restrict_delete' => false,
9540          'delete_with_parent' => true,
9541          'on_delete_set_to' => 0,
9542        ),
9543        'activo_cuentaT_mov_id' =>
9544        array (
9545          'es' => 'child',
9546          'formato' => 'jqgrid',
9547          'to_table' => 'cuentat_ingreso',
9548          'to_field' => 'activo_cuentaT_mov_id',
9549          'this_table' => 'cuentat',
9550          'this_field' => 'cuentaT_id',
9551          'restrict_delete' => true,
9552          'delete_with_parent' => false,
9553          'on_delete_set_to' => 0,
9554        ),
9555        'cancelado_cuentaT_mov_id' =>
9556        array (
9557          'es' => 'child',
9558          'formato' => 'jqgrid',
9559          'to_table' => 'cuentat_ingreso',
9560          'to_field' => 'cancelado_cuentaT_mov_id',
9561          'this_table' => 'cuentat',
9562          'this_field' => 'cuentaT_id',
9563          'restrict_delete' => true,
9564          'delete_with_parent' => false,
9565          'on_delete_set_to' => 0,
9566        ),
9567      ),
9568      'cuentat_ingreso_xtienda' =>
9569      array (
9570        'cuentaT_id' =>
9571        array (
9572          'es' => 'child',
9573          'formato' => 'jqgrid',
9574          'to_table' => 'cuentat_ingreso_xtienda',
9575          'to_field' => 'cuentaT_id',
9576          'this_table' => 'cuentat',
9577          'this_field' => 'cuentaT_id',
9578          'restrict_delete' => false,
9579          'delete_with_parent' => true,
9580          'on_delete_set_to' => 0,
9581        ),
9582        'activo_cuentaT_mov_id' =>
9583        array (
9584          'es' => 'child',
9585          'formato' => 'jqgrid',
9586          'to_table' => 'cuentat_ingreso_xtienda',
9587          'to_field' => 'activo_cuentaT_mov_id',
9588          'this_table' => 'cuentat',
9589          'this_field' => 'cuentaT_id',
9590          'restrict_delete' => true,
9591          'delete_with_parent' => false,
9592          'on_delete_set_to' => 0,
9593        ),
9594        'cancelado_cuentaT_mov_id' =>
9595        array (
9596          'es' => 'child',
9597          'formato' => 'jqgrid',
9598          'to_table' => 'cuentat_ingreso_xtienda',
9599          'to_field' => 'cancelado_cuentaT_mov_id',
9600          'this_table' => 'cuentat',
9601          'this_field' => 'cuentaT_id',
9602          'restrict_delete' => true,
9603          'delete_with_parent' => false,
9604          'on_delete_set_to' => 0,
9605        ),
9606      ),
9607      'cuentat_mov' =>
9608      array (
9609        'cuentaT_id' =>
9610        array (
9611          'es' => 'child',
9612          'formato' => 'jqgrid',
9613          'to_table' => 'cuentat_mov',
9614          'to_field' => 'cuentaT_id',
9615          'this_table' => 'cuentat',
9616          'this_field' => 'cuentaT_id',
9617          'restrict_delete' => true,
9618          'delete_with_parent' => false,
9619          'on_delete_set_to' => 0,
9620        ),
9621        'cuentaT_deliveredto_id' =>
9622        array (
9623          'es' => 'child',
9624          'formato' => 'jqgrid',
9625          'to_table' => 'cuentat_mov',
9626          'to_field' => 'cuentaT_deliveredto_id',
9627          'this_table' => 'cuentat',
9628          'this_field' => 'cuentaT_id',
9629          'restrict_delete' => true,
9630          'delete_with_parent' => false,
9631          'on_delete_set_to' => 0,
9632        ),
9633        'cuentaT_transferto_id' =>
9634        array (
9635          'es' => 'child',
9636          'formato' => 'jqgrid',
9637          'to_table' => 'cuentat_mov',
9638          'to_field' => 'cuentaT_transferto_id',
9639          'this_table' => 'cuentat',
9640          'this_field' => 'cuentaT_id',
9641          'restrict_delete' => true,
9642          'delete_with_parent' => false,
9643          'on_delete_set_to' => 0,
9644        ),
9645      ),
9646      'cuentat_mov_con_links' =>
9647      array (
9648        'cuentaT_id' =>
9649        array (
9650          'es' => 'child',
9651          'formato' => 'jqgrid',
9652          'to_table' => 'cuentat_mov_con_links',
9653          'to_field' => 'cuentaT_id',
9654          'this_table' => 'cuentat',
9655          'this_field' => 'cuentaT_id',
9656          'restrict_delete' => false,
9657          'delete_with_parent' => true,
9658          'on_delete_set_to' => 0,
9659        ),
9660      ),
9661      'cuentat_mov_live' =>
9662      array (
9663        'cuentaT_id' =>
9664        array (
9665          'es' => 'child',
9666          'formato' => 'jqgrid',
9667          'to_table' => 'cuentat_mov_live',
9668          'to_field' => 'cuentaT_id',
9669          'this_table' => 'cuentat',
9670          'this_field' => 'cuentaT_id',
9671          'restrict_delete' => false,
9672          'delete_with_parent' => true,
9673          'on_delete_set_to' => 0,
9674        ),
9675      ),
9676      'cuentat_mov_pay' =>
9677      array (
9678        'cuentaT_id' =>
9679        array (
9680          'es' => 'child',
9681          'formato' => 'jqgrid',
9682          'to_table' => 'cuentat_mov_pay',
9683          'to_field' => 'cuentaT_id',
9684          'this_table' => 'cuentat',
9685          'this_field' => 'cuentaT_id',
9686          'restrict_delete' => false,
9687          'delete_with_parent' => true,
9688          'on_delete_set_to' => 0,
9689        ),
9690      ),
9691      'cuentat_mov_tmp' =>
9692      array (
9693        'cuentaT_id' =>
9694        array (
9695          'es' => 'child',
9696          'formato' => 'jqgrid',
9697          'to_table' => 'cuentat_mov_tmp',
9698          'to_field' => 'cuentaT_id',
9699          'this_table' => 'cuentat',
9700          'this_field' => 'cuentaT_id',
9701          'restrict_delete' => false,
9702          'delete_with_parent' => true,
9703          'on_delete_set_to' => 0,
9704        ),
9705      ),
9706      'cuentat_transfer' =>
9707      array (
9708        'cuentaT_de_id' =>
9709        array (
9710          'es' => 'catalog_entry',
9711          'formato' => 'link_one_select',
9712          'to_table' => 'cuentat_transfer',
9713          'to_field' => 'cuentaT_de_id',
9714          'this_table' => 'cuentat',
9715          'this_field' => 'cuentaT_id',
9716          'restrict_delete' => true,
9717          'delete_with_parent' => false,
9718          'on_delete_set_to' => 0,
9719        ),
9720        'cuentaT_a_id' =>
9721        array (
9722          'es' => 'catalog_entry',
9723          'formato' => 'link_one_select',
9724          'to_table' => 'cuentat_transfer',
9725          'to_field' => 'cuentaT_a_id',
9726          'this_table' => 'cuentat',
9727          'this_field' => 'cuentaT_id',
9728          'restrict_delete' => true,
9729          'delete_with_parent' => false,
9730          'on_delete_set_to' => 0,
9731        ),
9732      ),
9733      'delivered' =>
9734      array (
9735        'cuentaT_deliversFrom_id' =>
9736        array (
9737          'es' => 'catalog_entry',
9738          'formato' => 'link_one_select',
9739          'to_table' => 'delivered',
9740          'to_field' => 'cuentaT_deliversFrom_id',
9741          'this_table' => 'cuentat',
9742          'this_field' => 'cuentaT_id',
9743          'restrict_delete' => true,
9744          'delete_with_parent' => false,
9745          'on_delete_set_to' => 0,
9746        ),
9747        'cuentaT_to_id' =>
9748        array (
9749          'es' => 'catalog_entry',
9750          'formato' => 'link_one_select',
9751          'to_table' => 'delivered',
9752          'to_field' => 'cuentaT_to_id',
9753          'this_table' => 'cuentat',
9754          'this_field' => 'cuentaT_id',
9755          'restrict_delete' => true,
9756          'delete_with_parent' => false,
9757          'on_delete_set_to' => 0,
9758        ),
9759      ),
9760      'doctos' =>
9761      array (
9762        'cuentaT_deliveredto_id' =>
9763        array (
9764          'es' => 'catalog_entry',
9765          'formato' => 'link_one_select',
9766          'to_table' => 'doctos',
9767          'to_field' => 'cuentaT_deliveredto_id',
9768          'this_table' => 'cuentat',
9769          'this_field' => 'cuentaT_id',
9770          'restrict_delete' => true,
9771          'delete_with_parent' => false,
9772          'on_delete_set_to' => 0,
9773        ),
9774        'origen_cuentat_id' =>
9775        array (
9776          'es' => 'catalog_entry',
9777          'formato' => 'link_one_select',
9778          'to_table' => 'doctos',
9779          'to_field' => 'origen_cuentat_id',
9780          'this_table' => 'cuentat',
9781          'this_field' => 'cuentaT_id',
9782          'restrict_delete' => true,
9783          'delete_with_parent' => false,
9784          'on_delete_set_to' => 0,
9785        ),
9786      ),
9787      'gasto_empresa' =>
9788      array (
9789        'cuentaT_id' =>
9790        array (
9791          'es' => 'catalog_entry',
9792          'formato' => 'jqgrid',
9793          'to_table' => 'gasto_empresa',
9794          'to_field' => 'cuentaT_id',
9795          'this_table' => 'cuentat',
9796          'this_field' => 'cuentaT_id',
9797          'restrict_delete' => true,
9798          'delete_with_parent' => false,
9799          'on_delete_set_to' => 0,
9800        ),
9801      ),
9802      'iac_usr' =>
9803      array (
9804        'cuentat_preferida_id' =>
9805        array (
9806          'es' => 'catalog_entry',
9807          'formato' => 'link_one_select',
9808          'to_table' => 'iac_usr',
9809          'to_field' => 'cuentat_preferida_id',
9810          'this_table' => 'cuentat',
9811          'this_field' => 'cuentaT_id',
9812          'restrict_delete' => true,
9813          'delete_with_parent' => false,
9814          'on_delete_set_to' => 0,
9815        ),
9816      ),
9817      'links_al_banco' =>
9818      array (
9819        'cuentaT_id' =>
9820        array (
9821          'es' => 'catalog_entry',
9822          'formato' => 'jqgrid',
9823          'to_table' => 'links_al_banco',
9824          'to_field' => 'cuentaT_id',
9825          'this_table' => 'cuentat',
9826          'this_field' => 'cuentaT_id',
9827          'restrict_delete' => true,
9828          'delete_with_parent' => false,
9829          'on_delete_set_to' => 0,
9830        ),
9831      ),
9832      'links_al_banco_live' =>
9833      array (
9834        'cuentaT_id' =>
9835        array (
9836          'es' => 'catalog_entry',
9837          'formato' => 'jqgrid',
9838          'to_table' => 'links_al_banco_live',
9839          'to_field' => 'cuentaT_id',
9840          'this_table' => 'cuentat',
9841          'this_field' => 'cuentaT_id',
9842          'restrict_delete' => true,
9843          'delete_with_parent' => false,
9844          'on_delete_set_to' => 0,
9845        ),
9846      ),
9847      'pagare' =>
9848      array (
9849        'cuentaT_deliveredto_id' =>
9850        array (
9851          'es' => 'catalog_entry',
9852          'formato' => 'link_one_select',
9853          'to_table' => 'pagare',
9854          'to_field' => 'cuentaT_deliveredto_id',
9855          'this_table' => 'cuentat',
9856          'this_field' => 'cuentaT_id',
9857          'restrict_delete' => true,
9858          'delete_with_parent' => false,
9859          'on_delete_set_to' => 0,
9860        ),
9861        'cuentaT_transferto_id' =>
9862        array (
9863          'es' => 'catalog_entry',
9864          'formato' => 'link_one_select',
9865          'to_table' => 'pagare',
9866          'to_field' => 'cuentaT_transferto_id',
9867          'this_table' => 'cuentat',
9868          'this_field' => 'cuentaT_id',
9869          'restrict_delete' => true,
9870          'delete_with_parent' => false,
9871          'on_delete_set_to' => 0,
9872        ),
9873        'origen_cuentat_id' =>
9874        array (
9875          'es' => 'catalog_entry',
9876          'formato' => 'link_one_select',
9877          'to_table' => 'pagare',
9878          'to_field' => 'origen_cuentat_id',
9879          'this_table' => 'cuentat',
9880          'this_field' => 'cuentaT_id',
9881          'restrict_delete' => true,
9882          'delete_with_parent' => false,
9883          'on_delete_set_to' => 0,
9884        ),
9885      ),
9886      'pagare_log' =>
9887      array (
9888        'cuentaT_deliveredto_id' =>
9889        array (
9890          'es' => 'catalog_entry',
9891          'formato' => 'link_one_select',
9892          'to_table' => 'pagare_log',
9893          'to_field' => 'cuentaT_deliveredto_id',
9894          'this_table' => 'cuentat',
9895          'this_field' => 'cuentaT_id',
9896          'restrict_delete' => true,
9897          'delete_with_parent' => false,
9898          'on_delete_set_to' => 0,
9899        ),
9900        'cuentaT_transferto_id' =>
9901        array (
9902          'es' => 'catalog_entry',
9903          'formato' => 'link_one_select',
9904          'to_table' => 'pagare_log',
9905          'to_field' => 'cuentaT_transferto_id',
9906          'this_table' => 'cuentat',
9907          'this_field' => 'cuentaT_id',
9908          'restrict_delete' => true,
9909          'delete_with_parent' => false,
9910          'on_delete_set_to' => 0,
9911        ),
9912        'origen_cuentat_id' =>
9913        array (
9914          'es' => 'catalog_entry',
9915          'formato' => 'link_one_select',
9916          'to_table' => 'pagare_log',
9917          'to_field' => 'origen_cuentat_id',
9918          'this_table' => 'cuentat',
9919          'this_field' => 'cuentaT_id',
9920          'restrict_delete' => true,
9921          'delete_with_parent' => false,
9922          'on_delete_set_to' => 0,
9923        ),
9924      ),
9925      'pagare_pago' =>
9926      array (
9927        'cuentaT_id' =>
9928        array (
9929          'es' => 'catalog_entry',
9930          'formato' => 'jqgrid',
9931          'to_table' => 'pagare_pago',
9932          'to_field' => 'cuentaT_id',
9933          'this_table' => 'cuentat',
9934          'this_field' => 'cuentaT_id',
9935          'restrict_delete' => true,
9936          'delete_with_parent' => false,
9937          'on_delete_set_to' => 0,
9938        ),
9939      ),
9940      'pagare_pago_log' =>
9941      array (
9942        'cuentaT_id' =>
9943        array (
9944          'es' => 'catalog_entry',
9945          'formato' => 'jqgrid',
9946          'to_table' => 'pagare_pago_log',
9947          'to_field' => 'cuentaT_id',
9948          'this_table' => 'cuentat',
9949          'this_field' => 'cuentaT_id',
9950          'restrict_delete' => true,
9951          'delete_with_parent' => false,
9952          'on_delete_set_to' => 0,
9953        ),
9954      ),
9955      'pagare_test' =>
9956      array (
9957        'cuentaT_deliveredto_id' =>
9958        array (
9959          'es' => 'catalog_entry',
9960          'formato' => 'link_one_select',
9961          'to_table' => 'pagare_test',
9962          'to_field' => 'cuentaT_deliveredto_id',
9963          'this_table' => 'cuentat',
9964          'this_field' => 'cuentaT_id',
9965          'restrict_delete' => true,
9966          'delete_with_parent' => false,
9967          'on_delete_set_to' => 0,
9968        ),
9969        'cuentaT_transferto_id' =>
9970        array (
9971          'es' => 'catalog_entry',
9972          'formato' => 'link_one_select',
9973          'to_table' => 'pagare_test',
9974          'to_field' => 'cuentaT_transferto_id',
9975          'this_table' => 'cuentat',
9976          'this_field' => 'cuentaT_id',
9977          'restrict_delete' => true,
9978          'delete_with_parent' => false,
9979          'on_delete_set_to' => 0,
9980        ),
9981        'origen_cuentat_id' =>
9982        array (
9983          'es' => 'catalog_entry',
9984          'formato' => 'link_one_select',
9985          'to_table' => 'pagare_test',
9986          'to_field' => 'origen_cuentat_id',
9987          'this_table' => 'cuentat',
9988          'this_field' => 'cuentaT_id',
9989          'restrict_delete' => true,
9990          'delete_with_parent' => false,
9991          'on_delete_set_to' => 0,
9992        ),
9993      ),
9994      'permiso_ctat' =>
9995      array (
9996        'cuentaT_id' =>
9997        array (
9998          'es' => 'catalog_entry',
9999          'formato' => 'jqgrid',
10000          'to_table' => 'permiso_ctat',
10001          'to_field' => 'cuentaT_id',
10002          'this_table' => 'cuentat',
10003          'this_field' => 'cuentaT_id',
10004          'restrict_delete' => true,
10005          'delete_with_parent' => false,
10006          'on_delete_set_to' => 0,
10007        ),
10008      ),
10009      'vale' =>
10010      array (
10011        'cuentaT_id' =>
10012        array (
10013          'es' => 'catalog_entry',
10014          'formato' => 'jqgrid',
10015          'to_table' => 'vale',
10016          'to_field' => 'cuentaT_id',
10017          'this_table' => 'cuentat',
10018          'this_field' => 'cuentaT_id',
10019          'restrict_delete' => true,
10020          'delete_with_parent' => false,
10021          'on_delete_set_to' => 0,
10022        ),
10023        'dinero_en_cuentaT_id' =>
10024        array (
10025          'es' => 'catalog_entry',
10026          'formato' => 'jqgrid',
10027          'to_table' => 'vale',
10028          'to_field' => 'dinero_en_cuentaT_id',
10029          'this_table' => 'cuentat',
10030          'this_field' => 'cuentaT_id',
10031          'restrict_delete' => true,
10032          'delete_with_parent' => false,
10033          'on_delete_set_to' => 0,
10034        ),
10035      ),
10036      'vale_log' =>
10037      array (
10038        'cuentaT_id' =>
10039        array (
10040          'es' => 'catalog_entry',
10041          'formato' => 'jqgrid',
10042          'to_table' => 'vale_log',
10043          'to_field' => 'cuentaT_id',
10044          'this_table' => 'cuentat',
10045          'this_field' => 'cuentaT_id',
10046          'restrict_delete' => true,
10047          'delete_with_parent' => false,
10048          'on_delete_set_to' => 0,
10049        ),
10050        'dinero_en_cuentaT_id' =>
10051        array (
10052          'es' => 'catalog_entry',
10053          'formato' => 'jqgrid',
10054          'to_table' => 'vale_log',
10055          'to_field' => 'dinero_en_cuentaT_id',
10056          'this_table' => 'cuentat',
10057          'this_field' => 'cuentaT_id',
10058          'restrict_delete' => true,
10059          'delete_with_parent' => false,
10060          'on_delete_set_to' => 0,
10061        ),
10062      ),
10063      'vale_pago' =>
10064      array (
10065        'cuentaT_id' =>
10066        array (
10067          'es' => 'catalog_entry',
10068          'formato' => 'jqgrid',
10069          'to_table' => 'vale_pago',
10070          'to_field' => 'cuentaT_id',
10071          'this_table' => 'cuentat',
10072          'this_field' => 'cuentaT_id',
10073          'restrict_delete' => true,
10074          'delete_with_parent' => false,
10075          'on_delete_set_to' => 0,
10076        ),
10077      ),
10078      'vale_pago_log' =>
10079      array (
10080        'cuentaT_id' =>
10081        array (
10082          'es' => 'catalog_entry',
10083          'formato' => 'jqgrid',
10084          'to_table' => 'vale_pago_log',
10085          'to_field' => 'cuentaT_id',
10086          'this_table' => 'cuentat',
10087          'this_field' => 'cuentaT_id',
10088          'restrict_delete' => true,
10089          'delete_with_parent' => false,
10090          'on_delete_set_to' => 0,
10091        ),
10092      ),
10093    ),
10094    'links_to' =>
10095    array (
10096      'iac_usr' =>
10097      array (
10098        'usuario_id' =>
10099        array (
10100          'es' => 'catalog',
10101          'formato' => 'link_one_select',
10102          'to_table' => 'iac_usr',
10103          'to_field' => 'iac_usr_id',
10104          'this_table' => 'cuentat',
10105          'this_field' => 'usuario_id',
10106        ),
10107      ),
10108      'tienda' =>
10109      array (
10110        'tienda_id' =>
10111        array (
10112          'es' => 'catalog',
10113          'formato' => 'link_one_select',
10114          'to_table' => 'tienda',
10115          'to_field' => 'tienda_id',
10116          'this_table' => 'cuentat',
10117          'this_field' => 'tienda_id',
10118        ),
10119      ),
10120      'cuentat' =>
10121      array (
10122        'aceptar_cuentat_id' =>
10123        array (
10124          'es' => 'catalog',
10125          'formato' => 'link_one_select',
10126          'to_table' => 'cuentat',
10127          'to_field' => 'cuentaT_id',
10128          'this_table' => 'cuentat',
10129          'this_field' => 'aceptar_cuentat_id',
10130        ),
10131      ),
10132    ),
10133  ),
10134  'cuentat_a_banco' =>
10135  array (
10136    'es' => 'child',
10137    'pk_single_field' => 'cuentat_a_banco_mov_id',
10138    'pk_single_type' => 'uuid',
10139    'label_field' => 'referencia',
10140    'has_seq' => false,
10141    'has_child' => false,
10142    'has_datetime' => true,
10143    'has_numeric' => true,
10144    'has_date' => true,
10145    'has_file_upload' => true,
10146    'links_to' =>
10147    array (
10148      'cuentat' =>
10149      array (
10150        'cuentaT_id' =>
10151        array (
10152          'es' => 'catalog',
10153          'formato' => 'link_one_select',
10154          'to_table' => 'cuentat',
10155          'to_field' => 'cuentaT_id',
10156          'this_table' => 'cuentat_a_banco',
10157          'this_field' => 'cuentaT_id',
10158        ),
10159        'cuentaT_deliveredto_id' =>
10160        array (
10161          'es' => 'catalog',
10162          'formato' => 'link_one_select',
10163          'to_table' => 'cuentat',
10164          'to_field' => 'cuentaT_id',
10165          'this_table' => 'cuentat_a_banco',
10166          'this_field' => 'cuentaT_deliveredto_id',
10167        ),
10168        'cuentaT_transferto_id' =>
10169        array (
10170          'es' => 'catalog',
10171          'formato' => 'link_one_select',
10172          'to_table' => 'cuentat',
10173          'to_field' => 'cuentaT_id',
10174          'this_table' => 'cuentat_a_banco',
10175          'this_field' => 'cuentaT_transferto_id',
10176        ),
10177      ),
10178      'cuentat_tipo_mov' =>
10179      array (
10180        'cuentaT_tipo_mov_id' =>
10181        array (
10182          'es' => 'catalog',
10183          'formato' => 'link_one_select',
10184          'to_table' => 'cuentat_tipo_mov',
10185          'to_field' => 'cuentaT_tipo_mov_id',
10186          'this_table' => 'cuentat_a_banco',
10187          'this_field' => 'cuentaT_tipo_mov_id',
10188        ),
10189      ),
10190      'moneda' =>
10191      array (
10192        'moneda_id' =>
10193        array (
10194          'es' => 'catalog',
10195          'formato' => 'link_one_select',
10196          'to_table' => 'moneda',
10197          'to_field' => 'moneda_id',
10198          'this_table' => 'cuentat_a_banco',
10199          'this_field' => 'moneda_id',
10200        ),
10201      ),
10202      'banco_cuenta' =>
10203      array (
10204        'banco_cuenta_id' =>
10205        array (
10206          'es' => 'catalog',
10207          'formato' => 'link_one_select',
10208          'to_table' => 'banco_cuenta',
10209          'to_field' => 'banco_cuenta_id',
10210          'this_table' => 'cuentat_a_banco',
10211          'this_field' => 'banco_cuenta_id',
10212        ),
10213      ),
10214      'banco_cuenta_mov_link' =>
10215      array (
10216        'banco_cuenta_mov_link_id' =>
10217        array (
10218          'es' => 'catalog',
10219          'formato' => 'link_one_select',
10220          'to_table' => 'banco_cuenta_mov_link',
10221          'to_field' => 'banco_cuenta_mov_link_id',
10222          'this_table' => 'cuentat_a_banco',
10223          'this_field' => 'banco_cuenta_mov_link_id',
10224        ),
10225      ),
10226      'tienda' =>
10227      array (
10228        'tienda_id' =>
10229        array (
10230          'es' => 'catalog',
10231          'formato' => 'link_one_select',
10232          'to_table' => 'tienda',
10233          'to_field' => 'tienda_id',
10234          'this_table' => 'cuentat_a_banco',
10235          'this_field' => 'tienda_id',
10236        ),
10237      ),
10238      'empresa' =>
10239      array (
10240        'empresa_id' =>
10241        array (
10242          'es' => 'catalog',
10243          'formato' => 'link_one_select',
10244          'to_table' => 'empresa',
10245          'to_field' => 'empresa_id',
10246          'this_table' => 'cuentat_a_banco',
10247          'this_field' => 'empresa_id',
10248        ),
10249      ),
10250      'cliente' =>
10251      array (
10252        'contpaq_cliente_id' =>
10253        array (
10254          'es' => 'catalog',
10255          'formato' => 'link_one_select',
10256          'to_table' => 'cliente',
10257          'to_field' => 'cliente_id',
10258          'this_table' => 'cuentat_a_banco',
10259          'this_field' => 'contpaq_cliente_id',
10260        ),
10261      ),
10262      'cuentat_mov' =>
10263      array (
10264        'cuentaT_mov_id' =>
10265        array (
10266          'es' => 'catalog',
10267          'formato' => 'link_one_select',
10268          'to_table' => 'cuentat_mov',
10269          'to_field' => 'cuentaT_mov_id',
10270          'this_table' => 'cuentat_a_banco',
10271          'this_field' => 'cuentaT_mov_id',
10272        ),
10273      ),
10274    ),
10275  ),
10276  'cuentat_a_banco_links' =>
10277  array (
10278    'es' => 'child',
10279    'label_field' => 'cuentat_a_banco_mov_id',
10280    'has_seq' => false,
10281    'has_child' => false,
10282    'has_datetime' => true,
10283    'has_numeric' => true,
10284    'links_to' =>
10285    array (
10286      'cuentat' =>
10287      array (
10288        'cuentat_a_banco_mov_id' =>
10289        array (
10290          'es' => 'catalog',
10291          'formato' => 'link_one_select',
10292          'to_table' => 'cuentat',
10293          'to_field' => 'cuentaT_id',
10294          'this_table' => 'cuentat_a_banco_links',
10295          'this_field' => 'cuentat_a_banco_mov_id',
10296        ),
10297        'cuentaT_id' =>
10298        array (
10299          'es' => 'catalog',
10300          'formato' => 'link_one_select',
10301          'to_table' => 'cuentat',
10302          'to_field' => 'cuentaT_id',
10303          'this_table' => 'cuentat_a_banco_links',
10304          'this_field' => 'cuentaT_id',
10305        ),
10306        'cuentaT_deliveredto_id' =>
10307        array (
10308          'es' => 'catalog',
10309          'formato' => 'link_one_select',
10310          'to_table' => 'cuentat',
10311          'to_field' => 'cuentaT_id',
10312          'this_table' => 'cuentat_a_banco_links',
10313          'this_field' => 'cuentaT_deliveredto_id',
10314        ),
10315        'cuentaT_transferto_id' =>
10316        array (
10317          'es' => 'catalog',
10318          'formato' => 'link_one_select',
10319          'to_table' => 'cuentat',
10320          'to_field' => 'cuentaT_id',
10321          'this_table' => 'cuentat_a_banco_links',
10322          'this_field' => 'cuentaT_transferto_id',
10323        ),
10324      ),
10325      'cuentat_tipo_mov' =>
10326      array (
10327        'cuentaT_tipo_mov_id' =>
10328        array (
10329          'es' => 'catalog',
10330          'formato' => 'link_one_select',
10331          'to_table' => 'cuentat_tipo_mov',
10332          'to_field' => 'cuentaT_tipo_mov_id',
10333          'this_table' => 'cuentat_a_banco_links',
10334          'this_field' => 'cuentaT_tipo_mov_id',
10335        ),
10336      ),
10337      'moneda' =>
10338      array (
10339        'moneda_id' =>
10340        array (
10341          'es' => 'catalog',
10342          'formato' => 'link_one_select',
10343          'to_table' => 'moneda',
10344          'to_field' => 'moneda_id',
10345          'this_table' => 'cuentat_a_banco_links',
10346          'this_field' => 'moneda_id',
10347        ),
10348      ),
10349      'banco_cuenta' =>
10350      array (
10351        'banco_cuenta_id' =>
10352        array (
10353          'es' => 'catalog',
10354          'formato' => 'link_one_select',
10355          'to_table' => 'banco_cuenta',
10356          'to_field' => 'banco_cuenta_id',
10357          'this_table' => 'cuentat_a_banco_links',
10358          'this_field' => 'banco_cuenta_id',
10359        ),
10360      ),
10361      'banco_cuenta_mov_link' =>
10362      array (
10363        'banco_cuenta_mov_link_id' =>
10364        array (
10365          'es' => 'catalog',
10366          'formato' => 'link_one_select',
10367          'to_table' => 'banco_cuenta_mov_link',
10368          'to_field' => 'banco_cuenta_mov_link_id',
10369          'this_table' => 'cuentat_a_banco_links',
10370          'this_field' => 'banco_cuenta_mov_link_id',
10371        ),
10372      ),
10373      'tienda' =>
10374      array (
10375        'tienda_id' =>
10376        array (
10377          'es' => 'catalog',
10378          'formato' => 'link_one_select',
10379          'to_table' => 'tienda',
10380          'to_field' => 'tienda_id',
10381          'this_table' => 'cuentat_a_banco_links',
10382          'this_field' => 'tienda_id',
10383        ),
10384        'link_tienda_id' =>
10385        array (
10386          'es' => 'catalog',
10387          'formato' => 'link_one_select',
10388          'to_table' => 'tienda',
10389          'to_field' => 'tienda_id',
10390          'this_table' => 'cuentat_a_banco_links',
10391          'this_field' => 'link_tienda_id',
10392        ),
10393      ),
10394      'empresa' =>
10395      array (
10396        'empresa_id' =>
10397        array (
10398          'es' => 'catalog',
10399          'formato' => 'link_one_select',
10400          'to_table' => 'empresa',
10401          'to_field' => 'empresa_id',
10402          'this_table' => 'cuentat_a_banco_links',
10403          'this_field' => 'empresa_id',
10404        ),
10405      ),
10406    ),
10407  ),
10408  'cuentat_a_banco_tc' =>
10409  array (
10410    'es' => 'child',
10411    'pk_single_field' => 'cuentat_a_banco_tc_mov_id',
10412    'pk_single_type' => 'uuid',
10413    'label_field' => 'referencia',
10414    'has_seq' => false,
10415    'has_child' => false,
10416    'has_datetime' => true,
10417    'has_numeric' => true,
10418    'has_date' => true,
10419    'has_file_upload' => true,
10420    'links_to' =>
10421    array (
10422      'cuentat' =>
10423      array (
10424        'cuentaT_id' =>
10425        array (
10426          'es' => 'catalog',
10427          'formato' => 'link_one_select',
10428          'to_table' => 'cuentat',
10429          'to_field' => 'cuentaT_id',
10430          'this_table' => 'cuentat_a_banco_tc',
10431          'this_field' => 'cuentaT_id',
10432        ),
10433        'cuentaT_deliveredto_id' =>
10434        array (
10435          'es' => 'catalog',
10436          'formato' => 'link_one_select',
10437          'to_table' => 'cuentat',
10438          'to_field' => 'cuentaT_id',
10439          'this_table' => 'cuentat_a_banco_tc',
10440          'this_field' => 'cuentaT_deliveredto_id',
10441        ),
10442        'cuentaT_transferto_id' =>
10443        array (
10444          'es' => 'catalog',
10445          'formato' => 'link_one_select',
10446          'to_table' => 'cuentat',
10447          'to_field' => 'cuentaT_id',
10448          'this_table' => 'cuentat_a_banco_tc',
10449          'this_field' => 'cuentaT_transferto_id',
10450        ),
10451      ),
10452      'cuentat_tipo_mov' =>
10453      array (
10454        'cuentaT_tipo_mov_id' =>
10455        array (
10456          'es' => 'catalog',
10457          'formato' => 'link_one_select',
10458          'to_table' => 'cuentat_tipo_mov',
10459          'to_field' => 'cuentaT_tipo_mov_id',
10460          'this_table' => 'cuentat_a_banco_tc',
10461          'this_field' => 'cuentaT_tipo_mov_id',
10462        ),
10463      ),
10464      'moneda' =>
10465      array (
10466        'moneda_id' =>
10467        array (
10468          'es' => 'catalog',
10469          'formato' => 'link_one_select',
10470          'to_table' => 'moneda',
10471          'to_field' => 'moneda_id',
10472          'this_table' => 'cuentat_a_banco_tc',
10473          'this_field' => 'moneda_id',
10474        ),
10475      ),
10476      'banco_cuenta' =>
10477      array (
10478        'banco_cuenta_id' =>
10479        array (
10480          'es' => 'catalog',
10481          'formato' => 'link_one_select',
10482          'to_table' => 'banco_cuenta',
10483          'to_field' => 'banco_cuenta_id',
10484          'this_table' => 'cuentat_a_banco_tc',
10485          'this_field' => 'banco_cuenta_id',
10486        ),
10487      ),
10488      'banco_cuenta_mov_link' =>
10489      array (
10490        'banco_cuenta_mov_link_id' =>
10491        array (
10492          'es' => 'catalog',
10493          'formato' => 'link_one_select',
10494          'to_table' => 'banco_cuenta_mov_link',
10495          'to_field' => 'banco_cuenta_mov_link_id',
10496          'this_table' => 'cuentat_a_banco_tc',
10497          'this_field' => 'banco_cuenta_mov_link_id',
10498        ),
10499      ),
10500      'tienda' =>
10501      array (
10502        'tienda_id' =>
10503        array (
10504          'es' => 'catalog',
10505          'formato' => 'link_one_select',
10506          'to_table' => 'tienda',
10507          'to_field' => 'tienda_id',
10508          'this_table' => 'cuentat_a_banco_tc',
10509          'this_field' => 'tienda_id',
10510        ),
10511      ),
10512      'empresa' =>
10513      array (
10514        'empresa_id' =>
10515        array (
10516          'es' => 'catalog',
10517          'formato' => 'link_one_select',
10518          'to_table' => 'empresa',
10519          'to_field' => 'empresa_id',
10520          'this_table' => 'cuentat_a_banco_tc',
10521          'this_field' => 'empresa_id',
10522        ),
10523      ),
10524      'cliente' =>
10525      array (
10526        'contpaq_cliente_id' =>
10527        array (
10528          'es' => 'catalog',
10529          'formato' => 'link_one_select',
10530          'to_table' => 'cliente',
10531          'to_field' => 'cliente_id',
10532          'this_table' => 'cuentat_a_banco_tc',
10533          'this_field' => 'contpaq_cliente_id',
10534        ),
10535      ),
10536    ),
10537  ),
10538  'cuentat_gasto' =>
10539  array (
10540    'es' => 'child',
10541    'pk_single_field' => 'cuentat_gasto_id',
10542    'pk_single_type' => 'uuid',
10543    'label_field' => 'autorizado_por',
10544    'has_seq' => false,
10545    'has_child' => true,
10546    'has_datetime' => true,
10547    'has_numeric' => true,
10548    'has_fckeditor' => true,
10549    'links_from' =>
10550    array (
10551      'asignacion' =>
10552      array (
10553        'cuentat_gasto_id' =>
10554        array (
10555          'es' => 'catalog_entry',
10556          'formato' => 'jqgrid',
10557          'to_table' => 'asignacion',
10558          'to_field' => 'cuentat_gasto_id',
10559          'this_table' => 'cuentat_gasto',
10560          'this_field' => 'cuentat_gasto_id',
10561          'restrict_delete' => true,
10562          'delete_with_parent' => false,
10563          'on_delete_set_to' => 0,
10564        ),
10565      ),
10566    ),
10567    'links_to' =>
10568    array (
10569      'cuentat' =>
10570      array (
10571        'cuentaT_id' =>
10572        array (
10573          'es' => 'catalog',
10574          'formato' => 'link_one_select',
10575          'to_table' => 'cuentat',
10576          'to_field' => 'cuentaT_id',
10577          'this_table' => 'cuentat_gasto',
10578          'this_field' => 'cuentaT_id',
10579        ),
10580        'activo_cuentaT_mov_id' =>
10581        array (
10582          'es' => 'catalog',
10583          'formato' => 'link_one_select',
10584          'to_table' => 'cuentat',
10585          'to_field' => 'cuentaT_id',
10586          'this_table' => 'cuentat_gasto',
10587          'this_field' => 'activo_cuentaT_mov_id',
10588        ),
10589        'cancelado_cuentaT_mov_id' =>
10590        array (
10591          'es' => 'catalog',
10592          'formato' => 'link_one_select',
10593          'to_table' => 'cuentat',
10594          'to_field' => 'cuentaT_id',
10595          'this_table' => 'cuentat_gasto',
10596          'this_field' => 'cancelado_cuentaT_mov_id',
10597        ),
10598      ),
10599      'cuentat_tipo_mov' =>
10600      array (
10601        'cuentaT_tipo_mov_id' =>
10602        array (
10603          'es' => 'catalog',
10604          'formato' => 'link_one_select',
10605          'to_table' => 'cuentat_tipo_mov',
10606          'to_field' => 'cuentaT_tipo_mov_id',
10607          'this_table' => 'cuentat_gasto',
10608          'this_field' => 'cuentaT_tipo_mov_id',
10609        ),
10610      ),
10611      'moneda' =>
10612      array (
10613        'moneda_id' =>
10614        array (
10615          'es' => 'catalog',
10616          'formato' => 'link_one_select',
10617          'to_table' => 'moneda',
10618          'to_field' => 'moneda_id',
10619          'this_table' => 'cuentat_gasto',
10620          'this_field' => 'moneda_id',
10621        ),
10622      ),
10623      'plantilla_cuentat_gasto' =>
10624      array (
10625        'plantilla_cuentat_gasto_id' =>
10626        array (
10627          'es' => 'catalog',
10628          'formato' => 'link_one_select',
10629          'to_table' => 'plantilla_cuentat_gasto',
10630          'to_field' => 'plantilla_cuentat_gasto_id',
10631          'this_table' => 'cuentat_gasto',
10632          'this_field' => 'plantilla_cuentat_gasto_id',
10633        ),
10634      ),
10635    ),
10636  ),
10637  'cuentat_ingreso' =>
10638  array (
10639    'es' => 'child',
10640    'pk_single_field' => 'cuentat_ingreso_id',
10641    'pk_single_type' => 'uuid',
10642    'label_field' => 'entregado_por',
10643    'has_seq' => false,
10644    'has_child' => false,
10645    'has_datetime' => true,
10646    'has_numeric' => true,
10647    'links_to' =>
10648    array (
10649      'cuentat' =>
10650      array (
10651        'cuentaT_id' =>
10652        array (
10653          'es' => 'catalog',
10654          'formato' => 'link_one_select',
10655          'to_table' => 'cuentat',
10656          'to_field' => 'cuentaT_id',
10657          'this_table' => 'cuentat_ingreso',
10658          'this_field' => 'cuentaT_id',
10659        ),
10660        'activo_cuentaT_mov_id' =>
10661        array (
10662          'es' => 'catalog',
10663          'formato' => 'link_one_select',
10664          'to_table' => 'cuentat',
10665          'to_field' => 'cuentaT_id',
10666          'this_table' => 'cuentat_ingreso',
10667          'this_field' => 'activo_cuentaT_mov_id',
10668        ),
10669        'cancelado_cuentaT_mov_id' =>
10670        array (
10671          'es' => 'catalog',
10672          'formato' => 'link_one_select',
10673          'to_table' => 'cuentat',
10674          'to_field' => 'cuentaT_id',
10675          'this_table' => 'cuentat_ingreso',
10676          'this_field' => 'cancelado_cuentaT_mov_id',
10677        ),
10678      ),
10679      'tienda' =>
10680      array (
10681        'tienda_id' =>
10682        array (
10683          'es' => 'catalog',
10684          'formato' => 'link_one_select',
10685          'to_table' => 'tienda',
10686          'to_field' => 'tienda_id',
10687          'this_table' => 'cuentat_ingreso',
10688          'this_field' => 'tienda_id',
10689        ),
10690      ),
10691      'cuentat_tipo_mov' =>
10692      array (
10693        'cuentaT_tipo_mov_id' =>
10694        array (
10695          'es' => 'catalog',
10696          'formato' => 'link_one_select',
10697          'to_table' => 'cuentat_tipo_mov',
10698          'to_field' => 'cuentaT_tipo_mov_id',
10699          'this_table' => 'cuentat_ingreso',
10700          'this_field' => 'cuentaT_tipo_mov_id',
10701        ),
10702      ),
10703      'moneda' =>
10704      array (
10705        'moneda_id' =>
10706        array (
10707          'es' => 'catalog',
10708          'formato' => 'link_one_select',
10709          'to_table' => 'moneda',
10710          'to_field' => 'moneda_id',
10711          'this_table' => 'cuentat_ingreso',
10712          'this_field' => 'moneda_id',
10713        ),
10714      ),
10715    ),
10716    'links_from' =>
10717    array (
10718      'cuentat_ingreso_xtienda' =>
10719      array (
10720        'es' => 'one2one',
10721      ),
10722    ),
10723  ),
10724  'cuentat_ingreso_xtienda' =>
10725  array (
10726    'es' => 'child',
10727    'pk_single_field' => 'cuentat_ingreso_id',
10728    'pk_single_type' => 'uuid',
10729    'label_field' => 'entregado_por',
10730    'has_seq' => false,
10731    'has_child' => false,
10732    'has_datetime' => true,
10733    'has_numeric' => true,
10734    'links_to' =>
10735    array (
10736      'cuentat' =>
10737      array (
10738        'cuentaT_id' =>
10739        array (
10740          'es' => 'catalog',
10741          'formato' => 'link_one_select',
10742          'to_table' => 'cuentat',
10743          'to_field' => 'cuentaT_id',
10744          'this_table' => 'cuentat_ingreso_xtienda',
10745          'this_field' => 'cuentaT_id',
10746        ),
10747        'activo_cuentaT_mov_id' =>
10748        array (
10749          'es' => 'catalog',
10750          'formato' => 'link_one_select',
10751          'to_table' => 'cuentat',
10752          'to_field' => 'cuentaT_id',
10753          'this_table' => 'cuentat_ingreso_xtienda',
10754          'this_field' => 'activo_cuentaT_mov_id',
10755        ),
10756        'cancelado_cuentaT_mov_id' =>
10757        array (
10758          'es' => 'catalog',
10759          'formato' => 'link_one_select',
10760          'to_table' => 'cuentat',
10761          'to_field' => 'cuentaT_id',
10762          'this_table' => 'cuentat_ingreso_xtienda',
10763          'this_field' => 'cancelado_cuentaT_mov_id',
10764        ),
10765      ),
10766      'tienda' =>
10767      array (
10768        'tienda_id' =>
10769        array (
10770          'es' => 'catalog',
10771          'formato' => 'link_one_select',
10772          'to_table' => 'tienda',
10773          'to_field' => 'tienda_id',
10774          'this_table' => 'cuentat_ingreso_xtienda',
10775          'this_field' => 'tienda_id',
10776        ),
10777      ),
10778      'cuentat_tipo_mov' =>
10779      array (
10780        'cuentaT_tipo_mov_id' =>
10781        array (
10782          'es' => 'catalog',
10783          'formato' => 'link_one_select',
10784          'to_table' => 'cuentat_tipo_mov',
10785          'to_field' => 'cuentaT_tipo_mov_id',
10786          'this_table' => 'cuentat_ingreso_xtienda',
10787          'this_field' => 'cuentaT_tipo_mov_id',
10788        ),
10789      ),
10790      'moneda' =>
10791      array (
10792        'moneda_id' =>
10793        array (
10794          'es' => 'catalog',
10795          'formato' => 'link_one_select',
10796          'to_table' => 'moneda',
10797          'to_field' => 'moneda_id',
10798          'this_table' => 'cuentat_ingreso_xtienda',
10799          'this_field' => 'moneda_id',
10800        ),
10801      ),
10802    ),
10803    'links_from' =>
10804    array (
10805      'cuentat_ingreso' =>
10806      array (
10807        'es' => 'one2one',
10808      ),
10809    ),
10810  ),
10811  'cuentat_mov' =>
10812  array (
10813    'es' => 'parent',
10814    'pk_single_field' => 'cuentaT_mov_id',
10815    'pk_single_type' => 'uuid',
10816    'label_field' => 'referencia',
10817    'has_seq' => false,
10818    'has_child' => true,
10819    'has_datetime' => true,
10820    'has_numeric' => true,
10821    'has_file_upload' => true,
10822    'links_from' =>
10823    array (
10824      'a_cuentas_live' =>
10825      array (
10826        'cuenta_t_mov_id' =>
10827        array (
10828          'es' => 'catalog_entry',
10829          'formato' => 'link_one_select',
10830          'to_table' => 'a_cuentas_live',
10831          'to_field' => 'cuenta_t_mov_id',
10832          'this_table' => 'cuentat_mov',
10833          'this_field' => 'cuentaT_mov_id',
10834          'restrict_delete' => true,
10835          'delete_with_parent' => false,
10836          'on_delete_set_to' => 0,
10837        ),
10838      ),
10839      'cash_pago' =>
10840      array (
10841        'cuenta_t_mov_id' =>
10842        array (
10843          'es' => 'catalog_entry',
10844          'formato' => 'link_one_select',
10845          'to_table' => 'cash_pago',
10846          'to_field' => 'cuenta_t_mov_id',
10847          'this_table' => 'cuentat_mov',
10848          'this_field' => 'cuentaT_mov_id',
10849          'restrict_delete' => true,
10850          'delete_with_parent' => false,
10851          'on_delete_set_to' => 0,
10852        ),
10853      ),
10854      'cheque' =>
10855      array (
10856        'cuentat_mov_id' =>
10857        array (
10858          'es' => 'catalog_entry',
10859          'formato' => 'link_one_select',
10860          'to_table' => 'cheque',
10861          'to_field' => 'cuentat_mov_id',
10862          'this_table' => 'cuentat_mov',
10863          'this_field' => 'cuentaT_mov_id',
10864          'restrict_delete' => true,
10865          'delete_with_parent' => false,
10866          'on_delete_set_to' => 0,
10867        ),
10868      ),
10869      'cheque_log' =>
10870      array (
10871        'cuentat_mov_id' =>
10872        array (
10873          'es' => 'catalog_entry',
10874          'formato' => 'link_one_select',
10875          'to_table' => 'cheque_log',
10876          'to_field' => 'cuentat_mov_id',
10877          'this_table' => 'cuentat_mov',
10878          'this_field' => 'cuentaT_mov_id',
10879          'restrict_delete' => true,
10880          'delete_with_parent' => false,
10881          'on_delete_set_to' => 0,
10882        ),
10883      ),
10884      'cheque_pago' =>
10885      array (
10886        'cuenta_t_mov_id' =>
10887        array (
10888          'es' => 'catalog_entry',
10889          'formato' => 'link_one_select',
10890          'to_table' => 'cheque_pago',
10891          'to_field' => 'cuenta_t_mov_id',
10892          'this_table' => 'cuentat_mov',
10893          'this_field' => 'cuentaT_mov_id',
10894          'restrict_delete' => true,
10895          'delete_with_parent' => false,
10896          'on_delete_set_to' => 0,
10897        ),
10898      ),
10899      'cheque_pago_log' =>
10900      array (
10901        'cuenta_t_mov_id' =>
10902        array (
10903          'es' => 'catalog_entry',
10904          'formato' => 'link_one_select',
10905          'to_table' => 'cheque_pago_log',
10906          'to_field' => 'cuenta_t_mov_id',
10907          'this_table' => 'cuentat_mov',
10908          'this_field' => 'cuentaT_mov_id',
10909          'restrict_delete' => true,
10910          'delete_with_parent' => false,
10911          'on_delete_set_to' => 0,
10912        ),
10913      ),
10914      'compra' =>
10915      array (
10916        'cuentat_mov_id' =>
10917        array (
10918          'es' => 'catalog_entry',
10919          'formato' => 'link_one_select',
10920          'to_table' => 'compra',
10921          'to_field' => 'cuentat_mov_id',
10922          'this_table' => 'cuentat_mov',
10923          'this_field' => 'cuentaT_mov_id',
10924          'restrict_delete' => true,
10925          'delete_with_parent' => false,
10926          'on_delete_set_to' => 0,
10927        ),
10928      ),
10929      'compra_log' =>
10930      array (
10931        'cuentat_mov_id' =>
10932        array (
10933          'es' => 'catalog_entry',
10934          'formato' => 'link_one_select',
10935          'to_table' => 'compra_log',
10936          'to_field' => 'cuentat_mov_id',
10937          'this_table' => 'cuentat_mov',
10938          'this_field' => 'cuentaT_mov_id',
10939          'restrict_delete' => true,
10940          'delete_with_parent' => false,
10941          'on_delete_set_to' => 0,
10942        ),
10943      ),
10944      'compra_pago' =>
10945      array (
10946        'cuenta_t_mov_id' =>
10947        array (
10948          'es' => 'catalog_entry',
10949          'formato' => 'link_one_select',
10950          'to_table' => 'compra_pago',
10951          'to_field' => 'cuenta_t_mov_id',
10952          'this_table' => 'cuentat_mov',
10953          'this_field' => 'cuentaT_mov_id',
10954          'restrict_delete' => true,
10955          'delete_with_parent' => false,
10956          'on_delete_set_to' => 0,
10957        ),
10958      ),
10959      'compra_pago_log' =>
10960      array (
10961        'cuenta_t_mov_id' =>
10962        array (
10963          'es' => 'catalog_entry',
10964          'formato' => 'link_one_select',
10965          'to_table' => 'compra_pago_log',
10966          'to_field' => 'cuenta_t_mov_id',
10967          'this_table' => 'cuentat_mov',
10968          'this_field' => 'cuentaT_mov_id',
10969          'restrict_delete' => true,
10970          'delete_with_parent' => false,
10971          'on_delete_set_to' => 0,
10972        ),
10973      ),
10974      'cuentat_a_banco' =>
10975      array (
10976        'cuentaT_mov_id' =>
10977        array (
10978          'es' => 'catalog_entry',
10979          'formato' => 'jqgrid',
10980          'to_table' => 'cuentat_a_banco',
10981          'to_field' => 'cuentaT_mov_id',
10982          'this_table' => 'cuentat_mov',
10983          'this_field' => 'cuentaT_mov_id',
10984          'restrict_delete' => true,
10985          'delete_with_parent' => false,
10986          'on_delete_set_to' => 0,
10987        ),
10988      ),
10989      'cuentat_mov_con_links' =>
10990      array (
10991        'cuentaT_mov_id' =>
10992        array (
10993          'es' => 'catalog_entry',
10994          'formato' => 'link_one_select',
10995          'to_table' => 'cuentat_mov_con_links',
10996          'to_field' => 'cuentaT_mov_id',
10997          'this_table' => 'cuentat_mov',
10998          'this_field' => 'cuentaT_mov_id',
10999          'restrict_delete' => false,
11000          'delete_with_parent' => true,
11001          'on_delete_set_to' => 0,
11002        ),
11003      ),
11004      'cuentat_mov_live' =>
11005      array (
11006        'cuentaT_mov_id' =>
11007        array (
11008          'es' => 'catalog_entry',
11009          'formato' => 'link_one_select',
11010          'to_table' => 'cuentat_mov_live',
11011          'to_field' => 'cuentaT_mov_id',
11012          'this_table' => 'cuentat_mov',
11013          'this_field' => 'cuentaT_mov_id',
11014          'restrict_delete' => false,
11015          'delete_with_parent' => true,
11016          'on_delete_set_to' => 0,
11017        ),
11018      ),
11019      'cuentat_mov_tmp' =>
11020      array (
11021        'cuentaT_mov_id' =>
11022        array (
11023          'es' => 'catalog_entry',
11024          'formato' => 'link_one_select',
11025          'to_table' => 'cuentat_mov_tmp',
11026          'to_field' => 'cuentaT_mov_id',
11027          'this_table' => 'cuentat_mov',
11028          'this_field' => 'cuentaT_mov_id',
11029          'restrict_delete' => false,
11030          'delete_with_parent' => true,
11031          'on_delete_set_to' => 0,
11032        ),
11033      ),
11034      'cuentat_transfer' =>
11035      array (
11036        'cuentaT_mov_id' =>
11037        array (
11038          'es' => 'catalog_entry',
11039          'formato' => 'jqgrid',
11040          'to_table' => 'cuentat_transfer',
11041          'to_field' => 'cuentaT_mov_id',
11042          'this_table' => 'cuentat_mov',
11043          'this_field' => 'cuentaT_mov_id',
11044          'restrict_delete' => true,
11045          'delete_with_parent' => false,
11046          'on_delete_set_to' => 0,
11047        ),
11048      ),
11049      'deuda_pago' =>
11050      array (
11051        'cuenta_t_mov_id' =>
11052        array (
11053          'es' => 'catalog_entry',
11054          'formato' => 'link_one_select',
11055          'to_table' => 'deuda_pago',
11056          'to_field' => 'cuenta_t_mov_id',
11057          'this_table' => 'cuentat_mov',
11058          'this_field' => 'cuentaT_mov_id',
11059          'restrict_delete' => true,
11060          'delete_with_parent' => false,
11061          'on_delete_set_to' => 0,
11062        ),
11063      ),
11064      'doctos' =>
11065      array (
11066        'cuentat_mov_id' =>
11067        array (
11068          'es' => 'catalog_entry',
11069          'formato' => 'link_one_select',
11070          'to_table' => 'doctos',
11071          'to_field' => 'cuentat_mov_id',
11072          'this_table' => 'cuentat_mov',
11073          'this_field' => 'cuentaT_mov_id',
11074          'restrict_delete' => true,
11075          'delete_with_parent' => false,
11076          'on_delete_set_to' => 0,
11077        ),
11078      ),
11079      'metodo_pago' =>
11080      array (
11081        'cuenta_t_mov_id' =>
11082        array (
11083          'es' => 'catalog_entry',
11084          'formato' => 'link_one_select',
11085          'to_table' => 'metodo_pago',
11086          'to_field' => 'cuenta_t_mov_id',
11087          'this_table' => 'cuentat_mov',
11088          'this_field' => 'cuentaT_mov_id',
11089          'restrict_delete' => true,
11090          'delete_with_parent' => false,
11091          'on_delete_set_to' => 0,
11092        ),
11093      ),
11094      'nota_pago' =>
11095      array (
11096        'cuenta_t_mov_id' =>
11097        array (
11098          'es' => 'catalog_entry',
11099          'formato' => 'link_one_select',
11100          'to_table' => 'nota_pago',
11101          'to_field' => 'cuenta_t_mov_id',
11102          'this_table' => 'cuentat_mov',
11103          'this_field' => 'cuentaT_mov_id',
11104          'restrict_delete' => true,
11105          'delete_with_parent' => false,
11106          'on_delete_set_to' => 0,
11107        ),
11108      ),
11109      'pagare' =>
11110      array (
11111        'cuentat_mov_id' =>
11112        array (
11113          'es' => 'catalog_entry',
11114          'formato' => 'link_one_select',
11115          'to_table' => 'pagare',
11116          'to_field' => 'cuentat_mov_id',
11117          'this_table' => 'cuentat_mov',
11118          'this_field' => 'cuentaT_mov_id',
11119          'restrict_delete' => true,
11120          'delete_with_parent' => false,
11121          'on_delete_set_to' => 0,
11122        ),
11123      ),
11124      'pagare_log' =>
11125      array (
11126        'cuentat_mov_id' =>
11127        array (
11128          'es' => 'catalog_entry',
11129          'formato' => 'link_one_select',
11130          'to_table' => 'pagare_log',
11131          'to_field' => 'cuentat_mov_id',
11132          'this_table' => 'cuentat_mov',
11133          'this_field' => 'cuentaT_mov_id',
11134          'restrict_delete' => true,
11135          'delete_with_parent' => false,
11136          'on_delete_set_to' => 0,
11137        ),
11138      ),
11139      'pagare_pago' =>
11140      array (
11141        'cuenta_t_mov_id' =>
11142        array (
11143          'es' => 'catalog_entry',
11144          'formato' => 'link_one_select',
11145          'to_table' => 'pagare_pago',
11146          'to_field' => 'cuenta_t_mov_id',
11147          'this_table' => 'cuentat_mov',
11148          'this_field' => 'cuentaT_mov_id',
11149          'restrict_delete' => true,
11150          'delete_with_parent' => false,
11151          'on_delete_set_to' => 0,
11152        ),
11153      ),
11154      'pagare_pago_log' =>
11155      array (
11156        'cuenta_t_mov_id' =>
11157        array (
11158          'es' => 'catalog_entry',
11159          'formato' => 'link_one_select',
11160          'to_table' => 'pagare_pago_log',
11161          'to_field' => 'cuenta_t_mov_id',
11162          'this_table' => 'cuentat_mov',
11163          'this_field' => 'cuentaT_mov_id',
11164          'restrict_delete' => true,
11165          'delete_with_parent' => false,
11166          'on_delete_set_to' => 0,
11167        ),
11168      ),
11169      'vale' =>
11170      array (
11171        'cuenta_t_mov_id' =>
11172        array (
11173          'es' => 'catalog_entry',
11174          'formato' => 'link_one_select',
11175          'to_table' => 'vale',
11176          'to_field' => 'cuenta_t_mov_id',
11177          'this_table' => 'cuentat_mov',
11178          'this_field' => 'cuentaT_mov_id',
11179          'restrict_delete' => true,
11180          'delete_with_parent' => false,
11181          'on_delete_set_to' => 0,
11182        ),
11183      ),
11184      'vale_log' =>
11185      array (
11186        'cuenta_t_mov_id' =>
11187        array (
11188          'es' => 'catalog_entry',
11189          'formato' => 'link_one_select',
11190          'to_table' => 'vale_log',
11191          'to_field' => 'cuenta_t_mov_id',
11192          'this_table' => 'cuentat_mov',
11193          'this_field' => 'cuentaT_mov_id',
11194          'restrict_delete' => true,
11195          'delete_with_parent' => false,
11196          'on_delete_set_to' => 0,
11197        ),
11198      ),
11199      'vale_pago' =>
11200      array (
11201        'cuenta_t_mov_id' =>
11202        array (
11203          'es' => 'catalog_entry',
11204          'formato' => 'link_one_select',
11205          'to_table' => 'vale_pago',
11206          'to_field' => 'cuenta_t_mov_id',
11207          'this_table' => 'cuentat_mov',
11208          'this_field' => 'cuentaT_mov_id',
11209          'restrict_delete' => true,
11210          'delete_with_parent' => false,
11211          'on_delete_set_to' => 0,
11212        ),
11213      ),
11214      'vale_pago_log' =>
11215      array (
11216        'cuenta_t_mov_id' =>
11217        array (
11218          'es' => 'catalog_entry',
11219          'formato' => 'link_one_select',
11220          'to_table' => 'vale_pago_log',
11221          'to_field' => 'cuenta_t_mov_id',
11222          'this_table' => 'cuentat_mov',
11223          'this_field' => 'cuentaT_mov_id',
11224          'restrict_delete' => true,
11225          'delete_with_parent' => false,
11226          'on_delete_set_to' => 0,
11227        ),
11228      ),
11229      'vale_uso' =>
11230      array (
11231        'cuenta_t_mov_id' =>
11232        array (
11233          'es' => 'catalog_entry',
11234          'formato' => 'link_one_select',
11235          'to_table' => 'vale_uso',
11236          'to_field' => 'cuenta_t_mov_id',
11237          'this_table' => 'cuentat_mov',
11238          'this_field' => 'cuentaT_mov_id',
11239          'restrict_delete' => true,
11240          'delete_with_parent' => false,
11241          'on_delete_set_to' => 0,
11242        ),
11243      ),
11244      'vale_uso_log' =>
11245      array (
11246        'cuenta_t_mov_id' =>
11247        array (
11248          'es' => 'catalog_entry',
11249          'formato' => 'link_one_select',
11250          'to_table' => 'vale_uso_log',
11251          'to_field' => 'cuenta_t_mov_id',
11252          'this_table' => 'cuentat_mov',
11253          'this_field' => 'cuentaT_mov_id',
11254          'restrict_delete' => true,
11255          'delete_with_parent' => false,
11256          'on_delete_set_to' => 0,
11257        ),
11258      ),
11259    ),
11260    'links_to' =>
11261    array (
11262      'cuentat' =>
11263      array (
11264        'cuentaT_id' =>
11265        array (
11266          'es' => 'catalog',
11267          'formato' => 'link_one_select',
11268          'to_table' => 'cuentat',
11269          'to_field' => 'cuentaT_id',
11270          'this_table' => 'cuentat_mov',
11271          'this_field' => 'cuentaT_id',
11272        ),
11273        'cuentaT_deliveredto_id' =>
11274        array (
11275          'es' => 'catalog',
11276          'formato' => 'link_one_select',
11277          'to_table' => 'cuentat',
11278          'to_field' => 'cuentaT_id',
11279          'this_table' => 'cuentat_mov',
11280          'this_field' => 'cuentaT_deliveredto_id',
11281        ),
11282        'cuentaT_transferto_id' =>
11283        array (
11284          'es' => 'catalog',
11285          'formato' => 'link_one_select',
11286          'to_table' => 'cuentat',
11287          'to_field' => 'cuentaT_id',
11288          'this_table' => 'cuentat_mov',
11289          'this_field' => 'cuentaT_transferto_id',
11290        ),
11291      ),
11292      'cuentat_tipo_mov' =>
11293      array (
11294        'cuentaT_tipo_mov_id' =>
11295        array (
11296          'es' => 'catalog',
11297          'formato' => 'link_one_select',
11298          'to_table' => 'cuentat_tipo_mov',
11299          'to_field' => 'cuentaT_tipo_mov_id',
11300          'this_table' => 'cuentat_mov',
11301          'this_field' => 'cuentaT_tipo_mov_id',
11302        ),
11303      ),
11304      'moneda' =>
11305      array (
11306        'moneda_id' =>
11307        array (
11308          'es' => 'catalog',
11309          'formato' => 'link_one_select',
11310          'to_table' => 'moneda',
11311          'to_field' => 'moneda_id',
11312          'this_table' => 'cuentat_mov',
11313          'this_field' => 'moneda_id',
11314        ),
11315      ),
11316      'banco_cuenta' =>
11317      array (
11318        'banco_cuenta_id' =>
11319        array (
11320          'es' => 'catalog',
11321          'formato' => 'link_one_select',
11322          'to_table' => 'banco_cuenta',
11323          'to_field' => 'banco_cuenta_id',
11324          'this_table' => 'cuentat_mov',
11325          'this_field' => 'banco_cuenta_id',
11326        ),
11327      ),
11328      'banco_cuenta_mov_link' =>
11329      array (
11330        'banco_cuenta_mov_link_id' =>
11331        array (
11332          'es' => 'catalog',
11333          'formato' => 'link_one_select',
11334          'to_table' => 'banco_cuenta_mov_link',
11335          'to_field' => 'banco_cuenta_mov_link_id',
11336          'this_table' => 'cuentat_mov',
11337          'this_field' => 'banco_cuenta_mov_link_id',
11338        ),
11339      ),
11340      'tienda' =>
11341      array (
11342        'tienda_id' =>
11343        array (
11344          'es' => 'catalog',
11345          'formato' => 'link_one_select',
11346          'to_table' => 'tienda',
11347          'to_field' => 'tienda_id',
11348          'this_table' => 'cuentat_mov',
11349          'this_field' => 'tienda_id',
11350        ),
11351      ),
11352    ),
11353  ),
11354  'cuentat_mov_con_links' =>
11355  array (
11356    'es' => 'child',
11357    'label_field' => 'cuentaT_mov_id',
11358    'has_seq' => false,
11359    'has_child' => false,
11360    'has_datetime' => true,
11361    'has_numeric' => true,
11362    'links_to' =>
11363    array (
11364      'cuentat_mov' =>
11365      array (
11366        'cuentaT_mov_id' =>
11367        array (
11368          'es' => 'catalog',
11369          'formato' => 'link_one_select',
11370          'to_table' => 'cuentat_mov',
11371          'to_field' => 'cuentaT_mov_id',
11372          'this_table' => 'cuentat_mov_con_links',
11373          'this_field' => 'cuentaT_mov_id',
11374        ),
11375      ),
11376      'cuentat' =>
11377      array (
11378        'cuentaT_id' =>
11379        array (
11380          'es' => 'catalog',
11381          'formato' => 'link_one_select',
11382          'to_table' => 'cuentat',
11383          'to_field' => 'cuentaT_id',
11384          'this_table' => 'cuentat_mov_con_links',
11385          'this_field' => 'cuentaT_id',
11386        ),
11387      ),
11388      'cuentat_tipo_mov' =>
11389      array (
11390        'cuentaT_tipo_mov_id' =>
11391        array (
11392          'es' => 'catalog',
11393          'formato' => 'link_one_select',
11394          'to_table' => 'cuentat_tipo_mov',
11395          'to_field' => 'cuentaT_tipo_mov_id',
11396          'this_table' => 'cuentat_mov_con_links',
11397          'this_field' => 'cuentaT_tipo_mov_id',
11398        ),
11399      ),
11400      'moneda' =>
11401      array (
11402        'moneda_id' =>
11403        array (
11404          'es' => 'catalog',
11405          'formato' => 'link_one_select',
11406          'to_table' => 'moneda',
11407          'to_field' => 'moneda_id',
11408          'this_table' => 'cuentat_mov_con_links',
11409          'this_field' => 'moneda_id',
11410        ),
11411      ),
11412      'tienda' =>
11413      array (
11414        'tienda_id' =>
11415        array (
11416          'es' => 'catalog',
11417          'formato' => 'link_one_select',
11418          'to_table' => 'tienda',
11419          'to_field' => 'tienda_id',
11420          'this_table' => 'cuentat_mov_con_links',
11421          'this_field' => 'tienda_id',
11422        ),
11423      ),
11424      'banco_cuenta' =>
11425      array (
11426        'banco_cuenta_id' =>
11427        array (
11428          'es' => 'catalog',
11429          'formato' => 'link_one_select',
11430          'to_table' => 'banco_cuenta',
11431          'to_field' => 'banco_cuenta_id',
11432          'this_table' => 'cuentat_mov_con_links',
11433          'this_field' => 'banco_cuenta_id',
11434        ),
11435      ),
11436    ),
11437  ),
11438  'cuentat_mov_live' =>
11439  array (
11440    'es' => 'child',
11441    'label_field' => 'cuentaT_mov_id',
11442    'has_seq' => false,
11443    'has_child' => false,
11444    'has_datetime' => true,
11445    'has_numeric' => true,
11446    'has_file_upload' => true,
11447    'links_to' =>
11448    array (
11449      'cuentat_mov' =>
11450      array (
11451        'cuentaT_mov_id' =>
11452        array (
11453          'es' => 'catalog',
11454          'formato' => 'link_one_select',
11455          'to_table' => 'cuentat_mov',
11456          'to_field' => 'cuentaT_mov_id',
11457          'this_table' => 'cuentat_mov_live',
11458          'this_field' => 'cuentaT_mov_id',
11459        ),
11460      ),
11461      'cuentat' =>
11462      array (
11463        'cuentaT_id' =>
11464        array (
11465          'es' => 'catalog',
11466          'formato' => 'link_one_select',
11467          'to_table' => 'cuentat',
11468          'to_field' => 'cuentaT_id',
11469          'this_table' => 'cuentat_mov_live',
11470          'this_field' => 'cuentaT_id',
11471        ),
11472      ),
11473      'moneda' =>
11474      array (
11475        'moneda_id' =>
11476        array (
11477          'es' => 'catalog',
11478          'formato' => 'link_one_select',
11479          'to_table' => 'moneda',
11480          'to_field' => 'moneda_id',
11481          'this_table' => 'cuentat_mov_live',
11482          'this_field' => 'moneda_id',
11483        ),
11484      ),
11485      'cuentat_tipo_mov' =>
11486      array (
11487        'cuentaT_tipo_mov_id' =>
11488        array (
11489          'es' => 'catalog',
11490          'formato' => 'link_one_select',
11491          'to_table' => 'cuentat_tipo_mov',
11492          'to_field' => 'cuentaT_tipo_mov_id',
11493          'this_table' => 'cuentat_mov_live',
11494          'this_field' => 'cuentaT_tipo_mov_id',
11495        ),
11496      ),
11497      'tienda' =>
11498      array (
11499        'tienda_id' =>
11500        array (
11501          'es' => 'catalog',
11502          'formato' => 'link_one_select',
11503          'to_table' => 'tienda',
11504          'to_field' => 'tienda_id',
11505          'this_table' => 'cuentat_mov_live',
11506          'this_field' => 'tienda_id',
11507        ),
11508      ),
11509      'banco_cuenta_mov_link' =>
11510      array (
11511        'banco_cuenta_mov_link_id' =>
11512        array (
11513          'es' => 'catalog',
11514          'formato' => 'link_one_select',
11515          'to_table' => 'banco_cuenta_mov_link',
11516          'to_field' => 'banco_cuenta_mov_link_id',
11517          'this_table' => 'cuentat_mov_live',
11518          'this_field' => 'banco_cuenta_mov_link_id',
11519        ),
11520      ),
11521      'banco_cuenta' =>
11522      array (
11523        'banco_cuenta_id' =>
11524        array (
11525          'es' => 'catalog',
11526          'formato' => 'link_one_select',
11527          'to_table' => 'banco_cuenta',
11528          'to_field' => 'banco_cuenta_id',
11529          'this_table' => 'cuentat_mov_live',
11530          'this_field' => 'banco_cuenta_id',
11531        ),
11532      ),
11533    ),
11534  ),
11535  'cuentat_mov_pay' =>
11536  array (
11537    'es' => 'child',
11538    'pk_single_field' => 'cuentaT_mov_pay_id',
11539    'pk_single_type' => 'uuid',
11540    'label_field' => 'comentario',
11541    'has_seq' => false,
11542    'has_child' => false,
11543    'has_numeric' => true,
11544    'links_to' =>
11545    array (
11546      'cuentat' =>
11547      array (
11548        'cuentaT_id' =>
11549        array (
11550          'es' => 'catalog',
11551          'formato' => 'link_one_select',
11552          'to_table' => 'cuentat',
11553          'to_field' => 'cuentaT_id',
11554          'this_table' => 'cuentat_mov_pay',
11555          'this_field' => 'cuentaT_id',
11556        ),
11557      ),
11558      'moneda' =>
11559      array (
11560        'moneda_id' =>
11561        array (
11562          'es' => 'catalog',
11563          'formato' => 'link_one_select',
11564          'to_table' => 'moneda',
11565          'to_field' => 'moneda_id',
11566          'this_table' => 'cuentat_mov_pay',
11567          'this_field' => 'moneda_id',
11568        ),
11569      ),
11570    ),
11571  ),
11572  'cuentat_mov_tmp' =>
11573  array (
11574    'es' => 'child',
11575    'label_field' => 'cuentaT_mov_id',
11576    'has_seq' => false,
11577    'has_child' => false,
11578    'has_datetime' => true,
11579    'has_numeric' => true,
11580    'has_file_upload' => true,
11581    'links_to' =>
11582    array (
11583      'cuentat_mov' =>
11584      array (
11585        'cuentaT_mov_id' =>
11586        array (
11587          'es' => 'catalog',
11588          'formato' => 'link_one_select',
11589          'to_table' => 'cuentat_mov',
11590          'to_field' => 'cuentaT_mov_id',
11591          'this_table' => 'cuentat_mov_tmp',
11592          'this_field' => 'cuentaT_mov_id',
11593        ),
11594      ),
11595      'cuentat' =>
11596      array (
11597        'cuentaT_id' =>
11598        array (
11599          'es' => 'catalog',
11600          'formato' => 'link_one_select',
11601          'to_table' => 'cuentat',
11602          'to_field' => 'cuentaT_id',
11603          'this_table' => 'cuentat_mov_tmp',
11604          'this_field' => 'cuentaT_id',
11605        ),
11606      ),
11607      'moneda' =>
11608      array (
11609        'moneda_id' =>
11610        array (
11611          'es' => 'catalog',
11612          'formato' => 'link_one_select',
11613          'to_table' => 'moneda',
11614          'to_field' => 'moneda_id',
11615          'this_table' => 'cuentat_mov_tmp',
11616          'this_field' => 'moneda_id',
11617        ),
11618      ),
11619      'cuentat_tipo_mov' =>
11620      array (
11621        'cuentaT_tipo_mov_id' =>
11622        array (
11623          'es' => 'catalog',
11624          'formato' => 'link_one_select',
11625          'to_table' => 'cuentat_tipo_mov',
11626          'to_field' => 'cuentaT_tipo_mov_id',
11627          'this_table' => 'cuentat_mov_tmp',
11628          'this_field' => 'cuentaT_tipo_mov_id',
11629        ),
11630      ),
11631      'tienda' =>
11632      array (
11633        'tienda_id' =>
11634        array (
11635          'es' => 'catalog',
11636          'formato' => 'link_one_select',
11637          'to_table' => 'tienda',
11638          'to_field' => 'tienda_id',
11639          'this_table' => 'cuentat_mov_tmp',
11640          'this_field' => 'tienda_id',
11641        ),
11642      ),
11643      'banco_cuenta_mov_link' =>
11644      array (
11645        'banco_cuenta_mov_link_id' =>
11646        array (
11647          'es' => 'catalog',
11648          'formato' => 'link_one_select',
11649          'to_table' => 'banco_cuenta_mov_link',
11650          'to_field' => 'banco_cuenta_mov_link_id',
11651          'this_table' => 'cuentat_mov_tmp',
11652          'this_field' => 'banco_cuenta_mov_link_id',
11653        ),
11654      ),
11655      'banco_cuenta' =>
11656      array (
11657        'banco_cuenta_id' =>
11658        array (
11659          'es' => 'catalog',
11660          'formato' => 'link_one_select',
11661          'to_table' => 'banco_cuenta',
11662          'to_field' => 'banco_cuenta_id',
11663          'this_table' => 'cuentat_mov_tmp',
11664          'this_field' => 'banco_cuenta_id',
11665        ),
11666      ),
11667    ),
11668  ),
11669  'cuentat_tipo_mov' =>
11670  array (
11671    'es' => 'parent',
11672    'pk_single_field' => 'cuentaT_tipo_mov_id',
11673    'pk_single_type' => 'auto_increment',
11674    'label_field' => 'tipo_mov',
11675    'has_seq' => false,
11676    'has_child' => true,
11677    'UNI' =>
11678    array (
11679      0 => 'tipo_mov',
11680    ),
11681    'links_from' =>
11682    array (
11683      'banco_cuenta_trans' =>
11684      array (
11685        'cuentaT_tipo_mov_id' =>
11686        array (
11687          'es' => 'catalog_entry',
11688          'formato' => 'jqgrid',
11689          'to_table' => 'banco_cuenta_trans',
11690          'to_field' => 'cuentaT_tipo_mov_id',
11691          'this_table' => 'cuentat_tipo_mov',
11692          'this_field' => 'cuentaT_tipo_mov_id',
11693          'restrict_delete' => true,
11694          'delete_with_parent' => false,
11695          'on_delete_set_to' => 0,
11696        ),
11697      ),
11698      'cuentat_a_banco' =>
11699      array (
11700        'cuentaT_tipo_mov_id' =>
11701        array (
11702          'es' => 'catalog_entry',
11703          'formato' => 'jqgrid',
11704          'to_table' => 'cuentat_a_banco',
11705          'to_field' => 'cuentaT_tipo_mov_id',
11706          'this_table' => 'cuentat_tipo_mov',
11707          'this_field' => 'cuentaT_tipo_mov_id',
11708          'restrict_delete' => true,
11709          'delete_with_parent' => false,
11710          'on_delete_set_to' => 0,
11711        ),
11712      ),
11713      'cuentat_a_banco_links' =>
11714      array (
11715        'cuentaT_tipo_mov_id' =>
11716        array (
11717          'es' => 'catalog_entry',
11718          'formato' => 'jqgrid',
11719          'to_table' => 'cuentat_a_banco_links',
11720          'to_field' => 'cuentaT_tipo_mov_id',
11721          'this_table' => 'cuentat_tipo_mov',
11722          'this_field' => 'cuentaT_tipo_mov_id',
11723          'restrict_delete' => true,
11724          'delete_with_parent' => false,
11725          'on_delete_set_to' => 0,
11726        ),
11727      ),
11728      'cuentat_a_banco_tc' =>
11729      array (
11730        'cuentaT_tipo_mov_id' =>
11731        array (
11732          'es' => 'catalog_entry',
11733          'formato' => 'jqgrid',
11734          'to_table' => 'cuentat_a_banco_tc',
11735          'to_field' => 'cuentaT_tipo_mov_id',
11736          'this_table' => 'cuentat_tipo_mov',
11737          'this_field' => 'cuentaT_tipo_mov_id',
11738          'restrict_delete' => true,
11739          'delete_with_parent' => false,
11740          'on_delete_set_to' => 0,
11741        ),
11742      ),
11743      'cuentat_gasto' =>
11744      array (
11745        'cuentaT_tipo_mov_id' =>
11746        array (
11747          'es' => 'catalog_entry',
11748          'formato' => 'jqgrid',
11749          'to_table' => 'cuentat_gasto',
11750          'to_field' => 'cuentaT_tipo_mov_id',
11751          'this_table' => 'cuentat_tipo_mov',
11752          'this_field' => 'cuentaT_tipo_mov_id',
11753          'restrict_delete' => true,
11754          'delete_with_parent' => false,
11755          'on_delete_set_to' => 0,
11756        ),
11757      ),
11758      'cuentat_ingreso' =>
11759      array (
11760        'cuentaT_tipo_mov_id' =>
11761        array (
11762          'es' => 'catalog_entry',
11763          'formato' => 'jqgrid',
11764          'to_table' => 'cuentat_ingreso',
11765          'to_field' => 'cuentaT_tipo_mov_id',
11766          'this_table' => 'cuentat_tipo_mov',
11767          'this_field' => 'cuentaT_tipo_mov_id',
11768          'restrict_delete' => true,
11769          'delete_with_parent' => false,
11770          'on_delete_set_to' => 0,
11771        ),
11772      ),
11773      'cuentat_ingreso_xtienda' =>
11774      array (
11775        'cuentaT_tipo_mov_id' =>
11776        array (
11777          'es' => 'catalog_entry',
11778          'formato' => 'jqgrid',
11779          'to_table' => 'cuentat_ingreso_xtienda',
11780          'to_field' => 'cuentaT_tipo_mov_id',
11781          'this_table' => 'cuentat_tipo_mov',
11782          'this_field' => 'cuentaT_tipo_mov_id',
11783          'restrict_delete' => true,
11784          'delete_with_parent' => false,
11785          'on_delete_set_to' => 0,
11786        ),
11787      ),
11788      'cuentat_mov' =>
11789      array (
11790        'cuentaT_tipo_mov_id' =>
11791        array (
11792          'es' => 'catalog_entry',
11793          'formato' => 'jqgrid',
11794          'to_table' => 'cuentat_mov',
11795          'to_field' => 'cuentaT_tipo_mov_id',
11796          'this_table' => 'cuentat_tipo_mov',
11797          'this_field' => 'cuentaT_tipo_mov_id',
11798          'restrict_delete' => true,
11799          'delete_with_parent' => false,
11800          'on_delete_set_to' => 0,
11801        ),
11802      ),
11803      'cuentat_mov_con_links' =>
11804      array (
11805        'cuentaT_tipo_mov_id' =>
11806        array (
11807          'es' => 'catalog_entry',
11808          'formato' => 'jqgrid',
11809          'to_table' => 'cuentat_mov_con_links',
11810          'to_field' => 'cuentaT_tipo_mov_id',
11811          'this_table' => 'cuentat_tipo_mov',
11812          'this_field' => 'cuentaT_tipo_mov_id',
11813          'restrict_delete' => true,
11814          'delete_with_parent' => false,
11815          'on_delete_set_to' => 0,
11816        ),
11817      ),
11818      'cuentat_mov_live' =>
11819      array (
11820        'cuentaT_tipo_mov_id' =>
11821        array (
11822          'es' => 'catalog_entry',
11823          'formato' => 'jqgrid',
11824          'to_table' => 'cuentat_mov_live',
11825          'to_field' => 'cuentaT_tipo_mov_id',
11826          'this_table' => 'cuentat_tipo_mov',
11827          'this_field' => 'cuentaT_tipo_mov_id',
11828          'restrict_delete' => true,
11829          'delete_with_parent' => false,
11830          'on_delete_set_to' => 0,
11831        ),
11832      ),
11833      'cuentat_mov_tmp' =>
11834      array (
11835        'cuentaT_tipo_mov_id' =>
11836        array (
11837          'es' => 'catalog_entry',
11838          'formato' => 'jqgrid',
11839          'to_table' => 'cuentat_mov_tmp',
11840          'to_field' => 'cuentaT_tipo_mov_id',
11841          'this_table' => 'cuentat_tipo_mov',
11842          'this_field' => 'cuentaT_tipo_mov_id',
11843          'restrict_delete' => true,
11844          'delete_with_parent' => false,
11845          'on_delete_set_to' => 0,
11846        ),
11847      ),
11848      'links_al_banco' =>
11849      array (
11850        'cuentaT_tipo_mov_id' =>
11851        array (
11852          'es' => 'catalog_entry',
11853          'formato' => 'jqgrid',
11854          'to_table' => 'links_al_banco',
11855          'to_field' => 'cuentaT_tipo_mov_id',
11856          'this_table' => 'cuentat_tipo_mov',
11857          'this_field' => 'cuentaT_tipo_mov_id',
11858          'restrict_delete' => true,
11859          'delete_with_parent' => false,
11860          'on_delete_set_to' => 0,
11861        ),
11862      ),
11863      'links_al_banco_live' =>
11864      array (
11865        'cuentaT_tipo_mov_id' =>
11866        array (
11867          'es' => 'catalog_entry',
11868          'formato' => 'jqgrid',
11869          'to_table' => 'links_al_banco_live',
11870          'to_field' => 'cuentaT_tipo_mov_id',
11871          'this_table' => 'cuentat_tipo_mov',
11872          'this_field' => 'cuentaT_tipo_mov_id',
11873          'restrict_delete' => true,
11874          'delete_with_parent' => false,
11875          'on_delete_set_to' => 0,
11876        ),
11877      ),
11878    ),
11879  ),
11880  'cuentat_transfer' =>
11881  array (
11882    'es' => 'child',
11883    'pk_single_field' => 'cuentat_transfer_id',
11884    'pk_single_type' => 'uuid',
11885    'label_field' => 'remarks',
11886    'has_seq' => false,
11887    'has_child' => false,
11888    'has_numeric' => true,
11889    'has_datetime' => true,
11890    'has_file_upload' => true,
11891    'links_to' =>
11892    array (
11893      'moneda' =>
11894      array (
11895        'origen_moneda_id' =>
11896        array (
11897          'es' => 'catalog',
11898          'formato' => 'link_one_select',
11899          'to_table' => 'moneda',
11900          'to_field' => 'moneda_id',
11901          'this_table' => 'cuentat_transfer',
11902          'this_field' => 'origen_moneda_id',
11903        ),
11904        'moneda_id' =>
11905        array (
11906          'es' => 'catalog',
11907          'formato' => 'link_one_select',
11908          'to_table' => 'moneda',
11909          'to_field' => 'moneda_id',
11910          'this_table' => 'cuentat_transfer',
11911          'this_field' => 'moneda_id',
11912        ),
11913      ),
11914      'cuentat' =>
11915      array (
11916        'cuentaT_de_id' =>
11917        array (
11918          'es' => 'catalog',
11919          'formato' => 'link_one_select',
11920          'to_table' => 'cuentat',
11921          'to_field' => 'cuentaT_id',
11922          'this_table' => 'cuentat_transfer',
11923          'this_field' => 'cuentaT_de_id',
11924        ),
11925        'cuentaT_a_id' =>
11926        array (
11927          'es' => 'catalog',
11928          'formato' => 'link_one_select',
11929          'to_table' => 'cuentat',
11930          'to_field' => 'cuentaT_id',
11931          'this_table' => 'cuentat_transfer',
11932          'this_field' => 'cuentaT_a_id',
11933        ),
11934      ),
11935      'cuentat_mov' =>
11936      array (
11937        'cuentaT_mov_id' =>
11938        array (
11939          'es' => 'catalog',
11940          'formato' => 'link_one_select',
11941          'to_table' => 'cuentat_mov',
11942          'to_field' => 'cuentaT_mov_id',
11943          'this_table' => 'cuentat_transfer',
11944          'this_field' => 'cuentaT_mov_id',
11945        ),
11946      ),
11947    ),
11948  ),
11949  'delivered' =>
11950  array (
11951    'es' => 'data',
11952    'pk_single_field' => 'delivered_id',
11953    'pk_single_type' => 'uuid',
11954    'label_field' => 'document_type',
11955    'has_seq' => false,
11956    'has_child' => false,
11957    'has_datetime' => true,
11958    'links_to' =>
11959    array (
11960      'iac_usr' =>
11961      array (
11962        'usuario_deliveres_id' =>
11963        array (
11964          'es' => 'catalog',
11965          'formato' => 'link_one_select',
11966          'to_table' => 'iac_usr',
11967          'to_field' => 'iac_usr_id',
11968          'this_table' => 'delivered',
11969          'this_field' => 'usuario_deliveres_id',
11970        ),
11971        'usuario_accepts_id' =>
11972        array (
11973          'es' => 'catalog',
11974          'formato' => 'link_one_select',
11975          'to_table' => 'iac_usr',
11976          'to_field' => 'iac_usr_id',
11977          'this_table' => 'delivered',
11978          'this_field' => 'usuario_accepts_id',
11979        ),
11980      ),
11981      'cuentat' =>
11982      array (
11983        'cuentaT_deliversFrom_id' =>
11984        array (
11985          'es' => 'catalog',
11986          'formato' => 'link_one_select',
11987          'to_table' => 'cuentat',
11988          'to_field' => 'cuentaT_id',
11989          'this_table' => 'delivered',
11990          'this_field' => 'cuentaT_deliversFrom_id',
11991        ),
11992        'cuentaT_to_id' =>
11993        array (
11994          'es' => 'catalog',
11995          'formato' => 'link_one_select',
11996          'to_table' => 'cuentat',
11997          'to_field' => 'cuentaT_id',
11998          'this_table' => 'delivered',
11999          'this_field' => 'cuentaT_to_id',
12000        ),
12001      ),
12002    ),
12003  ),
12004  'deposita_en' =>
12005  array (
12006    'es' => 'child',
12007    'pk_single_field' => 'deposita_en_id',
12008    'pk_single_type' => 'auto_increment',
12009    'label_field' => 'dep_label',
12010    'vale' => true,
12011    'has_seq' => false,
12012    'has_child' => false,
12013    'has_date' => true,
12014    'has_numeric' => true,
12015    'has_datetime' => true,
12016    'has_fckeditor' => true,
12017    'links_to' =>
12018    array (
12019      'banco_cuenta' =>
12020      array (
12021        'banco_cuenta_id' =>
12022        array (
12023          'es' => 'catalog',
12024          'formato' => 'link_one_select',
12025          'to_table' => 'banco_cuenta',
12026          'to_field' => 'banco_cuenta_id',
12027          'this_table' => 'deposita_en',
12028          'this_field' => 'banco_cuenta_id',
12029        ),
12030      ),
12031      'moneda' =>
12032      array (
12033        'moneda_id' =>
12034        array (
12035          'es' => 'catalog',
12036          'formato' => 'link_one_select',
12037          'to_table' => 'moneda',
12038          'to_field' => 'moneda_id',
12039          'this_table' => 'deposita_en',
12040          'this_field' => 'moneda_id',
12041        ),
12042      ),
12043    ),
12044  ),
12045  'deposita_en_aviso' =>
12046  array (
12047    'es' => 'data',
12048    'label_field' => 'posicion',
12049    'has_seq' => false,
12050    'has_child' => false,
12051    'has_fckeditor' => true,
12052  ),
12053  'deposita_en_lista_cuentas' =>
12054  array (
12055    'es' => 'data',
12056    'pk_single_field' => 'banco_cuenta_id',
12057    'pk_single_type' => 'value',
12058    'label_field' => 'ordenado',
12059    'has_seq' => false,
12060    'has_child' => false,
12061    'links_from' =>
12062    array (
12063      'banco_cuenta' =>
12064      array (
12065        'es' => 'one2one',
12066      ),
12067      'banco_cuenta_saldos' =>
12068      array (
12069        'es' => 'one2one',
12070      ),
12071      'banco_cuenta_saldos_hist' =>
12072      array (
12073        'es' => 'one2one',
12074      ),
12075    ),
12076  ),
12077  'deuda' =>
12078  array (
12079    'es' => 'parent',
12080    'pk_single_field' => 'deuda_id',
12081    'pk_single_type' => 'uuid',
12082    'label_field' => 'acreedor',
12083    'has_seq' => false,
12084    'has_child' => true,
12085    'has_date' => true,
12086    'has_numeric' => true,
12087    'has_fckeditor' => true,
12088    'links_to' =>
12089    array (
12090      'moneda' =>
12091      array (
12092        'moneda_id' =>
12093        array (
12094          'es' => 'catalog',
12095          'formato' => 'link_one_select',
12096          'to_table' => 'moneda',
12097          'to_field' => 'moneda_id',
12098          'this_table' => 'deuda',
12099          'this_field' => 'moneda_id',
12100        ),
12101      ),
12102    ),
12103    'links_from' =>
12104    array (
12105      'deuda_pago' =>
12106      array (
12107        'deuda_id' =>
12108        array (
12109          'es' => 'child',
12110          'formato' => 'jqgrid',
12111          'to_table' => 'deuda_pago',
12112          'to_field' => 'deuda_id',
12113          'this_table' => 'deuda',
12114          'this_field' => 'deuda_id',
12115          'restrict_delete' => false,
12116          'delete_with_parent' => true,
12117          'on_delete_set_to' => 0,
12118        ),
12119      ),
12120    ),
12121  ),
12122  'deuda_pago' =>
12123  array (
12124    'es' => 'child',
12125    'pk_single_field' => 'deuda_pago_id',
12126    'pk_single_type' => 'uuid',
12127    'label_field' => 'deuda_id',
12128    'has_seq' => false,
12129    'has_child' => false,
12130    'has_date' => true,
12131    'has_numeric' => true,
12132    'links_to' =>
12133    array (
12134      'deuda' =>
12135      array (
12136        'deuda_id' =>
12137        array (
12138          'es' => 'catalog',
12139          'formato' => 'link_one_select',
12140          'to_table' => 'deuda',
12141          'to_field' => 'deuda_id',
12142          'this_table' => 'deuda_pago',
12143          'this_field' => 'deuda_id',
12144        ),
12145      ),
12146      'moneda' =>
12147      array (
12148        'moneda_id' =>
12149        array (
12150          'es' => 'catalog',
12151          'formato' => 'link_one_select',
12152          'to_table' => 'moneda',
12153          'to_field' => 'moneda_id',
12154          'this_table' => 'deuda_pago',
12155          'this_field' => 'moneda_id',
12156        ),
12157      ),
12158      'metodo_pago' =>
12159      array (
12160        'metodo_pago_id' =>
12161        array (
12162          'es' => 'catalog',
12163          'formato' => 'link_one_select',
12164          'to_table' => 'metodo_pago',
12165          'to_field' => 'metodo_pago_id',
12166          'this_table' => 'deuda_pago',
12167          'this_field' => 'metodo_pago_id',
12168        ),
12169      ),
12170      'banco_cuenta' =>
12171      array (
12172        'banco_cuenta_id' =>
12173        array (
12174          'es' => 'catalog',
12175          'formato' => 'link_one_select',
12176          'to_table' => 'banco_cuenta',
12177          'to_field' => 'banco_cuenta_id',
12178          'this_table' => 'deuda_pago',
12179          'this_field' => 'banco_cuenta_id',
12180        ),
12181      ),
12182      'banco_cuenta_mov_link' =>
12183      array (
12184        'banco_cuenta_mov_link_id' =>
12185        array (
12186          'es' => 'catalog',
12187          'formato' => 'link_one_select',
12188          'to_table' => 'banco_cuenta_mov_link',
12189          'to_field' => 'banco_cuenta_mov_link_id',
12190          'this_table' => 'deuda_pago',
12191          'this_field' => 'banco_cuenta_mov_link_id',
12192        ),
12193      ),
12194      'cuentat_mov' =>
12195      array (
12196        'cuenta_t_mov_id' =>
12197        array (
12198          'es' => 'catalog',
12199          'formato' => 'link_one_select',
12200          'to_table' => 'cuentat_mov',
12201          'to_field' => 'cuentaT_mov_id',
12202          'this_table' => 'deuda_pago',
12203          'this_field' => 'cuenta_t_mov_id',
12204        ),
12205      ),
12206    ),
12207  ),
12208  'dime' =>
12209  array (
12210    'es' => 'data',
12211    'pk_single_field' => 'dime_id',
12212    'pk_single_type' => 'auto_increment',
12213    'label_field' => 'script',
12214    'has_seq' => false,
12215    'has_child' => false,
12216    'has_datetime' => true,
12217    'has_fckeditor' => true,
12218  ),
12219  'doctos' =>
12220  array (
12221    'es' => 'child',
12222    'label_field' => 'numero',
12223    'has_seq' => false,
12224    'has_child' => false,
12225    'has_datetime' => true,
12226    'has_numeric' => true,
12227    'has_fckeditor' => true,
12228    'links_to' =>
12229    array (
12230      'tienda' =>
12231      array (
12232        'tienda_id' =>
12233        array (
12234          'es' => 'catalog',
12235          'formato' => 'link_one_select',
12236          'to_table' => 'tienda',
12237          'to_field' => 'tienda_id',
12238          'this_table' => 'doctos',
12239          'this_field' => 'tienda_id',
12240        ),
12241      ),
12242      'moneda' =>
12243      array (
12244        'moneda_id' =>
12245        array (
12246          'es' => 'catalog',
12247          'formato' => 'link_one_select',
12248          'to_table' => 'moneda',
12249          'to_field' => 'moneda_id',
12250          'this_table' => 'doctos',
12251          'this_field' => 'moneda_id',
12252        ),
12253      ),
12254      'cliente' =>
12255      array (
12256        'cliente_id' =>
12257        array (
12258          'es' => 'catalog',
12259          'formato' => 'link_one_select',
12260          'to_table' => 'cliente',
12261          'to_field' => 'cliente_id',
12262          'this_table' => 'doctos',
12263          'this_field' => 'cliente_id',
12264        ),
12265        'saldo_cliente_moneda_id' =>
12266        array (
12267          'es' => 'catalog',
12268          'formato' => 'link_one_select',
12269          'to_table' => 'cliente',
12270          'to_field' => 'cliente_id',
12271          'this_table' => 'doctos',
12272          'this_field' => 'saldo_cliente_moneda_id',
12273        ),
12274      ),
12275      'cuentat' =>
12276      array (
12277        'cuentaT_deliveredto_id' =>
12278        array (
12279          'es' => 'catalog',
12280          'formato' => 'link_one_select',
12281          'to_table' => 'cuentat',
12282          'to_field' => 'cuentaT_id',
12283          'this_table' => 'doctos',
12284          'this_field' => 'cuentaT_deliveredto_id',
12285        ),
12286        'origen_cuentat_id' =>
12287        array (
12288          'es' => 'catalog',
12289          'formato' => 'link_one_select',
12290          'to_table' => 'cuentat',
12291          'to_field' => 'cuentaT_id',
12292          'this_table' => 'doctos',
12293          'this_field' => 'origen_cuentat_id',
12294        ),
12295      ),
12296      'banco_cuenta' =>
12297      array (
12298        'banco_cuenta_id' =>
12299        array (
12300          'es' => 'catalog',
12301          'formato' => 'link_one_select',
12302          'to_table' => 'banco_cuenta',
12303          'to_field' => 'banco_cuenta_id',
12304          'this_table' => 'doctos',
12305          'this_field' => 'banco_cuenta_id',
12306        ),
12307      ),
12308      'cuentat_mov' =>
12309      array (
12310        'cuentat_mov_id' =>
12311        array (
12312          'es' => 'catalog',
12313          'formato' => 'link_one_select',
12314          'to_table' => 'cuentat_mov',
12315          'to_field' => 'cuentaT_mov_id',
12316          'this_table' => 'doctos',
12317          'this_field' => 'cuentat_mov_id',
12318        ),
12319      ),
12320      'categoria' =>
12321      array (
12322        'categoria_id' =>
12323        array (
12324          'es' => 'catalog',
12325          'formato' => 'link_one_select',
12326          'to_table' => 'categoria',
12327          'to_field' => 'categoria_id',
12328          'this_table' => 'doctos',
12329          'this_field' => 'categoria_id',
12330        ),
12331      ),
12332    ),
12333  ),
12334  'empresa' =>
12335  array (
12336    'es' => 'parent',
12337    'pk_single_field' => 'empresa_id',
12338    'pk_single_type' => 'auto_increment',
12339    'label_field' => 'empresa',
12340    'vale' => true,
12341    'orden' => true,
12342    'has_seq' => false,
12343    'has_child' => true,
12344    'has_fckeditor' => true,
12345    'UNI' =>
12346    array (
12347      0 => 'empresa',
12348    ),
12349    'links_from' =>
12350    array (
12351      'a_cuentas_live' =>
12352      array (
12353        'empresa_id' =>
12354        array (
12355          'es' => 'catalog_entry',
12356          'formato' => 'jqgrid',
12357          'to_table' => 'a_cuentas_live',
12358          'to_field' => 'empresa_id',
12359          'this_table' => 'empresa',
12360          'this_field' => 'empresa_id',
12361          'restrict_delete' => true,
12362          'delete_with_parent' => false,
12363          'on_delete_set_to' => 0,
12364        ),
12365      ),
12366      'banco_cuenta' =>
12367      array (
12368        'empresa_id' =>
12369        array (
12370          'es' => 'catalog_entry',
12371          'formato' => 'jqgrid',
12372          'to_table' => 'banco_cuenta',
12373          'to_field' => 'empresa_id',
12374          'this_table' => 'empresa',
12375          'this_field' => 'empresa_id',
12376          'restrict_delete' => true,
12377          'delete_with_parent' => false,
12378          'on_delete_set_to' => 0,
12379        ),
12380      ),
12381      'banco_cuenta_mov' =>
12382      array (
12383        'empresa_id' =>
12384        array (
12385          'es' => 'catalog_entry',
12386          'formato' => 'jqgrid',
12387          'to_table' => 'banco_cuenta_mov',
12388          'to_field' => 'empresa_id',
12389          'this_table' => 'empresa',
12390          'this_field' => 'empresa_id',
12391          'restrict_delete' => true,
12392          'delete_with_parent' => false,
12393          'on_delete_set_to' => 0,
12394        ),
12395        'bc_empresa_id' =>
12396        array (
12397          'es' => 'catalog_entry',
12398          'formato' => 'jqgrid',
12399          'to_table' => 'banco_cuenta_mov',
12400          'to_field' => 'bc_empresa_id',
12401          'this_table' => 'empresa',
12402          'this_field' => 'empresa_id',
12403          'restrict_delete' => true,
12404          'delete_with_parent' => false,
12405          'on_delete_set_to' => 0,
12406        ),
12407      ),
12408      'banco_cuenta_mov_con_links' =>
12409      array (
12410        'empresa_id' =>
12411        array (
12412          'es' => 'catalog_entry',
12413          'formato' => 'jqgrid',
12414          'to_table' => 'banco_cuenta_mov_con_links',
12415          'to_field' => 'empresa_id',
12416          'this_table' => 'empresa',
12417          'this_field' => 'empresa_id',
12418          'restrict_delete' => true,
12419          'delete_with_parent' => false,
12420          'on_delete_set_to' => 0,
12421        ),
12422      ),
12423      'banco_cuenta_trans' =>
12424      array (
12425        'empresa_id' =>
12426        array (
12427          'es' => 'catalog_entry',
12428          'formato' => 'jqgrid',
12429          'to_table' => 'banco_cuenta_trans',
12430          'to_field' => 'empresa_id',
12431          'this_table' => 'empresa',
12432          'this_field' => 'empresa_id',
12433          'restrict_delete' => true,
12434          'delete_with_parent' => false,
12435          'on_delete_set_to' => 0,
12436        ),
12437      ),
12438      'bodega' =>
12439      array (
12440        'empresa_id' =>
12441        array (
12442          'es' => 'catalog_entry',
12443          'formato' => 'jqgrid',
12444          'to_table' => 'bodega',
12445          'to_field' => 'empresa_id',
12446          'this_table' => 'empresa',
12447          'this_field' => 'empresa_id',
12448          'restrict_delete' => true,
12449          'delete_with_parent' => false,
12450          'on_delete_set_to' => 0,
12451        ),
12452      ),
12453      'cheque_pago' =>
12454      array (
12455        'empresa_id' =>
12456        array (
12457          'es' => 'catalog_entry',
12458          'formato' => 'jqgrid',
12459          'to_table' => 'cheque_pago',
12460          'to_field' => 'empresa_id',
12461          'this_table' => 'empresa',
12462          'this_field' => 'empresa_id',
12463          'restrict_delete' => true,
12464          'delete_with_parent' => false,
12465          'on_delete_set_to' => 0,
12466        ),
12467      ),
12468      'cheque_pago_log' =>
12469      array (
12470        'empresa_id' =>
12471        array (
12472          'es' => 'catalog_entry',
12473          'formato' => 'jqgrid',
12474          'to_table' => 'cheque_pago_log',
12475          'to_field' => 'empresa_id',
12476          'this_table' => 'empresa',
12477          'this_field' => 'empresa_id',
12478          'restrict_delete' => true,
12479          'delete_with_parent' => false,
12480          'on_delete_set_to' => 0,
12481        ),
12482      ),
12483      'compra_pago' =>
12484      array (
12485        'empresa_id' =>
12486        array (
12487          'es' => 'catalog_entry',
12488          'formato' => 'jqgrid',
12489          'to_table' => 'compra_pago',
12490          'to_field' => 'empresa_id',
12491          'this_table' => 'empresa',
12492          'this_field' => 'empresa_id',
12493          'restrict_delete' => true,
12494          'delete_with_parent' => false,
12495          'on_delete_set_to' => 0,
12496        ),
12497      ),
12498      'compra_pago_log' =>
12499      array (
12500        'empresa_id' =>
12501        array (
12502          'es' => 'catalog_entry',
12503          'formato' => 'jqgrid',
12504          'to_table' => 'compra_pago_log',
12505          'to_field' => 'empresa_id',
12506          'this_table' => 'empresa',
12507          'this_field' => 'empresa_id',
12508          'restrict_delete' => true,
12509          'delete_with_parent' => false,
12510          'on_delete_set_to' => 0,
12511        ),
12512      ),
12513      'cp_autotransporte' =>
12514      array (
12515        'empresa_id' =>
12516        array (
12517          'es' => 'catalog_entry',
12518          'formato' => 'jqgrid',
12519          'to_table' => 'cp_autotransporte',
12520          'to_field' => 'empresa_id',
12521          'this_table' => 'empresa',
12522          'this_field' => 'empresa_id',
12523          'restrict_delete' => true,
12524          'delete_with_parent' => false,
12525          'on_delete_set_to' => 0,
12526        ),
12527      ),
12528      'cp_cliente_direccion' =>
12529      array (
12530        'empresa_id' =>
12531        array (
12532          'es' => 'catalog_entry',
12533          'formato' => 'jqgrid',
12534          'to_table' => 'cp_cliente_direccion',
12535          'to_field' => 'empresa_id',
12536          'this_table' => 'empresa',
12537          'this_field' => 'empresa_id',
12538          'restrict_delete' => true,
12539          'delete_with_parent' => false,
12540          'on_delete_set_to' => 0,
12541        ),
12542      ),
12543      'cp_figuratransporte' =>
12544      array (
12545        'empresa_id' =>
12546        array (
12547          'es' => 'catalog_entry',
12548          'formato' => 'jqgrid',
12549          'to_table' => 'cp_figuratransporte',
12550          'to_field' => 'empresa_id',
12551          'this_table' => 'empresa',
12552          'this_field' => 'empresa_id',
12553          'restrict_delete' => true,
12554          'delete_with_parent' => false,
12555          'on_delete_set_to' => 0,
12556        ),
12557      ),
12558      'cuentat_a_banco' =>
12559      array (
12560        'empresa_id' =>
12561        array (
12562          'es' => 'catalog_entry',
12563          'formato' => 'jqgrid',
12564          'to_table' => 'cuentat_a_banco',
12565          'to_field' => 'empresa_id',
12566          'this_table' => 'empresa',
12567          'this_field' => 'empresa_id',
12568          'restrict_delete' => true,
12569          'delete_with_parent' => false,
12570          'on_delete_set_to' => 0,
12571        ),
12572      ),
12573      'cuentat_a_banco_links' =>
12574      array (
12575        'empresa_id' =>
12576        array (
12577          'es' => 'catalog_entry',
12578          'formato' => 'jqgrid',
12579          'to_table' => 'cuentat_a_banco_links',
12580          'to_field' => 'empresa_id',
12581          'this_table' => 'empresa',
12582          'this_field' => 'empresa_id',
12583          'restrict_delete' => true,
12584          'delete_with_parent' => false,
12585          'on_delete_set_to' => 0,
12586        ),
12587      ),
12588      'cuentat_a_banco_tc' =>
12589      array (
12590        'empresa_id' =>
12591        array (
12592          'es' => 'catalog_entry',
12593          'formato' => 'jqgrid',
12594          'to_table' => 'cuentat_a_banco_tc',
12595          'to_field' => 'empresa_id',
12596          'this_table' => 'empresa',
12597          'this_field' => 'empresa_id',
12598          'restrict_delete' => true,
12599          'delete_with_parent' => false,
12600          'on_delete_set_to' => 0,
12601        ),
12602      ),
12603      'fiduciario' =>
12604      array (
12605        'empresa_id' =>
12606        array (
12607          'es' => 'catalog_entry',
12608          'formato' => 'jqgrid',
12609          'to_table' => 'fiduciario',
12610          'to_field' => 'empresa_id',
12611          'this_table' => 'empresa',
12612          'this_field' => 'empresa_id',
12613          'restrict_delete' => true,
12614          'delete_with_parent' => false,
12615          'on_delete_set_to' => 0,
12616        ),
12617      ),
12618      'fiduciario_reembolso' =>
12619      array (
12620        'empresa_id' =>
12621        array (
12622          'es' => 'catalog_entry',
12623          'formato' => 'jqgrid',
12624          'to_table' => 'fiduciario_reembolso',
12625          'to_field' => 'empresa_id',
12626          'this_table' => 'empresa',
12627          'this_field' => 'empresa_id',
12628          'restrict_delete' => true,
12629          'delete_with_parent' => false,
12630          'on_delete_set_to' => 0,
12631        ),
12632      ),
12633      'inversion' =>
12634      array (
12635        'empresa_id' =>
12636        array (
12637          'es' => 'catalog_entry',
12638          'formato' => 'jqgrid',
12639          'to_table' => 'inversion',
12640          'to_field' => 'empresa_id',
12641          'this_table' => 'empresa',
12642          'this_field' => 'empresa_id',
12643          'restrict_delete' => true,
12644          'delete_with_parent' => false,
12645          'on_delete_set_to' => 0,
12646        ),
12647      ),
12648      'inversion_reembolso' =>
12649      array (
12650        'empresa_id' =>
12651        array (
12652          'es' => 'catalog_entry',
12653          'formato' => 'jqgrid',
12654          'to_table' => 'inversion_reembolso',
12655          'to_field' => 'empresa_id',
12656          'this_table' => 'empresa',
12657          'this_field' => 'empresa_id',
12658          'restrict_delete' => true,
12659          'delete_with_parent' => false,
12660          'on_delete_set_to' => 0,
12661        ),
12662      ),
12663      'links_al_banco' =>
12664      array (
12665        'empresa_id' =>
12666        array (
12667          'es' => 'catalog_entry',
12668          'formato' => 'jqgrid',
12669          'to_table' => 'links_al_banco',
12670          'to_field' => 'empresa_id',
12671          'this_table' => 'empresa',
12672          'this_field' => 'empresa_id',
12673          'restrict_delete' => true,
12674          'delete_with_parent' => false,
12675          'on_delete_set_to' => 0,
12676        ),
12677      ),
12678      'links_al_banco_live' =>
12679      array (
12680        'empresa_id' =>
12681        array (
12682          'es' => 'catalog_entry',
12683          'formato' => 'jqgrid',
12684          'to_table' => 'links_al_banco_live',
12685          'to_field' => 'empresa_id',
12686          'this_table' => 'empresa',
12687          'this_field' => 'empresa_id',
12688          'restrict_delete' => true,
12689          'delete_with_parent' => false,
12690          'on_delete_set_to' => 0,
12691        ),
12692      ),
12693      'mov_verificado' =>
12694      array (
12695        'empresa_id' =>
12696        array (
12697          'es' => 'catalog_entry',
12698          'formato' => 'jqgrid',
12699          'to_table' => 'mov_verificado',
12700          'to_field' => 'empresa_id',
12701          'this_table' => 'empresa',
12702          'this_field' => 'empresa_id',
12703          'restrict_delete' => true,
12704          'delete_with_parent' => false,
12705          'on_delete_set_to' => 0,
12706        ),
12707      ),
12708      'mov_verificado_con_links' =>
12709      array (
12710        'empresa_id' =>
12711        array (
12712          'es' => 'catalog_entry',
12713          'formato' => 'jqgrid',
12714          'to_table' => 'mov_verificado_con_links',
12715          'to_field' => 'empresa_id',
12716          'this_table' => 'empresa',
12717          'this_field' => 'empresa_id',
12718          'restrict_delete' => true,
12719          'delete_with_parent' => false,
12720          'on_delete_set_to' => 0,
12721        ),
12722      ),
12723      'origen_bodega' =>
12724      array (
12725        'empresa_id' =>
12726        array (
12727          'es' => 'catalog_entry',
12728          'formato' => 'jqgrid',
12729          'to_table' => 'origen_bodega',
12730          'to_field' => 'empresa_id',
12731          'this_table' => 'empresa',
12732          'this_field' => 'empresa_id',
12733          'restrict_delete' => true,
12734          'delete_with_parent' => false,
12735          'on_delete_set_to' => 0,
12736        ),
12737      ),
12738      'pagare_pago' =>
12739      array (
12740        'empresa_id' =>
12741        array (
12742          'es' => 'catalog_entry',
12743          'formato' => 'jqgrid',
12744          'to_table' => 'pagare_pago',
12745          'to_field' => 'empresa_id',
12746          'this_table' => 'empresa',
12747          'this_field' => 'empresa_id',
12748          'restrict_delete' => true,
12749          'delete_with_parent' => false,
12750          'on_delete_set_to' => 0,
12751        ),
12752      ),
12753      'pagare_pago_log' =>
12754      array (
12755        'empresa_id' =>
12756        array (
12757          'es' => 'catalog_entry',
12758          'formato' => 'jqgrid',
12759          'to_table' => 'pagare_pago_log',
12760          'to_field' => 'empresa_id',
12761          'this_table' => 'empresa',
12762          'this_field' => 'empresa_id',
12763          'restrict_delete' => true,
12764          'delete_with_parent' => false,
12765          'on_delete_set_to' => 0,
12766        ),
12767      ),
12768      'registro_transferencia_dinero' =>
12769      array (
12770        'empresa_id' =>
12771        array (
12772          'es' => 'catalog_entry',
12773          'formato' => 'jqgrid',
12774          'to_table' => 'registro_transferencia_dinero',
12775          'to_field' => 'empresa_id',
12776          'this_table' => 'empresa',
12777          'this_field' => 'empresa_id',
12778          'restrict_delete' => true,
12779          'delete_with_parent' => false,
12780          'on_delete_set_to' => 0,
12781        ),
12782      ),
12783      'tienda' =>
12784      array (
12785        'empresa_id' =>
12786        array (
12787          'es' => 'catalog_entry',
12788          'formato' => 'jqgrid',
12789          'to_table' => 'tienda',
12790          'to_field' => 'empresa_id',
12791          'this_table' => 'empresa',
12792          'this_field' => 'empresa_id',
12793          'restrict_delete' => true,
12794          'delete_with_parent' => false,
12795          'on_delete_set_to' => 0,
12796        ),
12797      ),
12798      'vale' =>
12799      array (
12800        'empresa_id' =>
12801        array (
12802          'es' => 'catalog_entry',
12803          'formato' => 'jqgrid',
12804          'to_table' => 'vale',
12805          'to_field' => 'empresa_id',
12806          'this_table' => 'empresa',
12807          'this_field' => 'empresa_id',
12808          'restrict_delete' => true,
12809          'delete_with_parent' => false,
12810          'on_delete_set_to' => 0,
12811        ),
12812      ),
12813      'vale_log' =>
12814      array (
12815        'empresa_id' =>
12816        array (
12817          'es' => 'catalog_entry',
12818          'formato' => 'jqgrid',
12819          'to_table' => 'vale_log',
12820          'to_field' => 'empresa_id',
12821          'this_table' => 'empresa',
12822          'this_field' => 'empresa_id',
12823          'restrict_delete' => true,
12824          'delete_with_parent' => false,
12825          'on_delete_set_to' => 0,
12826        ),
12827      ),
12828      'vale_pago' =>
12829      array (
12830        'empresa_id' =>
12831        array (
12832          'es' => 'catalog_entry',
12833          'formato' => 'jqgrid',
12834          'to_table' => 'vale_pago',
12835          'to_field' => 'empresa_id',
12836          'this_table' => 'empresa',
12837          'this_field' => 'empresa_id',
12838          'restrict_delete' => true,
12839          'delete_with_parent' => false,
12840          'on_delete_set_to' => 0,
12841        ),
12842      ),
12843      'vale_pago_log' =>
12844      array (
12845        'empresa_id' =>
12846        array (
12847          'es' => 'catalog_entry',
12848          'formato' => 'jqgrid',
12849          'to_table' => 'vale_pago_log',
12850          'to_field' => 'empresa_id',
12851          'this_table' => 'empresa',
12852          'this_field' => 'empresa_id',
12853          'restrict_delete' => true,
12854          'delete_with_parent' => false,
12855          'on_delete_set_to' => 0,
12856        ),
12857      ),
12858    ),
12859    'links_to' =>
12860    array (
12861      'cp_cliente_direccion' =>
12862      array (
12863        'cp_cliente_direccion_id' =>
12864        array (
12865          'es' => 'catalog',
12866          'formato' => 'link_one_select',
12867          'to_table' => 'cp_cliente_direccion',
12868          'to_field' => 'cp_cliente_direccion_id',
12869          'this_table' => 'empresa',
12870          'this_field' => 'cp_cliente_direccion_id',
12871        ),
12872      ),
12873    ),
12874  ),
12875  'estado' =>
12876  array (
12877    'es' => 'data',
12878    'pk_single_field' => 'estado_id',
12879    'pk_single_type' => 'auto_increment',
12880    'label_field' => 'clave',
12881    'orden' => true,
12882    'has_seq' => false,
12883    'has_child' => false,
12884    'has_fckeditor' => true,
12885    'links_to' =>
12886    array (
12887      'iac_usr' =>
12888      array (
12889        'usuario_id' =>
12890        array (
12891          'es' => 'catalog',
12892          'formato' => 'link_one_select',
12893          'to_table' => 'iac_usr',
12894          'to_field' => 'iac_usr_id',
12895          'this_table' => 'estado',
12896          'this_field' => 'usuario_id',
12897        ),
12898      ),
12899    ),
12900  ),
12901  'estado_bodega' =>
12902  array (
12903    'es' => 'data',
12904    'pk_single_field' => 'estado_bodega_id',
12905    'pk_single_type' => 'auto_increment',
12906    'label_field' => 'origen',
12907    'orden' => true,
12908    'has_seq' => false,
12909    'has_child' => false,
12910    'UNI' =>
12911    array (
12912      'origen' =>
12913      array (
12914        1 => 'origen',
12915        2 => 'estado_bodega_num',
12916      ),
12917    ),
12918  ),
12919  'estado_bodega_hist' =>
12920  array (
12921    'es' => 'data',
12922    'pk_single_field' => 'history_id',
12923    'pk_single_type' => 'auto_increment',
12924    'label_field' => 'action',
12925    'has_seq' => false,
12926    'has_child' => false,
12927    'has_datetime' => true,
12928    'links_from' =>
12929    array (
12930      'ajuste_hist' =>
12931      array (
12932        'es' => 'one2one',
12933      ),
12934      'bodega_hist' =>
12935      array (
12936        'es' => 'one2one',
12937      ),
12938      'cheque_hist' =>
12939      array (
12940        'es' => 'one2one',
12941      ),
12942      'cliente_hist' =>
12943      array (
12944        'es' => 'one2one',
12945      ),
12946      'color_hist' =>
12947      array (
12948        'es' => 'one2one',
12949      ),
12950      'importador_hist' =>
12951      array (
12952        'es' => 'one2one',
12953      ),
12954      'nota_bodega_hist' =>
12955      array (
12956        'es' => 'one2one',
12957      ),
12958      'nota_bodega_verificacion_hist' =>
12959      array (
12960        'es' => 'one2one',
12961      ),
12962      'origen_bodega_bodega_hist' =>
12963      array (
12964        'es' => 'one2one',
12965      ),
12966      'origen_bodega_hist' =>
12967      array (
12968        'es' => 'one2one',
12969      ),
12970      'pagare_hist' =>
12971      array (
12972        'es' => 'one2one',
12973      ),
12974      'pedido_hist' =>
12975      array (
12976        'es' => 'one2one',
12977      ),
12978      'permiso_bodega_hist' =>
12979      array (
12980        'es' => 'one2one',
12981      ),
12982      'producto_bodega_hist' =>
12983      array (
12984        'es' => 'one2one',
12985      ),
12986      'producto_color_hist' =>
12987      array (
12988        'es' => 'one2one',
12989      ),
12990      'producto_general_hist' =>
12991      array (
12992        'es' => 'one2one',
12993      ),
12994      'solicitud_carta_porte_hist' =>
12995      array (
12996        'es' => 'one2one',
12997      ),
12998      'tienda_hist' =>
12999      array (
13000        'es' => 'one2one',
13001      ),
13002      'vale_hist' =>
13003      array (
13004        'es' => 'one2one',
13005      ),
13006    ),
13007  ),
13008  'estilos' =>
13009  array (
13010    'es' => 'data',
13011    'PK' =>
13012    array (
13013      0 => 'tabla',
13014      1 => 'campo',
13015      2 => 'id_nombre',
13016      3 => 'id_valor',
13017      4 => 'atributo',
13018    ),
13019    'label_field' => 'valor',
13020    'has_seq' => false,
13021    'has_child' => false,
13022  ),
13023  'estilos_grid' =>
13024  array (
13025    'es' => 'data',
13026    'pk_single_field' => 'id',
13027    'pk_single_type' => 'auto_increment',
13028    'label_field' => 'pagina',
13029    'has_seq' => false,
13030    'has_child' => false,
13031    'links_from' =>
13032    array (
13033      'iconos_fa' =>
13034      array (
13035        'es' => 'one2one',
13036      ),
13037      'linkspendientes' =>
13038      array (
13039        'es' => 'one2one',
13040      ),
13041      'lista_precios_tc' =>
13042      array (
13043        'es' => 'one2one',
13044      ),
13045    ),
13046  ),
13047  'fabricas' =>
13048  array (
13049    'es' => 'data',
13050    'pk_single_field' => 'fabrica_id',
13051    'pk_single_type' => 'uuid',
13052    'label_field' => 'fabrica',
13053    'has_seq' => false,
13054    'has_child' => false,
13055  ),
13056  'fiduciario' =>
13057  array (
13058    'es' => 'parent',
13059    'pk_single_field' => 'fiduciario_id',
13060    'pk_single_type' => 'uuid',
13061    'label_field' => 'banco_cuenta_mov_id',
13062    'has_seq' => false,
13063    'has_child' => true,
13064    'has_date' => true,
13065    'has_numeric' => true,
13066    'has_datetime' => true,
13067    'links_to' =>
13068    array (
13069      'banco_cuenta' =>
13070      array (
13071        'banco_cuenta_id' =>
13072        array (
13073          'es' => 'catalog',
13074          'formato' => 'link_one_select',
13075          'to_table' => 'banco_cuenta',
13076          'to_field' => 'banco_cuenta_id',
13077          'this_table' => 'fiduciario',
13078          'this_field' => 'banco_cuenta_id',
13079        ),
13080      ),
13081      'banco_cuenta_mov' =>
13082      array (
13083        'banco_cuenta_mov_id' =>
13084        array (
13085          'es' => 'catalog',
13086          'formato' => 'link_one_select',
13087          'to_table' => 'banco_cuenta_mov',
13088          'to_field' => '?',
13089          'this_table' => 'fiduciario',
13090          'this_field' => 'banco_cuenta_mov_id',
13091        ),
13092      ),
13093      'empresa' =>
13094      array (
13095        'empresa_id' =>
13096        array (
13097          'es' => 'catalog',
13098          'formato' => 'link_one_select',
13099          'to_table' => 'empresa',
13100          'to_field' => 'empresa_id',
13101          'this_table' => 'fiduciario',
13102          'this_field' => 'empresa_id',
13103        ),
13104      ),
13105    ),
13106    'links_from' =>
13107    array (
13108      'fiduciario_contenedor' =>
13109      array (
13110        'fiduciario_id' =>
13111        array (
13112          'es' => 'child',
13113          'formato' => 'jqgrid',
13114          'to_table' => 'fiduciario_contenedor',
13115          'to_field' => 'fiduciario_id',
13116          'this_table' => 'fiduciario',
13117          'this_field' => 'fiduciario_id',
13118          'restrict_delete' => false,
13119          'delete_with_parent' => true,
13120          'on_delete_set_to' => 0,
13121        ),
13122      ),
13123    ),
13124  ),
13125  'fiduciario_contenedor' =>
13126  array (
13127    'es' => 'child',
13128    'pk_single_field' => 'fiduciario_contenedor_id',
13129    'pk_single_type' => 'uuid',
13130    'label_field' => 'fiduciario_id',
13131    'has_seq' => false,
13132    'has_child' => false,
13133    'has_numeric' => true,
13134    'has_date' => true,
13135    'has_datetime' => true,
13136    'links_to' =>
13137    array (
13138      'fiduciario' =>
13139      array (
13140        'fiduciario_id' =>
13141        array (
13142          'es' => 'catalog',
13143          'formato' => 'link_one_select',
13144          'to_table' => 'fiduciario',
13145          'to_field' => 'fiduciario_id',
13146          'this_table' => 'fiduciario_contenedor',
13147          'this_field' => 'fiduciario_id',
13148        ),
13149      ),
13150      'cliente' =>
13151      array (
13152        'cliente_id' =>
13153        array (
13154          'es' => 'catalog',
13155          'formato' => 'link_one_select',
13156          'to_table' => 'cliente',
13157          'to_field' => 'cliente_id',
13158          'this_table' => 'fiduciario_contenedor',
13159          'this_field' => 'cliente_id',
13160        ),
13161      ),
13162      'banco_cuenta' =>
13163      array (
13164        'banco_cuenta_id' =>
13165        array (
13166          'es' => 'catalog',
13167          'formato' => 'link_one_select',
13168          'to_table' => 'banco_cuenta',
13169          'to_field' => 'banco_cuenta_id',
13170          'this_table' => 'fiduciario_contenedor',
13171          'this_field' => 'banco_cuenta_id',
13172        ),
13173      ),
13174      'fiduciario_reembolso' =>
13175      array (
13176        'fiduciario_reembolso_id' =>
13177        array (
13178          'es' => 'catalog',
13179          'formato' => 'link_one_select',
13180          'to_table' => 'fiduciario_reembolso',
13181          'to_field' => 'fiduciario_reembolso_id',
13182          'this_table' => 'fiduciario_contenedor',
13183          'this_field' => 'fiduciario_reembolso_id',
13184        ),
13185      ),
13186    ),
13187  ),
13188  'fiduciario_contenedor_gasto' =>
13189  array (
13190    'es' => 'child',
13191    'label_field' => 'fiduciario_contenedor_gasto_id',
13192    'has_seq' => false,
13193    'has_child' => false,
13194    'has_date' => true,
13195    'has_numeric' => true,
13196    'links_to' =>
13197    array (
13198      'categoria_gasto' =>
13199      array (
13200        'categoria_gasto_id' =>
13201        array (
13202          'es' => 'catalog',
13203          'formato' => 'link_one_select',
13204          'to_table' => 'categoria_gasto',
13205          'to_field' => 'categoria_gasto_id',
13206          'this_table' => 'fiduciario_contenedor_gasto',
13207          'this_field' => 'categoria_gasto_id',
13208        ),
13209      ),
13210      'subcategoria_gasto' =>
13211      array (
13212        'subcategoria_gasto_id' =>
13213        array (
13214          'es' => 'catalog',
13215          'formato' => 'link_one_select',
13216          'to_table' => 'subcategoria_gasto',
13217          'to_field' => 'subcategoria_gasto_id',
13218          'this_table' => 'fiduciario_contenedor_gasto',
13219          'this_field' => 'subcategoria_gasto_id',
13220        ),
13221      ),
13222      'moneda' =>
13223      array (
13224        'moneda_id' =>
13225        array (
13226          'es' => 'catalog',
13227          'formato' => 'link_one_select',
13228          'to_table' => 'moneda',
13229          'to_field' => 'moneda_id',
13230          'this_table' => 'fiduciario_contenedor_gasto',
13231          'this_field' => 'moneda_id',
13232        ),
13233      ),
13234    ),
13235  ),
13236  'fiduciario_reembolso' =>
13237  array (
13238    'es' => 'child',
13239    'pk_single_field' => 'fiduciario_reembolso_id',
13240    'pk_single_type' => 'uuid',
13241    'label_field' => 'banco_cuenta_mov_id',
13242    'has_seq' => false,
13243    'has_child' => true,
13244    'has_date' => true,
13245    'has_numeric' => true,
13246    'has_datetime' => true,
13247    'links_from' =>
13248    array (
13249      'fiduciario_contenedor' =>
13250      array (
13251        'fiduciario_reembolso_id' =>
13252        array (
13253          'es' => 'catalog_entry',
13254          'formato' => 'jqgrid',
13255          'to_table' => 'fiduciario_contenedor',
13256          'to_field' => 'fiduciario_reembolso_id',
13257          'this_table' => 'fiduciario_reembolso',
13258          'this_field' => 'fiduciario_reembolso_id',
13259          'restrict_delete' => true,
13260          'delete_with_parent' => false,
13261          'on_delete_set_to' => 0,
13262        ),
13263      ),
13264    ),
13265    'links_to' =>
13266    array (
13267      'banco_cuenta' =>
13268      array (
13269        'banco_cuenta_id' =>
13270        array (
13271          'es' => 'catalog',
13272          'formato' => 'link_one_select',
13273          'to_table' => 'banco_cuenta',
13274          'to_field' => 'banco_cuenta_id',
13275          'this_table' => 'fiduciario_reembolso',
13276          'this_field' => 'banco_cuenta_id',
13277        ),
13278      ),
13279      'banco_cuenta_mov' =>
13280      array (
13281        'banco_cuenta_mov_id' =>
13282        array (
13283          'es' => 'catalog',
13284          'formato' => 'link_one_select',
13285          'to_table' => 'banco_cuenta_mov',
13286          'to_field' => '?',
13287          'this_table' => 'fiduciario_reembolso',
13288          'this_field' => 'banco_cuenta_mov_id',
13289        ),
13290      ),
13291      'banco_cuenta_mov_link' =>
13292      array (
13293        'banco_cuenta_mov_link_id' =>
13294        array (
13295          'es' => 'catalog',
13296          'formato' => 'link_one_select',
13297          'to_table' => 'banco_cuenta_mov_link',
13298          'to_field' => 'banco_cuenta_mov_link_id',
13299          'this_table' => 'fiduciario_reembolso',
13300          'this_field' => 'banco_cuenta_mov_link_id',
13301        ),
13302      ),
13303      'empresa' =>
13304      array (
13305        'empresa_id' =>
13306        array (
13307          'es' => 'catalog',
13308          'formato' => 'link_one_select',
13309          'to_table' => 'empresa',
13310          'to_field' => 'empresa_id',
13311          'this_table' => 'fiduciario_reembolso',
13312          'this_field' => 'empresa_id',
13313        ),
13314      ),
13315    ),
13316  ),
13317  'gasto_empresa' =>
13318  array (
13319    'es' => 'child',
13320    'pk_single_field' => 'gasto_empresa_id',
13321    'pk_single_type' => 'uuid',
13322    'label_field' => 'alta_por',
13323    'has_seq' => false,
13324    'has_child' => false,
13325    'has_date' => true,
13326    'has_numeric' => true,
13327    'has_fckeditor' => true,
13328    'links_to' =>
13329    array (
13330      'cuentat' =>
13331      array (
13332        'cuentaT_id' =>
13333        array (
13334          'es' => 'catalog',
13335          'formato' => 'link_one_select',
13336          'to_table' => 'cuentat',
13337          'to_field' => 'cuentaT_id',
13338          'this_table' => 'gasto_empresa',
13339          'this_field' => 'cuentaT_id',
13340        ),
13341      ),
13342    ),
13343  ),
13344  'gastosdebanco' =>
13345  array (
13346    'es' => 'child',
13347    'label_field' => 'banco_cuenta_mov_id',
13348    'has_seq' => false,
13349    'has_child' => false,
13350    'has_datetime' => true,
13351    'has_numeric' => true,
13352    'has_fckeditor' => true,
13353    'links_to' =>
13354    array (
13355      'banco_cuenta_mov' =>
13356      array (
13357        'banco_cuenta_mov_id' =>
13358        array (
13359          'es' => 'catalog',
13360          'formato' => 'link_one_select',
13361          'to_table' => 'banco_cuenta_mov',
13362          'to_field' => '?',
13363          'this_table' => 'gastosdebanco',
13364          'this_field' => 'banco_cuenta_mov_id',
13365        ),
13366      ),
13367      'banco_cuenta' =>
13368      array (
13369        'banco_cuenta_id' =>
13370        array (
13371          'es' => 'catalog',
13372          'formato' => 'link_one_select',
13373          'to_table' => 'banco_cuenta',
13374          'to_field' => 'banco_cuenta_id',
13375          'this_table' => 'gastosdebanco',
13376          'this_field' => 'banco_cuenta_id',
13377        ),
13378      ),
13379      'categoria_gasto' =>
13380      array (
13381        'categoria_gasto_id' =>
13382        array (
13383          'es' => 'catalog',
13384          'formato' => 'link_one_select',
13385          'to_table' => 'categoria_gasto',
13386          'to_field' => 'categoria_gasto_id',
13387          'this_table' => 'gastosdebanco',
13388          'this_field' => 'categoria_gasto_id',
13389        ),
13390      ),
13391    ),
13392  ),
13393  'grupos_de' =>
13394  array (
13395    'es' => 'data',
13396    'PK' =>
13397    array (
13398      0 => 'tipo_grupo',
13399      1 => 'grupo',
13400      2 => 'item_id',
13401    ),
13402    'label_field' => 'grupos_de_id',
13403    'has_seq' => false,
13404    'has_child' => false,
13405  ),
13406  'iac_enum_class' =>
13407  array (
13408    'es' => 'data',
13409    'pk_single_field' => 'iac_enum_class_id',
13410    'pk_single_type' => 'auto_increment',
13411    'label_field' => 'valor_enum',
13412    'has_seq' => false,
13413    'has_child' => false,
13414    'UNI' =>
13415    array (
13416      0 => 'valor_enum',
13417    ),
13418  ),
13419  'iac_field_permission' =>
13420  array (
13421    'es' => 'child',
13422    'pk_single_field' => 'iac_field_permission_id',
13423    'pk_single_type' => 'auto_increment',
13424    'label_field' => 'iac_table',
13425    'has_seq' => false,
13426    'has_child' => false,
13427    'UNI' =>
13428    array (
13429      'tabla_usuario' =>
13430      array (
13431        1 => 'iac_table',
13432        2 => 'iac_usr_id',
13433        3 => 'campo',
13434        4 => 'seccion',
13435      ),
13436    ),
13437    'links_to' =>
13438    array (
13439      'iac_usr' =>
13440      array (
13441        'iac_usr_id' =>
13442        array (
13443          'es' => 'catalog',
13444          'formato' => 'link_one_select',
13445          'to_table' => 'iac_usr',
13446          'to_field' => 'iac_usr_id',
13447          'this_table' => 'iac_field_permission',
13448          'this_field' => 'iac_usr_id',
13449        ),
13450      ),
13451    ),
13452  ),
13453  'iac_limits' =>
13454  array (
13455    'es' => 'data',
13456    'pk_single_field' => 'iac_limits_id',
13457    'pk_single_type' => 'auto_increment',
13458    'label_field' => 'iac_table',
13459    'has_seq' => false,
13460    'has_child' => false,
13461    'UNI' =>
13462    array (
13463      'tabla_campo' =>
13464      array (
13465        1 => 'iac_table',
13466        2 => 'campo',
13467      ),
13468    ),
13469  ),
13470  'iac_log' =>
13471  array (
13472    'es' => 'child',
13473    'label_field' => 'usuario',
13474    'has_seq' => false,
13475    'has_child' => false,
13476    'has_datetime' => true,
13477    'has_fckeditor' => true,
13478    'links_to' =>
13479    array (
13480      'iac_log_hecho' =>
13481      array (
13482        'iac_log_hecho_id' =>
13483        array (
13484          'es' => 'catalog',
13485          'formato' => 'link_one_select',
13486          'to_table' => 'iac_log_hecho',
13487          'to_field' => 'iac_log_hecho_id',
13488          'this_table' => 'iac_log',
13489          'this_field' => 'iac_log_hecho_id',
13490        ),
13491      ),
13492      'iac_table' =>
13493      array (
13494        'iac_table_id' =>
13495        array (
13496          'es' => 'catalog',
13497          'formato' => 'link_one_select',
13498          'to_table' => 'iac_table',
13499          'to_field' => 'iac_table_id',
13500          'this_table' => 'iac_log',
13501          'this_field' => 'iac_table_id',
13502        ),
13503      ),
13504    ),
13505  ),
13506  'iac_log_hecho' =>
13507  array (
13508    'es' => 'parent',
13509    'pk_single_field' => 'iac_log_hecho_id',
13510    'pk_single_type' => 'value',
13511    'label_field' => 'hecho',
13512    'has_seq' => false,
13513    'has_child' => true,
13514    'UNI' =>
13515    array (
13516      0 => 'hecho',
13517    ),
13518    'links_from' =>
13519    array (
13520      'iac_log' =>
13521      array (
13522        'iac_log_hecho_id' =>
13523        array (
13524          'es' => 'catalog_entry',
13525          'formato' => 'jqgrid',
13526          'to_table' => 'iac_log',
13527          'to_field' => 'iac_log_hecho_id',
13528          'this_table' => 'iac_log_hecho',
13529          'this_field' => 'iac_log_hecho_id',
13530          'restrict_delete' => true,
13531          'delete_with_parent' => false,
13532          'on_delete_set_to' => 0,
13533        ),
13534      ),
13535    ),
13536  ),
13537  'iac_log_view' =>
13538  array (
13539    'es' => 'data',
13540    'label_field' => 'usuario',
13541    'has_seq' => false,
13542    'has_child' => false,
13543    'has_datetime' => true,
13544    'has_fckeditor' => true,
13545  ),
13546  'iac_parametros' =>
13547  array (
13548    'es' => 'data',
13549    'pk_single_field' => 'iac_parametros_id',
13550    'pk_single_type' => 'auto_increment',
13551    'label_field' => 'path_archivos_estado_de_cuenta',
13552    'has_seq' => false,
13553    'has_child' => false,
13554    'has_numeric' => true,
13555    'has_time' => true,
13556    'has_date' => true,
13557  ),
13558  'iac_seq' =>
13559  array (
13560    'es' => 'data',
13561    'pk_single_field' => 'name',
13562    'pk_single_type' => 'value',
13563    'label_field' => 'val',
13564    'has_seq' => false,
13565    'has_child' => false,
13566  ),
13567  'iac_table' =>
13568  array (
13569    'es' => 'parent',
13570    'pk_single_field' => 'iac_table_id',
13571    'pk_single_type' => 'auto_increment',
13572    'label_field' => 'tabla',
13573    'has_seq' => false,
13574    'has_child' => true,
13575    'UNI' =>
13576    array (
13577      0 => 'tabla',
13578    ),
13579    'links_from' =>
13580    array (
13581      'iac_log' =>
13582      array (
13583        'iac_table_id' =>
13584        array (
13585          'es' => 'catalog_entry',
13586          'formato' => 'jqgrid',
13587          'to_table' => 'iac_log',
13588          'to_field' => 'iac_table_id',
13589          'this_table' => 'iac_table',
13590          'this_field' => 'iac_table_id',
13591          'restrict_delete' => true,
13592          'delete_with_parent' => false,
13593          'on_delete_set_to' => 0,
13594        ),
13595      ),
13596    ),
13597  ),
13598  'iac_table_permission' =>
13599  array (
13600    'es' => 'child',
13601    'pk_single_field' => 'iac_table_permission_id',
13602    'pk_single_type' => 'auto_increment',
13603    'label_field' => 'iac_table',
13604    'has_seq' => false,
13605    'has_child' => false,
13606    'UNI' =>
13607    array (
13608      'tabla_usuario' =>
13609      array (
13610        1 => 'iac_table',
13611        2 => 'iac_usr_id',
13612      ),
13613    ),
13614    'links_to' =>
13615    array (
13616      'iac_usr' =>
13617      array (
13618        'iac_usr_id' =>
13619        array (
13620          'es' => 'catalog',
13621          'formato' => 'link_one_select',
13622          'to_table' => 'iac_usr',
13623          'to_field' => 'iac_usr_id',
13624          'this_table' => 'iac_table_permission',
13625          'this_field' => 'iac_usr_id',
13626        ),
13627      ),
13628    ),
13629  ),
13630  'iac_usr' =>
13631  array (
13632    'es' => 'parent',
13633    'pk_single_field' => 'iac_usr_id',
13634    'pk_single_type' => 'auto_increment',
13635    'label_field' => 'nick',
13636    'vale' => true,
13637    'orden' => true,
13638    'has_seq' => false,
13639    'has_child' => true,
13640    'has_fckeditor' => true,
13641    'has_file_upload' => true,
13642    'has_datetime' => true,
13643    'UNI' =>
13644    array (
13645      0 => 'nick',
13646      'nick' =>
13647      array (
13648        1 => 'nick',
13649      ),
13650    ),
13651    'links_from' =>
13652    array (
13653      'ajuste_autorizacion' =>
13654      array (
13655        'iac_usr_id' =>
13656        array (
13657          'es' => 'catalog_entry',
13658          'formato' => 'jqgrid',
13659          'to_table' => 'ajuste_autorizacion',
13660          'to_field' => 'iac_usr_id',
13661          'this_table' => 'iac_usr',
13662          'this_field' => 'iac_usr_id',
13663          'restrict_delete' => true,
13664          'delete_with_parent' => false,
13665          'on_delete_set_to' => 0,
13666        ),
13667      ),
13668      'asignacion' =>
13669      array (
13670        'usuario_id' =>
13671        array (
13672          'es' => 'catalog_entry',
13673          'formato' => 'link_one_select',
13674          'to_table' => 'asignacion',
13675          'to_field' => 'usuario_id',
13676          'this_table' => 'iac_usr',
13677          'this_field' => 'iac_usr_id',
13678          'restrict_delete' => true,
13679          'delete_with_parent' => false,
13680          'on_delete_set_to' => 0,
13681        ),
13682      ),
13683      'autorizacion_modificacion_importante_log' =>
13684      array (
13685        'iac_usr_id' =>
13686        array (
13687          'es' => 'catalog_entry',
13688          'formato' => 'jqgrid',
13689          'to_table' => 'autorizacion_modificacion_importante_log',
13690          'to_field' => 'iac_usr_id',
13691          'this_table' => 'iac_usr',
13692          'this_field' => 'iac_usr_id',
13693          'restrict_delete' => true,
13694          'delete_with_parent' => false,
13695          'on_delete_set_to' => 0,
13696        ),
13697      ),
13698      'autorizacion_recepcion_nota_bodega' =>
13699      array (
13700        'iac_usr_id' =>
13701        array (
13702          'es' => 'catalog_entry',
13703          'formato' => 'jqgrid',
13704          'to_table' => 'autorizacion_recepcion_nota_bodega',
13705          'to_field' => 'iac_usr_id',
13706          'this_table' => 'iac_usr',
13707          'this_field' => 'iac_usr_id',
13708          'restrict_delete' => true,
13709          'delete_with_parent' => false,
13710          'on_delete_set_to' => 0,
13711        ),
13712      ),
13713      'bodega_grupo_verificador_verifica_usuario' =>
13714      array (
13715        'iac_usr_id' =>
13716        array (
13717          'es' => 'catalog_entry',
13718          'formato' => 'jqgrid',
13719          'to_table' => 'bodega_grupo_verificador_verifica_usuario',
13720          'to_field' => 'iac_usr_id',
13721          'this_table' => 'iac_usr',
13722          'this_field' => 'iac_usr_id',
13723          'restrict_delete' => true,
13724          'delete_with_parent' => false,
13725          'on_delete_set_to' => 0,
13726        ),
13727      ),
13728      'bodega_grupo_verificador_verifica_usuario_consulta' =>
13729      array (
13730        'iac_usr_id' =>
13731        array (
13732          'es' => 'catalog_entry',
13733          'formato' => 'jqgrid',
13734          'to_table' => 'bodega_grupo_verificador_verifica_usuario_consulta',
13735          'to_field' => 'iac_usr_id',
13736          'this_table' => 'iac_usr',
13737          'this_field' => 'iac_usr_id',
13738          'restrict_delete' => true,
13739          'delete_with_parent' => false,
13740          'on_delete_set_to' => 0,
13741        ),
13742      ),
13743      'bodega_verificador' =>
13744      array (
13745        'iac_usr_id' =>
13746        array (
13747          'es' => 'key_value_select',
13748          'formato' => 'key_value_select',
13749          'to_table' => 'bodega_verificador',
13750          'to_field' => 'iac_usr_id',
13751          'this_table' => 'iac_usr',
13752          'this_field' => 'iac_usr_id',
13753          'restrict_delete' => true,
13754          'delete_with_parent' => false,
13755          'on_delete_set_to' => 0,
13756        ),
13757      ),
13758      'checked_document' =>
13759      array (
13760        'iac_usr_id' =>
13761        array (
13762          'es' => 'catalog_entry',
13763          'formato' => 'jqgrid',
13764          'to_table' => 'checked_document',
13765          'to_field' => 'iac_usr_id',
13766          'this_table' => 'iac_usr',
13767          'this_field' => 'iac_usr_id',
13768          'restrict_delete' => true,
13769          'delete_with_parent' => false,
13770          'on_delete_set_to' => 0,
13771        ),
13772      ),
13773      'cuentat' =>
13774      array (
13775        'usuario_id' =>
13776        array (
13777          'es' => 'catalog_entry',
13778          'formato' => 'link_one_select',
13779          'to_table' => 'cuentat',
13780          'to_field' => 'usuario_id',
13781          'this_table' => 'iac_usr',
13782          'this_field' => 'iac_usr_id',
13783          'restrict_delete' => true,
13784          'delete_with_parent' => false,
13785          'on_delete_set_to' => 0,
13786        ),
13787      ),
13788      'delivered' =>
13789      array (
13790        'usuario_deliveres_id' =>
13791        array (
13792          'es' => 'catalog_entry',
13793          'formato' => 'link_one_select',
13794          'to_table' => 'delivered',
13795          'to_field' => 'usuario_deliveres_id',
13796          'this_table' => 'iac_usr',
13797          'this_field' => 'iac_usr_id',
13798          'restrict_delete' => true,
13799          'delete_with_parent' => false,
13800          'on_delete_set_to' => 0,
13801        ),
13802        'usuario_accepts_id' =>
13803        array (
13804          'es' => 'catalog_entry',
13805          'formato' => 'link_one_select',
13806          'to_table' => 'delivered',
13807          'to_field' => 'usuario_accepts_id',
13808          'this_table' => 'iac_usr',
13809          'this_field' => 'iac_usr_id',
13810          'restrict_delete' => true,
13811          'delete_with_parent' => false,
13812          'on_delete_set_to' => 0,
13813        ),
13814      ),
13815      'estado' =>
13816      array (
13817        'usuario_id' =>
13818        array (
13819          'es' => 'catalog_entry',
13820          'formato' => 'link_one_select',
13821          'to_table' => 'estado',
13822          'to_field' => 'usuario_id',
13823          'this_table' => 'iac_usr',
13824          'this_field' => 'iac_usr_id',
13825          'restrict_delete' => true,
13826          'delete_with_parent' => false,
13827          'on_delete_set_to' => 0,
13828        ),
13829      ),
13830      'iac_field_permission' =>
13831      array (
13832        'iac_usr_id' =>
13833        array (
13834          'es' => 'catalog_entry',
13835          'formato' => 'jqgrid',
13836          'to_table' => 'iac_field_permission',
13837          'to_field' => 'iac_usr_id',
13838          'this_table' => 'iac_usr',
13839          'this_field' => 'iac_usr_id',
13840          'restrict_delete' => true,
13841          'delete_with_parent' => false,
13842          'on_delete_set_to' => 0,
13843        ),
13844      ),
13845      'iac_table_permission' =>
13846      array (
13847        'iac_usr_id' =>
13848        array (
13849          'es' => 'catalog_entry',
13850          'formato' => 'jqgrid',
13851          'to_table' => 'iac_table_permission',
13852          'to_field' => 'iac_usr_id',
13853          'this_table' => 'iac_usr',
13854          'this_field' => 'iac_usr_id',
13855          'restrict_delete' => true,
13856          'delete_with_parent' => false,
13857          'on_delete_set_to' => 0,
13858        ),
13859      ),
13860      'jqgridcolssorter' =>
13861      array (
13862        'iac_usr_id' =>
13863        array (
13864          'es' => 'catalog_entry',
13865          'formato' => 'jqgrid',
13866          'to_table' => 'jqgridcolssorter',
13867          'to_field' => 'iac_usr_id',
13868          'this_table' => 'iac_usr',
13869          'this_field' => 'iac_usr_id',
13870          'restrict_delete' => true,
13871          'delete_with_parent' => false,
13872          'on_delete_set_to' => 0,
13873        ),
13874      ),
13875      'login_log' =>
13876      array (
13877        'usuario_id' =>
13878        array (
13879          'es' => 'catalog_entry',
13880          'formato' => 'link_one_select',
13881          'to_table' => 'login_log',
13882          'to_field' => 'usuario_id',
13883          'this_table' => 'iac_usr',
13884          'this_field' => 'iac_usr_id',
13885          'restrict_delete' => true,
13886          'delete_with_parent' => false,
13887          'on_delete_set_to' => 0,
13888        ),
13889      ),
13890      'nota_bodega_verificacion' =>
13891      array (
13892        'iac_usr_id' =>
13893        array (
13894          'es' => 'catalog_entry',
13895          'formato' => 'jqgrid',
13896          'to_table' => 'nota_bodega_verificacion',
13897          'to_field' => 'iac_usr_id',
13898          'this_table' => 'iac_usr',
13899          'this_field' => 'iac_usr_id',
13900          'restrict_delete' => true,
13901          'delete_with_parent' => false,
13902          'on_delete_set_to' => 0,
13903        ),
13904      ),
13905      'pedido_recomienda' =>
13906      array (
13907        'iac_usr_id' =>
13908        array (
13909          'es' => 'catalog_entry',
13910          'formato' => 'jqgrid',
13911          'to_table' => 'pedido_recomienda',
13912          'to_field' => 'iac_usr_id',
13913          'this_table' => 'iac_usr',
13914          'this_field' => 'iac_usr_id',
13915          'restrict_delete' => true,
13916          'delete_with_parent' => false,
13917          'on_delete_set_to' => 0,
13918        ),
13919      ),
13920      'pedido_recomienda_log' =>
13921      array (
13922        'iac_usr_id' =>
13923        array (
13924          'es' => 'catalog_entry',
13925          'formato' => 'jqgrid',
13926          'to_table' => 'pedido_recomienda_log',
13927          'to_field' => 'iac_usr_id',
13928          'this_table' => 'iac_usr',
13929          'this_field' => 'iac_usr_id',
13930          'restrict_delete' => true,
13931          'delete_with_parent' => false,
13932          'on_delete_set_to' => 0,
13933        ),
13934      ),
13935      'pedir_producto' =>
13936      array (
13937        'iac_usr_id' =>
13938        array (
13939          'es' => 'catalog_entry',
13940          'formato' => 'jqgrid',
13941          'to_table' => 'pedir_producto',
13942          'to_field' => 'iac_usr_id',
13943          'this_table' => 'iac_usr',
13944          'this_field' => 'iac_usr_id',
13945          'restrict_delete' => true,
13946          'delete_with_parent' => false,
13947          'on_delete_set_to' => 0,
13948        ),
13949      ),
13950      'permiso_bodega' =>
13951      array (
13952        'iac_usr_id' =>
13953        array (
13954          'es' => 'catalog_entry',
13955          'formato' => 'jqgrid',
13956          'to_table' => 'permiso_bodega',
13957          'to_field' => 'iac_usr_id',
13958          'this_table' => 'iac_usr',
13959          'this_field' => 'iac_usr_id',
13960          'restrict_delete' => true,
13961          'delete_with_parent' => false,
13962          'on_delete_set_to' => 0,
13963        ),
13964      ),
13965      'permiso_bodega_consulta_salida_tienda' =>
13966      array (
13967        'iac_usr_id' =>
13968        array (
13969          'es' => 'catalog_entry',
13970          'formato' => 'jqgrid',
13971          'to_table' => 'permiso_bodega_consulta_salida_tienda',
13972          'to_field' => 'iac_usr_id',
13973          'this_table' => 'iac_usr',
13974          'this_field' => 'iac_usr_id',
13975          'restrict_delete' => true,
13976          'delete_with_parent' => false,
13977          'on_delete_set_to' => 0,
13978        ),
13979      ),
13980      'permiso_ctat' =>
13981      array (
13982        'iac_usr_id' =>
13983        array (
13984          'es' => 'catalog_entry',
13985          'formato' => 'jqgrid',
13986          'to_table' => 'permiso_ctat',
13987          'to_field' => 'iac_usr_id',
13988          'this_table' => 'iac_usr',
13989          'this_field' => 'iac_usr_id',
13990          'restrict_delete' => true,
13991          'delete_with_parent' => false,
13992          'on_delete_set_to' => 0,
13993        ),
13994      ),
13995      'permiso_usuario' =>
13996      array (
13997        'iac_usr_id' =>
13998        array (
13999          'es' => 'catalog_entry',
14000          'formato' => 'jqgrid',
14001          'to_table' => 'permiso_usuario',
14002          'to_field' => 'iac_usr_id',
14003          'this_table' => 'iac_usr',
14004          'this_field' => 'iac_usr_id',
14005          'restrict_delete' => true,
14006          'delete_with_parent' => false,
14007          'on_delete_set_to' => 0,
14008        ),
14009      ),
14010      'revisador' =>
14011      array (
14012        'iac_usr_id' =>
14013        array (
14014          'es' => 'catalog_entry',
14015          'formato' => 'link_one_select',
14016          'to_table' => 'revisador',
14017          'to_field' => 'iac_usr_id',
14018          'this_table' => 'iac_usr',
14019          'this_field' => 'iac_usr_id',
14020          'restrict_delete' => true,
14021          'delete_with_parent' => false,
14022          'on_delete_set_to' => 0,
14023        ),
14024      ),
14025      'usuario_defaults' =>
14026      array (
14027        'iac_usr_id' =>
14028        array (
14029          'es' => 'catalog_entry',
14030          'formato' => 'jqgrid',
14031          'to_table' => 'usuario_defaults',
14032          'to_field' => 'iac_usr_id',
14033          'this_table' => 'iac_usr',
14034          'this_field' => 'iac_usr_id',
14035          'restrict_delete' => true,
14036          'delete_with_parent' => false,
14037          'on_delete_set_to' => 0,
14038        ),
14039      ),
14040      'vale_permiso' =>
14041      array (
14042        'iac_usr_id' =>
14043        array (
14044          'es' => 'key_value_select',
14045          'formato' => 'key_value_select',
14046          'to_table' => 'vale_permiso',
14047          'to_field' => 'iac_usr_id',
14048          'this_table' => 'iac_usr',
14049          'this_field' => 'iac_usr_id',
14050          'restrict_delete' => true,
14051          'delete_with_parent' => false,
14052          'on_delete_set_to' => 0,
14053        ),
14054      ),
14055    ),
14056    'links_to' =>
14057    array (
14058      'plantilla' =>
14059      array (
14060        'plantilla_id' =>
14061        array (
14062          'es' => 'catalog',
14063          'formato' => 'link_one_select',
14064          'to_table' => 'plantilla',
14065          'to_field' => 'plantilla_id',
14066          'this_table' => 'iac_usr',
14067          'this_field' => 'plantilla_id',
14068        ),
14069      ),
14070      'plantillatienda' =>
14071      array (
14072        'plantillatienda_id' =>
14073        array (
14074          'es' => 'catalog',
14075          'formato' => 'link_one_select',
14076          'to_table' => 'plantillatienda',
14077          'to_field' => 'plantilla',
14078          'this_table' => 'iac_usr',
14079          'this_field' => 'plantillatienda_id',
14080        ),
14081      ),
14082      'cuentat' =>
14083      array (
14084        'cuentat_preferida_id' =>
14085        array (
14086          'es' => 'catalog',
14087          'formato' => 'link_one_select',
14088          'to_table' => 'cuentat',
14089          'to_field' => 'cuentaT_id',
14090          'this_table' => 'iac_usr',
14091          'this_field' => 'cuentat_preferida_id',
14092        ),
14093      ),
14094    ),
14095  ),
14096  'iafiller' =>
14097  array (
14098    'es' => 'data',
14099    'pk_single_field' => 'iaFiller_id',
14100    'pk_single_type' => 'auto_increment',
14101    'label_field' => 'nombre',
14102    'has_seq' => false,
14103    'has_child' => false,
14104    'has_fckeditor' => true,
14105    'UNI' =>
14106    array (
14107      'nombre_unico' =>
14108      array (
14109        1 => 'tag',
14110        2 => 'nombre',
14111      ),
14112    ),
14113  ),
14114  'icac_error' =>
14115  array (
14116    'es' => 'data',
14117    'pk_single_field' => 'icac_error_id',
14118    'pk_single_type' => 'uuid',
14119    'label_field' => 'file',
14120    'has_seq' => false,
14121    'has_child' => false,
14122    'has_datetime' => true,
14123    'has_fckeditor' => true,
14124  ),
14125  'iconos_fa' =>
14126  array (
14127    'es' => 'data',
14128    'pk_single_field' => 'id',
14129    'pk_single_type' => 'auto_increment',
14130    'label_field' => 'nombre',
14131    'has_seq' => false,
14132    'has_child' => false,
14133    'links_from' =>
14134    array (
14135      'estilos_grid' =>
14136      array (
14137        'es' => 'one2one',
14138      ),
14139      'linkspendientes' =>
14140      array (
14141        'es' => 'one2one',
14142      ),
14143      'lista_precios_tc' =>
14144      array (
14145        'es' => 'one2one',
14146      ),
14147    ),
14148  ),
14149  'importador' =>
14150  array (
14151    'es' => 'parent',
14152    'pk_single_field' => 'importador_id',
14153    'pk_single_type' => 'auto_increment',
14154    'label_field' => 'nombre',
14155    'has_seq' => false,
14156    'has_child' => true,
14157    'UNI' =>
14158    array (
14159      0 => 'nombre',
14160    ),
14161    'links_from' =>
14162    array (
14163      'pedido' =>
14164      array (
14165        'importador_id' =>
14166        array (
14167          'es' => 'catalog_entry',
14168          'formato' => 'jqgrid',
14169          'to_table' => 'pedido',
14170          'to_field' => 'importador_id',
14171          'this_table' => 'importador',
14172          'this_field' => 'importador_id',
14173          'restrict_delete' => true,
14174          'delete_with_parent' => false,
14175          'on_delete_set_to' => 0,
14176        ),
14177      ),
14178    ),
14179  ),
14180  'importador_hist' =>
14181  array (
14182    'es' => 'data',
14183    'pk_single_field' => 'history_id',
14184    'pk_single_type' => 'auto_increment',
14185    'label_field' => 'action',
14186    'has_seq' => false,
14187    'has_child' => false,
14188    'has_datetime' => true,
14189    'links_from' =>
14190    array (
14191      'ajuste_hist' =>
14192      array (
14193        'es' => 'one2one',
14194      ),
14195      'bodega_hist' =>
14196      array (
14197        'es' => 'one2one',
14198      ),
14199      'cheque_hist' =>
14200      array (
14201        'es' => 'one2one',
14202      ),
14203      'cliente_hist' =>
14204      array (
14205        'es' => 'one2one',
14206      ),
14207      'color_hist' =>
14208      array (
14209        'es' => 'one2one',
14210      ),
14211      'estado_bodega_hist' =>
14212      array (
14213        'es' => 'one2one',
14214      ),
14215      'nota_bodega_hist' =>
14216      array (
14217        'es' => 'one2one',
14218      ),
14219      'nota_bodega_verificacion_hist' =>
14220      array (
14221        'es' => 'one2one',
14222      ),
14223      'origen_bodega_bodega_hist' =>
14224      array (
14225        'es' => 'one2one',
14226      ),
14227      'origen_bodega_hist' =>
14228      array (
14229        'es' => 'one2one',
14230      ),
14231      'pagare_hist' =>
14232      array (
14233        'es' => 'one2one',
14234      ),
14235      'pedido_hist' =>
14236      array (
14237        'es' => 'one2one',
14238      ),
14239      'permiso_bodega_hist' =>
14240      array (
14241        'es' => 'one2one',
14242      ),
14243      'producto_bodega_hist' =>
14244      array (
14245        'es' => 'one2one',
14246      ),
14247      'producto_color_hist' =>
14248      array (
14249        'es' => 'one2one',
14250      ),
14251      'producto_general_hist' =>
14252      array (
14253        'es' => 'one2one',
14254      ),
14255      'solicitud_carta_porte_hist' =>
14256      array (
14257        'es' => 'one2one',
14258      ),
14259      'tienda_hist' =>
14260      array (
14261        'es' => 'one2one',
14262      ),
14263      'vale_hist' =>
14264      array (
14265        'es' => 'one2one',
14266      ),
14267    ),
14268  ),
14269  'incidencias' =>
14270  array (
14271    'es' => 'data',
14272    'pk_single_field' => 'incidencia_id',
14273    'pk_single_type' => 'uuid',
14274    'label_field' => 'doc_id',
14275    'has_seq' => false,
14276    'has_child' => false,
14277    'has_datetime' => true,
14278  ),
14279  'inconsistencia_nota_bodega' =>
14280  array (
14281    'es' => 'child',
14282    'pk_single_field' => 'inconsistencia_nota_bodega_id',
14283    'pk_single_type' => 'auto_increment',
14284    'label_field' => 'nota_bodega_id',
14285    'has_seq' => false,
14286    'has_child' => false,
14287    'links_to' =>
14288    array (
14289      'nota_bodega' =>
14290      array (
14291        'nota_bodega_id' =>
14292        array (
14293          'es' => 'catalog',
14294          'formato' => 'link_one_select',
14295          'to_table' => 'nota_bodega',
14296          'to_field' => '?',
14297          'this_table' => 'inconsistencia_nota_bodega',
14298          'this_field' => 'nota_bodega_id',
14299        ),
14300      ),
14301      'bodega' =>
14302      array (
14303        'bodega_id' =>
14304        array (
14305          'es' => 'catalog',
14306          'formato' => 'link_one_select',
14307          'to_table' => 'bodega',
14308          'to_field' => 'bodega_id',
14309          'this_table' => 'inconsistencia_nota_bodega',
14310          'this_field' => 'bodega_id',
14311        ),
14312      ),
14313    ),
14314  ),
14315  'inversion' =>
14316  array (
14317    'es' => 'parent',
14318    'pk_single_field' => 'inversion_id',
14319    'pk_single_type' => 'uuid',
14320    'label_field' => 'banco_cuenta_mov_id',
14321    'has_seq' => false,
14322    'has_child' => true,
14323    'has_date' => true,
14324    'has_fckeditor' => true,
14325    'has_numeric' => true,
14326    'has_datetime' => true,
14327    'has_file_upload' => true,
14328    'links_to' =>
14329    array (
14330      'empresa' =>
14331      array (
14332        'empresa_id' =>
14333        array (
14334          'es' => 'catalog',
14335          'formato' => 'link_one_select',
14336          'to_table' => 'empresa',
14337          'to_field' => 'empresa_id',
14338          'this_table' => 'inversion',
14339          'this_field' => 'empresa_id',
14340        ),
14341      ),
14342      'banco_cuenta' =>
14343      array (
14344        'banco_cuenta_id' =>
14345        array (
14346          'es' => 'catalog',
14347          'formato' => 'link_one_select',
14348          'to_table' => 'banco_cuenta',
14349          'to_field' => 'banco_cuenta_id',
14350          'this_table' => 'inversion',
14351          'this_field' => 'banco_cuenta_id',
14352        ),
14353      ),
14354      'banco_cuenta_mov' =>
14355      array (
14356        'banco_cuenta_mov_id' =>
14357        array (
14358          'es' => 'catalog',
14359          'formato' => 'link_one_select',
14360          'to_table' => 'banco_cuenta_mov',
14361          'to_field' => '?',
14362          'this_table' => 'inversion',
14363          'this_field' => 'banco_cuenta_mov_id',
14364        ),
14365      ),
14366      'inversion_reembolso' =>
14367      array (
14368        'inversion_reembolso_id' =>
14369        array (
14370          'es' => 'catalog',
14371          'formato' => 'link_one_select',
14372          'to_table' => 'inversion_reembolso',
14373          'to_field' => 'inversion_reembolso_id',
14374          'this_table' => 'inversion',
14375          'this_field' => 'inversion_reembolso_id',
14376        ),
14377      ),
14378      'moneda' =>
14379      array (
14380        'moneda_id' =>
14381        array (
14382          'es' => 'catalog',
14383          'formato' => 'link_one_select',
14384          'to_table' => 'moneda',
14385          'to_field' => 'moneda_id',
14386          'this_table' => 'inversion',
14387          'this_field' => 'moneda_id',
14388        ),
14389      ),
14390    ),
14391    'links_from' =>
14392    array (
14393      'inversion_reembolso' =>
14394      array (
14395        'inversion_id' =>
14396        array (
14397          'es' => 'child',
14398          'formato' => 'jqgrid',
14399          'to_table' => 'inversion_reembolso',
14400          'to_field' => 'inversion_id',
14401          'this_table' => 'inversion',
14402          'this_field' => 'inversion_id',
14403          'restrict_delete' => true,
14404          'delete_with_parent' => false,
14405          'on_delete_set_to' => 0,
14406        ),
14407      ),
14408    ),
14409  ),
14410  'inversion_reembolso' =>
14411  array (
14412    'es' => 'child',
14413    'pk_single_field' => 'inversion_reembolso_id',
14414    'pk_single_type' => 'uuid',
14415    'label_field' => 'banco_cuenta_mov_id',
14416    'has_seq' => false,
14417    'has_child' => true,
14418    'has_date' => true,
14419    'has_numeric' => true,
14420    'has_fckeditor' => true,
14421    'has_datetime' => true,
14422    'has_file_upload' => true,
14423    'links_from' =>
14424    array (
14425      'inversion' =>
14426      array (
14427        'inversion_reembolso_id' =>
14428        array (
14429          'es' => 'catalog_entry',
14430          'formato' => 'jqgrid',
14431          'to_table' => 'inversion',
14432          'to_field' => 'inversion_reembolso_id',
14433          'this_table' => 'inversion_reembolso',
14434          'this_field' => 'inversion_reembolso_id',
14435          'restrict_delete' => true,
14436          'delete_with_parent' => false,
14437          'on_delete_set_to' => 0,
14438        ),
14439      ),
14440    ),
14441    'links_to' =>
14442    array (
14443      'banco_cuenta' =>
14444      array (
14445        'banco_cuenta_id' =>
14446        array (
14447          'es' => 'catalog',
14448          'formato' => 'link_one_select',
14449          'to_table' => 'banco_cuenta',
14450          'to_field' => 'banco_cuenta_id',
14451          'this_table' => 'inversion_reembolso',
14452          'this_field' => 'banco_cuenta_id',
14453        ),
14454      ),
14455      'banco_cuenta_mov' =>
14456      array (
14457        'banco_cuenta_mov_id' =>
14458        array (
14459          'es' => 'catalog',
14460          'formato' => 'link_one_select',
14461          'to_table' => 'banco_cuenta_mov',
14462          'to_field' => '?',
14463          'this_table' => 'inversion_reembolso',
14464          'this_field' => 'banco_cuenta_mov_id',
14465        ),
14466      ),
14467      'banco_cuenta_mov_link' =>
14468      array (
14469        'banco_cuenta_mov_link_id' =>
14470        array (
14471          'es' => 'catalog',
14472          'formato' => 'link_one_select',
14473          'to_table' => 'banco_cuenta_mov_link',
14474          'to_field' => 'banco_cuenta_mov_link_id',
14475          'this_table' => 'inversion_reembolso',
14476          'this_field' => 'banco_cuenta_mov_link_id',
14477        ),
14478      ),
14479      'inversion' =>
14480      array (
14481        'inversion_id' =>
14482        array (
14483          'es' => 'catalog',
14484          'formato' => 'link_one_select',
14485          'to_table' => 'inversion',
14486          'to_field' => 'inversion_id',
14487          'this_table' => 'inversion_reembolso',
14488          'this_field' => 'inversion_id',
14489        ),
14490      ),
14491      'empresa' =>
14492      array (
14493        'empresa_id' =>
14494        array (
14495          'es' => 'catalog',
14496          'formato' => 'link_one_select',
14497          'to_table' => 'empresa',
14498          'to_field' => 'empresa_id',
14499          'this_table' => 'inversion_reembolso',
14500          'this_field' => 'empresa_id',
14501        ),
14502      ),
14503      'tienda' =>
14504      array (
14505        'tienda_id' =>
14506        array (
14507          'es' => 'catalog',
14508          'formato' => 'link_one_select',
14509          'to_table' => 'tienda',
14510          'to_field' => 'tienda_id',
14511          'this_table' => 'inversion_reembolso',
14512          'this_field' => 'tienda_id',
14513        ),
14514      ),
14515    ),
14516  ),
14517  'jqgridcolssorter' =>
14518  array (
14519    'es' => 'child',
14520    'pk_single_field' => 'jqGridColsSorter_id',
14521    'pk_single_type' => 'auto_increment',
14522    'label_field' => 'col_def_key',
14523    'has_seq' => false,
14524    'has_child' => false,
14525    'UNI' =>
14526    array (
14527      'unique_col_def_key' =>
14528      array (
14529        1 => 'col_def_key',
14530        2 => 'iac_usr_id',
14531        3 => 'label',
14532      ),
14533    ),
14534    'links_to' =>
14535    array (
14536      'iac_usr' =>
14537      array (
14538        'iac_usr_id' =>
14539        array (
14540          'es' => 'catalog',
14541          'formato' => 'link_one_select',
14542          'to_table' => 'iac_usr',
14543          'to_field' => 'iac_usr_id',
14544          'this_table' => 'jqgridcolssorter',
14545          'this_field' => 'iac_usr_id',
14546        ),
14547      ),
14548    ),
14549  ),
14550  'kv_accion_log' =>
14551  array (
14552    'es' => 'parent',
14553    'pk_single_field' => 'kv_accion_log_id',
14554    'pk_single_type' => 'value',
14555    'label_field' => 'accion',
14556    'has_seq' => false,
14557    'has_child' => true,
14558    'links_from' =>
14559    array (
14560      'kv_record_log' =>
14561      array (
14562        'kv_accion_log_id' =>
14563        array (
14564          'es' => 'catalog_entry',
14565          'formato' => 'jqgrid',
14566          'to_table' => 'kv_record_log',
14567          'to_field' => 'kv_accion_log_id',
14568          'this_table' => 'kv_accion_log',
14569          'this_field' => 'kv_accion_log_id',
14570          'restrict_delete' => true,
14571          'delete_with_parent' => false,
14572          'on_delete_set_to' => 0,
14573        ),
14574      ),
14575    ),
14576  ),
14577  'kv_record_log' =>
14578  array (
14579    'es' => 'child',
14580    'pk_single_field' => 'kv_record_log',
14581    'pk_single_type' => 'auto_increment',
14582    'label_field' => 'record_id',
14583    'has_seq' => false,
14584    'has_child' => false,
14585    'has_fckeditor' => true,
14586    'links_to' =>
14587    array (
14588      'kv_accion_log' =>
14589      array (
14590        'kv_accion_log_id' =>
14591        array (
14592          'es' => 'catalog',
14593          'formato' => 'link_one_select',
14594          'to_table' => 'kv_accion_log',
14595          'to_field' => 'kv_accion_log_id',
14596          'this_table' => 'kv_record_log',
14597          'this_field' => 'kv_accion_log_id',
14598        ),
14599      ),
14600    ),
14601  ),
14602  'links_al_banco' =>
14603  array (
14604    'es' => 'child',
14605    'label_field' => 'link_id',
14606    'has_seq' => false,
14607    'has_child' => false,
14608    'has_datetime' => true,
14609    'has_numeric' => true,
14610    'links_to' =>
14611    array (
14612      'banco_cuenta_mov_link' =>
14613      array (
14614        'banco_cuenta_mov_link_id' =>
14615        array (
14616          'es' => 'catalog',
14617          'formato' => 'link_one_select',
14618          'to_table' => 'banco_cuenta_mov_link',
14619          'to_field' => 'banco_cuenta_mov_link_id',
14620          'this_table' => 'links_al_banco',
14621          'this_field' => 'banco_cuenta_mov_link_id',
14622        ),
14623      ),
14624      'cuentat' =>
14625      array (
14626        'cuentaT_id' =>
14627        array (
14628          'es' => 'catalog',
14629          'formato' => 'link_one_select',
14630          'to_table' => 'cuentat',
14631          'to_field' => 'cuentaT_id',
14632          'this_table' => 'links_al_banco',
14633          'this_field' => 'cuentaT_id',
14634        ),
14635      ),
14636      'tienda' =>
14637      array (
14638        'tienda_id' =>
14639        array (
14640          'es' => 'catalog',
14641          'formato' => 'link_one_select',
14642          'to_table' => 'tienda',
14643          'to_field' => 'tienda_id',
14644          'this_table' => 'links_al_banco',
14645          'this_field' => 'tienda_id',
14646        ),
14647      ),
14648      'banco_cuenta' =>
14649      array (
14650        'banco_cuenta_id' =>
14651        array (
14652          'es' => 'catalog',
14653          'formato' => 'link_one_select',
14654          'to_table' => 'banco_cuenta',
14655          'to_field' => 'banco_cuenta_id',
14656          'this_table' => 'links_al_banco',
14657          'this_field' => 'banco_cuenta_id',
14658        ),
14659      ),
14660      'cuentat_tipo_mov' =>
14661      array (
14662        'cuentaT_tipo_mov_id' =>
14663        array (
14664          'es' => 'catalog',
14665          'formato' => 'link_one_select',
14666          'to_table' => 'cuentat_tipo_mov',
14667          'to_field' => 'cuentaT_tipo_mov_id',
14668          'this_table' => 'links_al_banco',
14669          'this_field' => 'cuentaT_tipo_mov_id',
14670        ),
14671      ),
14672      'empresa' =>
14673      array (
14674        'empresa_id' =>
14675        array (
14676          'es' => 'catalog',
14677          'formato' => 'link_one_select',
14678          'to_table' => 'empresa',
14679          'to_field' => 'empresa_id',
14680          'this_table' => 'links_al_banco',
14681          'this_field' => 'empresa_id',
14682        ),
14683      ),
14684      'moneda' =>
14685      array (
14686        'moneda_id' =>
14687        array (
14688          'es' => 'catalog',
14689          'formato' => 'link_one_select',
14690          'to_table' => 'moneda',
14691          'to_field' => 'moneda_id',
14692          'this_table' => 'links_al_banco',
14693          'this_field' => 'moneda_id',
14694        ),
14695      ),
14696    ),
14697  ),
14698  'links_al_banco_live' =>
14699  array (
14700    'es' => 'child',
14701    'pk_single_field' => 'link_id',
14702    'pk_single_type' => 'uuid',
14703    'label_field' => 'banco_cuenta_mov_link_id',
14704    'has_seq' => false,
14705    'has_child' => false,
14706    'has_datetime' => true,
14707    'has_numeric' => true,
14708    'has_file_upload' => true,
14709    'links_to' =>
14710    array (
14711      'banco_cuenta_mov_link' =>
14712      array (
14713        'banco_cuenta_mov_link_id' =>
14714        array (
14715          'es' => 'catalog',
14716          'formato' => 'link_one_select',
14717          'to_table' => 'banco_cuenta_mov_link',
14718          'to_field' => 'banco_cuenta_mov_link_id',
14719          'this_table' => 'links_al_banco_live',
14720          'this_field' => 'banco_cuenta_mov_link_id',
14721        ),
14722      ),
14723      'cuentat' =>
14724      array (
14725        'cuentaT_id' =>
14726        array (
14727          'es' => 'catalog',
14728          'formato' => 'link_one_select',
14729          'to_table' => 'cuentat',
14730          'to_field' => 'cuentaT_id',
14731          'this_table' => 'links_al_banco_live',
14732          'this_field' => 'cuentaT_id',
14733        ),
14734      ),
14735      'tienda' =>
14736      array (
14737        'tienda_id' =>
14738        array (
14739          'es' => 'catalog',
14740          'formato' => 'link_one_select',
14741          'to_table' => 'tienda',
14742          'to_field' => 'tienda_id',
14743          'this_table' => 'links_al_banco_live',
14744          'this_field' => 'tienda_id',
14745        ),
14746      ),
14747      'banco_cuenta' =>
14748      array (
14749        'banco_cuenta_id' =>
14750        array (
14751          'es' => 'catalog',
14752          'formato' => 'link_one_select',
14753          'to_table' => 'banco_cuenta',
14754          'to_field' => 'banco_cuenta_id',
14755          'this_table' => 'links_al_banco_live',
14756          'this_field' => 'banco_cuenta_id',
14757        ),
14758      ),
14759      'cuentat_tipo_mov' =>
14760      array (
14761        'cuentaT_tipo_mov_id' =>
14762        array (
14763          'es' => 'catalog',
14764          'formato' => 'link_one_select',
14765          'to_table' => 'cuentat_tipo_mov',
14766          'to_field' => 'cuentaT_tipo_mov_id',
14767          'this_table' => 'links_al_banco_live',
14768          'this_field' => 'cuentaT_tipo_mov_id',
14769        ),
14770      ),
14771      'empresa' =>
14772      array (
14773        'empresa_id' =>
14774        array (
14775          'es' => 'catalog',
14776          'formato' => 'link_one_select',
14777          'to_table' => 'empresa',
14778          'to_field' => 'empresa_id',
14779          'this_table' => 'links_al_banco_live',
14780          'this_field' => 'empresa_id',
14781        ),
14782      ),
14783      'moneda' =>
14784      array (
14785        'moneda_id' =>
14786        array (
14787          'es' => 'catalog',
14788          'formato' => 'link_one_select',
14789          'to_table' => 'moneda',
14790          'to_field' => 'moneda_id',
14791          'this_table' => 'links_al_banco_live',
14792          'this_field' => 'moneda_id',
14793        ),
14794      ),
14795    ),
14796  ),
14797  'linkspendientes' =>
14798  array (
14799    'es' => 'child',
14800    'pk_single_field' => 'id',
14801    'pk_single_type' => 'uuid',
14802    'label_field' => 'docto',
14803    'has_seq' => false,
14804    'has_child' => false,
14805    'has_datetime' => true,
14806    'has_numeric' => true,
14807    'links_to' =>
14808    array (
14809      'banco_cuenta' =>
14810      array (
14811        'banco_cuenta_id' =>
14812        array (
14813          'es' => 'catalog',
14814          'formato' => 'link_one_select',
14815          'to_table' => 'banco_cuenta',
14816          'to_field' => 'banco_cuenta_id',
14817          'this_table' => 'linkspendientes',
14818          'this_field' => 'banco_cuenta_id',
14819        ),
14820      ),
14821      'moneda' =>
14822      array (
14823        'moneda_id' =>
14824        array (
14825          'es' => 'catalog',
14826          'formato' => 'link_one_select',
14827          'to_table' => 'moneda',
14828          'to_field' => 'moneda_id',
14829          'this_table' => 'linkspendientes',
14830          'this_field' => 'moneda_id',
14831        ),
14832      ),
14833    ),
14834    'links_from' =>
14835    array (
14836      'estilos_grid' =>
14837      array (
14838        'es' => 'one2one',
14839      ),
14840      'iconos_fa' =>
14841      array (
14842        'es' => 'one2one',
14843      ),
14844      'lista_precios_tc' =>
14845      array (
14846        'es' => 'one2one',
14847      ),
14848    ),
14849  ),
14850  'lista_precios' =>
14851  array (
14852    'es' => 'parent',
14853    'pk_single_field' => 'lista_precios_id',
14854    'pk_single_type' => 'auto_increment',
14855    'label_field' => 'nombre',
14856    'has_seq' => false,
14857    'has_child' => true,
14858    'UNI' =>
14859    array (
14860      0 => 'nombre',
14861    ),
14862    'links_from' =>
14863    array (
14864      'lista_precios_producto' =>
14865      array (
14866        'lista_precios_id' =>
14867        array (
14868          'es' => 'child',
14869          'formato' => 'jqgrid',
14870          'to_table' => 'lista_precios_producto',
14871          'to_field' => 'lista_precios_id',
14872          'this_table' => 'lista_precios',
14873          'this_field' => 'lista_precios_id',
14874          'restrict_delete' => false,
14875          'delete_with_parent' => true,
14876          'on_delete_set_to' => 0,
14877        ),
14878      ),
14879      'lista_precios_tienda' =>
14880      array (
14881        'lista_precios_id' =>
14882        array (
14883          'es' => 'child',
14884          'formato' => 'jqgrid',
14885          'to_table' => 'lista_precios_tienda',
14886          'to_field' => 'lista_precios_id',
14887          'this_table' => 'lista_precios',
14888          'this_field' => 'lista_precios_id',
14889          'restrict_delete' => false,
14890          'delete_with_parent' => true,
14891          'on_delete_set_to' => 0,
14892        ),
14893      ),
14894    ),
14895  ),
14896  'lista_precios_producto' =>
14897  array (
14898    'es' => 'child',
14899    'PK' =>
14900    array (
14901      0 => 'lista_precios_id',
14902      1 => 'producto_general_id',
14903      2 => 'fecha_inicio',
14904    ),
14905    'label_field' => 'lista_precios_producto_id',
14906    'has_seq' => false,
14907    'has_child' => false,
14908    'has_date' => true,
14909    'links_to' =>
14910    array (
14911      'lista_precios' =>
14912      array (
14913        'lista_precios_id' =>
14914        array (
14915          'es' => 'catalog',
14916          'formato' => 'link_one_select',
14917          'to_table' => 'lista_precios',
14918          'to_field' => 'lista_precios_id',
14919          'this_table' => 'lista_precios_producto',
14920          'this_field' => 'lista_precios_id',
14921        ),
14922      ),
14923      'producto_general' =>
14924      array (
14925        'producto_general_id' =>
14926        array (
14927          'es' => 'catalog',
14928          'formato' => 'link_one_select',
14929          'to_table' => 'producto_general',
14930          'to_field' => 'producto_general_id',
14931          'this_table' => 'lista_precios_producto',
14932          'this_field' => 'producto_general_id',
14933        ),
14934      ),
14935      'moneda' =>
14936      array (
14937        'moneda_id' =>
14938        array (
14939          'es' => 'catalog',
14940          'formato' => 'link_one_select',
14941          'to_table' => 'moneda',
14942          'to_field' => 'moneda_id',
14943          'this_table' => 'lista_precios_producto',
14944          'this_field' => 'moneda_id',
14945        ),
14946      ),
14947    ),
14948  ),
14949  'lista_precios_tc' =>
14950  array (
14951    'es' => 'data',
14952    'pk_single_field' => 'id',
14953    'pk_single_type' => 'auto_increment',
14954    'label_field' => 'nombre',
14955    'has_seq' => false,
14956    'has_child' => false,
14957    'has_numeric' => true,
14958    'UNI' =>
14959    array (
14960      0 => 'nombre',
14961    ),
14962    'links_from' =>
14963    array (
14964      'estilos_grid' =>
14965      array (
14966        'es' => 'one2one',
14967      ),
14968      'iconos_fa' =>
14969      array (
14970        'es' => 'one2one',
14971      ),
14972      'linkspendientes' =>
14973      array (
14974        'es' => 'one2one',
14975      ),
14976    ),
14977  ),
14978  'lista_precios_tienda' =>
14979  array (
14980    'es' => 'child',
14981    'PK' =>
14982    array (
14983      0 => 'lista_precios_id',
14984      1 => 'tienda_id',
14985    ),
14986    'label_field' => 'lista_precios_tienda_id',
14987    'has_seq' => false,
14988    'has_child' => false,
14989    'links_to' =>
14990    array (
14991      'lista_precios' =>
14992      array (
14993        'lista_precios_id' =>
14994        array (
14995          'es' => 'catalog',
14996          'formato' => 'link_one_select',
14997          'to_table' => 'lista_precios',
14998          'to_field' => 'lista_precios_id',
14999          'this_table' => 'lista_precios_tienda',
15000          'this_field' => 'lista_precios_id',
15001        ),
15002      ),
15003      'tienda' =>
15004      array (
15005        'tienda_id' =>
15006        array (
15007          'es' => 'catalog',
15008          'formato' => 'link_one_select',
15009          'to_table' => 'tienda',
15010          'to_field' => 'tienda_id',
15011          'this_table' => 'lista_precios_tienda',
15012          'this_field' => 'tienda_id',
15013        ),
15014      ),
15015    ),
15016  ),
15017  'localstorage' =>
15018  array (
15019    'es' => 'data',
15020    'PK' =>
15021    array (
15022      0 => 'uid',
15023      1 => 'pagina',
15024      2 => 'llave',
15025    ),
15026    'label_field' => 'valor',
15027    'has_seq' => false,
15028    'has_child' => false,
15029    'has_fckeditor' => true,
15030  ),
15031  'login_log' =>
15032  array (
15033    'es' => 'data',
15034    'pk_single_field' => 'login_log_id',
15035    'pk_single_type' => 'auto_increment',
15036    'label_field' => 'session_id',
15037    'has_seq' => false,
15038    'has_child' => false,
15039    'has_datetime' => true,
15040    'UNI' =>
15041    array (
15042      0 => 'session_id',
15043      'por_session' =>
15044      array (
15045        1 => 'session_id',
15046      ),
15047    ),
15048    'links_to' =>
15049    array (
15050      'iac_usr' =>
15051      array (
15052        'usuario_id' =>
15053        array (
15054          'es' => 'catalog',
15055          'formato' => 'link_one_select',
15056          'to_table' => 'iac_usr',
15057          'to_field' => 'iac_usr_id',
15058          'this_table' => 'login_log',
15059          'this_field' => 'usuario_id',
15060        ),
15061      ),
15062    ),
15063  ),
15064  'login_log_configure' =>
15065  array (
15066    'es' => 'data',
15067    'pk_single_field' => 'nombre',
15068    'pk_single_type' => 'value',
15069    'label_field' => 'val',
15070    'has_seq' => false,
15071    'has_child' => false,
15072  ),
15073  'login_log_raro' =>
15074  array (
15075    'es' => 'data',
15076    'pk_single_field' => 'login_log_raro_id',
15077    'pk_single_type' => 'uuid',
15078    'label_field' => 'raro',
15079    'orden' => true,
15080    'has_seq' => false,
15081    'has_child' => false,
15082    'has_date' => true,
15083    'has_fckeditor' => true,
15084  ),
15085  'metodo_pago' =>
15086  array (
15087    'es' => 'parent',
15088    'pk_single_field' => 'metodo_pago_id',
15089    'pk_single_type' => 'auto_increment',
15090    'label_field' => 'metodo_pago',
15091    'vale' => true,
15092    'orden' => true,
15093    'has_seq' => false,
15094    'has_child' => true,
15095    'UNI' =>
15096    array (
15097      0 => 'metodo_pago',
15098    ),
15099    'links_from' =>
15100    array (
15101      'a_cuentas_live' =>
15102      array (
15103        'metodo_pago_id' =>
15104        array (
15105          'es' => 'catalog_entry',
15106          'formato' => 'jqgrid',
15107          'to_table' => 'a_cuentas_live',
15108          'to_field' => 'metodo_pago_id',
15109          'this_table' => 'metodo_pago',
15110          'this_field' => 'metodo_pago_id',
15111          'restrict_delete' => true,
15112          'delete_with_parent' => false,
15113          'on_delete_set_to' => 0,
15114        ),
15115      ),
15116      'cash_pago' =>
15117      array (
15118        'metodo_pago_id' =>
15119        array (
15120          'es' => 'catalog_entry',
15121          'formato' => 'jqgrid',
15122          'to_table' => 'cash_pago',
15123          'to_field' => 'metodo_pago_id',
15124          'this_table' => 'metodo_pago',
15125          'this_field' => 'metodo_pago_id',
15126          'restrict_delete' => true,
15127          'delete_with_parent' => false,
15128          'on_delete_set_to' => 0,
15129        ),
15130      ),
15131      'cheque_pago' =>
15132      array (
15133        'metodo_pago_id' =>
15134        array (
15135          'es' => 'catalog_entry',
15136          'formato' => 'jqgrid',
15137          'to_table' => 'cheque_pago',
15138          'to_field' => 'metodo_pago_id',
15139          'this_table' => 'metodo_pago',
15140          'this_field' => 'metodo_pago_id',
15141          'restrict_delete' => true,
15142          'delete_with_parent' => false,
15143          'on_delete_set_to' => 0,
15144        ),
15145      ),
15146      'cheque_pago_log' =>
15147      array (
15148        'metodo_pago_id' =>
15149        array (
15150          'es' => 'catalog_entry',
15151          'formato' => 'jqgrid',
15152          'to_table' => 'cheque_pago_log',
15153          'to_field' => 'metodo_pago_id',
15154          'this_table' => 'metodo_pago',
15155          'this_field' => 'metodo_pago_id',
15156          'restrict_delete' => true,
15157          'delete_with_parent' => false,
15158          'on_delete_set_to' => 0,
15159        ),
15160      ),
15161      'compra_pago' =>
15162      array (
15163        'metodo_pago_id' =>
15164        array (
15165          'es' => 'catalog_entry',
15166          'formato' => 'jqgrid',
15167          'to_table' => 'compra_pago',
15168          'to_field' => 'metodo_pago_id',
15169          'this_table' => 'metodo_pago',
15170          'this_field' => 'metodo_pago_id',
15171          'restrict_delete' => true,
15172          'delete_with_parent' => false,
15173          'on_delete_set_to' => 0,
15174        ),
15175      ),
15176      'compra_pago_log' =>
15177      array (
15178        'metodo_pago_id' =>
15179        array (
15180          'es' => 'catalog_entry',
15181          'formato' => 'jqgrid',
15182          'to_table' => 'compra_pago_log',
15183          'to_field' => 'metodo_pago_id',
15184          'this_table' => 'metodo_pago',
15185          'this_field' => 'metodo_pago_id',
15186          'restrict_delete' => true,
15187          'delete_with_parent' => false,
15188          'on_delete_set_to' => 0,
15189        ),
15190      ),
15191      'deuda_pago' =>
15192      array (
15193        'metodo_pago_id' =>
15194        array (
15195          'es' => 'catalog_entry',
15196          'formato' => 'jqgrid',
15197          'to_table' => 'deuda_pago',
15198          'to_field' => 'metodo_pago_id',
15199          'this_table' => 'metodo_pago',
15200          'this_field' => 'metodo_pago_id',
15201          'restrict_delete' => true,
15202          'delete_with_parent' => false,
15203          'on_delete_set_to' => 0,
15204        ),
15205      ),
15206      'nota_pago' =>
15207      array (
15208        'metodo_pago_id' =>
15209        array (
15210          'es' => 'catalog_entry',
15211          'formato' => 'jqgrid',
15212          'to_table' => 'nota_pago',
15213          'to_field' => 'metodo_pago_id',
15214          'this_table' => 'metodo_pago',
15215          'this_field' => 'metodo_pago_id',
15216          'restrict_delete' => true,
15217          'delete_with_parent' => false,
15218          'on_delete_set_to' => 0,
15219        ),
15220      ),
15221      'pagare_pago' =>
15222      array (
15223        'metodo_pago_id' =>
15224        array (
15225          'es' => 'catalog_entry',
15226          'formato' => 'jqgrid',
15227          'to_table' => 'pagare_pago',
15228          'to_field' => 'metodo_pago_id',
15229          'this_table' => 'metodo_pago',
15230          'this_field' => 'metodo_pago_id',
15231          'restrict_delete' => true,
15232          'delete_with_parent' => false,
15233          'on_delete_set_to' => 0,
15234        ),
15235      ),
15236      'pagare_pago_log' =>
15237      array (
15238        'metodo_pago_id' =>
15239        array (
15240          'es' => 'catalog_entry',
15241          'formato' => 'jqgrid',
15242          'to_table' => 'pagare_pago_log',
15243          'to_field' => 'metodo_pago_id',
15244          'this_table' => 'metodo_pago',
15245          'this_field' => 'metodo_pago_id',
15246          'restrict_delete' => true,
15247          'delete_with_parent' => false,
15248          'on_delete_set_to' => 0,
15249        ),
15250      ),
15251      'vale' =>
15252      array (
15253        'metodo_pago_id' =>
15254        array (
15255          'es' => 'catalog_entry',
15256          'formato' => 'jqgrid',
15257          'to_table' => 'vale',
15258          'to_field' => 'metodo_pago_id',
15259          'this_table' => 'metodo_pago',
15260          'this_field' => 'metodo_pago_id',
15261          'restrict_delete' => true,
15262          'delete_with_parent' => false,
15263          'on_delete_set_to' => 0,
15264        ),
15265      ),
15266      'vale_log' =>
15267      array (
15268        'metodo_pago_id' =>
15269        array (
15270          'es' => 'catalog_entry',
15271          'formato' => 'jqgrid',
15272          'to_table' => 'vale_log',
15273          'to_field' => 'metodo_pago_id',
15274          'this_table' => 'metodo_pago',
15275          'this_field' => 'metodo_pago_id',
15276          'restrict_delete' => true,
15277          'delete_with_parent' => false,
15278          'on_delete_set_to' => 0,
15279        ),
15280      ),
15281      'vale_pago' =>
15282      array (
15283        'metodo_pago_id' =>
15284        array (
15285          'es' => 'catalog_entry',
15286          'formato' => 'jqgrid',
15287          'to_table' => 'vale_pago',
15288          'to_field' => 'metodo_pago_id',
15289          'this_table' => 'metodo_pago',
15290          'this_field' => 'metodo_pago_id',
15291          'restrict_delete' => true,
15292          'delete_with_parent' => false,
15293          'on_delete_set_to' => 0,
15294        ),
15295      ),
15296      'vale_pago_log' =>
15297      array (
15298        'metodo_pago_id' =>
15299        array (
15300          'es' => 'catalog_entry',
15301          'formato' => 'jqgrid',
15302          'to_table' => 'vale_pago_log',
15303          'to_field' => 'metodo_pago_id',
15304          'this_table' => 'metodo_pago',
15305          'this_field' => 'metodo_pago_id',
15306          'restrict_delete' => true,
15307          'delete_with_parent' => false,
15308          'on_delete_set_to' => 0,
15309        ),
15310      ),
15311      'vale_uso' =>
15312      array (
15313        'metodo_pago_id' =>
15314        array (
15315          'es' => 'catalog_entry',
15316          'formato' => 'jqgrid',
15317          'to_table' => 'vale_uso',
15318          'to_field' => 'metodo_pago_id',
15319          'this_table' => 'metodo_pago',
15320          'this_field' => 'metodo_pago_id',
15321          'restrict_delete' => true,
15322          'delete_with_parent' => false,
15323          'on_delete_set_to' => 0,
15324        ),
15325      ),
15326      'vale_uso_log' =>
15327      array (
15328        'metodo_pago_id' =>
15329        array (
15330          'es' => 'catalog_entry',
15331          'formato' => 'jqgrid',
15332          'to_table' => 'vale_uso_log',
15333          'to_field' => 'metodo_pago_id',
15334          'this_table' => 'metodo_pago',
15335          'this_field' => 'metodo_pago_id',
15336          'restrict_delete' => true,
15337          'delete_with_parent' => false,
15338          'on_delete_set_to' => 0,
15339        ),
15340      ),
15341    ),
15342    'links_to' =>
15343    array (
15344      'cuentat_mov' =>
15345      array (
15346        'cuenta_t_mov_id' =>
15347        array (
15348          'es' => 'catalog',
15349          'formato' => 'link_one_select',
15350          'to_table' => 'cuentat_mov',
15351          'to_field' => 'cuentaT_mov_id',
15352          'this_table' => 'metodo_pago',
15353          'this_field' => 'cuenta_t_mov_id',
15354        ),
15355      ),
15356    ),
15357  ),
15358  'moneda' =>
15359  array (
15360    'es' => 'parent',
15361    'pk_single_field' => 'moneda_id',
15362    'pk_single_type' => 'auto_increment',
15363    'label_field' => 'moneda',
15364    'has_seq' => false,
15365    'has_child' => true,
15366    'has_numeric' => true,
15367    'UNI' =>
15368    array (
15369      0 => 'moneda',
15370      'moneda' =>
15371      array (
15372        1 => 'moneda',
15373      ),
15374    ),
15375    'links_from' =>
15376    array (
15377      'a_cuentas_live' =>
15378      array (
15379        'moneda_id' =>
15380        array (
15381          'es' => 'catalog_entry',
15382          'formato' => 'jqgrid',
15383          'to_table' => 'a_cuentas_live',
15384          'to_field' => 'moneda_id',
15385          'this_table' => 'moneda',
15386          'this_field' => 'moneda_id',
15387          'restrict_delete' => true,
15388          'delete_with_parent' => false,
15389          'on_delete_set_to' => 0,
15390        ),
15391      ),
15392      'banco_cuenta' =>
15393      array (
15394        'moneda_id' =>
15395        array (
15396          'es' => 'catalog_entry',
15397          'formato' => 'jqgrid',
15398          'to_table' => 'banco_cuenta',
15399          'to_field' => 'moneda_id',
15400          'this_table' => 'moneda',
15401          'this_field' => 'moneda_id',
15402          'restrict_delete' => true,
15403          'delete_with_parent' => false,
15404          'on_delete_set_to' => 0,
15405        ),
15406      ),
15407      'banco_cuenta_mov' =>
15408      array (
15409        'moneda_id' =>
15410        array (
15411          'es' => 'catalog_entry',
15412          'formato' => 'jqgrid',
15413          'to_table' => 'banco_cuenta_mov',
15414          'to_field' => 'moneda_id',
15415          'this_table' => 'moneda',
15416          'this_field' => 'moneda_id',
15417          'restrict_delete' => true,
15418          'delete_with_parent' => false,
15419          'on_delete_set_to' => 0,
15420        ),
15421      ),
15422      'banco_cuenta_saldos' =>
15423      array (
15424        'moneda_id' =>
15425        array (
15426          'es' => 'catalog_entry',
15427          'formato' => 'jqgrid',
15428          'to_table' => 'banco_cuenta_saldos',
15429          'to_field' => 'moneda_id',
15430          'this_table' => 'moneda',
15431          'this_field' => 'moneda_id',
15432          'restrict_delete' => true,
15433          'delete_with_parent' => false,
15434          'on_delete_set_to' => 0,
15435        ),
15436      ),
15437      'banco_cuenta_trans' =>
15438      array (
15439        'moneda_id' =>
15440        array (
15441          'es' => 'catalog_entry',
15442          'formato' => 'jqgrid',
15443          'to_table' => 'banco_cuenta_trans',
15444          'to_field' => 'moneda_id',
15445          'this_table' => 'moneda',
15446          'this_field' => 'moneda_id',
15447          'restrict_delete' => true,
15448          'delete_with_parent' => false,
15449          'on_delete_set_to' => 0,
15450        ),
15451        'origen_moneda_id' =>
15452        array (
15453          'es' => 'catalog_entry',
15454          'formato' => 'jqgrid',
15455          'to_table' => 'banco_cuenta_trans',
15456          'to_field' => 'origen_moneda_id',
15457          'this_table' => 'moneda',
15458          'this_field' => 'moneda_id',
15459          'restrict_delete' => true,
15460          'delete_with_parent' => false,
15461          'on_delete_set_to' => 0,
15462        ),
15463      ),
15464      'cash_pago' =>
15465      array (
15466        'moneda_id' =>
15467        array (
15468          'es' => 'catalog_entry',
15469          'formato' => 'jqgrid',
15470          'to_table' => 'cash_pago',
15471          'to_field' => 'moneda_id',
15472          'this_table' => 'moneda',
15473          'this_field' => 'moneda_id',
15474          'restrict_delete' => true,
15475          'delete_with_parent' => false,
15476          'on_delete_set_to' => 0,
15477        ),
15478      ),
15479      'cheque' =>
15480      array (
15481        'moneda_id' =>
15482        array (
15483          'es' => 'catalog_entry',
15484          'formato' => 'jqgrid',
15485          'to_table' => 'cheque',
15486          'to_field' => 'moneda_id',
15487          'this_table' => 'moneda',
15488          'this_field' => 'moneda_id',
15489          'restrict_delete' => true,
15490          'delete_with_parent' => false,
15491          'on_delete_set_to' => 0,
15492        ),
15493      ),
15494      'cheque_log' =>
15495      array (
15496        'moneda_id' =>
15497        array (
15498          'es' => 'catalog_entry',
15499          'formato' => 'jqgrid',
15500          'to_table' => 'cheque_log',
15501          'to_field' => 'moneda_id',
15502          'this_table' => 'moneda',
15503          'this_field' => 'moneda_id',
15504          'restrict_delete' => true,
15505          'delete_with_parent' => false,
15506          'on_delete_set_to' => 0,
15507        ),
15508      ),
15509      'cheque_pago' =>
15510      array (
15511        'moneda_id' =>
15512        array (
15513          'es' => 'catalog_entry',
15514          'formato' => 'jqgrid',
15515          'to_table' => 'cheque_pago',
15516          'to_field' => 'moneda_id',
15517          'this_table' => 'moneda',
15518          'this_field' => 'moneda_id',
15519          'restrict_delete' => true,
15520          'delete_with_parent' => false,
15521          'on_delete_set_to' => 0,
15522        ),
15523      ),
15524      'cheque_pago_log' =>
15525      array (
15526        'moneda_id' =>
15527        array (
15528          'es' => 'catalog_entry',
15529          'formato' => 'jqgrid',
15530          'to_table' => 'cheque_pago_log',
15531          'to_field' => 'moneda_id',
15532          'this_table' => 'moneda',
15533          'this_field' => 'moneda_id',
15534          'restrict_delete' => true,
15535          'delete_with_parent' => false,
15536          'on_delete_set_to' => 0,
15537        ),
15538      ),
15539      'cliente' =>
15540      array (
15541        'saldo_cliente_moneda_id' =>
15542        array (
15543          'es' => 'catalog_entry',
15544          'formato' => 'link_one_select',
15545          'to_table' => 'cliente',
15546          'to_field' => 'saldo_cliente_moneda_id',
15547          'this_table' => 'moneda',
15548          'this_field' => 'moneda_id',
15549          'restrict_delete' => true,
15550          'delete_with_parent' => false,
15551          'on_delete_set_to' => 0,
15552        ),
15553      ),
15554      'compra' =>
15555      array (
15556        'moneda_id' =>
15557        array (
15558          'es' => 'catalog_entry',
15559          'formato' => 'jqgrid',
15560          'to_table' => 'compra',
15561          'to_field' => 'moneda_id',
15562          'this_table' => 'moneda',
15563          'this_field' => 'moneda_id',
15564          'restrict_delete' => true,
15565          'delete_with_parent' => false,
15566          'on_delete_set_to' => 0,
15567        ),
15568      ),
15569      'compra_log' =>
15570      array (
15571        'moneda_id' =>
15572        array (
15573          'es' => 'catalog_entry',
15574          'formato' => 'jqgrid',
15575          'to_table' => 'compra_log',
15576          'to_field' => 'moneda_id',
15577          'this_table' => 'moneda',
15578          'this_field' => 'moneda_id',
15579          'restrict_delete' => true,
15580          'delete_with_parent' => false,
15581          'on_delete_set_to' => 0,
15582        ),
15583      ),
15584      'compra_pago' =>
15585      array (
15586        'moneda_id' =>
15587        array (
15588          'es' => 'catalog_entry',
15589          'formato' => 'jqgrid',
15590          'to_table' => 'compra_pago',
15591          'to_field' => 'moneda_id',
15592          'this_table' => 'moneda',
15593          'this_field' => 'moneda_id',
15594          'restrict_delete' => true,
15595          'delete_with_parent' => false,
15596          'on_delete_set_to' => 0,
15597        ),
15598      ),
15599      'compra_pago_log' =>
15600      array (
15601        'moneda_id' =>
15602        array (
15603          'es' => 'catalog_entry',
15604          'formato' => 'jqgrid',
15605          'to_table' => 'compra_pago_log',
15606          'to_field' => 'moneda_id',
15607          'this_table' => 'moneda',
15608          'this_field' => 'moneda_id',
15609          'restrict_delete' => true,
15610          'delete_with_parent' => false,
15611          'on_delete_set_to' => 0,
15612        ),
15613      ),
15614      'cuentat_a_banco' =>
15615      array (
15616        'moneda_id' =>
15617        array (
15618          'es' => 'catalog_entry',
15619          'formato' => 'jqgrid',
15620          'to_table' => 'cuentat_a_banco',
15621          'to_field' => 'moneda_id',
15622          'this_table' => 'moneda',
15623          'this_field' => 'moneda_id',
15624          'restrict_delete' => true,
15625          'delete_with_parent' => false,
15626          'on_delete_set_to' => 0,
15627        ),
15628      ),
15629      'cuentat_a_banco_links' =>
15630      array (
15631        'moneda_id' =>
15632        array (
15633          'es' => 'catalog_entry',
15634          'formato' => 'jqgrid',
15635          'to_table' => 'cuentat_a_banco_links',
15636          'to_field' => 'moneda_id',
15637          'this_table' => 'moneda',
15638          'this_field' => 'moneda_id',
15639          'restrict_delete' => true,
15640          'delete_with_parent' => false,
15641          'on_delete_set_to' => 0,
15642        ),
15643      ),
15644      'cuentat_a_banco_tc' =>
15645      array (
15646        'moneda_id' =>
15647        array (
15648          'es' => 'catalog_entry',
15649          'formato' => 'jqgrid',
15650          'to_table' => 'cuentat_a_banco_tc',
15651          'to_field' => 'moneda_id',
15652          'this_table' => 'moneda',
15653          'this_field' => 'moneda_id',
15654          'restrict_delete' => true,
15655          'delete_with_parent' => false,
15656          'on_delete_set_to' => 0,
15657        ),
15658      ),
15659      'cuentat_gasto' =>
15660      array (
15661        'moneda_id' =>
15662        array (
15663          'es' => 'catalog_entry',
15664          'formato' => 'jqgrid',
15665          'to_table' => 'cuentat_gasto',
15666          'to_field' => 'moneda_id',
15667          'this_table' => 'moneda',
15668          'this_field' => 'moneda_id',
15669          'restrict_delete' => true,
15670          'delete_with_parent' => false,
15671          'on_delete_set_to' => 0,
15672        ),
15673      ),
15674      'cuentat_ingreso' =>
15675      array (
15676        'moneda_id' =>
15677        array (
15678          'es' => 'catalog_entry',
15679          'formato' => 'jqgrid',
15680          'to_table' => 'cuentat_ingreso',
15681          'to_field' => 'moneda_id',
15682          'this_table' => 'moneda',
15683          'this_field' => 'moneda_id',
15684          'restrict_delete' => true,
15685          'delete_with_parent' => false,
15686          'on_delete_set_to' => 0,
15687        ),
15688      ),
15689      'cuentat_ingreso_xtienda' =>
15690      array (
15691        'moneda_id' =>
15692        array (
15693          'es' => 'catalog_entry',
15694          'formato' => 'jqgrid',
15695          'to_table' => 'cuentat_ingreso_xtienda',
15696          'to_field' => 'moneda_id',
15697          'this_table' => 'moneda',
15698          'this_field' => 'moneda_id',
15699          'restrict_delete' => true,
15700          'delete_with_parent' => false,
15701          'on_delete_set_to' => 0,
15702        ),
15703      ),
15704      'cuentat_mov' =>
15705      array (
15706        'moneda_id' =>
15707        array (
15708          'es' => 'catalog_entry',
15709          'formato' => 'jqgrid',
15710          'to_table' => 'cuentat_mov',
15711          'to_field' => 'moneda_id',
15712          'this_table' => 'moneda',
15713          'this_field' => 'moneda_id',
15714          'restrict_delete' => true,
15715          'delete_with_parent' => false,
15716          'on_delete_set_to' => 0,
15717        ),
15718      ),
15719      'cuentat_mov_con_links' =>
15720      array (
15721        'moneda_id' =>
15722        array (
15723          'es' => 'catalog_entry',
15724          'formato' => 'jqgrid',
15725          'to_table' => 'cuentat_mov_con_links',
15726          'to_field' => 'moneda_id',
15727          'this_table' => 'moneda',
15728          'this_field' => 'moneda_id',
15729          'restrict_delete' => true,
15730          'delete_with_parent' => false,
15731          'on_delete_set_to' => 0,
15732        ),
15733      ),
15734      'cuentat_mov_live' =>
15735      array (
15736        'moneda_id' =>
15737        array (
15738          'es' => 'catalog_entry',
15739          'formato' => 'jqgrid',
15740          'to_table' => 'cuentat_mov_live',
15741          'to_field' => 'moneda_id',
15742          'this_table' => 'moneda',
15743          'this_field' => 'moneda_id',
15744          'restrict_delete' => true,
15745          'delete_with_parent' => false,
15746          'on_delete_set_to' => 0,
15747        ),
15748      ),
15749      'cuentat_mov_pay' =>
15750      array (
15751        'moneda_id' =>
15752        array (
15753          'es' => 'catalog_entry',
15754          'formato' => 'jqgrid',
15755          'to_table' => 'cuentat_mov_pay',
15756          'to_field' => 'moneda_id',
15757          'this_table' => 'moneda',
15758          'this_field' => 'moneda_id',
15759          'restrict_delete' => true,
15760          'delete_with_parent' => false,
15761          'on_delete_set_to' => 0,
15762        ),
15763      ),
15764      'cuentat_mov_tmp' =>
15765      array (
15766        'moneda_id' =>
15767        array (
15768          'es' => 'catalog_entry',
15769          'formato' => 'jqgrid',
15770          'to_table' => 'cuentat_mov_tmp',
15771          'to_field' => 'moneda_id',
15772          'this_table' => 'moneda',
15773          'this_field' => 'moneda_id',
15774          'restrict_delete' => true,
15775          'delete_with_parent' => false,
15776          'on_delete_set_to' => 0,
15777        ),
15778      ),
15779      'cuentat_transfer' =>
15780      array (
15781        'origen_moneda_id' =>
15782        array (
15783          'es' => 'catalog_entry',
15784          'formato' => 'jqgrid',
15785          'to_table' => 'cuentat_transfer',
15786          'to_field' => 'origen_moneda_id',
15787          'this_table' => 'moneda',
15788          'this_field' => 'moneda_id',
15789          'restrict_delete' => true,
15790          'delete_with_parent' => false,
15791          'on_delete_set_to' => 0,
15792        ),
15793        'moneda_id' =>
15794        array (
15795          'es' => 'catalog_entry',
15796          'formato' => 'jqgrid',
15797          'to_table' => 'cuentat_transfer',
15798          'to_field' => 'moneda_id',
15799          'this_table' => 'moneda',
15800          'this_field' => 'moneda_id',
15801          'restrict_delete' => true,
15802          'delete_with_parent' => false,
15803          'on_delete_set_to' => 0,
15804        ),
15805      ),
15806      'deposita_en' =>
15807      array (
15808        'moneda_id' =>
15809        array (
15810          'es' => 'catalog_entry',
15811          'formato' => 'jqgrid',
15812          'to_table' => 'deposita_en',
15813          'to_field' => 'moneda_id',
15814          'this_table' => 'moneda',
15815          'this_field' => 'moneda_id',
15816          'restrict_delete' => true,
15817          'delete_with_parent' => false,
15818          'on_delete_set_to' => 0,
15819        ),
15820      ),
15821      'deuda' =>
15822      array (
15823        'moneda_id' =>
15824        array (
15825          'es' => 'catalog_entry',
15826          'formato' => 'jqgrid',
15827          'to_table' => 'deuda',
15828          'to_field' => 'moneda_id',
15829          'this_table' => 'moneda',
15830          'this_field' => 'moneda_id',
15831          'restrict_delete' => true,
15832          'delete_with_parent' => false,
15833          'on_delete_set_to' => 0,
15834        ),
15835      ),
15836      'deuda_pago' =>
15837      array (
15838        'moneda_id' =>
15839        array (
15840          'es' => 'catalog_entry',
15841          'formato' => 'jqgrid',
15842          'to_table' => 'deuda_pago',
15843          'to_field' => 'moneda_id',
15844          'this_table' => 'moneda',
15845          'this_field' => 'moneda_id',
15846          'restrict_delete' => true,
15847          'delete_with_parent' => false,
15848          'on_delete_set_to' => 0,
15849        ),
15850      ),
15851      'doctos' =>
15852      array (
15853        'moneda_id' =>
15854        array (
15855          'es' => 'catalog_entry',
15856          'formato' => 'jqgrid',
15857          'to_table' => 'doctos',
15858          'to_field' => 'moneda_id',
15859          'this_table' => 'moneda',
15860          'this_field' => 'moneda_id',
15861          'restrict_delete' => true,
15862          'delete_with_parent' => false,
15863          'on_delete_set_to' => 0,
15864        ),
15865      ),
15866      'fiduciario_contenedor_gasto' =>
15867      array (
15868        'moneda_id' =>
15869        array (
15870          'es' => 'catalog_entry',
15871          'formato' => 'jqgrid',
15872          'to_table' => 'fiduciario_contenedor_gasto',
15873          'to_field' => 'moneda_id',
15874          'this_table' => 'moneda',
15875          'this_field' => 'moneda_id',
15876          'restrict_delete' => true,
15877          'delete_with_parent' => false,
15878          'on_delete_set_to' => 0,
15879        ),
15880      ),
15881      'inversion' =>
15882      array (
15883        'moneda_id' =>
15884        array (
15885          'es' => 'catalog_entry',
15886          'formato' => 'jqgrid',
15887          'to_table' => 'inversion',
15888          'to_field' => 'moneda_id',
15889          'this_table' => 'moneda',
15890          'this_field' => 'moneda_id',
15891          'restrict_delete' => true,
15892          'delete_with_parent' => false,
15893          'on_delete_set_to' => 0,
15894        ),
15895      ),
15896      'links_al_banco' =>
15897      array (
15898        'moneda_id' =>
15899        array (
15900          'es' => 'catalog_entry',
15901          'formato' => 'jqgrid',
15902          'to_table' => 'links_al_banco',
15903          'to_field' => 'moneda_id',
15904          'this_table' => 'moneda',
15905          'this_field' => 'moneda_id',
15906          'restrict_delete' => true,
15907          'delete_with_parent' => false,
15908          'on_delete_set_to' => 0,
15909        ),
15910      ),
15911      'links_al_banco_live' =>
15912      array (
15913        'moneda_id' =>
15914        array (
15915          'es' => 'catalog_entry',
15916          'formato' => 'jqgrid',
15917          'to_table' => 'links_al_banco_live',
15918          'to_field' => 'moneda_id',
15919          'this_table' => 'moneda',
15920          'this_field' => 'moneda_id',
15921          'restrict_delete' => true,
15922          'delete_with_parent' => false,
15923          'on_delete_set_to' => 0,
15924        ),
15925      ),
15926      'linkspendientes' =>
15927      array (
15928        'moneda_id' =>
15929        array (
15930          'es' => 'catalog_entry',
15931          'formato' => 'jqgrid',
15932          'to_table' => 'linkspendientes',
15933          'to_field' => 'moneda_id',
15934          'this_table' => 'moneda',
15935          'this_field' => 'moneda_id',
15936          'restrict_delete' => true,
15937          'delete_with_parent' => false,
15938          'on_delete_set_to' => 0,
15939        ),
15940      ),
15941      'lista_precios_producto' =>
15942      array (
15943        'moneda_id' =>
15944        array (
15945          'es' => 'catalog_entry',
15946          'formato' => 'jqgrid',
15947          'to_table' => 'lista_precios_producto',
15948          'to_field' => 'moneda_id',
15949          'this_table' => 'moneda',
15950          'this_field' => 'moneda_id',
15951          'restrict_delete' => true,
15952          'delete_with_parent' => false,
15953          'on_delete_set_to' => 0,
15954        ),
15955      ),
15956      'nota_pago' =>
15957      array (
15958        'moneda_id' =>
15959        array (
15960          'es' => 'catalog_entry',
15961          'formato' => 'jqgrid',
15962          'to_table' => 'nota_pago',
15963          'to_field' => 'moneda_id',
15964          'this_table' => 'moneda',
15965          'this_field' => 'moneda_id',
15966          'restrict_delete' => true,
15967          'delete_with_parent' => false,
15968          'on_delete_set_to' => 0,
15969        ),
15970      ),
15971      'pagare' =>
15972      array (
15973        'moneda_id' =>
15974        array (
15975          'es' => 'catalog_entry',
15976          'formato' => 'jqgrid',
15977          'to_table' => 'pagare',
15978          'to_field' => 'moneda_id',
15979          'this_table' => 'moneda',
15980          'this_field' => 'moneda_id',
15981          'restrict_delete' => true,
15982          'delete_with_parent' => false,
15983          'on_delete_set_to' => 0,
15984        ),
15985      ),
15986      'pagare_log' =>
15987      array (
15988        'moneda_id' =>
15989        array (
15990          'es' => 'catalog_entry',
15991          'formato' => 'jqgrid',
15992          'to_table' => 'pagare_log',
15993          'to_field' => 'moneda_id',
15994          'this_table' => 'moneda',
15995          'this_field' => 'moneda_id',
15996          'restrict_delete' => true,
15997          'delete_with_parent' => false,
15998          'on_delete_set_to' => 0,
15999        ),
16000      ),
16001      'pagare_pago' =>
16002      array (
16003        'moneda_id' =>
16004        array (
16005          'es' => 'catalog_entry',
16006          'formato' => 'jqgrid',
16007          'to_table' => 'pagare_pago',
16008          'to_field' => 'moneda_id',
16009          'this_table' => 'moneda',
16010          'this_field' => 'moneda_id',
16011          'restrict_delete' => true,
16012          'delete_with_parent' => false,
16013          'on_delete_set_to' => 0,
16014        ),
16015      ),
16016      'pagare_pago_log' =>
16017      array (
16018        'moneda_id' =>
16019        array (
16020          'es' => 'catalog_entry',
16021          'formato' => 'jqgrid',
16022          'to_table' => 'pagare_pago_log',
16023          'to_field' => 'moneda_id',
16024          'this_table' => 'moneda',
16025          'this_field' => 'moneda_id',
16026          'restrict_delete' => true,
16027          'delete_with_parent' => false,
16028          'on_delete_set_to' => 0,
16029        ),
16030      ),
16031      'pagare_test' =>
16032      array (
16033        'moneda_id' =>
16034        array (
16035          'es' => 'catalog_entry',
16036          'formato' => 'jqgrid',
16037          'to_table' => 'pagare_test',
16038          'to_field' => 'moneda_id',
16039          'this_table' => 'moneda',
16040          'this_field' => 'moneda_id',
16041          'restrict_delete' => true,
16042          'delete_with_parent' => false,
16043          'on_delete_set_to' => 0,
16044        ),
16045      ),
16046      'producto_general' =>
16047      array (
16048        'cost_moneda_id' =>
16049        array (
16050          'es' => 'catalog_entry',
16051          'formato' => 'link_one_select',
16052          'to_table' => 'producto_general',
16053          'to_field' => 'cost_moneda_id',
16054          'this_table' => 'moneda',
16055          'this_field' => 'moneda_id',
16056          'restrict_delete' => true,
16057          'delete_with_parent' => false,
16058          'on_delete_set_to' => 0,
16059        ),
16060      ),
16061      'vale' =>
16062      array (
16063        'moneda_id' =>
16064        array (
16065          'es' => 'catalog_entry',
16066          'formato' => 'jqgrid',
16067          'to_table' => 'vale',
16068          'to_field' => 'moneda_id',
16069          'this_table' => 'moneda',
16070          'this_field' => 'moneda_id',
16071          'restrict_delete' => true,
16072          'delete_with_parent' => false,
16073          'on_delete_set_to' => 0,
16074        ),
16075        'recibido_moneda_id' =>
16076        array (
16077          'es' => 'catalog_entry',
16078          'formato' => 'jqgrid',
16079          'to_table' => 'vale',
16080          'to_field' => 'recibido_moneda_id',
16081          'this_table' => 'moneda',
16082          'this_field' => 'moneda_id',
16083          'restrict_delete' => true,
16084          'delete_with_parent' => false,
16085          'on_delete_set_to' => 0,
16086        ),
16087      ),
16088      'vale_log' =>
16089      array (
16090        'moneda_id' =>
16091        array (
16092          'es' => 'catalog_entry',
16093          'formato' => 'jqgrid',
16094          'to_table' => 'vale_log',
16095          'to_field' => 'moneda_id',
16096          'this_table' => 'moneda',
16097          'this_field' => 'moneda_id',
16098          'restrict_delete' => true,
16099          'delete_with_parent' => false,
16100          'on_delete_set_to' => 0,
16101        ),
16102        'recibido_moneda_id' =>
16103        array (
16104          'es' => 'catalog_entry',
16105          'formato' => 'jqgrid',
16106          'to_table' => 'vale_log',
16107          'to_field' => 'recibido_moneda_id',
16108          'this_table' => 'moneda',
16109          'this_field' => 'moneda_id',
16110          'restrict_delete' => true,
16111          'delete_with_parent' => false,
16112          'on_delete_set_to' => 0,
16113        ),
16114      ),
16115      'vale_pago' =>
16116      array (
16117        'moneda_id' =>
16118        array (
16119          'es' => 'catalog_entry',
16120          'formato' => 'jqgrid',
16121          'to_table' => 'vale_pago',
16122          'to_field' => 'moneda_id',
16123          'this_table' => 'moneda',
16124          'this_field' => 'moneda_id',
16125          'restrict_delete' => true,
16126          'delete_with_parent' => false,
16127          'on_delete_set_to' => 0,
16128        ),
16129      ),
16130      'vale_pago_log' =>
16131      array (
16132        'moneda_id' =>
16133        array (
16134          'es' => 'catalog_entry',
16135          'formato' => 'jqgrid',
16136          'to_table' => 'vale_pago_log',
16137          'to_field' => 'moneda_id',
16138          'this_table' => 'moneda',
16139          'this_field' => 'moneda_id',
16140          'restrict_delete' => true,
16141          'delete_with_parent' => false,
16142          'on_delete_set_to' => 0,
16143        ),
16144      ),
16145      'vale_uso' =>
16146      array (
16147        'moneda_id' =>
16148        array (
16149          'es' => 'catalog_entry',
16150          'formato' => 'jqgrid',
16151          'to_table' => 'vale_uso',
16152          'to_field' => 'moneda_id',
16153          'this_table' => 'moneda',
16154          'this_field' => 'moneda_id',
16155          'restrict_delete' => true,
16156          'delete_with_parent' => false,
16157          'on_delete_set_to' => 0,
16158        ),
16159      ),
16160      'vale_uso_log' =>
16161      array (
16162        'moneda_id' =>
16163        array (
16164          'es' => 'catalog_entry',
16165          'formato' => 'jqgrid',
16166          'to_table' => 'vale_uso_log',
16167          'to_field' => 'moneda_id',
16168          'this_table' => 'moneda',
16169          'this_field' => 'moneda_id',
16170          'restrict_delete' => true,
16171          'delete_with_parent' => false,
16172          'on_delete_set_to' => 0,
16173        ),
16174      ),
16175    ),
16176  ),
16177  'mov_verificado' =>
16178  array (
16179    'es' => 'child',
16180    'pk_single_field' => 'mov_verificado_id',
16181    'pk_single_type' => 'uuid',
16182    'label_field' => 'banco_cuenta_mov_id',
16183    'has_seq' => false,
16184    'has_child' => true,
16185    'has_datetime' => true,
16186    'has_numeric' => true,
16187    'has_fckeditor' => true,
16188    'links_from' =>
16189    array (
16190      'banco_cuenta_mov' =>
16191      array (
16192        'mov_verificado_id' =>
16193        array (
16194          'es' => 'catalog_entry',
16195          'formato' => 'jqgrid',
16196          'to_table' => 'banco_cuenta_mov',
16197          'to_field' => 'mov_verificado_id',
16198          'this_table' => 'mov_verificado',
16199          'this_field' => 'mov_verificado_id',
16200          'restrict_delete' => true,
16201          'delete_with_parent' => false,
16202          'on_delete_set_to' => 0,
16203        ),
16204      ),
16205      'banco_cuenta_mov_con_links' =>
16206      array (
16207        'mov_verificado_id' =>
16208        array (
16209          'es' => 'catalog_entry',
16210          'formato' => 'jqgrid',
16211          'to_table' => 'banco_cuenta_mov_con_links',
16212          'to_field' => 'mov_verificado_id',
16213          'this_table' => 'mov_verificado',
16214          'this_field' => 'mov_verificado_id',
16215          'restrict_delete' => true,
16216          'delete_with_parent' => false,
16217          'on_delete_set_to' => 0,
16218        ),
16219      ),
16220      'mov_verificado_con_links' =>
16221      array (
16222        'mov_verificado_id' =>
16223        array (
16224          'es' => 'catalog_entry',
16225          'formato' => 'link_one_select',
16226          'to_table' => 'mov_verificado_con_links',
16227          'to_field' => 'mov_verificado_id',
16228          'this_table' => 'mov_verificado',
16229          'this_field' => 'mov_verificado_id',
16230          'restrict_delete' => false,
16231          'delete_with_parent' => true,
16232          'on_delete_set_to' => 0,
16233        ),
16234      ),
16235    ),
16236    'links_to' =>
16237    array (
16238      'banco_cuenta_mov' =>
16239      array (
16240        'banco_cuenta_mov_id' =>
16241        array (
16242          'es' => 'catalog',
16243          'formato' => 'link_one_select',
16244          'to_table' => 'banco_cuenta_mov',
16245          'to_field' => '?',
16246          'this_table' => 'mov_verificado',
16247          'this_field' => 'banco_cuenta_mov_id',
16248        ),
16249      ),
16250      'banco_cuenta' =>
16251      array (
16252        'banco_cuenta_id' =>
16253        array (
16254          'es' => 'catalog',
16255          'formato' => 'link_one_select',
16256          'to_table' => 'banco_cuenta',
16257          'to_field' => 'banco_cuenta_id',
16258          'this_table' => 'mov_verificado',
16259          'this_field' => 'banco_cuenta_id',
16260        ),
16261      ),
16262      'banco_mov_tipo' =>
16263      array (
16264        'banco_mov_tipo_id' =>
16265        array (
16266          'es' => 'catalog',
16267          'formato' => 'link_one_select',
16268          'to_table' => 'banco_mov_tipo',
16269          'to_field' => 'banco_mov_tipo_id',
16270          'this_table' => 'mov_verificado',
16271          'this_field' => 'banco_mov_tipo_id',
16272        ),
16273      ),
16274      'banco' =>
16275      array (
16276        'banco_id' =>
16277        array (
16278          'es' => 'catalog',
16279          'formato' => 'link_one_select',
16280          'to_table' => 'banco',
16281          'to_field' => 'banco_id',
16282          'this_table' => 'mov_verificado',
16283          'this_field' => 'banco_id',
16284        ),
16285      ),
16286      'empresa' =>
16287      array (
16288        'empresa_id' =>
16289        array (
16290          'es' => 'catalog',
16291          'formato' => 'link_one_select',
16292          'to_table' => 'empresa',
16293          'to_field' => 'empresa_id',
16294          'this_table' => 'mov_verificado',
16295          'this_field' => 'empresa_id',
16296        ),
16297      ),
16298      'tienda' =>
16299      array (
16300        'tienda_id' =>
16301        array (
16302          'es' => 'catalog',
16303          'formato' => 'link_one_select',
16304          'to_table' => 'tienda',
16305          'to_field' => 'tienda_id',
16306          'this_table' => 'mov_verificado',
16307          'this_field' => 'tienda_id',
16308        ),
16309      ),
16310      'categoria_gasto' =>
16311      array (
16312        'categoria_gasto_id' =>
16313        array (
16314          'es' => 'catalog',
16315          'formato' => 'link_one_select',
16316          'to_table' => 'categoria_gasto',
16317          'to_field' => 'categoria_gasto_id',
16318          'this_table' => 'mov_verificado',
16319          'this_field' => 'categoria_gasto_id',
16320        ),
16321      ),
16322    ),
16323  ),
16324  'mov_verificado_con_links' =>
16325  array (
16326    'es' => 'child',
16327    'label_field' => 'mov_verificado_id',
16328    'has_seq' => false,
16329    'has_child' => false,
16330    'has_datetime' => true,
16331    'has_numeric' => true,
16332    'has_fckeditor' => true,
16333    'links_to' =>
16334    array (
16335      'mov_verificado' =>
16336      array (
16337        'mov_verificado_id' =>
16338        array (
16339          'es' => 'catalog',
16340          'formato' => 'link_one_select',
16341          'to_table' => 'mov_verificado',
16342          'to_field' => 'mov_verificado_id',
16343          'this_table' => 'mov_verificado_con_links',
16344          'this_field' => 'mov_verificado_id',
16345        ),
16346      ),
16347      'banco_cuenta' =>
16348      array (
16349        'banco_cuenta_id' =>
16350        array (
16351          'es' => 'catalog',
16352          'formato' => 'link_one_select',
16353          'to_table' => 'banco_cuenta',
16354          'to_field' => 'banco_cuenta_id',
16355          'this_table' => 'mov_verificado_con_links',
16356          'this_field' => 'banco_cuenta_id',
16357        ),
16358      ),
16359      'banco_mov_tipo' =>
16360      array (
16361        'banco_mov_tipo_id' =>
16362        array (
16363          'es' => 'catalog',
16364          'formato' => 'link_one_select',
16365          'to_table' => 'banco_mov_tipo',
16366          'to_field' => 'banco_mov_tipo_id',
16367          'this_table' => 'mov_verificado_con_links',
16368          'this_field' => 'banco_mov_tipo_id',
16369        ),
16370      ),
16371      'banco' =>
16372      array (
16373        'banco_id' =>
16374        array (
16375          'es' => 'catalog',
16376          'formato' => 'link_one_select',
16377          'to_table' => 'banco',
16378          'to_field' => 'banco_id',
16379          'this_table' => 'mov_verificado_con_links',
16380          'this_field' => 'banco_id',
16381        ),
16382      ),
16383      'banco_cuenta_mov' =>
16384      array (
16385        'banco_cuenta_mov_id' =>
16386        array (
16387          'es' => 'catalog',
16388          'formato' => 'link_one_select',
16389          'to_table' => 'banco_cuenta_mov',
16390          'to_field' => '?',
16391          'this_table' => 'mov_verificado_con_links',
16392          'this_field' => 'banco_cuenta_mov_id',
16393        ),
16394      ),
16395      'empresa' =>
16396      array (
16397        'empresa_id' =>
16398        array (
16399          'es' => 'catalog',
16400          'formato' => 'link_one_select',
16401          'to_table' => 'empresa',
16402          'to_field' => 'empresa_id',
16403          'this_table' => 'mov_verificado_con_links',
16404          'this_field' => 'empresa_id',
16405        ),
16406      ),
16407      'tienda' =>
16408      array (
16409        'tienda_id' =>
16410        array (
16411          'es' => 'catalog',
16412          'formato' => 'link_one_select',
16413          'to_table' => 'tienda',
16414          'to_field' => 'tienda_id',
16415          'this_table' => 'mov_verificado_con_links',
16416          'this_field' => 'tienda_id',
16417        ),
16418        'link_tienda_id' =>
16419        array (
16420          'es' => 'catalog',
16421          'formato' => 'link_one_select',
16422          'to_table' => 'tienda',
16423          'to_field' => 'tienda_id',
16424          'this_table' => 'mov_verificado_con_links',
16425          'this_field' => 'link_tienda_id',
16426        ),
16427      ),
16428      'banco_cuenta_mov_link' =>
16429      array (
16430        'banco_cuenta_mov_link_id' =>
16431        array (
16432          'es' => 'catalog',
16433          'formato' => 'link_one_select',
16434          'to_table' => 'banco_cuenta_mov_link',
16435          'to_field' => 'banco_cuenta_mov_link_id',
16436          'this_table' => 'mov_verificado_con_links',
16437          'this_field' => 'banco_cuenta_mov_link_id',
16438        ),
16439      ),
16440    ),
16441  ),
16442  'mov_verificado_plantilla' =>
16443  array (
16444    'es' => 'child',
16445    'pk_single_field' => 'mov_verificado_plantilla_id',
16446    'pk_single_type' => 'auto_increment',
16447    'label_field' => 'plantilla_id',
16448    'has_seq' => false,
16449    'has_child' => false,
16450    'UNI' =>
16451    array (
16452      'plantilla_id' =>
16453      array (
16454        1 => 'plantilla_id',
16455        2 => 'banco_cuenta_id',
16456      ),
16457    ),
16458    'links_to' =>
16459    array (
16460      'banco_cuenta' =>
16461      array (
16462        'banco_cuenta_id' =>
16463        array (
16464          'es' => 'catalog',
16465          'formato' => 'link_one_select',
16466          'to_table' => 'banco_cuenta',
16467          'to_field' => 'banco_cuenta_id',
16468          'this_table' => 'mov_verificado_plantilla',
16469          'this_field' => 'banco_cuenta_id',
16470        ),
16471      ),
16472      'plantilla' =>
16473      array (
16474        'plantilla_id' =>
16475        array (
16476          'es' => 'catalog',
16477          'formato' => 'link_one_select',
16478          'to_table' => 'plantilla',
16479          'to_field' => 'plantilla_id',
16480          'this_table' => 'mov_verificado_plantilla',
16481          'this_field' => 'plantilla_id',
16482        ),
16483      ),
16484    ),
16485  ),
16486  'movimiento_divisa' =>
16487  array (
16488    'es' => 'child',
16489    'pk_single_field' => 'movimiento_divisa_id',
16490    'pk_single_type' => 'uuid',
16491    'label_field' => 'descripcion',
16492    'has_seq' => false,
16493    'has_child' => false,
16494    'has_numeric' => true,
16495    'has_datetime' => true,
16496    'links_to' =>
16497    array (
16498      'cliente' =>
16499      array (
16500        'cliente_id' =>
16501        array (
16502          'es' => 'catalog',
16503          'formato' => 'link_one_select',
16504          'to_table' => 'cliente',
16505          'to_field' => 'cliente_id',
16506          'this_table' => 'movimiento_divisa',
16507          'this_field' => 'cliente_id',
16508        ),
16509      ),
16510    ),
16511  ),
16512  'nota' =>
16513  array (
16514    'es' => 'parent',
16515    'pk_single_field' => 'nota_id',
16516    'pk_single_type' => 'uuid',
16517    'label_field' => 'cliente_id',
16518    'has_seq' => false,
16519    'has_child' => true,
16520    'has_date' => true,
16521    'has_numeric' => true,
16522    'has_fckeditor' => true,
16523    'links_to' =>
16524    array (
16525      'cliente' =>
16526      array (
16527        'cliente_id' =>
16528        array (
16529          'es' => 'catalog',
16530          'formato' => 'link_one_select',
16531          'to_table' => 'cliente',
16532          'to_field' => 'cliente_id',
16533          'this_table' => 'nota',
16534          'this_field' => 'cliente_id',
16535        ),
16536      ),
16537      'tienda' =>
16538      array (
16539        'tienda_id' =>
16540        array (
16541          'es' => 'catalog',
16542          'formato' => 'link_one_select',
16543          'to_table' => 'tienda',
16544          'to_field' => 'tienda_id',
16545          'this_table' => 'nota',
16546          'this_field' => 'tienda_id',
16547        ),
16548      ),
16549      'payment_conditions' =>
16550      array (
16551        'payment_conditions_id' =>
16552        array (
16553          'es' => 'catalog',
16554          'formato' => 'link_one_select',
16555          'to_table' => 'payment_conditions',
16556          'to_field' => 'payment_conditions_id',
16557          'this_table' => 'nota',
16558          'this_field' => 'payment_conditions_id',
16559        ),
16560      ),
16561    ),
16562    'links_from' =>
16563    array (
16564      'nota_bodega' =>
16565      array (
16566        'contra_nota_bodega_id' =>
16567        array (
16568          'es' => 'catalog_entry',
16569          'formato' => 'link_one_select',
16570          'to_table' => 'nota_bodega',
16571          'to_field' => 'contra_nota_bodega_id',
16572          'this_table' => 'nota',
16573          'this_field' => 'nota_id',
16574          'restrict_delete' => true,
16575          'delete_with_parent' => false,
16576          'on_delete_set_to' => 0,
16577        ),
16578        'lock_por_tiempo_nota_ajuste_nota_id' =>
16579        array (
16580          'es' => 'catalog_entry',
16581          'formato' => 'link_one_select',
16582          'to_table' => 'nota_bodega',
16583          'to_field' => 'lock_por_tiempo_nota_ajuste_nota_id',
16584          'this_table' => 'nota',
16585          'this_field' => 'nota_id',
16586          'restrict_delete' => true,
16587          'delete_with_parent' => false,
16588          'on_delete_set_to' => 0,
16589        ),
16590        'lock_por_nota_posterior_ajuste_id' =>
16591        array (
16592          'es' => 'catalog_entry',
16593          'formato' => 'link_one_select',
16594          'to_table' => 'nota_bodega',
16595          'to_field' => 'lock_por_nota_posterior_ajuste_id',
16596          'this_table' => 'nota',
16597          'this_field' => 'nota_id',
16598          'restrict_delete' => true,
16599          'delete_with_parent' => false,
16600          'on_delete_set_to' => 0,
16601        ),
16602      ),
16603      'nota_bodega_autorizacion' =>
16604      array (
16605        'contra_nota_bodega_id' =>
16606        array (
16607          'es' => 'catalog_entry',
16608          'formato' => 'link_one_select',
16609          'to_table' => 'nota_bodega_autorizacion',
16610          'to_field' => 'contra_nota_bodega_id',
16611          'this_table' => 'nota',
16612          'this_field' => 'nota_id',
16613          'restrict_delete' => true,
16614          'delete_with_parent' => false,
16615          'on_delete_set_to' => 0,
16616        ),
16617        'lock_por_tiempo_nota_ajuste_nota_id' =>
16618        array (
16619          'es' => 'catalog_entry',
16620          'formato' => 'link_one_select',
16621          'to_table' => 'nota_bodega_autorizacion',
16622          'to_field' => 'lock_por_tiempo_nota_ajuste_nota_id',
16623          'this_table' => 'nota',
16624          'this_field' => 'nota_id',
16625          'restrict_delete' => true,
16626          'delete_with_parent' => false,
16627          'on_delete_set_to' => 0,
16628        ),
16629        'lock_por_nota_posterior_ajuste_id' =>
16630        array (
16631          'es' => 'catalog_entry',
16632          'formato' => 'link_one_select',
16633          'to_table' => 'nota_bodega_autorizacion',
16634          'to_field' => 'lock_por_nota_posterior_ajuste_id',
16635          'this_table' => 'nota',
16636          'this_field' => 'nota_id',
16637          'restrict_delete' => true,
16638          'delete_with_parent' => false,
16639          'on_delete_set_to' => 0,
16640        ),
16641      ),
16642      'nota_bodega_contra_nota_bodega' =>
16643      array (
16644        'contra_nota_bodega_id' =>
16645        array (
16646          'es' => 'catalog_entry',
16647          'formato' => 'link_one_select',
16648          'to_table' => 'nota_bodega_contra_nota_bodega',
16649          'to_field' => 'contra_nota_bodega_id',
16650          'this_table' => 'nota',
16651          'this_field' => 'nota_id',
16652          'restrict_delete' => false,
16653          'delete_with_parent' => true,
16654          'on_delete_set_to' => 0,
16655        ),
16656      ),
16657      'nota_bodega_log' =>
16658      array (
16659        'contra_nota_bodega_id' =>
16660        array (
16661          'es' => 'catalog_entry',
16662          'formato' => 'link_one_select',
16663          'to_table' => 'nota_bodega_log',
16664          'to_field' => 'contra_nota_bodega_id',
16665          'this_table' => 'nota',
16666          'this_field' => 'nota_id',
16667          'restrict_delete' => true,
16668          'delete_with_parent' => false,
16669          'on_delete_set_to' => 0,
16670        ),
16671        'lock_por_tiempo_nota_ajuste_nota_id' =>
16672        array (
16673          'es' => 'catalog_entry',
16674          'formato' => 'link_one_select',
16675          'to_table' => 'nota_bodega_log',
16676          'to_field' => 'lock_por_tiempo_nota_ajuste_nota_id',
16677          'this_table' => 'nota',
16678          'this_field' => 'nota_id',
16679          'restrict_delete' => true,
16680          'delete_with_parent' => false,
16681          'on_delete_set_to' => 0,
16682        ),
16683        'lock_por_nota_posterior_ajuste_id' =>
16684        array (
16685          'es' => 'catalog_entry',
16686          'formato' => 'link_one_select',
16687          'to_table' => 'nota_bodega_log',
16688          'to_field' => 'lock_por_nota_posterior_ajuste_id',
16689          'this_table' => 'nota',
16690          'this_field' => 'nota_id',
16691          'restrict_delete' => true,
16692          'delete_with_parent' => false,
16693          'on_delete_set_to' => 0,
16694        ),
16695      ),
16696      'nota_bodega_verificacion' =>
16697      array (
16698        'contra_nota_bodega_id' =>
16699        array (
16700          'es' => 'catalog_entry',
16701          'formato' => 'link_one_select',
16702          'to_table' => 'nota_bodega_verificacion',
16703          'to_field' => 'contra_nota_bodega_id',
16704          'this_table' => 'nota',
16705          'this_field' => 'nota_id',
16706          'restrict_delete' => true,
16707          'delete_with_parent' => false,
16708          'on_delete_set_to' => 0,
16709        ),
16710        'lock_por_tiempo_nota_ajuste_nota_id' =>
16711        array (
16712          'es' => 'catalog_entry',
16713          'formato' => 'link_one_select',
16714          'to_table' => 'nota_bodega_verificacion',
16715          'to_field' => 'lock_por_tiempo_nota_ajuste_nota_id',
16716          'this_table' => 'nota',
16717          'this_field' => 'nota_id',
16718          'restrict_delete' => true,
16719          'delete_with_parent' => false,
16720          'on_delete_set_to' => 0,
16721        ),
16722      ),
16723      'nota_items' =>
16724      array (
16725        'nota_id' =>
16726        array (
16727          'es' => 'child',
16728          'formato' => 'jqgrid',
16729          'to_table' => 'nota_items',
16730          'to_field' => 'nota_id',
16731          'this_table' => 'nota',
16732          'this_field' => 'nota_id',
16733          'restrict_delete' => false,
16734          'delete_with_parent' => true,
16735          'on_delete_set_to' => 0,
16736        ),
16737      ),
16738      'nota_pago' =>
16739      array (
16740        'nota_id' =>
16741        array (
16742          'es' => 'child',
16743          'formato' => 'jqgrid',
16744          'to_table' => 'nota_pago',
16745          'to_field' => 'nota_id',
16746          'this_table' => 'nota',
16747          'this_field' => 'nota_id',
16748          'restrict_delete' => false,
16749          'delete_with_parent' => true,
16750          'on_delete_set_to' => 0,
16751        ),
16752      ),
16753      'solicitud_carta_porte' =>
16754      array (
16755        'contra_nota_bodega_id' =>
16756        array (
16757          'es' => 'catalog_entry',
16758          'formato' => 'link_one_select',
16759          'to_table' => 'solicitud_carta_porte',
16760          'to_field' => 'contra_nota_bodega_id',
16761          'this_table' => 'nota',
16762          'this_field' => 'nota_id',
16763          'restrict_delete' => true,
16764          'delete_with_parent' => false,
16765          'on_delete_set_to' => 0,
16766        ),
16767      ),
16768    ),
16769  ),
16770  'nota_bodega' =>
16771  array (
16772    'es' => 'child',
16773    'PK' =>
16774    array (
16775      0 => 'nota_bodega_id',
16776      1 => 'fecha',
16777    ),
16778    'label_field' => 'numero',
16779    'has_seq' => false,
16780    'has_child' => true,
16781    'has_date' => true,
16782    'has_fckeditor' => true,
16783    'has_datetime' => true,
16784    'has_file_upload' => true,
16785    'links_from' =>
16786    array (
16787      'ajuste' =>
16788      array (
16789        'nota_bodega_id' =>
16790        array (
16791          'es' => 'catalog_entry',
16792          'formato' => 'link_one_select',
16793          'to_table' => 'ajuste',
16794          'to_field' => 'nota_bodega_id',
16795          'this_table' => 'nota_bodega',
16796          'this_field' => '?',
16797          'restrict_delete' => true,
16798          'delete_with_parent' => false,
16799          'on_delete_set_to' => 0,
16800        ),
16801      ),
16802      'ajuste_autorizacion' =>
16803      array (
16804        'nota_bodega_id' =>
16805        array (
16806          'es' => 'catalog_entry',
16807          'formato' => 'link_one_select',
16808          'to_table' => 'ajuste_autorizacion',
16809          'to_field' => 'nota_bodega_id',
16810          'this_table' => 'nota_bodega',
16811          'this_field' => '?',
16812          'restrict_delete' => true,
16813          'delete_with_parent' => false,
16814          'on_delete_set_to' => 0,
16815        ),
16816      ),
16817      'autorizacion_modificacion_importante_log' =>
16818      array (
16819        'nota_bodega_id' =>
16820        array (
16821          'es' => 'catalog_entry',
16822          'formato' => 'link_one_select',
16823          'to_table' => 'autorizacion_modificacion_importante_log',
16824          'to_field' => 'nota_bodega_id',
16825          'this_table' => 'nota_bodega',
16826          'this_field' => '?',
16827          'restrict_delete' => true,
16828          'delete_with_parent' => false,
16829          'on_delete_set_to' => 0,
16830        ),
16831      ),
16832      'autorizacion_recepcion_nota_bodega' =>
16833      array (
16834        'nota_bodega_id' =>
16835        array (
16836          'es' => 'catalog_entry',
16837          'formato' => 'link_one_select',
16838          'to_table' => 'autorizacion_recepcion_nota_bodega',
16839          'to_field' => 'nota_bodega_id',
16840          'this_table' => 'nota_bodega',
16841          'this_field' => '?',
16842          'restrict_delete' => true,
16843          'delete_with_parent' => false,
16844          'on_delete_set_to' => 0,
16845        ),
16846      ),
16847      'inconsistencia_nota_bodega' =>
16848      array (
16849        'nota_bodega_id' =>
16850        array (
16851          'es' => 'catalog_entry',
16852          'formato' => 'link_one_select',
16853          'to_table' => 'inconsistencia_nota_bodega',
16854          'to_field' => 'nota_bodega_id',
16855          'this_table' => 'nota_bodega',
16856          'this_field' => '?',
16857          'restrict_delete' => true,
16858          'delete_with_parent' => false,
16859          'on_delete_set_to' => 0,
16860        ),
16861      ),
16862      'nota_bodega_autorizacion' =>
16863      array (
16864        'nota_bodega_id' =>
16865        array (
16866          'es' => 'catalog_entry',
16867          'formato' => 'link_one_select',
16868          'to_table' => 'nota_bodega_autorizacion',
16869          'to_field' => 'nota_bodega_id',
16870          'this_table' => 'nota_bodega',
16871          'this_field' => '?',
16872          'restrict_delete' => true,
16873          'delete_with_parent' => false,
16874          'on_delete_set_to' => 0,
16875        ),
16876      ),
16877      'nota_bodega_autorizacion2' =>
16878      array (
16879        'nota_bodega_id' =>
16880        array (
16881          'es' => 'catalog_entry',
16882          'formato' => 'link_one_select',
16883          'to_table' => 'nota_bodega_autorizacion2',
16884          'to_field' => 'nota_bodega_id',
16885          'this_table' => 'nota_bodega',
16886          'this_field' => '?',
16887          'restrict_delete' => false,
16888          'delete_with_parent' => true,
16889          'on_delete_set_to' => 0,
16890        ),
16891      ),
16892      'nota_bodega_contra_nota_bodega' =>
16893      array (
16894        'nota_bodega_id' =>
16895        array (
16896          'es' => 'catalog_entry',
16897          'formato' => 'link_one_select',
16898          'to_table' => 'nota_bodega_contra_nota_bodega',
16899          'to_field' => 'nota_bodega_id',
16900          'this_table' => 'nota_bodega',
16901          'this_field' => '?',
16902          'restrict_delete' => false,
16903          'delete_with_parent' => true,
16904          'on_delete_set_to' => 0,
16905        ),
16906      ),
16907      'nota_bodega_items' =>
16908      array (
16909        'nota_bodega_id' =>
16910        array (
16911          'es' => 'catalog_entry',
16912          'formato' => 'link_one_select',
16913          'to_table' => 'nota_bodega_items',
16914          'to_field' => 'nota_bodega_id',
16915          'this_table' => 'nota_bodega',
16916          'this_field' => '?',
16917          'restrict_delete' => false,
16918          'delete_with_parent' => true,
16919          'on_delete_set_to' => 0,
16920        ),
16921      ),
16922      'nota_bodega_items_log' =>
16923      array (
16924        'nota_bodega_id' =>
16925        array (
16926          'es' => 'catalog_entry',
16927          'formato' => 'link_one_select',
16928          'to_table' => 'nota_bodega_items_log',
16929          'to_field' => 'nota_bodega_id',
16930          'this_table' => 'nota_bodega',
16931          'this_field' => '?',
16932          'restrict_delete' => false,
16933          'delete_with_parent' => true,
16934          'on_delete_set_to' => 0,
16935        ),
16936      ),
16937      'nota_bodega_verificacion' =>
16938      array (
16939        'nota_bodega_id' =>
16940        array (
16941          'es' => 'catalog_entry',
16942          'formato' => 'link_one_select',
16943          'to_table' => 'nota_bodega_verificacion',
16944          'to_field' => 'nota_bodega_id',
16945          'this_table' => 'nota_bodega',
16946          'this_field' => '?',
16947          'restrict_delete' => true,
16948          'delete_with_parent' => false,
16949          'on_delete_set_to' => 0,
16950        ),
16951      ),
16952    ),
16953    'links_to' =>
16954    array (
16955      'bodega' =>
16956      array (
16957        'bodega_id' =>
16958        array (
16959          'es' => 'catalog',
16960          'formato' => 'link_one_select',
16961          'to_table' => 'bodega',
16962          'to_field' => 'bodega_id',
16963          'this_table' => 'nota_bodega',
16964          'this_field' => 'bodega_id',
16965        ),
16966      ),
16967      'producto_general' =>
16968      array (
16969        'producto_general_id' =>
16970        array (
16971          'es' => 'catalog',
16972          'formato' => 'link_one_select',
16973          'to_table' => 'producto_general',
16974          'to_field' => 'producto_general_id',
16975          'this_table' => 'nota_bodega',
16976          'this_field' => 'producto_general_id',
16977        ),
16978      ),
16979      'nota' =>
16980      array (
16981        'contra_nota_bodega_id' =>
16982        array (
16983          'es' => 'catalog',
16984          'formato' => 'link_one_select',
16985          'to_table' => 'nota',
16986          'to_field' => 'nota_id',
16987          'this_table' => 'nota_bodega',
16988          'this_field' => 'contra_nota_bodega_id',
16989        ),
16990        'lock_por_tiempo_nota_ajuste_nota_id' =>
16991        array (
16992          'es' => 'catalog',
16993          'formato' => 'link_one_select',
16994          'to_table' => 'nota',
16995          'to_field' => 'nota_id',
16996          'this_table' => 'nota_bodega',
16997          'this_field' => 'lock_por_tiempo_nota_ajuste_nota_id',
16998        ),
16999        'lock_por_nota_posterior_ajuste_id' =>
17000        array (
17001          'es' => 'catalog',
17002          'formato' => 'link_one_select',
17003          'to_table' => 'nota',
17004          'to_field' => 'nota_id',
17005          'this_table' => 'nota_bodega',
17006          'this_field' => 'lock_por_nota_posterior_ajuste_id',
17007        ),
17008      ),
17009      'solicitud_carta_porte' =>
17010      array (
17011        'solicitud_carta_porte_id' =>
17012        array (
17013          'es' => 'catalog',
17014          'formato' => 'link_one_select',
17015          'to_table' => 'solicitud_carta_porte',
17016          'to_field' => 'solicitud_carta_porte_id',
17017          'this_table' => 'nota_bodega',
17018          'this_field' => 'solicitud_carta_porte_id',
17019        ),
17020      ),
17021      'cp_figuratransporte' =>
17022      array (
17023        'cp_figuratransporte_id' =>
17024        array (
17025          'es' => 'catalog',
17026          'formato' => 'link_one_select',
17027          'to_table' => 'cp_figuratransporte',
17028          'to_field' => 'figuratransporte_id',
17029          'this_table' => 'nota_bodega',
17030          'this_field' => 'cp_figuratransporte_id',
17031        ),
17032      ),
17033      'cp_autotransporte' =>
17034      array (
17035        'cp_autotransporte_id' =>
17036        array (
17037          'es' => 'catalog',
17038          'formato' => 'link_one_select',
17039          'to_table' => 'cp_autotransporte',
17040          'to_field' => 'autotransporte_id',
17041          'this_table' => 'nota_bodega',
17042          'this_field' => 'cp_autotransporte_id',
17043        ),
17044      ),
17045      'cp_cliente' =>
17046      array (
17047        'cp_cliente_id' =>
17048        array (
17049          'es' => 'catalog',
17050          'formato' => 'link_one_select',
17051          'to_table' => 'cp_cliente',
17052          'to_field' => 'cp_cliente_id',
17053          'this_table' => 'nota_bodega',
17054          'this_field' => 'cp_cliente_id',
17055        ),
17056      ),
17057      'cliente' =>
17058      array (
17059        'cliente_id' =>
17060        array (
17061          'es' => 'catalog',
17062          'formato' => 'link_one_select',
17063          'to_table' => 'cliente',
17064          'to_field' => 'cliente_id',
17065          'this_table' => 'nota_bodega',
17066          'this_field' => 'cliente_id',
17067        ),
17068        'cliente_actual_id' =>
17069        array (
17070          'es' => 'catalog',
17071          'formato' => 'link_one_select',
17072          'to_table' => 'cliente',
17073          'to_field' => 'cliente_id',
17074          'this_table' => 'nota_bodega',
17075          'this_field' => 'cliente_actual_id',
17076        ),
17077      ),
17078      'pagare' =>
17079      array (
17080        'pagare_id' =>
17081        array (
17082          'es' => 'catalog',
17083          'formato' => 'link_one_select',
17084          'to_table' => 'pagare',
17085          'to_field' => 'pagare_id',
17086          'this_table' => 'nota_bodega',
17087          'this_field' => 'pagare_id',
17088        ),
17089      ),
17090    ),
17091  ),
17092  'nota_bodega_autorizacion' =>
17093  array (
17094    'es' => 'child',
17095    'PK' =>
17096    array (
17097      0 => 'nota_bodega_autorizacion_id',
17098      1 => 'fecha',
17099    ),
17100    'label_field' => 'nota_bodega_id',
17101    'has_seq' => false,
17102    'has_child' => true,
17103    'has_date' => true,
17104    'has_fckeditor' => true,
17105    'has_datetime' => true,
17106    'has_file_upload' => true,
17107    'links_to' =>
17108    array (
17109      'nota_bodega' =>
17110      array (
17111        'nota_bodega_id' =>
17112        array (
17113          'es' => 'catalog',
17114          'formato' => 'link_one_select',
17115          'to_table' => 'nota_bodega',
17116          'to_field' => '?',
17117          'this_table' => 'nota_bodega_autorizacion',
17118          'this_field' => 'nota_bodega_id',
17119        ),
17120      ),
17121      'bodega' =>
17122      array (
17123        'bodega_id' =>
17124        array (
17125          'es' => 'catalog',
17126          'formato' => 'link_one_select',
17127          'to_table' => 'bodega',
17128          'to_field' => 'bodega_id',
17129          'this_table' => 'nota_bodega_autorizacion',
17130          'this_field' => 'bodega_id',
17131        ),
17132      ),
17133      'producto_general' =>
17134      array (
17135        'producto_general_id' =>
17136        array (
17137          'es' => 'catalog',
17138          'formato' => 'link_one_select',
17139          'to_table' => 'producto_general',
17140          'to_field' => 'producto_general_id',
17141          'this_table' => 'nota_bodega_autorizacion',
17142          'this_field' => 'producto_general_id',
17143        ),
17144      ),
17145      'nota' =>
17146      array (
17147        'contra_nota_bodega_id' =>
17148        array (
17149          'es' => 'catalog',
17150          'formato' => 'link_one_select',
17151          'to_table' => 'nota',
17152          'to_field' => 'nota_id',
17153          'this_table' => 'nota_bodega_autorizacion',
17154          'this_field' => 'contra_nota_bodega_id',
17155        ),
17156        'lock_por_tiempo_nota_ajuste_nota_id' =>
17157        array (
17158          'es' => 'catalog',
17159          'formato' => 'link_one_select',
17160          'to_table' => 'nota',
17161          'to_field' => 'nota_id',
17162          'this_table' => 'nota_bodega_autorizacion',
17163          'this_field' => 'lock_por_tiempo_nota_ajuste_nota_id',
17164        ),
17165        'lock_por_nota_posterior_ajuste_id' =>
17166        array (
17167          'es' => 'catalog',
17168          'formato' => 'link_one_select',
17169          'to_table' => 'nota',
17170          'to_field' => 'nota_id',
17171          'this_table' => 'nota_bodega_autorizacion',
17172          'this_field' => 'lock_por_nota_posterior_ajuste_id',
17173        ),
17174      ),
17175      'solicitud_carta_porte' =>
17176      array (
17177        'solicitud_carta_porte_id' =>
17178        array (
17179          'es' => 'catalog',
17180          'formato' => 'link_one_select',
17181          'to_table' => 'solicitud_carta_porte',
17182          'to_field' => 'solicitud_carta_porte_id',
17183          'this_table' => 'nota_bodega_autorizacion',
17184          'this_field' => 'solicitud_carta_porte_id',
17185        ),
17186      ),
17187      'cp_figuratransporte' =>
17188      array (
17189        'cp_figuratransporte_id' =>
17190        array (
17191          'es' => 'catalog',
17192          'formato' => 'link_one_select',
17193          'to_table' => 'cp_figuratransporte',
17194          'to_field' => 'figuratransporte_id',
17195          'this_table' => 'nota_bodega_autorizacion',
17196          'this_field' => 'cp_figuratransporte_id',
17197        ),
17198      ),
17199      'cp_autotransporte' =>
17200      array (
17201        'cp_autotransporte_id' =>
17202        array (
17203          'es' => 'catalog',
17204          'formato' => 'link_one_select',
17205          'to_table' => 'cp_autotransporte',
17206          'to_field' => 'autotransporte_id',
17207          'this_table' => 'nota_bodega_autorizacion',
17208          'this_field' => 'cp_autotransporte_id',
17209        ),
17210      ),
17211      'cp_cliente' =>
17212      array (
17213        'cp_cliente_id' =>
17214        array (
17215          'es' => 'catalog',
17216          'formato' => 'link_one_select',
17217          'to_table' => 'cp_cliente',
17218          'to_field' => 'cp_cliente_id',
17219          'this_table' => 'nota_bodega_autorizacion',
17220          'this_field' => 'cp_cliente_id',
17221        ),
17222      ),
17223      'cliente' =>
17224      array (
17225        'cliente_id' =>
17226        array (
17227          'es' => 'catalog',
17228          'formato' => 'link_one_select',
17229          'to_table' => 'cliente',
17230          'to_field' => 'cliente_id',
17231          'this_table' => 'nota_bodega_autorizacion',
17232          'this_field' => 'cliente_id',
17233        ),
17234        'cliente_actual_id' =>
17235        array (
17236          'es' => 'catalog',
17237          'formato' => 'link_one_select',
17238          'to_table' => 'cliente',
17239          'to_field' => 'cliente_id',
17240          'this_table' => 'nota_bodega_autorizacion',
17241          'this_field' => 'cliente_actual_id',
17242        ),
17243      ),
17244      'pagare' =>
17245      array (
17246        'pagare_id' =>
17247        array (
17248          'es' => 'catalog',
17249          'formato' => 'link_one_select',
17250          'to_table' => 'pagare',
17251          'to_field' => 'pagare_id',
17252          'this_table' => 'nota_bodega_autorizacion',
17253          'this_field' => 'pagare_id',
17254        ),
17255      ),
17256    ),
17257    'links_from' =>
17258    array (
17259      'nota_bodega_autorizacion2' =>
17260      array (
17261        'nota_bodega_autorizacion_id' =>
17262        array (
17263          'es' => 'catalog_entry',
17264          'formato' => 'link_one_select',
17265          'to_table' => 'nota_bodega_autorizacion2',
17266          'to_field' => 'nota_bodega_autorizacion_id',
17267          'this_table' => 'nota_bodega_autorizacion',
17268          'this_field' => '?',
17269          'restrict_delete' => false,
17270          'delete_with_parent' => true,
17271          'on_delete_set_to' => 0,
17272        ),
17273      ),
17274    ),
17275  ),
17276  'nota_bodega_autorizacion2' =>
17277  array (
17278    'es' => 'data',
17279    'label_field' => 'nota_bodega_autorizacion_id',
17280    'has_seq' => false,
17281    'has_child' => false,
17282    'has_datetime' => true,
17283    'links_to' =>
17284    array (
17285      'nota_bodega_autorizacion' =>
17286      array (
17287        'nota_bodega_autorizacion_id' =>
17288        array (
17289          'es' => 'catalog',
17290          'formato' => 'link_one_select',
17291          'to_table' => 'nota_bodega_autorizacion',
17292          'to_field' => '?',
17293          'this_table' => 'nota_bodega_autorizacion2',
17294          'this_field' => 'nota_bodega_autorizacion_id',
17295        ),
17296      ),
17297      'nota_bodega' =>
17298      array (
17299        'nota_bodega_id' =>
17300        array (
17301          'es' => 'catalog',
17302          'formato' => 'link_one_select',
17303          'to_table' => 'nota_bodega',
17304          'to_field' => '?',
17305          'this_table' => 'nota_bodega_autorizacion2',
17306          'this_field' => 'nota_bodega_id',
17307        ),
17308      ),
17309    ),
17310  ),
17311  'nota_bodega_contra_nota_bodega' =>
17312  array (
17313    'es' => 'data',
17314    'pk_single_field' => 'nota_bodega_contra_nota_bodega_id',
17315    'pk_single_type' => 'auto_increment',
17316    'label_field' => 'nota_bodega_id',
17317    'has_seq' => false,
17318    'has_child' => false,
17319    'UNI' =>
17320    array (
17321      'nota_bodega_contra_nota_bodega' =>
17322      array (
17323        1 => 'nota_bodega_id',
17324        2 => 'contra_nota_bodega_id',
17325      ),
17326    ),
17327    'links_to' =>
17328    array (
17329      'nota_bodega' =>
17330      array (
17331        'nota_bodega_id' =>
17332        array (
17333          'es' => 'catalog',
17334          'formato' => 'link_one_select',
17335          'to_table' => 'nota_bodega',
17336          'to_field' => '?',
17337          'this_table' => 'nota_bodega_contra_nota_bodega',
17338          'this_field' => 'nota_bodega_id',
17339        ),
17340      ),
17341      'nota' =>
17342      array (
17343        'contra_nota_bodega_id' =>
17344        array (
17345          'es' => 'catalog',
17346          'formato' => 'link_one_select',
17347          'to_table' => 'nota',
17348          'to_field' => 'nota_id',
17349          'this_table' => 'nota_bodega_contra_nota_bodega',
17350          'this_field' => 'contra_nota_bodega_id',
17351        ),
17352      ),
17353    ),
17354  ),
17355  'nota_bodega_hist' =>
17356  array (
17357    'es' => 'data',
17358    'pk_single_field' => 'history_id',
17359    'pk_single_type' => 'auto_increment',
17360    'label_field' => 'action',
17361    'has_seq' => false,
17362    'has_child' => false,
17363    'has_datetime' => true,
17364    'links_from' =>
17365    array (
17366      'ajuste_hist' =>
17367      array (
17368        'es' => 'one2one',
17369      ),
17370      'bodega_hist' =>
17371      array (
17372        'es' => 'one2one',
17373      ),
17374      'cheque_hist' =>
17375      array (
17376        'es' => 'one2one',
17377      ),
17378      'cliente_hist' =>
17379      array (
17380        'es' => 'one2one',
17381      ),
17382      'color_hist' =>
17383      array (
17384        'es' => 'one2one',
17385      ),
17386      'estado_bodega_hist' =>
17387      array (
17388        'es' => 'one2one',
17389      ),
17390      'importador_hist' =>
17391      array (
17392        'es' => 'one2one',
17393      ),
17394      'nota_bodega_verificacion_hist' =>
17395      array (
17396        'es' => 'one2one',
17397      ),
17398      'origen_bodega_bodega_hist' =>
17399      array (
17400        'es' => 'one2one',
17401      ),
17402      'origen_bodega_hist' =>
17403      array (
17404        'es' => 'one2one',
17405      ),
17406      'pagare_hist' =>
17407      array (
17408        'es' => 'one2one',
17409      ),
17410      'pedido_hist' =>
17411      array (
17412        'es' => 'one2one',
17413      ),
17414      'permiso_bodega_hist' =>
17415      array (
17416        'es' => 'one2one',
17417      ),
17418      'producto_bodega_hist' =>
17419      array (
17420        'es' => 'one2one',
17421      ),
17422      'producto_color_hist' =>
17423      array (
17424        'es' => 'one2one',
17425      ),
17426      'producto_general_hist' =>
17427      array (
17428        'es' => 'one2one',
17429      ),
17430      'solicitud_carta_porte_hist' =>
17431      array (
17432        'es' => 'one2one',
17433      ),
17434      'tienda_hist' =>
17435      array (
17436        'es' => 'one2one',
17437      ),
17438      'vale_hist' =>
17439      array (
17440        'es' => 'one2one',
17441      ),
17442    ),
17443  ),
17444  'nota_bodega_items' =>
17445  array (
17446    'es' => 'child',
17447    'pk_single_field' => 'nota_bodega_item_id',
17448    'pk_single_type' => 'uuid',
17449    'label_field' => 'nota_bodega_id',
17450    'has_seq' => false,
17451    'has_child' => false,
17452    'has_numeric' => true,
17453    'links_to' =>
17454    array (
17455      'nota_bodega' =>
17456      array (
17457        'nota_bodega_id' =>
17458        array (
17459          'es' => 'catalog',
17460          'formato' => 'link_one_select',
17461          'to_table' => 'nota_bodega',
17462          'to_field' => '?',
17463          'this_table' => 'nota_bodega_items',
17464          'this_field' => 'nota_bodega_id',
17465        ),
17466      ),
17467      'producto_bodega' =>
17468      array (
17469        'producto_bodega_id' =>
17470        array (
17471          'es' => 'catalog',
17472          'formato' => 'link_one_select',
17473          'to_table' => 'producto_bodega',
17474          'to_field' => '?',
17475          'this_table' => 'nota_bodega_items',
17476          'this_field' => 'producto_bodega_id',
17477        ),
17478      ),
17479      'bodega' =>
17480      array (
17481        'bodega_id' =>
17482        array (
17483          'es' => 'catalog',
17484          'formato' => 'link_one_select',
17485          'to_table' => 'bodega',
17486          'to_field' => 'bodega_id',
17487          'this_table' => 'nota_bodega_items',
17488          'this_field' => 'bodega_id',
17489        ),
17490      ),
17491      'color' =>
17492      array (
17493        'color_id' =>
17494        array (
17495          'es' => 'catalog',
17496          'formato' => 'link_one_select',
17497          'to_table' => 'color',
17498          'to_field' => 'color_id',
17499          'this_table' => 'nota_bodega_items',
17500          'this_field' => 'color_id',
17501        ),
17502      ),
17503    ),
17504    'links_from' =>
17505    array (
17506      'nota_bodega_items_log' =>
17507      array (
17508        'es' => 'one2one',
17509      ),
17510    ),
17511  ),
17512  'nota_bodega_items_log' =>
17513  array (
17514    'es' => 'child',
17515    'pk_single_field' => 'nota_bodega_item_id',
17516    'pk_single_type' => 'uuid',
17517    'label_field' => 'nota_bodega_id',
17518    'has_seq' => false,
17519    'has_child' => false,
17520    'has_numeric' => true,
17521    'has_datetime' => true,
17522    'links_to' =>
17523    array (
17524      'nota_bodega' =>
17525      array (
17526        'nota_bodega_id' =>
17527        array (
17528          'es' => 'catalog',
17529          'formato' => 'link_one_select',
17530          'to_table' => 'nota_bodega',
17531          'to_field' => '?',
17532          'this_table' => 'nota_bodega_items_log',
17533          'this_field' => 'nota_bodega_id',
17534        ),
17535      ),
17536      'producto_bodega' =>
17537      array (
17538        'producto_bodega_id' =>
17539        array (
17540          'es' => 'catalog',
17541          'formato' => 'link_one_select',
17542          'to_table' => 'producto_bodega',
17543          'to_field' => '?',
17544          'this_table' => 'nota_bodega_items_log',
17545          'this_field' => 'producto_bodega_id',
17546        ),
17547      ),
17548      'bodega' =>
17549      array (
17550        'bodega_id' =>
17551        array (
17552          'es' => 'catalog',
17553          'formato' => 'link_one_select',
17554          'to_table' => 'bodega',
17555          'to_field' => 'bodega_id',
17556          'this_table' => 'nota_bodega_items_log',
17557          'this_field' => 'bodega_id',
17558        ),
17559      ),
17560      'color' =>
17561      array (
17562        'color_id' =>
17563        array (
17564          'es' => 'catalog',
17565          'formato' => 'link_one_select',
17566          'to_table' => 'color',
17567          'to_field' => 'color_id',
17568          'this_table' => 'nota_bodega_items_log',
17569          'this_field' => 'color_id',
17570        ),
17571      ),
17572    ),
17573    'links_from' =>
17574    array (
17575      'nota_bodega_items' =>
17576      array (
17577        'es' => 'one2one',
17578      ),
17579    ),
17580  ),
17581  'nota_bodega_log' =>
17582  array (
17583    'es' => 'child',
17584    'pk_single_field' => 'nota_bodega_id',
17585    'pk_single_type' => 'uuid',
17586    'label_field' => 'numero',
17587    'has_seq' => false,
17588    'has_child' => false,
17589    'has_date' => true,
17590    'has_numeric' => true,
17591    'has_fckeditor' => true,
17592    'has_datetime' => true,
17593    'has_file_upload' => true,
17594    'links_to' =>
17595    array (
17596      'bodega' =>
17597      array (
17598        'bodega_id' =>
17599        array (
17600          'es' => 'catalog',
17601          'formato' => 'link_one_select',
17602          'to_table' => 'bodega',
17603          'to_field' => 'bodega_id',
17604          'this_table' => 'nota_bodega_log',
17605          'this_field' => 'bodega_id',
17606        ),
17607      ),
17608      'producto_general' =>
17609      array (
17610        'producto_general_id' =>
17611        array (
17612          'es' => 'catalog',
17613          'formato' => 'link_one_select',
17614          'to_table' => 'producto_general',
17615          'to_field' => 'producto_general_id',
17616          'this_table' => 'nota_bodega_log',
17617          'this_field' => 'producto_general_id',
17618        ),
17619      ),
17620      'nota' =>
17621      array (
17622        'contra_nota_bodega_id' =>
17623        array (
17624          'es' => 'catalog',
17625          'formato' => 'link_one_select',
17626          'to_table' => 'nota',
17627          'to_field' => 'nota_id',
17628          'this_table' => 'nota_bodega_log',
17629          'this_field' => 'contra_nota_bodega_id',
17630        ),
17631        'lock_por_tiempo_nota_ajuste_nota_id' =>
17632        array (
17633          'es' => 'catalog',
17634          'formato' => 'link_one_select',
17635          'to_table' => 'nota',
17636          'to_field' => 'nota_id',
17637          'this_table' => 'nota_bodega_log',
17638          'this_field' => 'lock_por_tiempo_nota_ajuste_nota_id',
17639        ),
17640        'lock_por_nota_posterior_ajuste_id' =>
17641        array (
17642          'es' => 'catalog',
17643          'formato' => 'link_one_select',
17644          'to_table' => 'nota',
17645          'to_field' => 'nota_id',
17646          'this_table' => 'nota_bodega_log',
17647          'this_field' => 'lock_por_nota_posterior_ajuste_id',
17648        ),
17649      ),
17650      'solicitud_carta_porte' =>
17651      array (
17652        'solicitud_carta_porte_id' =>
17653        array (
17654          'es' => 'catalog',
17655          'formato' => 'link_one_select',
17656          'to_table' => 'solicitud_carta_porte',
17657          'to_field' => 'solicitud_carta_porte_id',
17658          'this_table' => 'nota_bodega_log',
17659          'this_field' => 'solicitud_carta_porte_id',
17660        ),
17661      ),
17662      'cp_figuratransporte' =>
17663      array (
17664        'cp_figuratransporte_id' =>
17665        array (
17666          'es' => 'catalog',
17667          'formato' => 'link_one_select',
17668          'to_table' => 'cp_figuratransporte',
17669          'to_field' => 'figuratransporte_id',
17670          'this_table' => 'nota_bodega_log',
17671          'this_field' => 'cp_figuratransporte_id',
17672        ),
17673      ),
17674      'cp_autotransporte' =>
17675      array (
17676        'cp_autotransporte_id' =>
17677        array (
17678          'es' => 'catalog',
17679          'formato' => 'link_one_select',
17680          'to_table' => 'cp_autotransporte',
17681          'to_field' => 'autotransporte_id',
17682          'this_table' => 'nota_bodega_log',
17683          'this_field' => 'cp_autotransporte_id',
17684        ),
17685      ),
17686      'cp_cliente' =>
17687      array (
17688        'cp_cliente_id' =>
17689        array (
17690          'es' => 'catalog',
17691          'formato' => 'link_one_select',
17692          'to_table' => 'cp_cliente',
17693          'to_field' => 'cp_cliente_id',
17694          'this_table' => 'nota_bodega_log',
17695          'this_field' => 'cp_cliente_id',
17696        ),
17697      ),
17698      'cliente' =>
17699      array (
17700        'cliente_id' =>
17701        array (
17702          'es' => 'catalog',
17703          'formato' => 'link_one_select',
17704          'to_table' => 'cliente',
17705          'to_field' => 'cliente_id',
17706          'this_table' => 'nota_bodega_log',
17707          'this_field' => 'cliente_id',
17708        ),
17709        'cliente_actual_id' =>
17710        array (
17711          'es' => 'catalog',
17712          'formato' => 'link_one_select',
17713          'to_table' => 'cliente',
17714          'to_field' => 'cliente_id',
17715          'this_table' => 'nota_bodega_log',
17716          'this_field' => 'cliente_actual_id',
17717        ),
17718      ),
17719      'pagare' =>
17720      array (
17721        'pagare_id' =>
17722        array (
17723          'es' => 'catalog',
17724          'formato' => 'link_one_select',
17725          'to_table' => 'pagare',
17726          'to_field' => 'pagare_id',
17727          'this_table' => 'nota_bodega_log',
17728          'this_field' => 'pagare_id',
17729        ),
17730      ),
17731    ),
17732  ),
17733  'nota_bodega_verificacion' =>
17734  array (
17735    'es' => 'child',
17736    'PK' =>
17737    array (
17738      0 => 'nota_bodega_verificacion_id',
17739      1 => 'fecha',
17740    ),
17741    'label_field' => 'nota_bodega_id',
17742    'has_seq' => false,
17743    'has_child' => true,
17744    'has_date' => true,
17745    'has_fckeditor' => true,
17746    'has_datetime' => true,
17747    'links_to' =>
17748    array (
17749      'nota_bodega' =>
17750      array (
17751        'nota_bodega_id' =>
17752        array (
17753          'es' => 'catalog',
17754          'formato' => 'link_one_select',
17755          'to_table' => 'nota_bodega',
17756          'to_field' => '?',
17757          'this_table' => 'nota_bodega_verificacion',
17758          'this_field' => 'nota_bodega_id',
17759        ),
17760      ),
17761      'bodega' =>
17762      array (
17763        'bodega_id' =>
17764        array (
17765          'es' => 'catalog',
17766          'formato' => 'link_one_select',
17767          'to_table' => 'bodega',
17768          'to_field' => 'bodega_id',
17769          'this_table' => 'nota_bodega_verificacion',
17770          'this_field' => 'bodega_id',
17771        ),
17772      ),
17773      'bodega_verificador' =>
17774      array (
17775        'bodega_verificador_id' =>
17776        array (
17777          'es' => 'catalog',
17778          'formato' => 'link_one_select',
17779          'to_table' => 'bodega_verificador',
17780          'to_field' => 'bodega_verificador_id',
17781          'this_table' => 'nota_bodega_verificacion',
17782          'this_field' => 'bodega_verificador_id',
17783        ),
17784      ),
17785      'producto_general' =>
17786      array (
17787        'producto_general_id' =>
17788        array (
17789          'es' => 'catalog',
17790          'formato' => 'link_one_select',
17791          'to_table' => 'producto_general',
17792          'to_field' => 'producto_general_id',
17793          'this_table' => 'nota_bodega_verificacion',
17794          'this_field' => 'producto_general_id',
17795        ),
17796      ),
17797      'nota' =>
17798      array (
17799        'contra_nota_bodega_id' =>
17800        array (
17801          'es' => 'catalog',
17802          'formato' => 'link_one_select',
17803          'to_table' => 'nota',
17804          'to_field' => 'nota_id',
17805          'this_table' => 'nota_bodega_verificacion',
17806          'this_field' => 'contra_nota_bodega_id',
17807        ),
17808        'lock_por_tiempo_nota_ajuste_nota_id' =>
17809        array (
17810          'es' => 'catalog',
17811          'formato' => 'link_one_select',
17812          'to_table' => 'nota',
17813          'to_field' => 'nota_id',
17814          'this_table' => 'nota_bodega_verificacion',
17815          'this_field' => 'lock_por_tiempo_nota_ajuste_nota_id',
17816        ),
17817      ),
17818      'cp_figuratransporte' =>
17819      array (
17820        'cp_figuratransporte_id' =>
17821        array (
17822          'es' => 'catalog',
17823          'formato' => 'link_one_select',
17824          'to_table' => 'cp_figuratransporte',
17825          'to_field' => 'figuratransporte_id',
17826          'this_table' => 'nota_bodega_verificacion',
17827          'this_field' => 'cp_figuratransporte_id',
17828        ),
17829      ),
17830      'cp_autotransporte' =>
17831      array (
17832        'cp_autotransporte_id' =>
17833        array (
17834          'es' => 'catalog',
17835          'formato' => 'link_one_select',
17836          'to_table' => 'cp_autotransporte',
17837          'to_field' => 'autotransporte_id',
17838          'this_table' => 'nota_bodega_verificacion',
17839          'this_field' => 'cp_autotransporte_id',
17840        ),
17841      ),
17842      'cp_cliente' =>
17843      array (
17844        'cp_cliente_id' =>
17845        array (
17846          'es' => 'catalog',
17847          'formato' => 'link_one_select',
17848          'to_table' => 'cp_cliente',
17849          'to_field' => 'cp_cliente_id',
17850          'this_table' => 'nota_bodega_verificacion',
17851          'this_field' => 'cp_cliente_id',
17852        ),
17853      ),
17854      'cliente' =>
17855      array (
17856        'cliente_id' =>
17857        array (
17858          'es' => 'catalog',
17859          'formato' => 'link_one_select',
17860          'to_table' => 'cliente',
17861          'to_field' => 'cliente_id',
17862          'this_table' => 'nota_bodega_verificacion',
17863          'this_field' => 'cliente_id',
17864        ),
17865        'cliente_actual_id' =>
17866        array (
17867          'es' => 'catalog',
17868          'formato' => 'link_one_select',
17869          'to_table' => 'cliente',
17870          'to_field' => 'cliente_id',
17871          'this_table' => 'nota_bodega_verificacion',
17872          'this_field' => 'cliente_actual_id',
17873        ),
17874      ),
17875      'iac_usr' =>
17876      array (
17877        'iac_usr_id' =>
17878        array (
17879          'es' => 'catalog',
17880          'formato' => 'link_one_select',
17881          'to_table' => 'iac_usr',
17882          'to_field' => 'iac_usr_id',
17883          'this_table' => 'nota_bodega_verificacion',
17884          'this_field' => 'iac_usr_id',
17885        ),
17886      ),
17887      'pagare' =>
17888      array (
17889        'pagare_id' =>
17890        array (
17891          'es' => 'catalog',
17892          'formato' => 'link_one_select',
17893          'to_table' => 'pagare',
17894          'to_field' => 'pagare_id',
17895          'this_table' => 'nota_bodega_verificacion',
17896          'this_field' => 'pagare_id',
17897        ),
17898      ),
17899    ),
17900    'links_from' =>
17901    array (
17902      'nota_bodega_verificacion_items' =>
17903      array (
17904        'nota_bodega_verificacion_id' =>
17905        array (
17906          'es' => 'catalog_entry',
17907          'formato' => 'link_one_select',
17908          'to_table' => 'nota_bodega_verificacion_items',
17909          'to_field' => 'nota_bodega_verificacion_id',
17910          'this_table' => 'nota_bodega_verificacion',
17911          'this_field' => '?',
17912          'restrict_delete' => false,
17913          'delete_with_parent' => true,
17914          'on_delete_set_to' => 0,
17915        ),
17916      ),
17917    ),
17918  ),
17919  'nota_bodega_verificacion_hist' =>
17920  array (
17921    'es' => 'data',
17922    'pk_single_field' => 'history_id',
17923    'pk_single_type' => 'auto_increment',
17924    'label_field' => 'action',
17925    'has_seq' => false,
17926    'has_child' => false,
17927    'has_datetime' => true,
17928    'links_from' =>
17929    array (
17930      'ajuste_hist' =>
17931      array (
17932        'es' => 'one2one',
17933      ),
17934      'bodega_hist' =>
17935      array (
17936        'es' => 'one2one',
17937      ),
17938      'cheque_hist' =>
17939      array (
17940        'es' => 'one2one',
17941      ),
17942      'cliente_hist' =>
17943      array (
17944        'es' => 'one2one',
17945      ),
17946      'color_hist' =>
17947      array (
17948        'es' => 'one2one',
17949      ),
17950      'estado_bodega_hist' =>
17951      array (
17952        'es' => 'one2one',
17953      ),
17954      'importador_hist' =>
17955      array (
17956        'es' => 'one2one',
17957      ),
17958      'nota_bodega_hist' =>
17959      array (
17960        'es' => 'one2one',
17961      ),
17962      'origen_bodega_bodega_hist' =>
17963      array (
17964        'es' => 'one2one',
17965      ),
17966      'origen_bodega_hist' =>
17967      array (
17968        'es' => 'one2one',
17969      ),
17970      'pagare_hist' =>
17971      array (
17972        'es' => 'one2one',
17973      ),
17974      'pedido_hist' =>
17975      array (
17976        'es' => 'one2one',
17977      ),
17978      'permiso_bodega_hist' =>
17979      array (
17980        'es' => 'one2one',
17981      ),
17982      'producto_bodega_hist' =>
17983      array (
17984        'es' => 'one2one',
17985      ),
17986      'producto_color_hist' =>
17987      array (
17988        'es' => 'one2one',
17989      ),
17990      'producto_general_hist' =>
17991      array (
17992        'es' => 'one2one',
17993      ),
17994      'solicitud_carta_porte_hist' =>
17995      array (
17996        'es' => 'one2one',
17997      ),
17998      'tienda_hist' =>
17999      array (
18000        'es' => 'one2one',
18001      ),
18002      'vale_hist' =>
18003      array (
18004        'es' => 'one2one',
18005      ),
18006    ),
18007  ),
18008  'nota_bodega_verificacion_items' =>
18009  array (
18010    'es' => 'child',
18011    'pk_single_field' => 'nota_bodega_verificacion_item_id',
18012    'pk_single_type' => 'uuid',
18013    'label_field' => 'nota_bodega_verificacion_id',
18014    'has_seq' => false,
18015    'has_child' => false,
18016    'has_numeric' => true,
18017    'links_to' =>
18018    array (
18019      'nota_bodega_verificacion' =>
18020      array (
18021        'nota_bodega_verificacion_id' =>
18022        array (
18023          'es' => 'catalog',
18024          'formato' => 'link_one_select',
18025          'to_table' => 'nota_bodega_verificacion',
18026          'to_field' => '?',
18027          'this_table' => 'nota_bodega_verificacion_items',
18028          'this_field' => 'nota_bodega_verificacion_id',
18029        ),
18030      ),
18031      'producto_bodega_verificacion' =>
18032      array (
18033        'producto_bodega_verificacion_id' =>
18034        array (
18035          'es' => 'catalog',
18036          'formato' => 'link_one_select',
18037          'to_table' => 'producto_bodega_verificacion',
18038          'to_field' => '?',
18039          'this_table' => 'nota_bodega_verificacion_items',
18040          'this_field' => 'producto_bodega_verificacion_id',
18041        ),
18042      ),
18043      'bodega' =>
18044      array (
18045        'bodega_id' =>
18046        array (
18047          'es' => 'catalog',
18048          'formato' => 'link_one_select',
18049          'to_table' => 'bodega',
18050          'to_field' => 'bodega_id',
18051          'this_table' => 'nota_bodega_verificacion_items',
18052          'this_field' => 'bodega_id',
18053        ),
18054      ),
18055      'bodega_grupo_verificador' =>
18056      array (
18057        'bodega_grupo_verificador_id' =>
18058        array (
18059          'es' => 'catalog',
18060          'formato' => 'link_one_select',
18061          'to_table' => 'bodega_grupo_verificador',
18062          'to_field' => 'bodega_grupo_verificador_id',
18063          'this_table' => 'nota_bodega_verificacion_items',
18064          'this_field' => 'bodega_grupo_verificador_id',
18065        ),
18066      ),
18067      'producto_general' =>
18068      array (
18069        'producto_general_id' =>
18070        array (
18071          'es' => 'catalog',
18072          'formato' => 'link_one_select',
18073          'to_table' => 'producto_general',
18074          'to_field' => 'producto_general_id',
18075          'this_table' => 'nota_bodega_verificacion_items',
18076          'this_field' => 'producto_general_id',
18077        ),
18078      ),
18079      'color' =>
18080      array (
18081        'color_id' =>
18082        array (
18083          'es' => 'catalog',
18084          'formato' => 'link_one_select',
18085          'to_table' => 'color',
18086          'to_field' => 'color_id',
18087          'this_table' => 'nota_bodega_verificacion_items',
18088          'this_field' => 'color_id',
18089        ),
18090      ),
18091    ),
18092  ),
18093  'nota_items' =>
18094  array (
18095    'es' => 'child',
18096    'pk_single_field' => 'nota_items_id',
18097    'pk_single_type' => 'uuid',
18098    'label_field' => 'nota_id',
18099    'has_seq' => false,
18100    'has_child' => false,
18101    'has_numeric' => true,
18102    'links_to' =>
18103    array (
18104      'nota' =>
18105      array (
18106        'nota_id' =>
18107        array (
18108          'es' => 'catalog',
18109          'formato' => 'link_one_select',
18110          'to_table' => 'nota',
18111          'to_field' => 'nota_id',
18112          'this_table' => 'nota_items',
18113          'this_field' => 'nota_id',
18114        ),
18115      ),
18116    ),
18117  ),
18118  'nota_pago' =>
18119  array (
18120    'es' => 'child',
18121    'pk_single_field' => 'nota_pago_id',
18122    'pk_single_type' => 'uuid',
18123    'label_field' => 'nota_id',
18124    'has_seq' => false,
18125    'has_child' => false,
18126    'has_date' => true,
18127    'has_numeric' => true,
18128    'links_to' =>
18129    array (
18130      'nota' =>
18131      array (
18132        'nota_id' =>
18133        array (
18134          'es' => 'catalog',
18135          'formato' => 'link_one_select',
18136          'to_table' => 'nota',
18137          'to_field' => 'nota_id',
18138          'this_table' => 'nota_pago',
18139          'this_field' => 'nota_id',
18140        ),
18141      ),
18142      'moneda' =>
18143      array (
18144        'moneda_id' =>
18145        array (
18146          'es' => 'catalog',
18147          'formato' => 'link_one_select',
18148          'to_table' => 'moneda',
18149          'to_field' => 'moneda_id',
18150          'this_table' => 'nota_pago',
18151          'this_field' => 'moneda_id',
18152        ),
18153      ),
18154      'metodo_pago' =>
18155      array (
18156        'metodo_pago_id' =>
18157        array (
18158          'es' => 'catalog',
18159          'formato' => 'link_one_select',
18160          'to_table' => 'metodo_pago',
18161          'to_field' => 'metodo_pago_id',
18162          'this_table' => 'nota_pago',
18163          'this_field' => 'metodo_pago_id',
18164        ),
18165      ),
18166      'banco_cuenta' =>
18167      array (
18168        'banco_cuenta_id' =>
18169        array (
18170          'es' => 'catalog',
18171          'formato' => 'link_one_select',
18172          'to_table' => 'banco_cuenta',
18173          'to_field' => 'banco_cuenta_id',
18174          'this_table' => 'nota_pago',
18175          'this_field' => 'banco_cuenta_id',
18176        ),
18177      ),
18178      'banco_cuenta_mov_link' =>
18179      array (
18180        'banco_cuenta_mov_link_id' =>
18181        array (
18182          'es' => 'catalog',
18183          'formato' => 'link_one_select',
18184          'to_table' => 'banco_cuenta_mov_link',
18185          'to_field' => 'banco_cuenta_mov_link_id',
18186          'this_table' => 'nota_pago',
18187          'this_field' => 'banco_cuenta_mov_link_id',
18188        ),
18189      ),
18190      'cuentat_mov' =>
18191      array (
18192        'cuenta_t_mov_id' =>
18193        array (
18194          'es' => 'catalog',
18195          'formato' => 'link_one_select',
18196          'to_table' => 'cuentat_mov',
18197          'to_field' => 'cuentaT_mov_id',
18198          'this_table' => 'nota_pago',
18199          'this_field' => 'cuenta_t_mov_id',
18200        ),
18201      ),
18202    ),
18203  ),
18204  'origen_bodega' =>
18205  array (
18206    'es' => 'parent',
18207    'pk_single_field' => 'origen_bodega_id',
18208    'pk_single_type' => 'uuid',
18209    'label_field' => 'clave',
18210    'orden' => true,
18211    'has_seq' => false,
18212    'has_child' => true,
18213    'UNI' =>
18214    array (
18215      0 => 'tienda_id',
18216      1 => 'bodega_id',
18217      2 => 'cliente_id',
18218      3 => 'importacion_id',
18219    ),
18220    'links_to' =>
18221    array (
18222      'tienda' =>
18223      array (
18224        'tienda_id' =>
18225        array (
18226          'es' => 'catalog',
18227          'formato' => 'link_one_select',
18228          'to_table' => 'tienda',
18229          'to_field' => 'tienda_id',
18230          'this_table' => 'origen_bodega',
18231          'this_field' => 'tienda_id',
18232        ),
18233      ),
18234      'bodega' =>
18235      array (
18236        'bodega_id' =>
18237        array (
18238          'es' => 'catalog',
18239          'formato' => 'link_one_select',
18240          'to_table' => 'bodega',
18241          'to_field' => 'bodega_id',
18242          'this_table' => 'origen_bodega',
18243          'this_field' => 'bodega_id',
18244        ),
18245      ),
18246      'cliente' =>
18247      array (
18248        'cliente_id' =>
18249        array (
18250          'es' => 'catalog',
18251          'formato' => 'link_one_select',
18252          'to_table' => 'cliente',
18253          'to_field' => 'cliente_id',
18254          'this_table' => 'origen_bodega',
18255          'this_field' => 'cliente_id',
18256        ),
18257      ),
18258      'empresa' =>
18259      array (
18260        'empresa_id' =>
18261        array (
18262          'es' => 'catalog',
18263          'formato' => 'link_one_select',
18264          'to_table' => 'empresa',
18265          'to_field' => 'empresa_id',
18266          'this_table' => 'origen_bodega',
18267          'this_field' => 'empresa_id',
18268        ),
18269      ),
18270      'cp_cliente_direccion' =>
18271      array (
18272        'cp_cliente_direccion_id' =>
18273        array (
18274          'es' => 'catalog',
18275          'formato' => 'link_one_select',
18276          'to_table' => 'cp_cliente_direccion',
18277          'to_field' => 'cp_cliente_direccion_id',
18278          'this_table' => 'origen_bodega',
18279          'this_field' => 'cp_cliente_direccion_id',
18280        ),
18281      ),
18282    ),
18283    'links_from' =>
18284    array (
18285      'origen_bodega_ayudantes' =>
18286      array (
18287        'origen_bodega_id' =>
18288        array (
18289          'es' => 'catalog_entry',
18290          'formato' => 'link_one_select',
18291          'to_table' => 'origen_bodega_ayudantes',
18292          'to_field' => 'origen_bodega_id',
18293          'this_table' => 'origen_bodega',
18294          'this_field' => 'origen_bodega_id',
18295          'restrict_delete' => false,
18296          'delete_with_parent' => true,
18297          'on_delete_set_to' => 0,
18298        ),
18299      ),
18300      'origen_bodega_bodega' =>
18301      array (
18302        'origen_bodega_id' =>
18303        array (
18304          'es' => 'catalog_entry',
18305          'formato' => 'link_one_select',
18306          'to_table' => 'origen_bodega_bodega',
18307          'to_field' => 'origen_bodega_id',
18308          'this_table' => 'origen_bodega',
18309          'this_field' => 'origen_bodega_id',
18310          'restrict_delete' => false,
18311          'delete_with_parent' => true,
18312          'on_delete_set_to' => 0,
18313        ),
18314      ),
18315      'pedido' =>
18316      array (
18317        'origen_bodega_id' =>
18318        array (
18319          'es' => 'catalog_entry',
18320          'formato' => 'jqgrid',
18321          'to_table' => 'pedido',
18322          'to_field' => 'origen_bodega_id',
18323          'this_table' => 'origen_bodega',
18324          'this_field' => 'origen_bodega_id',
18325          'restrict_delete' => true,
18326          'delete_with_parent' => false,
18327          'on_delete_set_to' => 0,
18328        ),
18329      ),
18330      'permiso_bodega_consulta_salida_tienda' =>
18331      array (
18332        'origen_bodega_id' =>
18333        array (
18334          'es' => 'catalog_entry',
18335          'formato' => 'jqgrid',
18336          'to_table' => 'permiso_bodega_consulta_salida_tienda',
18337          'to_field' => 'origen_bodega_id',
18338          'this_table' => 'origen_bodega',
18339          'this_field' => 'origen_bodega_id',
18340          'restrict_delete' => true,
18341          'delete_with_parent' => false,
18342          'on_delete_set_to' => 0,
18343        ),
18344      ),
18345    ),
18346  ),
18347  'origen_bodega_ayudantes' =>
18348  array (
18349    'es' => 'data',
18350    'PK' =>
18351    array (
18352      0 => 'origen_bodega_id',
18353      1 => 'ayudante_id',
18354    ),
18355    'label_field' => 'activo',
18356    'has_seq' => false,
18357    'has_child' => false,
18358    'links_to' =>
18359    array (
18360      'origen_bodega' =>
18361      array (
18362        'origen_bodega_id' =>
18363        array (
18364          'es' => 'catalog',
18365          'formato' => 'link_one_select',
18366          'to_table' => 'origen_bodega',
18367          'to_field' => 'origen_bodega_id',
18368          'this_table' => 'origen_bodega_ayudantes',
18369          'this_field' => 'origen_bodega_id',
18370        ),
18371      ),
18372    ),
18373  ),
18374  'origen_bodega_bodega' =>
18375  array (
18376    'es' => 'child',
18377    'PK' =>
18378    array (
18379      0 => 'origen_bodega_id',
18380      1 => 'bodega_id',
18381    ),
18382    'label_field' => 'vale_bodega_entrada',
18383    'has_seq' => false,
18384    'has_child' => false,
18385    'links_to' =>
18386    array (
18387      'origen_bodega' =>
18388      array (
18389        'origen_bodega_id' =>
18390        array (
18391          'es' => 'catalog',
18392          'formato' => 'link_one_select',
18393          'to_table' => 'origen_bodega',
18394          'to_field' => 'origen_bodega_id',
18395          'this_table' => 'origen_bodega_bodega',
18396          'this_field' => 'origen_bodega_id',
18397        ),
18398      ),
18399      'bodega' =>
18400      array (
18401        'bodega_id' =>
18402        array (
18403          'es' => 'catalog',
18404          'formato' => 'link_one_select',
18405          'to_table' => 'bodega',
18406          'to_field' => 'bodega_id',
18407          'this_table' => 'origen_bodega_bodega',
18408          'this_field' => 'bodega_id',
18409        ),
18410      ),
18411    ),
18412  ),
18413  'origen_bodega_bodega_hist' =>
18414  array (
18415    'es' => 'data',
18416    'pk_single_field' => 'history_id',
18417    'pk_single_type' => 'auto_increment',
18418    'label_field' => 'action',
18419    'has_seq' => false,
18420    'has_child' => false,
18421    'has_datetime' => true,
18422    'links_from' =>
18423    array (
18424      'ajuste_hist' =>
18425      array (
18426        'es' => 'one2one',
18427      ),
18428      'bodega_hist' =>
18429      array (
18430        'es' => 'one2one',
18431      ),
18432      'cheque_hist' =>
18433      array (
18434        'es' => 'one2one',
18435      ),
18436      'cliente_hist' =>
18437      array (
18438        'es' => 'one2one',
18439      ),
18440      'color_hist' =>
18441      array (
18442        'es' => 'one2one',
18443      ),
18444      'estado_bodega_hist' =>
18445      array (
18446        'es' => 'one2one',
18447      ),
18448      'importador_hist' =>
18449      array (
18450        'es' => 'one2one',
18451      ),
18452      'nota_bodega_hist' =>
18453      array (
18454        'es' => 'one2one',
18455      ),
18456      'nota_bodega_verificacion_hist' =>
18457      array (
18458        'es' => 'one2one',
18459      ),
18460      'origen_bodega_hist' =>
18461      array (
18462        'es' => 'one2one',
18463      ),
18464      'pagare_hist' =>
18465      array (
18466        'es' => 'one2one',
18467      ),
18468      'pedido_hist' =>
18469      array (
18470        'es' => 'one2one',
18471      ),
18472      'permiso_bodega_hist' =>
18473      array (
18474        'es' => 'one2one',
18475      ),
18476      'producto_bodega_hist' =>
18477      array (
18478        'es' => 'one2one',
18479      ),
18480      'producto_color_hist' =>
18481      array (
18482        'es' => 'one2one',
18483      ),
18484      'producto_general_hist' =>
18485      array (
18486        'es' => 'one2one',
18487      ),
18488      'solicitud_carta_porte_hist' =>
18489      array (
18490        'es' => 'one2one',
18491      ),
18492      'tienda_hist' =>
18493      array (
18494        'es' => 'one2one',
18495      ),
18496      'vale_hist' =>
18497      array (
18498        'es' => 'one2one',
18499      ),
18500    ),
18501  ),
18502  'origen_bodega_hist' =>
18503  array (
18504    'es' => 'data',
18505    'pk_single_field' => 'history_id',
18506    'pk_single_type' => 'auto_increment',
18507    'label_field' => 'action',
18508    'has_seq' => false,
18509    'has_child' => false,
18510    'has_datetime' => true,
18511    'links_from' =>
18512    array (
18513      'ajuste_hist' =>
18514      array (
18515        'es' => 'one2one',
18516      ),
18517      'bodega_hist' =>
18518      array (
18519        'es' => 'one2one',
18520      ),
18521      'cheque_hist' =>
18522      array (
18523        'es' => 'one2one',
18524      ),
18525      'cliente_hist' =>
18526      array (
18527        'es' => 'one2one',
18528      ),
18529      'color_hist' =>
18530      array (
18531        'es' => 'one2one',
18532      ),
18533      'estado_bodega_hist' =>
18534      array (
18535        'es' => 'one2one',
18536      ),
18537      'importador_hist' =>
18538      array (
18539        'es' => 'one2one',
18540      ),
18541      'nota_bodega_hist' =>
18542      array (
18543        'es' => 'one2one',
18544      ),
18545      'nota_bodega_verificacion_hist' =>
18546      array (
18547        'es' => 'one2one',
18548      ),
18549      'origen_bodega_bodega_hist' =>
18550      array (
18551        'es' => 'one2one',
18552      ),
18553      'pagare_hist' =>
18554      array (
18555        'es' => 'one2one',
18556      ),
18557      'pedido_hist' =>
18558      array (
18559        'es' => 'one2one',
18560      ),
18561      'permiso_bodega_hist' =>
18562      array (
18563        'es' => 'one2one',
18564      ),
18565      'producto_bodega_hist' =>
18566      array (
18567        'es' => 'one2one',
18568      ),
18569      'producto_color_hist' =>
18570      array (
18571        'es' => 'one2one',
18572      ),
18573      'producto_general_hist' =>
18574      array (
18575        'es' => 'one2one',
18576      ),
18577      'solicitud_carta_porte_hist' =>
18578      array (
18579        'es' => 'one2one',
18580      ),
18581      'tienda_hist' =>
18582      array (
18583        'es' => 'one2one',
18584      ),
18585      'vale_hist' =>
18586      array (
18587        'es' => 'one2one',
18588      ),
18589    ),
18590  ),
18591  'pagare' =>
18592  array (
18593    'es' => 'parent',
18594    'pk_single_field' => 'pagare_id',
18595    'pk_single_type' => 'uuid',
18596    'label_field' => 'cliente_id',
18597    'has_seq' => false,
18598    'has_child' => true,
18599    'has_numeric' => true,
18600    'has_date' => true,
18601    'has_file_upload' => true,
18602    'has_datetime' => true,
18603    'has_fckeditor' => true,
18604    'links_from' =>
18605    array (
18606      'nota_bodega' =>
18607      array (
18608        'pagare_id' =>
18609        array (
18610          'es' => 'catalog_entry',
18611          'formato' => 'jqgrid',
18612          'to_table' => 'nota_bodega',
18613          'to_field' => 'pagare_id',
18614          'this_table' => 'pagare',
18615          'this_field' => 'pagare_id',
18616          'restrict_delete' => true,
18617          'delete_with_parent' => false,
18618          'on_delete_set_to' => 0,
18619        ),
18620      ),
18621      'nota_bodega_autorizacion' =>
18622      array (
18623        'pagare_id' =>
18624        array (
18625          'es' => 'catalog_entry',
18626          'formato' => 'jqgrid',
18627          'to_table' => 'nota_bodega_autorizacion',
18628          'to_field' => 'pagare_id',
18629          'this_table' => 'pagare',
18630          'this_field' => 'pagare_id',
18631          'restrict_delete' => true,
18632          'delete_with_parent' => false,
18633          'on_delete_set_to' => 0,
18634        ),
18635      ),
18636      'nota_bodega_log' =>
18637      array (
18638        'pagare_id' =>
18639        array (
18640          'es' => 'catalog_entry',
18641          'formato' => 'jqgrid',
18642          'to_table' => 'nota_bodega_log',
18643          'to_field' => 'pagare_id',
18644          'this_table' => 'pagare',
18645          'this_field' => 'pagare_id',
18646          'restrict_delete' => true,
18647          'delete_with_parent' => false,
18648          'on_delete_set_to' => 0,
18649        ),
18650      ),
18651      'nota_bodega_verificacion' =>
18652      array (
18653        'pagare_id' =>
18654        array (
18655          'es' => 'catalog_entry',
18656          'formato' => 'jqgrid',
18657          'to_table' => 'nota_bodega_verificacion',
18658          'to_field' => 'pagare_id',
18659          'this_table' => 'pagare',
18660          'this_field' => 'pagare_id',
18661          'restrict_delete' => true,
18662          'delete_with_parent' => false,
18663          'on_delete_set_to' => 0,
18664        ),
18665      ),
18666      'pagare_pago' =>
18667      array (
18668        'pagare_id' =>
18669        array (
18670          'es' => 'child',
18671          'formato' => 'jqgrid',
18672          'to_table' => 'pagare_pago',
18673          'to_field' => 'pagare_id',
18674          'this_table' => 'pagare',
18675          'this_field' => 'pagare_id',
18676          'restrict_delete' => true,
18677          'delete_with_parent' => false,
18678          'on_delete_set_to' => 0,
18679        ),
18680      ),
18681      'pagare_pago_log' =>
18682      array (
18683        'pagare_id' =>
18684        array (
18685          'es' => 'child',
18686          'formato' => 'jqgrid',
18687          'to_table' => 'pagare_pago_log',
18688          'to_field' => 'pagare_id',
18689          'this_table' => 'pagare',
18690          'this_field' => 'pagare_id',
18691          'restrict_delete' => true,
18692          'delete_with_parent' => false,
18693          'on_delete_set_to' => 0,
18694        ),
18695      ),
18696      'pagare_log' =>
18697      array (
18698        'es' => 'one2one',
18699      ),
18700      'pagare_test' =>
18701      array (
18702        'es' => 'one2one',
18703      ),
18704    ),
18705    'links_to' =>
18706    array (
18707      'cliente' =>
18708      array (
18709        'cliente_id' =>
18710        array (
18711          'es' => 'catalog',
18712          'formato' => 'link_one_select',
18713          'to_table' => 'cliente',
18714          'to_field' => 'cliente_id',
18715          'this_table' => 'pagare',
18716          'this_field' => 'cliente_id',
18717        ),
18718        'cliente_proveedor_id' =>
18719        array (
18720          'es' => 'catalog',
18721          'formato' => 'link_one_select',
18722          'to_table' => 'cliente',
18723          'to_field' => 'cliente_id',
18724          'this_table' => 'pagare',
18725          'this_field' => 'cliente_proveedor_id',
18726        ),
18727      ),
18728      'tienda' =>
18729      array (
18730        'tienda_id' =>
18731        array (
18732          'es' => 'catalog',
18733          'formato' => 'link_one_select',
18734          'to_table' => 'tienda',
18735          'to_field' => 'tienda_id',
18736          'this_table' => 'pagare',
18737          'this_field' => 'tienda_id',
18738        ),
18739      ),
18740      'moneda' =>
18741      array (
18742        'moneda_id' =>
18743        array (
18744          'es' => 'catalog',
18745          'formato' => 'link_one_select',
18746          'to_table' => 'moneda',
18747          'to_field' => 'moneda_id',
18748          'this_table' => 'pagare',
18749          'this_field' => 'moneda_id',
18750        ),
18751      ),
18752      'banco' =>
18753      array (
18754        'banco_id' =>
18755        array (
18756          'es' => 'catalog',
18757          'formato' => 'link_one_select',
18758          'to_table' => 'banco',
18759          'to_field' => 'banco_id',
18760          'this_table' => 'pagare',
18761          'this_field' => 'banco_id',
18762        ),
18763      ),
18764      'cuentat' =>
18765      array (
18766        'cuentaT_deliveredto_id' =>
18767        array (
18768          'es' => 'catalog',
18769          'formato' => 'link_one_select',
18770          'to_table' => 'cuentat',
18771          'to_field' => 'cuentaT_id',
18772          'this_table' => 'pagare',
18773          'this_field' => 'cuentaT_deliveredto_id',
18774        ),
18775        'cuentaT_transferto_id' =>
18776        array (
18777          'es' => 'catalog',
18778          'formato' => 'link_one_select',
18779          'to_table' => 'cuentat',
18780          'to_field' => 'cuentaT_id',
18781          'this_table' => 'pagare',
18782          'this_field' => 'cuentaT_transferto_id',
18783        ),
18784        'origen_cuentat_id' =>
18785        array (
18786          'es' => 'catalog',
18787          'formato' => 'link_one_select',
18788          'to_table' => 'cuentat',
18789          'to_field' => 'cuentaT_id',
18790          'this_table' => 'pagare',
18791          'this_field' => 'origen_cuentat_id',
18792        ),
18793      ),
18794      'categoria' =>
18795      array (
18796        'categoria_id' =>
18797        array (
18798          'es' => 'catalog',
18799          'formato' => 'link_one_select',
18800          'to_table' => 'categoria',
18801          'to_field' => 'categoria_id',
18802          'this_table' => 'pagare',
18803          'this_field' => 'categoria_id',
18804        ),
18805      ),
18806      'cuentat_mov' =>
18807      array (
18808        'cuentat_mov_id' =>
18809        array (
18810          'es' => 'catalog',
18811          'formato' => 'link_one_select',
18812          'to_table' => 'cuentat_mov',
18813          'to_field' => 'cuentaT_mov_id',
18814          'this_table' => 'pagare',
18815          'this_field' => 'cuentat_mov_id',
18816        ),
18817      ),
18818    ),
18819  ),
18820  'pagare_hist' =>
18821  array (
18822    'es' => 'data',
18823    'pk_single_field' => 'history_id',
18824    'pk_single_type' => 'auto_increment',
18825    'label_field' => 'action',
18826    'has_seq' => false,
18827    'has_child' => false,
18828    'has_datetime' => true,
18829    'links_from' =>
18830    array (
18831      'ajuste_hist' =>
18832      array (
18833        'es' => 'one2one',
18834      ),
18835      'bodega_hist' =>
18836      array (
18837        'es' => 'one2one',
18838      ),
18839      'cheque_hist' =>
18840      array (
18841        'es' => 'one2one',
18842      ),
18843      'cliente_hist' =>
18844      array (
18845        'es' => 'one2one',
18846      ),
18847      'color_hist' =>
18848      array (
18849        'es' => 'one2one',
18850      ),
18851      'estado_bodega_hist' =>
18852      array (
18853        'es' => 'one2one',
18854      ),
18855      'importador_hist' =>
18856      array (
18857        'es' => 'one2one',
18858      ),
18859      'nota_bodega_hist' =>
18860      array (
18861        'es' => 'one2one',
18862      ),
18863      'nota_bodega_verificacion_hist' =>
18864      array (
18865        'es' => 'one2one',
18866      ),
18867      'origen_bodega_bodega_hist' =>
18868      array (
18869        'es' => 'one2one',
18870      ),
18871      'origen_bodega_hist' =>
18872      array (
18873        'es' => 'one2one',
18874      ),
18875      'pedido_hist' =>
18876      array (
18877        'es' => 'one2one',
18878      ),
18879      'permiso_bodega_hist' =>
18880      array (
18881        'es' => 'one2one',
18882      ),
18883      'producto_bodega_hist' =>
18884      array (
18885        'es' => 'one2one',
18886      ),
18887      'producto_color_hist' =>
18888      array (
18889        'es' => 'one2one',
18890      ),
18891      'producto_general_hist' =>
18892      array (
18893        'es' => 'one2one',
18894      ),
18895      'solicitud_carta_porte_hist' =>
18896      array (
18897        'es' => 'one2one',
18898      ),
18899      'tienda_hist' =>
18900      array (
18901        'es' => 'one2one',
18902      ),
18903      'vale_hist' =>
18904      array (
18905        'es' => 'one2one',
18906      ),
18907    ),
18908  ),
18909  'pagare_log' =>
18910  array (
18911    'es' => 'child',
18912    'pk_single_field' => 'pagare_id',
18913    'pk_single_type' => 'uuid',
18914    'label_field' => 'cliente_id',
18915    'has_seq' => false,
18916    'has_child' => false,
18917    'has_numeric' => true,
18918    'has_date' => true,
18919    'has_fckeditor' => true,
18920    'has_file_upload' => true,
18921    'has_datetime' => true,
18922    'links_to' =>
18923    array (
18924      'cliente' =>
18925      array (
18926        'cliente_id' =>
18927        array (
18928          'es' => 'catalog',
18929          'formato' => 'link_one_select',
18930          'to_table' => 'cliente',
18931          'to_field' => 'cliente_id',
18932          'this_table' => 'pagare_log',
18933          'this_field' => 'cliente_id',
18934        ),
18935        'cliente_proveedor_id' =>
18936        array (
18937          'es' => 'catalog',
18938          'formato' => 'link_one_select',
18939          'to_table' => 'cliente',
18940          'to_field' => 'cliente_id',
18941          'this_table' => 'pagare_log',
18942          'this_field' => 'cliente_proveedor_id',
18943        ),
18944      ),
18945      'tienda' =>
18946      array (
18947        'tienda_id' =>
18948        array (
18949          'es' => 'catalog',
18950          'formato' => 'link_one_select',
18951          'to_table' => 'tienda',
18952          'to_field' => 'tienda_id',
18953          'this_table' => 'pagare_log',
18954          'this_field' => 'tienda_id',
18955        ),
18956      ),
18957      'moneda' =>
18958      array (
18959        'moneda_id' =>
18960        array (
18961          'es' => 'catalog',
18962          'formato' => 'link_one_select',
18963          'to_table' => 'moneda',
18964          'to_field' => 'moneda_id',
18965          'this_table' => 'pagare_log',
18966          'this_field' => 'moneda_id',
18967        ),
18968      ),
18969      'banco' =>
18970      array (
18971        'banco_id' =>
18972        array (
18973          'es' => 'catalog',
18974          'formato' => 'link_one_select',
18975          'to_table' => 'banco',
18976          'to_field' => 'banco_id',
18977          'this_table' => 'pagare_log',
18978          'this_field' => 'banco_id',
18979        ),
18980      ),
18981      'cuentat' =>
18982      array (
18983        'cuentaT_deliveredto_id' =>
18984        array (
18985          'es' => 'catalog',
18986          'formato' => 'link_one_select',
18987          'to_table' => 'cuentat',
18988          'to_field' => 'cuentaT_id',
18989          'this_table' => 'pagare_log',
18990          'this_field' => 'cuentaT_deliveredto_id',
18991        ),
18992        'cuentaT_transferto_id' =>
18993        array (
18994          'es' => 'catalog',
18995          'formato' => 'link_one_select',
18996          'to_table' => 'cuentat',
18997          'to_field' => 'cuentaT_id',
18998          'this_table' => 'pagare_log',
18999          'this_field' => 'cuentaT_transferto_id',
19000        ),
19001        'origen_cuentat_id' =>
19002        array (
19003          'es' => 'catalog',
19004          'formato' => 'link_one_select',
19005          'to_table' => 'cuentat',
19006          'to_field' => 'cuentaT_id',
19007          'this_table' => 'pagare_log',
19008          'this_field' => 'origen_cuentat_id',
19009        ),
19010      ),
19011      'categoria' =>
19012      array (
19013        'categoria_id' =>
19014        array (
19015          'es' => 'catalog',
19016          'formato' => 'link_one_select',
19017          'to_table' => 'categoria',
19018          'to_field' => 'categoria_id',
19019          'this_table' => 'pagare_log',
19020          'this_field' => 'categoria_id',
19021        ),
19022      ),
19023      'cuentat_mov' =>
19024      array (
19025        'cuentat_mov_id' =>
19026        array (
19027          'es' => 'catalog',
19028          'formato' => 'link_one_select',
19029          'to_table' => 'cuentat_mov',
19030          'to_field' => 'cuentaT_mov_id',
19031          'this_table' => 'pagare_log',
19032          'this_field' => 'cuentat_mov_id',
19033        ),
19034      ),
19035    ),
19036    'links_from' =>
19037    array (
19038      'pagare' =>
19039      array (
19040        'es' => 'one2one',
19041      ),
19042      'pagare_test' =>
19043      array (
19044        'es' => 'one2one',
19045      ),
19046    ),
19047  ),
19048  'pagare_pago' =>
19049  array (
19050    'es' => 'parent',
19051    'pk_single_field' => 'pagare_pago_id',
19052    'pk_single_type' => 'uuid',
19053    'label_field' => 'pagare_id',
19054    'has_seq' => false,
19055    'has_child' => true,
19056    'has_datetime' => true,
19057    'has_numeric' => true,
19058    'has_fckeditor' => true,
19059    'has_file_upload' => true,
19060    'links_to' =>
19061    array (
19062      'pagare' =>
19063      array (
19064        'pagare_id' =>
19065        array (
19066          'es' => 'catalog',
19067          'formato' => 'link_one_select',
19068          'to_table' => 'pagare',
19069          'to_field' => 'pagare_id',
19070          'this_table' => 'pagare_pago',
19071          'this_field' => 'pagare_id',
19072        ),
19073      ),
19074      'moneda' =>
19075      array (
19076        'moneda_id' =>
19077        array (
19078          'es' => 'catalog',
19079          'formato' => 'link_one_select',
19080          'to_table' => 'moneda',
19081          'to_field' => 'moneda_id',
19082          'this_table' => 'pagare_pago',
19083          'this_field' => 'moneda_id',
19084        ),
19085      ),
19086      'metodo_pago' =>
19087      array (
19088        'metodo_pago_id' =>
19089        array (
19090          'es' => 'catalog',
19091          'formato' => 'link_one_select',
19092          'to_table' => 'metodo_pago',
19093          'to_field' => 'metodo_pago_id',
19094          'this_table' => 'pagare_pago',
19095          'this_field' => 'metodo_pago_id',
19096        ),
19097      ),
19098      'banco_cuenta' =>
19099      array (
19100        'banco_cuenta_id' =>
19101        array (
19102          'es' => 'catalog',
19103          'formato' => 'link_one_select',
19104          'to_table' => 'banco_cuenta',
19105          'to_field' => 'banco_cuenta_id',
19106          'this_table' => 'pagare_pago',
19107          'this_field' => 'banco_cuenta_id',
19108        ),
19109      ),
19110      'banco_cuenta_mov_link' =>
19111      array (
19112        'banco_cuenta_mov_link_id' =>
19113        array (
19114          'es' => 'catalog',
19115          'formato' => 'link_one_select',
19116          'to_table' => 'banco_cuenta_mov_link',
19117          'to_field' => 'banco_cuenta_mov_link_id',
19118          'this_table' => 'pagare_pago',
19119          'this_field' => 'banco_cuenta_mov_link_id',
19120        ),
19121      ),
19122      'cuentat_mov' =>
19123      array (
19124        'cuenta_t_mov_id' =>
19125        array (
19126          'es' => 'catalog',
19127          'formato' => 'link_one_select',
19128          'to_table' => 'cuentat_mov',
19129          'to_field' => 'cuentaT_mov_id',
19130          'this_table' => 'pagare_pago',
19131          'this_field' => 'cuenta_t_mov_id',
19132        ),
19133      ),
19134      'cuentat' =>
19135      array (
19136        'cuentaT_id' =>
19137        array (
19138          'es' => 'catalog',
19139          'formato' => 'link_one_select',
19140          'to_table' => 'cuentat',
19141          'to_field' => 'cuentaT_id',
19142          'this_table' => 'pagare_pago',
19143          'this_field' => 'cuentaT_id',
19144        ),
19145      ),
19146      'empresa' =>
19147      array (
19148        'empresa_id' =>
19149        array (
19150          'es' => 'catalog',
19151          'formato' => 'link_one_select',
19152          'to_table' => 'empresa',
19153          'to_field' => 'empresa_id',
19154          'this_table' => 'pagare_pago',
19155          'this_field' => 'empresa_id',
19156        ),
19157      ),
19158      'tienda' =>
19159      array (
19160        'tienda_id' =>
19161        array (
19162          'es' => 'catalog',
19163          'formato' => 'link_one_select',
19164          'to_table' => 'tienda',
19165          'to_field' => 'tienda_id',
19166          'this_table' => 'pagare_pago',
19167          'this_field' => 'tienda_id',
19168        ),
19169      ),
19170    ),
19171    'links_from' =>
19172    array (
19173      'pagare_pago_log' =>
19174      array (
19175        'pagare_pago_id' =>
19176        array (
19177          'es' => 'child',
19178          'formato' => 'jqgrid',
19179          'to_table' => 'pagare_pago_log',
19180          'to_field' => 'pagare_pago_id',
19181          'this_table' => 'pagare_pago',
19182          'this_field' => 'pagare_pago_id',
19183          'restrict_delete' => false,
19184          'delete_with_parent' => true,
19185          'on_delete_set_to' => 0,
19186        ),
19187      ),
19188    ),
19189  ),
19190  'pagare_pago_log' =>
19191  array (
19192    'es' => 'child',
19193    'pk_single_field' => 'pagare_pago_log_id',
19194    'pk_single_type' => 'uuid',
19195    'label_field' => 'pagare_pago_id',
19196    'has_seq' => false,
19197    'has_child' => false,
19198    'has_date' => true,
19199    'has_datetime' => true,
19200    'has_numeric' => true,
19201    'has_file_upload' => true,
19202    'links_to' =>
19203    array (
19204      'pagare_pago' =>
19205      array (
19206        'pagare_pago_id' =>
19207        array (
19208          'es' => 'catalog',
19209          'formato' => 'link_one_select',
19210          'to_table' => 'pagare_pago',
19211          'to_field' => 'pagare_pago_id',
19212          'this_table' => 'pagare_pago_log',
19213          'this_field' => 'pagare_pago_id',
19214        ),
19215      ),
19216      'pagare' =>
19217      array (
19218        'pagare_id' =>
19219        array (
19220          'es' => 'catalog',
19221          'formato' => 'link_one_select',
19222          'to_table' => 'pagare',
19223          'to_field' => 'pagare_id',
19224          'this_table' => 'pagare_pago_log',
19225          'this_field' => 'pagare_id',
19226        ),
19227      ),
19228      'moneda' =>
19229      array (
19230        'moneda_id' =>
19231        array (
19232          'es' => 'catalog',
19233          'formato' => 'link_one_select',
19234          'to_table' => 'moneda',
19235          'to_field' => 'moneda_id',
19236          'this_table' => 'pagare_pago_log',
19237          'this_field' => 'moneda_id',
19238        ),
19239      ),
19240      'metodo_pago' =>
19241      array (
19242        'metodo_pago_id' =>
19243        array (
19244          'es' => 'catalog',
19245          'formato' => 'link_one_select',
19246          'to_table' => 'metodo_pago',
19247          'to_field' => 'metodo_pago_id',
19248          'this_table' => 'pagare_pago_log',
19249          'this_field' => 'metodo_pago_id',
19250        ),
19251      ),
19252      'banco_cuenta' =>
19253      array (
19254        'banco_cuenta_id' =>
19255        array (
19256          'es' => 'catalog',
19257          'formato' => 'link_one_select',
19258          'to_table' => 'banco_cuenta',
19259          'to_field' => 'banco_cuenta_id',
19260          'this_table' => 'pagare_pago_log',
19261          'this_field' => 'banco_cuenta_id',
19262        ),
19263      ),
19264      'banco_cuenta_mov_link' =>
19265      array (
19266        'banco_cuenta_mov_link_id' =>
19267        array (
19268          'es' => 'catalog',
19269          'formato' => 'link_one_select',
19270          'to_table' => 'banco_cuenta_mov_link',
19271          'to_field' => 'banco_cuenta_mov_link_id',
19272          'this_table' => 'pagare_pago_log',
19273          'this_field' => 'banco_cuenta_mov_link_id',
19274        ),
19275      ),
19276      'cuentat' =>
19277      array (
19278        'cuentaT_id' =>
19279        array (
19280          'es' => 'catalog',
19281          'formato' => 'link_one_select',
19282          'to_table' => 'cuentat',
19283          'to_field' => 'cuentaT_id',
19284          'this_table' => 'pagare_pago_log',
19285          'this_field' => 'cuentaT_id',
19286        ),
19287      ),
19288      'empresa' =>
19289      array (
19290        'empresa_id' =>
19291        array (
19292          'es' => 'catalog',
19293          'formato' => 'link_one_select',
19294          'to_table' => 'empresa',
19295          'to_field' => 'empresa_id',
19296          'this_table' => 'pagare_pago_log',
19297          'this_field' => 'empresa_id',
19298        ),
19299      ),
19300      'tienda' =>
19301      array (
19302        'tienda_id' =>
19303        array (
19304          'es' => 'catalog',
19305          'formato' => 'link_one_select',
19306          'to_table' => 'tienda',
19307          'to_field' => 'tienda_id',
19308          'this_table' => 'pagare_pago_log',
19309          'this_field' => 'tienda_id',
19310        ),
19311      ),
19312      'cuentat_mov' =>
19313      array (
19314        'cuenta_t_mov_id' =>
19315        array (
19316          'es' => 'catalog',
19317          'formato' => 'link_one_select',
19318          'to_table' => 'cuentat_mov',
19319          'to_field' => 'cuentaT_mov_id',
19320          'this_table' => 'pagare_pago_log',
19321          'this_field' => 'cuenta_t_mov_id',
19322        ),
19323      ),
19324    ),
19325  ),
19326  'pagare_test' =>
19327  array (
19328    'es' => 'child',
19329    'pk_single_field' => 'pagare_id',
19330    'pk_single_type' => 'uuid',
19331    'label_field' => 'cliente_id',
19332    'has_seq' => false,
19333    'has_child' => false,
19334    'has_numeric' => true,
19335    'has_date' => true,
19336    'has_fckeditor' => true,
19337    'has_file_upload' => true,
19338    'has_datetime' => true,
19339    'links_to' =>
19340    array (
19341      'cliente' =>
19342      array (
19343        'cliente_id' =>
19344        array (
19345          'es' => 'catalog',
19346          'formato' => 'link_one_select',
19347          'to_table' => 'cliente',
19348          'to_field' => 'cliente_id',
19349          'this_table' => 'pagare_test',
19350          'this_field' => 'cliente_id',
19351        ),
19352        'cliente_proveedor_id' =>
19353        array (
19354          'es' => 'catalog',
19355          'formato' => 'link_one_select',
19356          'to_table' => 'cliente',
19357          'to_field' => 'cliente_id',
19358          'this_table' => 'pagare_test',
19359          'this_field' => 'cliente_proveedor_id',
19360        ),
19361      ),
19362      'tienda' =>
19363      array (
19364        'tienda_id' =>
19365        array (
19366          'es' => 'catalog',
19367          'formato' => 'link_one_select',
19368          'to_table' => 'tienda',
19369          'to_field' => 'tienda_id',
19370          'this_table' => 'pagare_test',
19371          'this_field' => 'tienda_id',
19372        ),
19373      ),
19374      'moneda' =>
19375      array (
19376        'moneda_id' =>
19377        array (
19378          'es' => 'catalog',
19379          'formato' => 'link_one_select',
19380          'to_table' => 'moneda',
19381          'to_field' => 'moneda_id',
19382          'this_table' => 'pagare_test',
19383          'this_field' => 'moneda_id',
19384        ),
19385      ),
19386      'banco' =>
19387      array (
19388        'banco_id' =>
19389        array (
19390          'es' => 'catalog',
19391          'formato' => 'link_one_select',
19392          'to_table' => 'banco',
19393          'to_field' => 'banco_id',
19394          'this_table' => 'pagare_test',
19395          'this_field' => 'banco_id',
19396        ),
19397      ),
19398      'cuentat' =>
19399      array (
19400        'cuentaT_deliveredto_id' =>
19401        array (
19402          'es' => 'catalog',
19403          'formato' => 'link_one_select',
19404          'to_table' => 'cuentat',
19405          'to_field' => 'cuentaT_id',
19406          'this_table' => 'pagare_test',
19407          'this_field' => 'cuentaT_deliveredto_id',
19408        ),
19409        'cuentaT_transferto_id' =>
19410        array (
19411          'es' => 'catalog',
19412          'formato' => 'link_one_select',
19413          'to_table' => 'cuentat',
19414          'to_field' => 'cuentaT_id',
19415          'this_table' => 'pagare_test',
19416          'this_field' => 'cuentaT_transferto_id',
19417        ),
19418        'origen_cuentat_id' =>
19419        array (
19420          'es' => 'catalog',
19421          'formato' => 'link_one_select',
19422          'to_table' => 'cuentat',
19423          'to_field' => 'cuentaT_id',
19424          'this_table' => 'pagare_test',
19425          'this_field' => 'origen_cuentat_id',
19426        ),
19427      ),
19428      'categoria' =>
19429      array (
19430        'categoria_id' =>
19431        array (
19432          'es' => 'catalog',
19433          'formato' => 'link_one_select',
19434          'to_table' => 'categoria',
19435          'to_field' => 'categoria_id',
19436          'this_table' => 'pagare_test',
19437          'this_field' => 'categoria_id',
19438        ),
19439      ),
19440    ),
19441    'links_from' =>
19442    array (
19443      'pagare' =>
19444      array (
19445        'es' => 'one2one',
19446      ),
19447      'pagare_log' =>
19448      array (
19449        'es' => 'one2one',
19450      ),
19451    ),
19452  ),
19453  'parametro' =>
19454  array (
19455    'es' => 'data',
19456    'pk_single_field' => 'parametro_id',
19457    'pk_single_type' => 'value',
19458    'label_field' => 'tema',
19459    'has_seq' => false,
19460    'has_child' => false,
19461  ),
19462  'payment_conditions' =>
19463  array (
19464    'es' => 'parent',
19465    'pk_single_field' => 'payment_conditions_id',
19466    'pk_single_type' => 'auto_increment',
19467    'label_field' => 'condicion',
19468    'vale' => true,
19469    'orden' => true,
19470    'has_seq' => false,
19471    'has_child' => true,
19472    'UNI' =>
19473    array (
19474      0 => 'condicion',
19475    ),
19476    'links_from' =>
19477    array (
19478      'cash' =>
19479      array (
19480        'payment_conditions_id' =>
19481        array (
19482          'es' => 'catalog_entry',
19483          'formato' => 'jqgrid',
19484          'to_table' => 'cash',
19485          'to_field' => 'payment_conditions_id',
19486          'this_table' => 'payment_conditions',
19487          'this_field' => 'payment_conditions_id',
19488          'restrict_delete' => true,
19489          'delete_with_parent' => false,
19490          'on_delete_set_to' => 0,
19491        ),
19492      ),
19493      'nota' =>
19494      array (
19495        'payment_conditions_id' =>
19496        array (
19497          'es' => 'catalog_entry',
19498          'formato' => 'jqgrid',
19499          'to_table' => 'nota',
19500          'to_field' => 'payment_conditions_id',
19501          'this_table' => 'payment_conditions',
19502          'this_field' => 'payment_conditions_id',
19503          'restrict_delete' => true,
19504          'delete_with_parent' => false,
19505          'on_delete_set_to' => 0,
19506        ),
19507      ),
19508    ),
19509  ),
19510  'pedido' =>
19511  array (
19512    'es' => 'parent',
19513    'pk_single_field' => 'pedido_id',
19514    'pk_single_type' => 'uuid',
19515    'label_field' => 'own_reference',
19516    'has_seq' => false,
19517    'has_child' => true,
19518    'has_datetime' => true,
19519    'has_date' => true,
19520    'has_numeric' => true,
19521    'has_fckeditor' => true,
19522    'links_to' =>
19523    array (
19524      'origen_bodega' =>
19525      array (
19526        'origen_bodega_id' =>
19527        array (
19528          'es' => 'catalog',
19529          'formato' => 'link_one_select',
19530          'to_table' => 'origen_bodega',
19531          'to_field' => 'origen_bodega_id',
19532          'this_table' => 'pedido',
19533          'this_field' => 'origen_bodega_id',
19534        ),
19535      ),
19536      'cliente' =>
19537      array (
19538        'cliente_id' =>
19539        array (
19540          'es' => 'catalog',
19541          'formato' => 'link_one_select',
19542          'to_table' => 'cliente',
19543          'to_field' => 'cliente_id',
19544          'this_table' => 'pedido',
19545          'this_field' => 'cliente_id',
19546        ),
19547      ),
19548      'importador' =>
19549      array (
19550        'importador_id' =>
19551        array (
19552          'es' => 'catalog',
19553          'formato' => 'link_one_select',
19554          'to_table' => 'importador',
19555          'to_field' => 'importador_id',
19556          'this_table' => 'pedido',
19557          'this_field' => 'importador_id',
19558        ),
19559      ),
19560    ),
19561    'links_from' =>
19562    array (
19563      'pedido_items' =>
19564      array (
19565        'pedido_id' =>
19566        array (
19567          'es' => 'child',
19568          'formato' => 'jqgrid',
19569          'to_table' => 'pedido_items',
19570          'to_field' => 'pedido_id',
19571          'this_table' => 'pedido',
19572          'this_field' => 'pedido_id',
19573          'restrict_delete' => false,
19574          'delete_with_parent' => true,
19575          'on_delete_set_to' => 0,
19576        ),
19577      ),
19578    ),
19579  ),
19580  'pedido_hist' =>
19581  array (
19582    'es' => 'data',
19583    'pk_single_field' => 'history_id',
19584    'pk_single_type' => 'auto_increment',
19585    'label_field' => 'action',
19586    'has_seq' => false,
19587    'has_child' => false,
19588    'has_datetime' => true,
19589    'links_from' =>
19590    array (
19591      'ajuste_hist' =>
19592      array (
19593        'es' => 'one2one',
19594      ),
19595      'bodega_hist' =>
19596      array (
19597        'es' => 'one2one',
19598      ),
19599      'cheque_hist' =>
19600      array (
19601        'es' => 'one2one',
19602      ),
19603      'cliente_hist' =>
19604      array (
19605        'es' => 'one2one',
19606      ),
19607      'color_hist' =>
19608      array (
19609        'es' => 'one2one',
19610      ),
19611      'estado_bodega_hist' =>
19612      array (
19613        'es' => 'one2one',
19614      ),
19615      'importador_hist' =>
19616      array (
19617        'es' => 'one2one',
19618      ),
19619      'nota_bodega_hist' =>
19620      array (
19621        'es' => 'one2one',
19622      ),
19623      'nota_bodega_verificacion_hist' =>
19624      array (
19625        'es' => 'one2one',
19626      ),
19627      'origen_bodega_bodega_hist' =>
19628      array (
19629        'es' => 'one2one',
19630      ),
19631      'origen_bodega_hist' =>
19632      array (
19633        'es' => 'one2one',
19634      ),
19635      'pagare_hist' =>
19636      array (
19637        'es' => 'one2one',
19638      ),
19639      'permiso_bodega_hist' =>
19640      array (
19641        'es' => 'one2one',
19642      ),
19643      'producto_bodega_hist' =>
19644      array (
19645        'es' => 'one2one',
19646      ),
19647      'producto_color_hist' =>
19648      array (
19649        'es' => 'one2one',
19650      ),
19651      'producto_general_hist' =>
19652      array (
19653        'es' => 'one2one',
19654      ),
19655      'solicitud_carta_porte_hist' =>
19656      array (
19657        'es' => 'one2one',
19658      ),
19659      'tienda_hist' =>
19660      array (
19661        'es' => 'one2one',
19662      ),
19663      'vale_hist' =>
19664      array (
19665        'es' => 'one2one',
19666      ),
19667    ),
19668  ),
19669  'pedido_items' =>
19670  array (
19671    'es' => 'child',
19672    'pk_single_field' => 'pedido_item_id',
19673    'pk_single_type' => 'uuid',
19674    'label_field' => 'pedido_id',
19675    'orden' => true,
19676    'has_seq' => false,
19677    'has_child' => false,
19678    'has_numeric' => true,
19679    'has_date' => true,
19680    'links_to' =>
19681    array (
19682      'pedido' =>
19683      array (
19684        'pedido_id' =>
19685        array (
19686          'es' => 'catalog',
19687          'formato' => 'link_one_select',
19688          'to_table' => 'pedido',
19689          'to_field' => 'pedido_id',
19690          'this_table' => 'pedido_items',
19691          'this_field' => 'pedido_id',
19692        ),
19693      ),
19694      'producto_color' =>
19695      array (
19696        'producto_color_id' =>
19697        array (
19698          'es' => 'catalog',
19699          'formato' => 'link_one_select',
19700          'to_table' => 'producto_color',
19701          'to_field' => 'producto_color_id',
19702          'this_table' => 'pedido_items',
19703          'this_field' => 'producto_color_id',
19704        ),
19705      ),
19706      'producto_general' =>
19707      array (
19708        'producto_general_id' =>
19709        array (
19710          'es' => 'catalog',
19711          'formato' => 'link_one_select',
19712          'to_table' => 'producto_general',
19713          'to_field' => 'producto_general_id',
19714          'this_table' => 'pedido_items',
19715          'this_field' => 'producto_general_id',
19716        ),
19717      ),
19718      'color' =>
19719      array (
19720        'color_id' =>
19721        array (
19722          'es' => 'catalog',
19723          'formato' => 'link_one_select',
19724          'to_table' => 'color',
19725          'to_field' => 'color_id',
19726          'this_table' => 'pedido_items',
19727          'this_field' => 'color_id',
19728        ),
19729      ),
19730    ),
19731  ),
19732  'pedido_recomienda' =>
19733  array (
19734    'es' => 'parent',
19735    'pk_single_field' => 'pedido_recomienda_id',
19736    'pk_single_type' => 'auto_increment',
19737    'label_field' => 'nombre',
19738    'has_seq' => false,
19739    'has_child' => true,
19740    'links_to' =>
19741    array (
19742      'iac_usr' =>
19743      array (
19744        'iac_usr_id' =>
19745        array (
19746          'es' => 'catalog',
19747          'formato' => 'link_one_select',
19748          'to_table' => 'iac_usr',
19749          'to_field' => 'iac_usr_id',
19750          'this_table' => 'pedido_recomienda',
19751          'this_field' => 'iac_usr_id',
19752        ),
19753      ),
19754    ),
19755    'links_from' =>
19756    array (
19757      'pedido_recomienda_items' =>
19758      array (
19759        'pedido_recomienda_id' =>
19760        array (
19761          'es' => 'child',
19762          'formato' => 'jqgrid',
19763          'to_table' => 'pedido_recomienda_items',
19764          'to_field' => 'pedido_recomienda_id',
19765          'this_table' => 'pedido_recomienda',
19766          'this_field' => 'pedido_recomienda_id',
19767          'restrict_delete' => true,
19768          'delete_with_parent' => false,
19769          'on_delete_set_to' => 0,
19770        ),
19771      ),
19772    ),
19773  ),
19774  'pedido_recomienda_items' =>
19775  array (
19776    'es' => 'parent',
19777    'pk_single_field' => 'pedido_recomienda_items_id',
19778    'pk_single_type' => 'auto_increment',
19779    'label_field' => 'producto_general_id',
19780    'has_seq' => false,
19781    'has_child' => true,
19782    'has_numeric' => true,
19783    'UNI' =>
19784    array (
19785      'pedido_recomienda_id' =>
19786      array (
19787        1 => 'pedido_recomienda_id',
19788        2 => 'producto_general_id',
19789        3 => 'color_id',
19790      ),
19791    ),
19792    'links_to' =>
19793    array (
19794      'pedido_recomienda' =>
19795      array (
19796        'pedido_recomienda_id' =>
19797        array (
19798          'es' => 'catalog',
19799          'formato' => 'link_one_select',
19800          'to_table' => 'pedido_recomienda',
19801          'to_field' => 'pedido_recomienda_id',
19802          'this_table' => 'pedido_recomienda_items',
19803          'this_field' => 'pedido_recomienda_id',
19804        ),
19805      ),
19806      'producto_general' =>
19807      array (
19808        'producto_general_id' =>
19809        array (
19810          'es' => 'catalog',
19811          'formato' => 'link_one_select',
19812          'to_table' => 'producto_general',
19813          'to_field' => 'producto_general_id',
19814          'this_table' => 'pedido_recomienda_items',
19815          'this_field' => 'producto_general_id',
19816        ),
19817      ),
19818      'color' =>
19819      array (
19820        'color_id' =>
19821        array (
19822          'es' => 'catalog',
19823          'formato' => 'link_one_select',
19824          'to_table' => 'color',
19825          'to_field' => 'color_id',
19826          'this_table' => 'pedido_recomienda_items',
19827          'this_field' => 'color_id',
19828        ),
19829      ),
19830    ),
19831    'links_from' =>
19832    array (
19833      'pedir_producto' =>
19834      array (
19835        'pedido_recomienda_items_id' =>
19836        array (
19837          'es' => 'catalog_entry',
19838          'formato' => 'jqgrid',
19839          'to_table' => 'pedir_producto',
19840          'to_field' => 'pedido_recomienda_items_id',
19841          'this_table' => 'pedido_recomienda_items',
19842          'this_field' => 'pedido_recomienda_items_id',
19843          'restrict_delete' => true,
19844          'delete_with_parent' => false,
19845          'on_delete_set_to' => 0,
19846        ),
19847      ),
19848    ),
19849  ),
19850  'pedido_recomienda_log' =>
19851  array (
19852    'es' => 'child',
19853    'pk_single_field' => 'pedido_recomienda_log_id',
19854    'pk_single_type' => 'auto_increment',
19855    'label_field' => 'accion',
19856    'has_seq' => false,
19857    'has_child' => false,
19858    'links_to' =>
19859    array (
19860      'iac_usr' =>
19861      array (
19862        'iac_usr_id' =>
19863        array (
19864          'es' => 'catalog',
19865          'formato' => 'link_one_select',
19866          'to_table' => 'iac_usr',
19867          'to_field' => 'iac_usr_id',
19868          'this_table' => 'pedido_recomienda_log',
19869          'this_field' => 'iac_usr_id',
19870        ),
19871      ),
19872    ),
19873  ),
19874  'pedir_producto' =>
19875  array (
19876    'es' => 'child',
19877    'pk_single_field' => 'pedir_producto_id',
19878    'pk_single_type' => 'auto_increment',
19879    'label_field' => 'producto_bodega_id',
19880    'has_seq' => false,
19881    'has_child' => false,
19882    'UNI' =>
19883    array (
19884      'usuario_producto_color' =>
19885      array (
19886        1 => 'iac_usr_id',
19887        2 => 'producto_general_id',
19888        3 => 'color_id',
19889      ),
19890    ),
19891    'links_to' =>
19892    array (
19893      'producto_bodega' =>
19894      array (
19895        'producto_bodega_id' =>
19896        array (
19897          'es' => 'catalog',
19898          'formato' => 'link_one_select',
19899          'to_table' => 'producto_bodega',
19900          'to_field' => '?',
19901          'this_table' => 'pedir_producto',
19902          'this_field' => 'producto_bodega_id',
19903        ),
19904      ),
19905      'bodega' =>
19906      array (
19907        'bodega_id' =>
19908        array (
19909          'es' => 'catalog',
19910          'formato' => 'link_one_select',
19911          'to_table' => 'bodega',
19912          'to_field' => 'bodega_id',
19913          'this_table' => 'pedir_producto',
19914          'this_field' => 'bodega_id',
19915        ),
19916      ),
19917      'producto_general' =>
19918      array (
19919        'producto_general_id' =>
19920        array (
19921          'es' => 'catalog',
19922          'formato' => 'link_one_select',
19923          'to_table' => 'producto_general',
19924          'to_field' => 'producto_general_id',
19925          'this_table' => 'pedir_producto',
19926          'this_field' => 'producto_general_id',
19927        ),
19928      ),
19929      'color' =>
19930      array (
19931        'color_id' =>
19932        array (
19933          'es' => 'catalog',
19934          'formato' => 'link_one_select',
19935          'to_table' => 'color',
19936          'to_field' => 'color_id',
19937          'this_table' => 'pedir_producto',
19938          'this_field' => 'color_id',
19939        ),
19940      ),
19941      'iac_usr' =>
19942      array (
19943        'iac_usr_id' =>
19944        array (
19945          'es' => 'catalog',
19946          'formato' => 'link_one_select',
19947          'to_table' => 'iac_usr',
19948          'to_field' => 'iac_usr_id',
19949          'this_table' => 'pedir_producto',
19950          'this_field' => 'iac_usr_id',
19951        ),
19952      ),
19953      'pedido_recomienda_items' =>
19954      array (
19955        'pedido_recomienda_items_id' =>
19956        array (
19957          'es' => 'catalog',
19958          'formato' => 'link_one_select',
19959          'to_table' => 'pedido_recomienda_items',
19960          'to_field' => 'pedido_recomienda_items_id',
19961          'this_table' => 'pedir_producto',
19962          'this_field' => 'pedido_recomienda_items_id',
19963        ),
19964      ),
19965    ),
19966  ),
19967  'perfil_reporte_grid' =>
19968  array (
19969    'es' => 'parent',
19970    'pk_single_field' => 'perfil_reporte_grid_id',
19971    'pk_single_type' => 'uuid',
19972    'label_field' => 'perfil',
19973    'has_seq' => false,
19974    'has_child' => true,
19975    'links_from' =>
19976    array (
19977      'perfil_reporte_grid_col' =>
19978      array (
19979        'perfil_reporte_grid_id' =>
19980        array (
19981          'es' => 'child',
19982          'formato' => 'jqgrid',
19983          'to_table' => 'perfil_reporte_grid_col',
19984          'to_field' => 'perfil_reporte_grid_id',
19985          'this_table' => 'perfil_reporte_grid',
19986          'this_field' => 'perfil_reporte_grid_id',
19987          'restrict_delete' => false,
19988          'delete_with_parent' => true,
19989          'on_delete_set_to' => 0,
19990        ),
19991      ),
19992    ),
19993  ),
19994  'perfil_reporte_grid_col' =>
19995  array (
19996    'es' => 'child',
19997    'pk_single_field' => 'perfil_reporte_grid_col_id',
19998    'pk_single_type' => 'auto_increment',
19999    'label_field' => 'perfil_reporte_grid_id',
20000    'orden' => true,
20001    'has_seq' => false,
20002    'has_child' => false,
20003    'UNI' =>
20004    array (
20005      'perfil_reporte_grid_id' =>
20006      array (
20007        1 => 'perfil_reporte_grid_id',
20008        2 => 'columna',
20009      ),
20010    ),
20011    'links_to' =>
20012    array (
20013      'perfil_reporte_grid' =>
20014      array (
20015        'perfil_reporte_grid_id' =>
20016        array (
20017          'es' => 'catalog',
20018          'formato' => 'link_one_select',
20019          'to_table' => 'perfil_reporte_grid',
20020          'to_field' => 'perfil_reporte_grid_id',
20021          'this_table' => 'perfil_reporte_grid_col',
20022          'this_field' => 'perfil_reporte_grid_id',
20023        ),
20024      ),
20025    ),
20026  ),
20027  'permiso_bodega' =>
20028  array (
20029    'es' => 'child',
20030    'pk_single_field' => 'permiso_bodega_id',
20031    'pk_single_type' => 'auto_increment',
20032    'label_field' => 'bodega_id',
20033    'has_seq' => false,
20034    'has_child' => false,
20035    'UNI' =>
20036    array (
20037      'pemiso_bodega_usuario' =>
20038      array (
20039        1 => 'bodega_id',
20040        2 => 'iac_usr_id',
20041      ),
20042    ),
20043    'links_to' =>
20044    array (
20045      'bodega' =>
20046      array (
20047        'bodega_id' =>
20048        array (
20049          'es' => 'catalog',
20050          'formato' => 'link_one_select',
20051          'to_table' => 'bodega',
20052          'to_field' => 'bodega_id',
20053          'this_table' => 'permiso_bodega',
20054          'this_field' => 'bodega_id',
20055        ),
20056      ),
20057      'iac_usr' =>
20058      array (
20059        'iac_usr_id' =>
20060        array (
20061          'es' => 'catalog',
20062          'formato' => 'link_one_select',
20063          'to_table' => 'iac_usr',
20064          'to_field' => 'iac_usr_id',
20065          'this_table' => 'permiso_bodega',
20066          'this_field' => 'iac_usr_id',
20067        ),
20068      ),
20069    ),
20070  ),
20071  'permiso_bodega_consulta_salida_tienda' =>
20072  array (
20073    'es' => 'child',
20074    'pk_single_field' => 'permiso_bodega_consulta_salida_tienda_id',
20075    'pk_single_type' => 'auto_increment',
20076    'label_field' => 'origen_bodega_id',
20077    'has_seq' => false,
20078    'has_child' => false,
20079    'UNI' =>
20080    array (
20081      'puede' =>
20082      array (
20083        1 => 'iac_usr_id',
20084        2 => 'origen_bodega_id',
20085        3 => 'tienda_id',
20086      ),
20087    ),
20088    'links_to' =>
20089    array (
20090      'iac_usr' =>
20091      array (
20092        'iac_usr_id' =>
20093        array (
20094          'es' => 'catalog',
20095          'formato' => 'link_one_select',
20096          'to_table' => 'iac_usr',
20097          'to_field' => 'iac_usr_id',
20098          'this_table' => 'permiso_bodega_consulta_salida_tienda',
20099          'this_field' => 'iac_usr_id',
20100        ),
20101      ),
20102      'origen_bodega' =>
20103      array (
20104        'origen_bodega_id' =>
20105        array (
20106          'es' => 'catalog',
20107          'formato' => 'link_one_select',
20108          'to_table' => 'origen_bodega',
20109          'to_field' => 'origen_bodega_id',
20110          'this_table' => 'permiso_bodega_consulta_salida_tienda',
20111          'this_field' => 'origen_bodega_id',
20112        ),
20113      ),
20114      'tienda' =>
20115      array (
20116        'tienda_id' =>
20117        array (
20118          'es' => 'catalog',
20119          'formato' => 'link_one_select',
20120          'to_table' => 'tienda',
20121          'to_field' => 'tienda_id',
20122          'this_table' => 'permiso_bodega_consulta_salida_tienda',
20123          'this_field' => 'tienda_id',
20124        ),
20125      ),
20126    ),
20127  ),
20128  'permiso_bodega_hist' =>
20129  array (
20130    'es' => 'data',
20131    'pk_single_field' => 'history_id',
20132    'pk_single_type' => 'auto_increment',
20133    'label_field' => 'action',
20134    'has_seq' => false,
20135    'has_child' => false,
20136    'has_datetime' => true,
20137    'links_from' =>
20138    array (
20139      'ajuste_hist' =>
20140      array (
20141        'es' => 'one2one',
20142      ),
20143      'bodega_hist' =>
20144      array (
20145        'es' => 'one2one',
20146      ),
20147      'cheque_hist' =>
20148      array (
20149        'es' => 'one2one',
20150      ),
20151      'cliente_hist' =>
20152      array (
20153        'es' => 'one2one',
20154      ),
20155      'color_hist' =>
20156      array (
20157        'es' => 'one2one',
20158      ),
20159      'estado_bodega_hist' =>
20160      array (
20161        'es' => 'one2one',
20162      ),
20163      'importador_hist' =>
20164      array (
20165        'es' => 'one2one',
20166      ),
20167      'nota_bodega_hist' =>
20168      array (
20169        'es' => 'one2one',
20170      ),
20171      'nota_bodega_verificacion_hist' =>
20172      array (
20173        'es' => 'one2one',
20174      ),
20175      'origen_bodega_bodega_hist' =>
20176      array (
20177        'es' => 'one2one',
20178      ),
20179      'origen_bodega_hist' =>
20180      array (
20181        'es' => 'one2one',
20182      ),
20183      'pagare_hist' =>
20184      array (
20185        'es' => 'one2one',
20186      ),
20187      'pedido_hist' =>
20188      array (
20189        'es' => 'one2one',
20190      ),
20191      'producto_bodega_hist' =>
20192      array (
20193        'es' => 'one2one',
20194      ),
20195      'producto_color_hist' =>
20196      array (
20197        'es' => 'one2one',
20198      ),
20199      'producto_general_hist' =>
20200      array (
20201        'es' => 'one2one',
20202      ),
20203      'solicitud_carta_porte_hist' =>
20204      array (
20205        'es' => 'one2one',
20206      ),
20207      'tienda_hist' =>
20208      array (
20209        'es' => 'one2one',
20210      ),
20211      'vale_hist' =>
20212      array (
20213        'es' => 'one2one',
20214      ),
20215    ),
20216  ),
20217  'permiso_ctat' =>
20218  array (
20219    'es' => 'child',
20220    'pk_single_field' => 'permiso_ctat_id',
20221    'pk_single_type' => 'auto_increment',
20222    'label_field' => 'alta_por',
20223    'has_seq' => false,
20224    'has_child' => false,
20225    'UNI' =>
20226    array (
20227      'permiso_usuario_cuentat' =>
20228      array (
20229        1 => 'iac_usr_id',
20230        2 => 'cuentaT_id',
20231      ),
20232    ),
20233    'links_to' =>
20234    array (
20235      'iac_usr' =>
20236      array (
20237        'iac_usr_id' =>
20238        array (
20239          'es' => 'catalog',
20240          'formato' => 'link_one_select',
20241          'to_table' => 'iac_usr',
20242          'to_field' => 'iac_usr_id',
20243          'this_table' => 'permiso_ctat',
20244          'this_field' => 'iac_usr_id',
20245        ),
20246      ),
20247      'cuentat' =>
20248      array (
20249        'cuentaT_id' =>
20250        array (
20251          'es' => 'catalog',
20252          'formato' => 'link_one_select',
20253          'to_table' => 'cuentat',
20254          'to_field' => 'cuentaT_id',
20255          'this_table' => 'permiso_ctat',
20256          'this_field' => 'cuentaT_id',
20257        ),
20258      ),
20259      'plantilla_permiso_ctat' =>
20260      array (
20261        'plantilla_permiso_ctat_id' =>
20262        array (
20263          'es' => 'catalog',
20264          'formato' => 'link_one_select',
20265          'to_table' => 'plantilla_permiso_ctat',
20266          'to_field' => 'plantilla_permiso_ctat_id',
20267          'this_table' => 'permiso_ctat',
20268          'this_field' => 'plantilla_permiso_ctat_id',
20269        ),
20270      ),
20271    ),
20272  ),
20273  'permiso_nombre' =>
20274  array (
20275    'es' => 'data',
20276    'pk_single_field' => 'permiso_nombre',
20277    'pk_single_type' => 'value',
20278    'label_field' => 'ultimo_cambio',
20279    'has_seq' => false,
20280    'has_child' => false,
20281  ),
20282  'permiso_usuario' =>
20283  array (
20284    'es' => 'child',
20285    'pk_single_field' => 'permiso_usuario_id',
20286    'pk_single_type' => 'auto_increment',
20287    'label_field' => 'permiso_nombre',
20288    'has_seq' => false,
20289    'has_child' => false,
20290    'UNI' =>
20291    array (
20292      'permiso_iac_usr_id' =>
20293      array (
20294        1 => 'permiso_nombre',
20295        2 => 'iac_usr_id',
20296      ),
20297    ),
20298    'links_to' =>
20299    array (
20300      'iac_usr' =>
20301      array (
20302        'iac_usr_id' =>
20303        array (
20304          'es' => 'catalog',
20305          'formato' => 'link_one_select',
20306          'to_table' => 'iac_usr',
20307          'to_field' => 'iac_usr_id',
20308          'this_table' => 'permiso_usuario',
20309          'this_field' => 'iac_usr_id',
20310        ),
20311      ),
20312    ),
20313  ),
20314  'permisos' =>
20315  array (
20316    'es' => 'data',
20317    'pk_single_field' => 'permisos_id',
20318    'pk_single_type' => 'uuid',
20319    'label_field' => 'tema',
20320    'has_seq' => false,
20321    'has_child' => false,
20322  ),
20323  'plantilla' =>
20324  array (
20325    'es' => 'parent',
20326    'pk_single_field' => 'plantilla_id',
20327    'pk_single_type' => 'uuid',
20328    'label_field' => 'plantilla',
20329    'has_seq' => false,
20330    'has_child' => true,
20331    'has_fckeditor' => true,
20332    'UNI' =>
20333    array (
20334      0 => 'plantilla',
20335    ),
20336    'links_from' =>
20337    array (
20338      'banco_cuenta_mov_plantilla' =>
20339      array (
20340        'plantilla_id' =>
20341        array (
20342          'es' => 'child',
20343          'formato' => 'jqgrid',
20344          'to_table' => 'banco_cuenta_mov_plantilla',
20345          'to_field' => 'plantilla_id',
20346          'this_table' => 'plantilla',
20347          'this_field' => 'plantilla_id',
20348          'restrict_delete' => true,
20349          'delete_with_parent' => false,
20350          'on_delete_set_to' => 0,
20351        ),
20352      ),
20353      'iac_usr' =>
20354      array (
20355        'plantilla_id' =>
20356        array (
20357          'es' => 'catalog_entry',
20358          'formato' => 'jqgrid',
20359          'to_table' => 'iac_usr',
20360          'to_field' => 'plantilla_id',
20361          'this_table' => 'plantilla',
20362          'this_field' => 'plantilla_id',
20363          'restrict_delete' => true,
20364          'delete_with_parent' => false,
20365          'on_delete_set_to' => 0,
20366        ),
20367      ),
20368      'mov_verificado_plantilla' =>
20369      array (
20370        'plantilla_id' =>
20371        array (
20372          'es' => 'child',
20373          'formato' => 'jqgrid',
20374          'to_table' => 'mov_verificado_plantilla',
20375          'to_field' => 'plantilla_id',
20376          'this_table' => 'plantilla',
20377          'this_field' => 'plantilla_id',
20378          'restrict_delete' => true,
20379          'delete_with_parent' => false,
20380          'on_delete_set_to' => 0,
20381        ),
20382      ),
20383    ),
20384  ),
20385  'plantilla_cobranza' =>
20386  array (
20387    'es' => 'child',
20388    'pk_single_field' => 'plantilla_cobranza_id',
20389    'pk_single_type' => 'auto_increment',
20390    'label_field' => 'plantillatienda_id',
20391    'has_seq' => false,
20392    'has_child' => false,
20393    'UNI' =>
20394    array (
20395      'plantilla_id' =>
20396      array (
20397        1 => 'plantillatienda_id',
20398        2 => 'tienda_id',
20399      ),
20400    ),
20401    'links_to' =>
20402    array (
20403      'plantillatienda' =>
20404      array (
20405        'plantillatienda_id' =>
20406        array (
20407          'es' => 'catalog',
20408          'formato' => 'link_one_select',
20409          'to_table' => 'plantillatienda',
20410          'to_field' => 'plantilla',
20411          'this_table' => 'plantilla_cobranza',
20412          'this_field' => 'plantillatienda_id',
20413        ),
20414      ),
20415      'tienda' =>
20416      array (
20417        'tienda_id' =>
20418        array (
20419          'es' => 'catalog',
20420          'formato' => 'link_one_select',
20421          'to_table' => 'tienda',
20422          'to_field' => 'tienda_id',
20423          'this_table' => 'plantilla_cobranza',
20424          'this_field' => 'tienda_id',
20425        ),
20426      ),
20427    ),
20428  ),
20429  'plantilla_cuentat_gasto' =>
20430  array (
20431    'es' => 'parent',
20432    'pk_single_field' => 'plantilla_cuentat_gasto_id',
20433    'pk_single_type' => 'uuid',
20434    'label_field' => 'nombre',
20435    'vale' => true,
20436    'orden' => true,
20437    'has_seq' => false,
20438    'has_child' => true,
20439    'has_numeric' => true,
20440    'has_datetime' => true,
20441    'has_fckeditor' => true,
20442    'has_date' => true,
20443    'links_from' =>
20444    array (
20445      'asignacion' =>
20446      array (
20447        'plantilla_cuentat_gasto_id' =>
20448        array (
20449          'es' => 'catalog_entry',
20450          'formato' => 'jqgrid',
20451          'to_table' => 'asignacion',
20452          'to_field' => 'plantilla_cuentat_gasto_id',
20453          'this_table' => 'plantilla_cuentat_gasto',
20454          'this_field' => 'plantilla_cuentat_gasto_id',
20455          'restrict_delete' => true,
20456          'delete_with_parent' => false,
20457          'on_delete_set_to' => 0,
20458        ),
20459      ),
20460      'cuentat_gasto' =>
20461      array (
20462        'plantilla_cuentat_gasto_id' =>
20463        array (
20464          'es' => 'catalog_entry',
20465          'formato' => 'jqgrid',
20466          'to_table' => 'cuentat_gasto',
20467          'to_field' => 'plantilla_cuentat_gasto_id',
20468          'this_table' => 'plantilla_cuentat_gasto',
20469          'this_field' => 'plantilla_cuentat_gasto_id',
20470          'restrict_delete' => true,
20471          'delete_with_parent' => false,
20472          'on_delete_set_to' => 0,
20473        ),
20474      ),
20475    ),
20476  ),
20477  'plantilla_permiso_ctat' =>
20478  array (
20479    'es' => 'parent',
20480    'pk_single_field' => 'plantilla_permiso_ctat_id',
20481    'pk_single_type' => 'auto_increment',
20482    'label_field' => 'nombre',
20483    'has_seq' => false,
20484    'has_child' => true,
20485    'links_from' =>
20486    array (
20487      'permiso_ctat' =>
20488      array (
20489        'plantilla_permiso_ctat_id' =>
20490        array (
20491          'es' => 'catalog_entry',
20492          'formato' => 'jqgrid',
20493          'to_table' => 'permiso_ctat',
20494          'to_field' => 'plantilla_permiso_ctat_id',
20495          'this_table' => 'plantilla_permiso_ctat',
20496          'this_field' => 'plantilla_permiso_ctat_id',
20497          'restrict_delete' => true,
20498          'delete_with_parent' => false,
20499          'on_delete_set_to' => 0,
20500        ),
20501      ),
20502    ),
20503  ),
20504  'plantillatienda' =>
20505  array (
20506    'es' => 'catalog',
20507    'pk_single_field' => 'plantilla',
20508    'pk_single_type' => 'value',
20509    'label_field' => 'plantillatienda_id',
20510    'has_seq' => false,
20511    'has_child' => true,
20512    'has_fckeditor' => true,
20513    'links_from' =>
20514    array (
20515      'iac_usr' =>
20516      array (
20517        'plantillatienda_id' =>
20518        array (
20519          'es' => 'catalog_entry',
20520          'formato' => 'link_one_select',
20521          'to_table' => 'iac_usr',
20522          'to_field' => 'plantillatienda_id',
20523          'this_table' => 'plantillatienda',
20524          'this_field' => 'plantilla',
20525          'restrict_delete' => true,
20526          'delete_with_parent' => false,
20527          'on_delete_set_to' => 0,
20528        ),
20529      ),
20530      'plantilla_cobranza' =>
20531      array (
20532        'plantillatienda_id' =>
20533        array (
20534          'es' => 'catalog_entry',
20535          'formato' => 'link_one_select',
20536          'to_table' => 'plantilla_cobranza',
20537          'to_field' => 'plantillatienda_id',
20538          'this_table' => 'plantillatienda',
20539          'this_field' => 'plantilla',
20540          'restrict_delete' => true,
20541          'delete_with_parent' => false,
20542          'on_delete_set_to' => 0,
20543        ),
20544      ),
20545    ),
20546  ),
20547  'producto_bodega' =>
20548  array (
20549    'es' => 'child',
20550    'PK' =>
20551    array (
20552      0 => 'bodega_id',
20553      1 => 'producto_general_id',
20554      2 => 'color_id',
20555    ),
20556    'label_field' => 'producto_bodega_id',
20557    'has_seq' => false,
20558    'has_child' => true,
20559    'has_date' => true,
20560    'has_fckeditor' => true,
20561    'links_from' =>
20562    array (
20563      'ajuste_item' =>
20564      array (
20565        'producto_bodega_id' =>
20566        array (
20567          'es' => 'catalog_entry',
20568          'formato' => 'link_one_select',
20569          'to_table' => 'ajuste_item',
20570          'to_field' => 'producto_bodega_id',
20571          'this_table' => 'producto_bodega',
20572          'this_field' => '?',
20573          'restrict_delete' => true,
20574          'delete_with_parent' => false,
20575          'on_delete_set_to' => 0,
20576        ),
20577      ),
20578      'bodega_existencia_diaria' =>
20579      array (
20580        'producto_bodega_id' =>
20581        array (
20582          'es' => 'catalog_entry',
20583          'formato' => 'link_one_select',
20584          'to_table' => 'bodega_existencia_diaria',
20585          'to_field' => 'producto_bodega_id',
20586          'this_table' => 'producto_bodega',
20587          'this_field' => '?',
20588          'restrict_delete' => true,
20589          'delete_with_parent' => false,
20590          'on_delete_set_to' => 0,
20591        ),
20592      ),
20593      'nota_bodega_items' =>
20594      array (
20595        'producto_bodega_id' =>
20596        array (
20597          'es' => 'catalog_entry',
20598          'formato' => 'link_one_select',
20599          'to_table' => 'nota_bodega_items',
20600          'to_field' => 'producto_bodega_id',
20601          'this_table' => 'producto_bodega',
20602          'this_field' => '?',
20603          'restrict_delete' => true,
20604          'delete_with_parent' => false,
20605          'on_delete_set_to' => 0,
20606        ),
20607      ),
20608      'nota_bodega_items_log' =>
20609      array (
20610        'producto_bodega_id' =>
20611        array (
20612          'es' => 'catalog_entry',
20613          'formato' => 'link_one_select',
20614          'to_table' => 'nota_bodega_items_log',
20615          'to_field' => 'producto_bodega_id',
20616          'this_table' => 'producto_bodega',
20617          'this_field' => '?',
20618          'restrict_delete' => true,
20619          'delete_with_parent' => false,
20620          'on_delete_set_to' => 0,
20621        ),
20622      ),
20623      'pedir_producto' =>
20624      array (
20625        'producto_bodega_id' =>
20626        array (
20627          'es' => 'catalog_entry',
20628          'formato' => 'link_one_select',
20629          'to_table' => 'pedir_producto',
20630          'to_field' => 'producto_bodega_id',
20631          'this_table' => 'producto_bodega',
20632          'this_field' => '?',
20633          'restrict_delete' => true,
20634          'delete_with_parent' => false,
20635          'on_delete_set_to' => 0,
20636        ),
20637      ),
20638      'solicitud_carta_porte_items' =>
20639      array (
20640        'producto_bodega_id' =>
20641        array (
20642          'es' => 'catalog_entry',
20643          'formato' => 'link_one_select',
20644          'to_table' => 'solicitud_carta_porte_items',
20645          'to_field' => 'producto_bodega_id',
20646          'this_table' => 'producto_bodega',
20647          'this_field' => '?',
20648          'restrict_delete' => true,
20649          'delete_with_parent' => false,
20650          'on_delete_set_to' => 0,
20651        ),
20652      ),
20653    ),
20654    'links_to' =>
20655    array (
20656      'bodega' =>
20657      array (
20658        'bodega_id' =>
20659        array (
20660          'es' => 'catalog',
20661          'formato' => 'link_one_select',
20662          'to_table' => 'bodega',
20663          'to_field' => 'bodega_id',
20664          'this_table' => 'producto_bodega',
20665          'this_field' => 'bodega_id',
20666        ),
20667      ),
20668      'producto_general' =>
20669      array (
20670        'producto_general_id' =>
20671        array (
20672          'es' => 'catalog',
20673          'formato' => 'link_one_select',
20674          'to_table' => 'producto_general',
20675          'to_field' => 'producto_general_id',
20676          'this_table' => 'producto_bodega',
20677          'this_field' => 'producto_general_id',
20678        ),
20679      ),
20680      'color' =>
20681      array (
20682        'color_id' =>
20683        array (
20684          'es' => 'catalog',
20685          'formato' => 'link_one_select',
20686          'to_table' => 'color',
20687          'to_field' => 'color_id',
20688          'this_table' => 'producto_bodega',
20689          'this_field' => 'color_id',
20690        ),
20691      ),
20692      'unidades' =>
20693      array (
20694        'unidades_id' =>
20695        array (
20696          'es' => 'catalog',
20697          'formato' => 'link_one_select',
20698          'to_table' => 'unidades',
20699          'to_field' => 'unidades_id',
20700          'this_table' => 'producto_bodega',
20701          'this_field' => 'unidades_id',
20702        ),
20703      ),
20704    ),
20705  ),
20706  'producto_bodega_hist' =>
20707  array (
20708    'es' => 'data',
20709    'pk_single_field' => 'history_id',
20710    'pk_single_type' => 'auto_increment',
20711    'label_field' => 'action',
20712    'has_seq' => false,
20713    'has_child' => false,
20714    'has_datetime' => true,
20715    'links_from' =>
20716    array (
20717      'ajuste_hist' =>
20718      array (
20719        'es' => 'one2one',
20720      ),
20721      'bodega_hist' =>
20722      array (
20723        'es' => 'one2one',
20724      ),
20725      'cheque_hist' =>
20726      array (
20727        'es' => 'one2one',
20728      ),
20729      'cliente_hist' =>
20730      array (
20731        'es' => 'one2one',
20732      ),
20733      'color_hist' =>
20734      array (
20735        'es' => 'one2one',
20736      ),
20737      'estado_bodega_hist' =>
20738      array (
20739        'es' => 'one2one',
20740      ),
20741      'importador_hist' =>
20742      array (
20743        'es' => 'one2one',
20744      ),
20745      'nota_bodega_hist' =>
20746      array (
20747        'es' => 'one2one',
20748      ),
20749      'nota_bodega_verificacion_hist' =>
20750      array (
20751        'es' => 'one2one',
20752      ),
20753      'origen_bodega_bodega_hist' =>
20754      array (
20755        'es' => 'one2one',
20756      ),
20757      'origen_bodega_hist' =>
20758      array (
20759        'es' => 'one2one',
20760      ),
20761      'pagare_hist' =>
20762      array (
20763        'es' => 'one2one',
20764      ),
20765      'pedido_hist' =>
20766      array (
20767        'es' => 'one2one',
20768      ),
20769      'permiso_bodega_hist' =>
20770      array (
20771        'es' => 'one2one',
20772      ),
20773      'producto_color_hist' =>
20774      array (
20775        'es' => 'one2one',
20776      ),
20777      'producto_general_hist' =>
20778      array (
20779        'es' => 'one2one',
20780      ),
20781      'solicitud_carta_porte_hist' =>
20782      array (
20783        'es' => 'one2one',
20784      ),
20785      'tienda_hist' =>
20786      array (
20787        'es' => 'one2one',
20788      ),
20789      'vale_hist' =>
20790      array (
20791        'es' => 'one2one',
20792      ),
20793    ),
20794  ),
20795  'producto_bodega_verificacion' =>
20796  array (
20797    'es' => 'child',
20798    'PK' =>
20799    array (
20800      0 => 'bodega_id',
20801      1 => 'producto_general_id',
20802      2 => 'color_id',
20803      3 => 'bodega_verificador_id',
20804    ),
20805    'label_field' => 'producto_bodega_verificacion_id',
20806    'has_seq' => false,
20807    'has_child' => true,
20808    'has_date' => true,
20809    'has_fckeditor' => true,
20810    'links_from' =>
20811    array (
20812      'nota_bodega_verificacion_items' =>
20813      array (
20814        'producto_bodega_verificacion_id' =>
20815        array (
20816          'es' => 'catalog_entry',
20817          'formato' => 'link_one_select',
20818          'to_table' => 'nota_bodega_verificacion_items',
20819          'to_field' => 'producto_bodega_verificacion_id',
20820          'this_table' => 'producto_bodega_verificacion',
20821          'this_field' => '?',
20822          'restrict_delete' => true,
20823          'delete_with_parent' => false,
20824          'on_delete_set_to' => 0,
20825        ),
20826      ),
20827    ),
20828    'links_to' =>
20829    array (
20830      'bodega' =>
20831      array (
20832        'bodega_id' =>
20833        array (
20834          'es' => 'catalog',
20835          'formato' => 'link_one_select',
20836          'to_table' => 'bodega',
20837          'to_field' => 'bodega_id',
20838          'this_table' => 'producto_bodega_verificacion',
20839          'this_field' => 'bodega_id',
20840        ),
20841      ),
20842      'producto_general' =>
20843      array (
20844        'producto_general_id' =>
20845        array (
20846          'es' => 'catalog',
20847          'formato' => 'link_one_select',
20848          'to_table' => 'producto_general',
20849          'to_field' => 'producto_general_id',
20850          'this_table' => 'producto_bodega_verificacion',
20851          'this_field' => 'producto_general_id',
20852        ),
20853      ),
20854      'color' =>
20855      array (
20856        'color_id' =>
20857        array (
20858          'es' => 'catalog',
20859          'formato' => 'link_one_select',
20860          'to_table' => 'color',
20861          'to_field' => 'color_id',
20862          'this_table' => 'producto_bodega_verificacion',
20863          'this_field' => 'color_id',
20864        ),
20865      ),
20866      'bodega_verificador' =>
20867      array (
20868        'bodega_verificador_id' =>
20869        array (
20870          'es' => 'catalog',
20871          'formato' => 'link_one_select',
20872          'to_table' => 'bodega_verificador',
20873          'to_field' => 'bodega_verificador_id',
20874          'this_table' => 'producto_bodega_verificacion',
20875          'this_field' => 'bodega_verificador_id',
20876        ),
20877      ),
20878    ),
20879  ),
20880  'producto_color' =>
20881  array (
20882    'es' => 'child',
20883    'pk_single_field' => 'producto_color_id',
20884    'pk_single_type' => 'uuid',
20885    'label_field' => 'producto',
20886    'has_seq' => false,
20887    'has_child' => true,
20888    'has_fckeditor' => true,
20889    'has_numeric' => true,
20890    'UNI' =>
20891    array (
20892      'producto_general_color' =>
20893      array (
20894        1 => 'producto_general_id',
20895        2 => 'color_id',
20896      ),
20897    ),
20898    'links_from' =>
20899    array (
20900      'pedido_items' =>
20901      array (
20902        'producto_color_id' =>
20903        array (
20904          'es' => 'catalog_entry',
20905          'formato' => 'jqgrid',
20906          'to_table' => 'pedido_items',
20907          'to_field' => 'producto_color_id',
20908          'this_table' => 'producto_color',
20909          'this_field' => 'producto_color_id',
20910          'restrict_delete' => true,
20911          'delete_with_parent' => false,
20912          'on_delete_set_to' => 0,
20913        ),
20914      ),
20915      'producto_color_nuevo' =>
20916      array (
20917        'es' => 'one2one',
20918      ),
20919    ),
20920    'links_to' =>
20921    array (
20922      'producto_general' =>
20923      array (
20924        'producto_general_id' =>
20925        array (
20926          'es' => 'catalog',
20927          'formato' => 'link_one_select',
20928          'to_table' => 'producto_general',
20929          'to_field' => 'producto_general_id',
20930          'this_table' => 'producto_color',
20931          'this_field' => 'producto_general_id',
20932        ),
20933      ),
20934      'color' =>
20935      array (
20936        'color_id' =>
20937        array (
20938          'es' => 'catalog',
20939          'formato' => 'link_one_select',
20940          'to_table' => 'color',
20941          'to_field' => 'color_id',
20942          'this_table' => 'producto_color',
20943          'this_field' => 'color_id',
20944        ),
20945      ),
20946    ),
20947  ),
20948  'producto_color_hist' =>
20949  array (
20950    'es' => 'data',
20951    'pk_single_field' => 'history_id',
20952    'pk_single_type' => 'auto_increment',
20953    'label_field' => 'action',
20954    'has_seq' => false,
20955    'has_child' => false,
20956    'has_datetime' => true,
20957    'links_from' =>
20958    array (
20959      'ajuste_hist' =>
20960      array (
20961        'es' => 'one2one',
20962      ),
20963      'bodega_hist' =>
20964      array (
20965        'es' => 'one2one',
20966      ),
20967      'cheque_hist' =>
20968      array (
20969        'es' => 'one2one',
20970      ),
20971      'cliente_hist' =>
20972      array (
20973        'es' => 'one2one',
20974      ),
20975      'color_hist' =>
20976      array (
20977        'es' => 'one2one',
20978      ),
20979      'estado_bodega_hist' =>
20980      array (
20981        'es' => 'one2one',
20982      ),
20983      'importador_hist' =>
20984      array (
20985        'es' => 'one2one',
20986      ),
20987      'nota_bodega_hist' =>
20988      array (
20989        'es' => 'one2one',
20990      ),
20991      'nota_bodega_verificacion_hist' =>
20992      array (
20993        'es' => 'one2one',
20994      ),
20995      'origen_bodega_bodega_hist' =>
20996      array (
20997        'es' => 'one2one',
20998      ),
20999      'origen_bodega_hist' =>
21000      array (
21001        'es' => 'one2one',
21002      ),
21003      'pagare_hist' =>
21004      array (
21005        'es' => 'one2one',
21006      ),
21007      'pedido_hist' =>
21008      array (
21009        'es' => 'one2one',
21010      ),
21011      'permiso_bodega_hist' =>
21012      array (
21013        'es' => 'one2one',
21014      ),
21015      'producto_bodega_hist' =>
21016      array (
21017        'es' => 'one2one',
21018      ),
21019      'producto_general_hist' =>
21020      array (
21021        'es' => 'one2one',
21022      ),
21023      'solicitud_carta_porte_hist' =>
21024      array (
21025        'es' => 'one2one',
21026      ),
21027      'tienda_hist' =>
21028      array (
21029        'es' => 'one2one',
21030      ),
21031      'vale_hist' =>
21032      array (
21033        'es' => 'one2one',
21034      ),
21035    ),
21036  ),
21037  'producto_color_nuevo' =>
21038  array (
21039    'es' => 'child',
21040    'pk_single_field' => 'producto_color_id',
21041    'pk_single_type' => 'uuid',
21042    'label_field' => 'producto_general_id',
21043    'has_seq' => false,
21044    'has_child' => false,
21045    'UNI' =>
21046    array (
21047      'producto_general_id' =>
21048      array (
21049        1 => 'producto_general_id',
21050        2 => 'color_id',
21051      ),
21052    ),
21053    'links_to' =>
21054    array (
21055      'producto_general' =>
21056      array (
21057        'producto_general_id' =>
21058        array (
21059          'es' => 'catalog',
21060          'formato' => 'link_one_select',
21061          'to_table' => 'producto_general',
21062          'to_field' => 'producto_general_id',
21063          'this_table' => 'producto_color_nuevo',
21064          'this_field' => 'producto_general_id',
21065        ),
21066      ),
21067      'color' =>
21068      array (
21069        'color_id' =>
21070        array (
21071          'es' => 'catalog',
21072          'formato' => 'link_one_select',
21073          'to_table' => 'color',
21074          'to_field' => 'color_id',
21075          'this_table' => 'producto_color_nuevo',
21076          'this_field' => 'color_id',
21077        ),
21078      ),
21079    ),
21080    'links_from' =>
21081    array (
21082      'producto_color' =>
21083      array (
21084        'es' => 'one2one',
21085      ),
21086    ),
21087  ),
21088  'producto_color_oculta' =>
21089  array (
21090    'es' => 'child',
21091    'PK' =>
21092    array (
21093      0 => 'reporte',
21094      1 => 'producto_general_id',
21095      2 => 'color_id',
21096    ),
21097    'label_field' => 'alta_db',
21098    'has_seq' => false,
21099    'has_child' => false,
21100    'links_to' =>
21101    array (
21102      'producto_general' =>
21103      array (
21104        'producto_general_id' =>
21105        array (
21106          'es' => 'catalog',
21107          'formato' => 'link_one_select',
21108          'to_table' => 'producto_general',
21109          'to_field' => 'producto_general_id',
21110          'this_table' => 'producto_color_oculta',
21111          'this_field' => 'producto_general_id',
21112        ),
21113      ),
21114      'color' =>
21115      array (
21116        'color_id' =>
21117        array (
21118          'es' => 'catalog',
21119          'formato' => 'link_one_select',
21120          'to_table' => 'color',
21121          'to_field' => 'color_id',
21122          'this_table' => 'producto_color_oculta',
21123          'this_field' => 'color_id',
21124        ),
21125      ),
21126    ),
21127  ),
21128  'producto_costs_bodega' =>
21129  array (
21130    'es' => 'child',
21131    'PK' =>
21132    array (
21133      0 => 'fecha',
21134      1 => 'producto_general_id',
21135    ),
21136    'label_field' => 'producto_costo_bodegas_id',
21137    'has_seq' => false,
21138    'has_child' => false,
21139    'has_date' => true,
21140    'links_to' =>
21141    array (
21142      'producto_general' =>
21143      array (
21144        'producto_general_id' =>
21145        array (
21146          'es' => 'catalog',
21147          'formato' => 'link_one_select',
21148          'to_table' => 'producto_general',
21149          'to_field' => 'producto_general_id',
21150          'this_table' => 'producto_costs_bodega',
21151          'this_field' => 'producto_general_id',
21152        ),
21153      ),
21154    ),
21155  ),
21156  'producto_general' =>
21157  array (
21158    'es' => 'parent',
21159    'pk_single_field' => 'producto_general_id',
21160    'pk_single_type' => 'uuid',
21161    'label_field' => 'producto',
21162    'has_seq' => false,
21163    'has_child' => true,
21164    'has_fckeditor' => true,
21165    'has_numeric' => true,
21166    'UNI' =>
21167    array (
21168      0 => 'producto',
21169      'nombre_producto_unico' =>
21170      array (
21171        1 => 'producto',
21172      ),
21173    ),
21174    'links_from' =>
21175    array (
21176      'ajuste' =>
21177      array (
21178        'producto_general_id' =>
21179        array (
21180          'es' => 'catalog_entry',
21181          'formato' => 'jqgrid',
21182          'to_table' => 'ajuste',
21183          'to_field' => 'producto_general_id',
21184          'this_table' => 'producto_general',
21185          'this_field' => 'producto_general_id',
21186          'restrict_delete' => true,
21187          'delete_with_parent' => false,
21188          'on_delete_set_to' => 0,
21189        ),
21190      ),
21191      'bodega_existencia_diaria' =>
21192      array (
21193        'producto_general_id' =>
21194        array (
21195          'es' => 'catalog_entry',
21196          'formato' => 'jqgrid',
21197          'to_table' => 'bodega_existencia_diaria',
21198          'to_field' => 'producto_general_id',
21199          'this_table' => 'producto_general',
21200          'this_field' => 'producto_general_id',
21201          'restrict_delete' => true,
21202          'delete_with_parent' => false,
21203          'on_delete_set_to' => 0,
21204        ),
21205      ),
21206      'lista_precios_producto' =>
21207      array (
21208        'producto_general_id' =>
21209        array (
21210          'es' => 'catalog_entry',
21211          'formato' => 'jqgrid',
21212          'to_table' => 'lista_precios_producto',
21213          'to_field' => 'producto_general_id',
21214          'this_table' => 'producto_general',
21215          'this_field' => 'producto_general_id',
21216          'restrict_delete' => true,
21217          'delete_with_parent' => false,
21218          'on_delete_set_to' => 0,
21219        ),
21220      ),
21221      'nota_bodega' =>
21222      array (
21223        'producto_general_id' =>
21224        array (
21225          'es' => 'catalog_entry',
21226          'formato' => 'jqgrid',
21227          'to_table' => 'nota_bodega',
21228          'to_field' => 'producto_general_id',
21229          'this_table' => 'producto_general',
21230          'this_field' => 'producto_general_id',
21231          'restrict_delete' => true,
21232          'delete_with_parent' => false,
21233          'on_delete_set_to' => 0,
21234        ),
21235      ),
21236      'nota_bodega_autorizacion' =>
21237      array (
21238        'producto_general_id' =>
21239        array (
21240          'es' => 'catalog_entry',
21241          'formato' => 'jqgrid',
21242          'to_table' => 'nota_bodega_autorizacion',
21243          'to_field' => 'producto_general_id',
21244          'this_table' => 'producto_general',
21245          'this_field' => 'producto_general_id',
21246          'restrict_delete' => true,
21247          'delete_with_parent' => false,
21248          'on_delete_set_to' => 0,
21249        ),
21250      ),
21251      'nota_bodega_log' =>
21252      array (
21253        'producto_general_id' =>
21254        array (
21255          'es' => 'catalog_entry',
21256          'formato' => 'jqgrid',
21257          'to_table' => 'nota_bodega_log',
21258          'to_field' => 'producto_general_id',
21259          'this_table' => 'producto_general',
21260          'this_field' => 'producto_general_id',
21261          'restrict_delete' => true,
21262          'delete_with_parent' => false,
21263          'on_delete_set_to' => 0,
21264        ),
21265      ),
21266      'nota_bodega_verificacion' =>
21267      array (
21268        'producto_general_id' =>
21269        array (
21270          'es' => 'catalog_entry',
21271          'formato' => 'jqgrid',
21272          'to_table' => 'nota_bodega_verificacion',
21273          'to_field' => 'producto_general_id',
21274          'this_table' => 'producto_general',
21275          'this_field' => 'producto_general_id',
21276          'restrict_delete' => true,
21277          'delete_with_parent' => false,
21278          'on_delete_set_to' => 0,
21279        ),
21280      ),
21281      'nota_bodega_verificacion_items' =>
21282      array (
21283        'producto_general_id' =>
21284        array (
21285          'es' => 'catalog_entry',
21286          'formato' => 'jqgrid',
21287          'to_table' => 'nota_bodega_verificacion_items',
21288          'to_field' => 'producto_general_id',
21289          'this_table' => 'producto_general',
21290          'this_field' => 'producto_general_id',
21291          'restrict_delete' => true,
21292          'delete_with_parent' => false,
21293          'on_delete_set_to' => 0,
21294        ),
21295      ),
21296      'pedido_items' =>
21297      array (
21298        'producto_general_id' =>
21299        array (
21300          'es' => 'catalog_entry',
21301          'formato' => 'jqgrid',
21302          'to_table' => 'pedido_items',
21303          'to_field' => 'producto_general_id',
21304          'this_table' => 'producto_general',
21305          'this_field' => 'producto_general_id',
21306          'restrict_delete' => true,
21307          'delete_with_parent' => false,
21308          'on_delete_set_to' => 0,
21309        ),
21310      ),
21311      'pedido_recomienda_items' =>
21312      array (
21313        'producto_general_id' =>
21314        array (
21315          'es' => 'catalog_entry',
21316          'formato' => 'jqgrid',
21317          'to_table' => 'pedido_recomienda_items',
21318          'to_field' => 'producto_general_id',
21319          'this_table' => 'producto_general',
21320          'this_field' => 'producto_general_id',
21321          'restrict_delete' => true,
21322          'delete_with_parent' => false,
21323          'on_delete_set_to' => 0,
21324        ),
21325      ),
21326      'pedir_producto' =>
21327      array (
21328        'producto_general_id' =>
21329        array (
21330          'es' => 'catalog_entry',
21331          'formato' => 'jqgrid',
21332          'to_table' => 'pedir_producto',
21333          'to_field' => 'producto_general_id',
21334          'this_table' => 'producto_general',
21335          'this_field' => 'producto_general_id',
21336          'restrict_delete' => true,
21337          'delete_with_parent' => false,
21338          'on_delete_set_to' => 0,
21339        ),
21340      ),
21341      'producto_bodega' =>
21342      array (
21343        'producto_general_id' =>
21344        array (
21345          'es' => 'catalog_entry',
21346          'formato' => 'jqgrid',
21347          'to_table' => 'producto_bodega',
21348          'to_field' => 'producto_general_id',
21349          'this_table' => 'producto_general',
21350          'this_field' => 'producto_general_id',
21351          'restrict_delete' => true,
21352          'delete_with_parent' => false,
21353          'on_delete_set_to' => 0,
21354        ),
21355      ),
21356      'producto_bodega_verificacion' =>
21357      array (
21358        'producto_general_id' =>
21359        array (
21360          'es' => 'catalog_entry',
21361          'formato' => 'jqgrid',
21362          'to_table' => 'producto_bodega_verificacion',
21363          'to_field' => 'producto_general_id',
21364          'this_table' => 'producto_general',
21365          'this_field' => 'producto_general_id',
21366          'restrict_delete' => true,
21367          'delete_with_parent' => false,
21368          'on_delete_set_to' => 0,
21369        ),
21370      ),
21371      'producto_color' =>
21372      array (
21373        'producto_general_id' =>
21374        array (
21375          'es' => 'catalog_entry',
21376          'formato' => 'jqgrid',
21377          'to_table' => 'producto_color',
21378          'to_field' => 'producto_general_id',
21379          'this_table' => 'producto_general',
21380          'this_field' => 'producto_general_id',
21381          'restrict_delete' => true,
21382          'delete_with_parent' => false,
21383          'on_delete_set_to' => 0,
21384        ),
21385      ),
21386      'producto_color_nuevo' =>
21387      array (
21388        'producto_general_id' =>
21389        array (
21390          'es' => 'catalog_entry',
21391          'formato' => 'jqgrid',
21392          'to_table' => 'producto_color_nuevo',
21393          'to_field' => 'producto_general_id',
21394          'this_table' => 'producto_general',
21395          'this_field' => 'producto_general_id',
21396          'restrict_delete' => true,
21397          'delete_with_parent' => false,
21398          'on_delete_set_to' => 0,
21399        ),
21400      ),
21401      'producto_color_oculta' =>
21402      array (
21403        'producto_general_id' =>
21404        array (
21405          'es' => 'catalog_entry',
21406          'formato' => 'jqgrid',
21407          'to_table' => 'producto_color_oculta',
21408          'to_field' => 'producto_general_id',
21409          'this_table' => 'producto_general',
21410          'this_field' => 'producto_general_id',
21411          'restrict_delete' => true,
21412          'delete_with_parent' => false,
21413          'on_delete_set_to' => 0,
21414        ),
21415      ),
21416      'producto_costs_bodega' =>
21417      array (
21418        'producto_general_id' =>
21419        array (
21420          'es' => 'catalog_entry',
21421          'formato' => 'jqgrid',
21422          'to_table' => 'producto_costs_bodega',
21423          'to_field' => 'producto_general_id',
21424          'this_table' => 'producto_general',
21425          'this_field' => 'producto_general_id',
21426          'restrict_delete' => true,
21427          'delete_with_parent' => false,
21428          'on_delete_set_to' => 0,
21429        ),
21430      ),
21431      'reset_history' =>
21432      array (
21433        'producto_general_id' =>
21434        array (
21435          'es' => 'catalog_entry',
21436          'formato' => 'jqgrid',
21437          'to_table' => 'reset_history',
21438          'to_field' => 'producto_general_id',
21439          'this_table' => 'producto_general',
21440          'this_field' => 'producto_general_id',
21441          'restrict_delete' => true,
21442          'delete_with_parent' => false,
21443          'on_delete_set_to' => 0,
21444        ),
21445      ),
21446      'solicitud_carta_porte_items' =>
21447      array (
21448        'producto_general_id' =>
21449        array (
21450          'es' => 'catalog_entry',
21451          'formato' => 'jqgrid',
21452          'to_table' => 'solicitud_carta_porte_items',
21453          'to_field' => 'producto_general_id',
21454          'this_table' => 'producto_general',
21455          'this_field' => 'producto_general_id',
21456          'restrict_delete' => true,
21457          'delete_with_parent' => false,
21458          'on_delete_set_to' => 0,
21459        ),
21460      ),
21461    ),
21462    'links_to' =>
21463    array (
21464      'unidades' =>
21465      array (
21466        'unidades_id' =>
21467        array (
21468          'es' => 'catalog',
21469          'formato' => 'link_one_select',
21470          'to_table' => 'unidades',
21471          'to_field' => 'unidades_id',
21472          'this_table' => 'producto_general',
21473          'this_field' => 'unidades_id',
21474        ),
21475      ),
21476      'moneda' =>
21477      array (
21478        'cost_moneda_id' =>
21479        array (
21480          'es' => 'catalog',
21481          'formato' => 'link_one_select',
21482          'to_table' => 'moneda',
21483          'to_field' => 'moneda_id',
21484          'this_table' => 'producto_general',
21485          'this_field' => 'cost_moneda_id',
21486        ),
21487      ),
21488    ),
21489  ),
21490  'producto_general_hist' =>
21491  array (
21492    'es' => 'data',
21493    'pk_single_field' => 'history_id',
21494    'pk_single_type' => 'auto_increment',
21495    'label_field' => 'action',
21496    'has_seq' => false,
21497    'has_child' => false,
21498    'has_datetime' => true,
21499    'links_from' =>
21500    array (
21501      'ajuste_hist' =>
21502      array (
21503        'es' => 'one2one',
21504      ),
21505      'bodega_hist' =>
21506      array (
21507        'es' => 'one2one',
21508      ),
21509      'cheque_hist' =>
21510      array (
21511        'es' => 'one2one',
21512      ),
21513      'cliente_hist' =>
21514      array (
21515        'es' => 'one2one',
21516      ),
21517      'color_hist' =>
21518      array (
21519        'es' => 'one2one',
21520      ),
21521      'estado_bodega_hist' =>
21522      array (
21523        'es' => 'one2one',
21524      ),
21525      'importador_hist' =>
21526      array (
21527        'es' => 'one2one',
21528      ),
21529      'nota_bodega_hist' =>
21530      array (
21531        'es' => 'one2one',
21532      ),
21533      'nota_bodega_verificacion_hist' =>
21534      array (
21535        'es' => 'one2one',
21536      ),
21537      'origen_bodega_bodega_hist' =>
21538      array (
21539        'es' => 'one2one',
21540      ),
21541      'origen_bodega_hist' =>
21542      array (
21543        'es' => 'one2one',
21544      ),
21545      'pagare_hist' =>
21546      array (
21547        'es' => 'one2one',
21548      ),
21549      'pedido_hist' =>
21550      array (
21551        'es' => 'one2one',
21552      ),
21553      'permiso_bodega_hist' =>
21554      array (
21555        'es' => 'one2one',
21556      ),
21557      'producto_bodega_hist' =>
21558      array (
21559        'es' => 'one2one',
21560      ),
21561      'producto_color_hist' =>
21562      array (
21563        'es' => 'one2one',
21564      ),
21565      'solicitud_carta_porte_hist' =>
21566      array (
21567        'es' => 'one2one',
21568      ),
21569      'tienda_hist' =>
21570      array (
21571        'es' => 'one2one',
21572      ),
21573      'vale_hist' =>
21574      array (
21575        'es' => 'one2one',
21576      ),
21577    ),
21578  ),
21579  'registro_transferencia_dinero' =>
21580  array (
21581    'es' => 'child',
21582    'pk_single_field' => 'documento_generado_id',
21583    'pk_single_type' => 'auto_increment',
21584    'label_field' => 'nombre_empresa',
21585    'has_seq' => false,
21586    'has_child' => false,
21587    'has_date' => true,
21588    'has_numeric' => true,
21589    'links_to' =>
21590    array (
21591      'empresa' =>
21592      array (
21593        'empresa_id' =>
21594        array (
21595          'es' => 'catalog',
21596          'formato' => 'link_one_select',
21597          'to_table' => 'empresa',
21598          'to_field' => 'empresa_id',
21599          'this_table' => 'registro_transferencia_dinero',
21600          'this_field' => 'empresa_id',
21601        ),
21602      ),
21603    ),
21604  ),
21605  'reportes_grid' =>
21606  array (
21607    'es' => 'data',
21608    'pk_single_field' => 'reporte_grid_id',
21609    'pk_single_type' => 'uuid',
21610    'label_field' => 'origen',
21611    'has_seq' => false,
21612    'has_child' => false,
21613    'has_fckeditor' => true,
21614  ),
21615  'reset_history' =>
21616  array (
21617    'es' => 'child',
21618    'pk_single_field' => 'id_reset',
21619    'pk_single_type' => 'auto_increment',
21620    'label_field' => 'bodega_id',
21621    'has_seq' => false,
21622    'has_child' => false,
21623    'has_numeric' => true,
21624    'links_to' =>
21625    array (
21626      'bodega' =>
21627      array (
21628        'bodega_id' =>
21629        array (
21630          'es' => 'catalog',
21631          'formato' => 'link_one_select',
21632          'to_table' => 'bodega',
21633          'to_field' => 'bodega_id',
21634          'this_table' => 'reset_history',
21635          'this_field' => 'bodega_id',
21636        ),
21637      ),
21638      'producto_general' =>
21639      array (
21640        'producto_general_id' =>
21641        array (
21642          'es' => 'catalog',
21643          'formato' => 'link_one_select',
21644          'to_table' => 'producto_general',
21645          'to_field' => 'producto_general_id',
21646          'this_table' => 'reset_history',
21647          'this_field' => 'producto_general_id',
21648        ),
21649      ),
21650      'color' =>
21651      array (
21652        'color_id' =>
21653        array (
21654          'es' => 'catalog',
21655          'formato' => 'link_one_select',
21656          'to_table' => 'color',
21657          'to_field' => 'color_id',
21658          'this_table' => 'reset_history',
21659          'this_field' => 'color_id',
21660        ),
21661      ),
21662    ),
21663  ),
21664  'revisador' =>
21665  array (
21666    'es' => 'data',
21667    'PK' =>
21668    array (
21669      0 => 'iac_usr_id',
21670      1 => 'tema',
21671      2 => 'id',
21672    ),
21673    'label_field' => 'revisado_el',
21674    'has_seq' => false,
21675    'has_child' => false,
21676    'has_datetime' => true,
21677    'links_to' =>
21678    array (
21679      'iac_usr' =>
21680      array (
21681        'iac_usr_id' =>
21682        array (
21683          'es' => 'catalog',
21684          'formato' => 'link_one_select',
21685          'to_table' => 'iac_usr',
21686          'to_field' => 'iac_usr_id',
21687          'this_table' => 'revisador',
21688          'this_field' => 'iac_usr_id',
21689        ),
21690      ),
21691    ),
21692  ),
21693  'solicitud_carta_porte' =>
21694  array (
21695    'es' => 'parent',
21696    'pk_single_field' => 'solicitud_carta_porte_id',
21697    'pk_single_type' => 'uuid',
21698    'label_field' => 'origen_id',
21699    'has_seq' => false,
21700    'has_child' => true,
21701    'has_date' => true,
21702    'has_numeric' => true,
21703    'has_fckeditor' => true,
21704    'has_file_upload' => true,
21705    'links_from' =>
21706    array (
21707      'nota_bodega' =>
21708      array (
21709        'solicitud_carta_porte_id' =>
21710        array (
21711          'es' => 'catalog_entry',
21712          'formato' => 'jqgrid',
21713          'to_table' => 'nota_bodega',
21714          'to_field' => 'solicitud_carta_porte_id',
21715          'this_table' => 'solicitud_carta_porte',
21716          'this_field' => 'solicitud_carta_porte_id',
21717          'restrict_delete' => true,
21718          'delete_with_parent' => false,
21719          'on_delete_set_to' => 0,
21720        ),
21721      ),
21722      'nota_bodega_autorizacion' =>
21723      array (
21724        'solicitud_carta_porte_id' =>
21725        array (
21726          'es' => 'catalog_entry',
21727          'formato' => 'jqgrid',
21728          'to_table' => 'nota_bodega_autorizacion',
21729          'to_field' => 'solicitud_carta_porte_id',
21730          'this_table' => 'solicitud_carta_porte',
21731          'this_field' => 'solicitud_carta_porte_id',
21732          'restrict_delete' => true,
21733          'delete_with_parent' => false,
21734          'on_delete_set_to' => 0,
21735        ),
21736      ),
21737      'nota_bodega_log' =>
21738      array (
21739        'solicitud_carta_porte_id' =>
21740        array (
21741          'es' => 'catalog_entry',
21742          'formato' => 'jqgrid',
21743          'to_table' => 'nota_bodega_log',
21744          'to_field' => 'solicitud_carta_porte_id',
21745          'this_table' => 'solicitud_carta_porte',
21746          'this_field' => 'solicitud_carta_porte_id',
21747          'restrict_delete' => true,
21748          'delete_with_parent' => false,
21749          'on_delete_set_to' => 0,
21750        ),
21751      ),
21752      'solicitud_carta_porte_items' =>
21753      array (
21754        'solicitud_carta_porte_id' =>
21755        array (
21756          'es' => 'child',
21757          'formato' => 'jqgrid',
21758          'to_table' => 'solicitud_carta_porte_items',
21759          'to_field' => 'solicitud_carta_porte_id',
21760          'this_table' => 'solicitud_carta_porte',
21761          'this_field' => 'solicitud_carta_porte_id',
21762          'restrict_delete' => false,
21763          'delete_with_parent' => true,
21764          'on_delete_set_to' => 0,
21765        ),
21766      ),
21767    ),
21768    'links_to' =>
21769    array (
21770      'nota' =>
21771      array (
21772        'contra_nota_bodega_id' =>
21773        array (
21774          'es' => 'catalog',
21775          'formato' => 'link_one_select',
21776          'to_table' => 'nota',
21777          'to_field' => 'nota_id',
21778          'this_table' => 'solicitud_carta_porte',
21779          'this_field' => 'contra_nota_bodega_id',
21780        ),
21781      ),
21782      'cp_figuratransporte' =>
21783      array (
21784        'cp_figuratransporte_id' =>
21785        array (
21786          'es' => 'catalog',
21787          'formato' => 'link_one_select',
21788          'to_table' => 'cp_figuratransporte',
21789          'to_field' => 'figuratransporte_id',
21790          'this_table' => 'solicitud_carta_porte',
21791          'this_field' => 'cp_figuratransporte_id',
21792        ),
21793      ),
21794      'cp_autotransporte' =>
21795      array (
21796        'cp_autotransporte_id' =>
21797        array (
21798          'es' => 'catalog',
21799          'formato' => 'link_one_select',
21800          'to_table' => 'cp_autotransporte',
21801          'to_field' => 'autotransporte_id',
21802          'this_table' => 'solicitud_carta_porte',
21803          'this_field' => 'cp_autotransporte_id',
21804        ),
21805      ),
21806      'banco_cuenta' =>
21807      array (
21808        'banco_cuenta_id' =>
21809        array (
21810          'es' => 'catalog',
21811          'formato' => 'link_one_select',
21812          'to_table' => 'banco_cuenta',
21813          'to_field' => 'banco_cuenta_id',
21814          'this_table' => 'solicitud_carta_porte',
21815          'this_field' => 'banco_cuenta_id',
21816        ),
21817      ),
21818    ),
21819  ),
21820  'solicitud_carta_porte_hist' =>
21821  array (
21822    'es' => 'data',
21823    'pk_single_field' => 'history_id',
21824    'pk_single_type' => 'auto_increment',
21825    'label_field' => 'action',
21826    'has_seq' => false,
21827    'has_child' => false,
21828    'has_datetime' => true,
21829    'links_from' =>
21830    array (
21831      'ajuste_hist' =>
21832      array (
21833        'es' => 'one2one',
21834      ),
21835      'bodega_hist' =>
21836      array (
21837        'es' => 'one2one',
21838      ),
21839      'cheque_hist' =>
21840      array (
21841        'es' => 'one2one',
21842      ),
21843      'cliente_hist' =>
21844      array (
21845        'es' => 'one2one',
21846      ),
21847      'color_hist' =>
21848      array (
21849        'es' => 'one2one',
21850      ),
21851      'estado_bodega_hist' =>
21852      array (
21853        'es' => 'one2one',
21854      ),
21855      'importador_hist' =>
21856      array (
21857        'es' => 'one2one',
21858      ),
21859      'nota_bodega_hist' =>
21860      array (
21861        'es' => 'one2one',
21862      ),
21863      'nota_bodega_verificacion_hist' =>
21864      array (
21865        'es' => 'one2one',
21866      ),
21867      'origen_bodega_bodega_hist' =>
21868      array (
21869        'es' => 'one2one',
21870      ),
21871      'origen_bodega_hist' =>
21872      array (
21873        'es' => 'one2one',
21874      ),
21875      'pagare_hist' =>
21876      array (
21877        'es' => 'one2one',
21878      ),
21879      'pedido_hist' =>
21880      array (
21881        'es' => 'one2one',
21882      ),
21883      'permiso_bodega_hist' =>
21884      array (
21885        'es' => 'one2one',
21886      ),
21887      'producto_bodega_hist' =>
21888      array (
21889        'es' => 'one2one',
21890      ),
21891      'producto_color_hist' =>
21892      array (
21893        'es' => 'one2one',
21894      ),
21895      'producto_general_hist' =>
21896      array (
21897        'es' => 'one2one',
21898      ),
21899      'tienda_hist' =>
21900      array (
21901        'es' => 'one2one',
21902      ),
21903      'vale_hist' =>
21904      array (
21905        'es' => 'one2one',
21906      ),
21907    ),
21908  ),
21909  'solicitud_carta_porte_items' =>
21910  array (
21911    'es' => 'child',
21912    'pk_single_field' => 'solicitud_carta_porte_item_id',
21913    'pk_single_type' => 'uuid',
21914    'label_field' => 'solicitud_carta_porte_id',
21915    'has_seq' => false,
21916    'has_child' => false,
21917    'has_numeric' => true,
21918    'links_to' =>
21919    array (
21920      'solicitud_carta_porte' =>
21921      array (
21922        'solicitud_carta_porte_id' =>
21923        array (
21924          'es' => 'catalog',
21925          'formato' => 'link_one_select',
21926          'to_table' => 'solicitud_carta_porte',
21927          'to_field' => 'solicitud_carta_porte_id',
21928          'this_table' => 'solicitud_carta_porte_items',
21929          'this_field' => 'solicitud_carta_porte_id',
21930        ),
21931      ),
21932      'producto_bodega' =>
21933      array (
21934        'producto_bodega_id' =>
21935        array (
21936          'es' => 'catalog',
21937          'formato' => 'link_one_select',
21938          'to_table' => 'producto_bodega',
21939          'to_field' => '?',
21940          'this_table' => 'solicitud_carta_porte_items',
21941          'this_field' => 'producto_bodega_id',
21942        ),
21943      ),
21944      'producto_general' =>
21945      array (
21946        'producto_general_id' =>
21947        array (
21948          'es' => 'catalog',
21949          'formato' => 'link_one_select',
21950          'to_table' => 'producto_general',
21951          'to_field' => 'producto_general_id',
21952          'this_table' => 'solicitud_carta_porte_items',
21953          'this_field' => 'producto_general_id',
21954        ),
21955      ),
21956      'color' =>
21957      array (
21958        'color_id' =>
21959        array (
21960          'es' => 'catalog',
21961          'formato' => 'link_one_select',
21962          'to_table' => 'color',
21963          'to_field' => 'color_id',
21964          'this_table' => 'solicitud_carta_porte_items',
21965          'this_field' => 'color_id',
21966        ),
21967      ),
21968    ),
21969  ),
21970  'subcategoria_gasto' =>
21971  array (
21972    'es' => 'child',
21973    'pk_single_field' => 'subcategoria_gasto_id',
21974    'pk_single_type' => 'uuid',
21975    'label_field' => 'nombre',
21976    'orden' => true,
21977    'has_seq' => false,
21978    'has_child' => true,
21979    'links_from' =>
21980    array (
21981      'fiduciario_contenedor_gasto' =>
21982      array (
21983        'subcategoria_gasto_id' =>
21984        array (
21985          'es' => 'catalog_entry',
21986          'formato' => 'jqgrid',
21987          'to_table' => 'fiduciario_contenedor_gasto',
21988          'to_field' => 'subcategoria_gasto_id',
21989          'this_table' => 'subcategoria_gasto',
21990          'this_field' => 'subcategoria_gasto_id',
21991          'restrict_delete' => true,
21992          'delete_with_parent' => false,
21993          'on_delete_set_to' => 0,
21994        ),
21995      ),
21996    ),
21997    'links_to' =>
21998    array (
21999      'categoria_gasto' =>
22000      array (
22001        'categoria_gasto_id' =>
22002        array (
22003          'es' => 'catalog',
22004          'formato' => 'link_one_select',
22005          'to_table' => 'categoria_gasto',
22006          'to_field' => 'categoria_gasto_id',
22007          'this_table' => 'subcategoria_gasto',
22008          'this_field' => 'categoria_gasto_id',
22009        ),
22010      ),
22011    ),
22012  ),
22013  'tablas' =>
22014  array (
22015    'es' => 'data',
22016    'pk_single_field' => 'tabla_id',
22017    'pk_single_type' => 'auto_increment',
22018    'label_field' => 'tabla',
22019    'has_seq' => false,
22020    'has_child' => false,
22021    'UNI' =>
22022    array (
22023      0 => 'tabla',
22024    ),
22025  ),
22026  'tc_log' =>
22027  array (
22028    'es' => 'data',
22029    'pk_single_field' => 'tc_log_id',
22030    'pk_single_type' => 'uuid',
22031    'label_field' => 'origen',
22032    'has_seq' => false,
22033    'has_child' => false,
22034    'has_numeric' => true,
22035  ),
22036  'tienda' =>
22037  array (
22038    'es' => 'parent',
22039    'pk_single_field' => 'tienda_id',
22040    'pk_single_type' => 'auto_increment',
22041    'label_field' => 'clave',
22042    'vale' => true,
22043    'has_seq' => false,
22044    'has_child' => true,
22045    'has_fckeditor' => true,
22046    'has_file_upload' => true,
22047    'UNI' =>
22048    array (
22049      0 => 'clave',
22050      1 => 'tienda',
22051      'clave' =>
22052      array (
22053        1 => 'clave',
22054      ),
22055      'tienda' =>
22056      array (
22057        1 => 'tienda',
22058      ),
22059    ),
22060    'links_from' =>
22061    array (
22062      'a_cuentas_live' =>
22063      array (
22064        'tienda_id' =>
22065        array (
22066          'es' => 'catalog_entry',
22067          'formato' => 'jqgrid',
22068          'to_table' => 'a_cuentas_live',
22069          'to_field' => 'tienda_id',
22070          'this_table' => 'tienda',
22071          'this_field' => 'tienda_id',
22072          'restrict_delete' => true,
22073          'delete_with_parent' => false,
22074          'on_delete_set_to' => 0,
22075        ),
22076      ),
22077      'banco_cuenta_mov' =>
22078      array (
22079        'tienda_id' =>
22080        array (
22081          'es' => 'catalog_entry',
22082          'formato' => 'jqgrid',
22083          'to_table' => 'banco_cuenta_mov',
22084          'to_field' => 'tienda_id',
22085          'this_table' => 'tienda',
22086          'this_field' => 'tienda_id',
22087          'restrict_delete' => true,
22088          'delete_with_parent' => false,
22089          'on_delete_set_to' => 0,
22090        ),
22091        'linkconfirmado_tienda_id' =>
22092        array (
22093          'es' => 'catalog_entry',
22094          'formato' => 'jqgrid',
22095          'to_table' => 'banco_cuenta_mov',
22096          'to_field' => 'linkconfirmado_tienda_id',
22097          'this_table' => 'tienda',
22098          'this_field' => 'tienda_id',
22099          'restrict_delete' => true,
22100          'delete_with_parent' => false,
22101          'on_delete_set_to' => 0,
22102        ),
22103      ),
22104      'banco_cuenta_mov_con_links' =>
22105      array (
22106        'tienda_id' =>
22107        array (
22108          'es' => 'catalog_entry',
22109          'formato' => 'jqgrid',
22110          'to_table' => 'banco_cuenta_mov_con_links',
22111          'to_field' => 'tienda_id',
22112          'this_table' => 'tienda',
22113          'this_field' => 'tienda_id',
22114          'restrict_delete' => true,
22115          'delete_with_parent' => false,
22116          'on_delete_set_to' => 0,
22117        ),
22118        'link_tienda_id' =>
22119        array (
22120          'es' => 'catalog_entry',
22121          'formato' => 'jqgrid',
22122          'to_table' => 'banco_cuenta_mov_con_links',
22123          'to_field' => 'link_tienda_id',
22124          'this_table' => 'tienda',
22125          'this_field' => 'tienda_id',
22126          'restrict_delete' => true,
22127          'delete_with_parent' => false,
22128          'on_delete_set_to' => 0,
22129        ),
22130      ),
22131      'banco_cuenta_mov_link' =>
22132      array (
22133        'tienda_id' =>
22134        array (
22135          'es' => 'catalog_entry',
22136          'formato' => 'jqgrid',
22137          'to_table' => 'banco_cuenta_mov_link',
22138          'to_field' => 'tienda_id',
22139          'this_table' => 'tienda',
22140          'this_field' => 'tienda_id',
22141          'restrict_delete' => true,
22142          'delete_with_parent' => false,
22143          'on_delete_set_to' => 0,
22144        ),
22145      ),
22146      'banco_cuenta_trans' =>
22147      array (
22148        'tienda_id' =>
22149        array (
22150          'es' => 'catalog_entry',
22151          'formato' => 'jqgrid',
22152          'to_table' => 'banco_cuenta_trans',
22153          'to_field' => 'tienda_id',
22154          'this_table' => 'tienda',
22155          'this_field' => 'tienda_id',
22156          'restrict_delete' => true,
22157          'delete_with_parent' => false,
22158          'on_delete_set_to' => 0,
22159        ),
22160      ),
22161      'cash' =>
22162      array (
22163        'tienda_id' =>
22164        array (
22165          'es' => 'catalog_entry',
22166          'formato' => 'jqgrid',
22167          'to_table' => 'cash',
22168          'to_field' => 'tienda_id',
22169          'this_table' => 'tienda',
22170          'this_field' => 'tienda_id',
22171          'restrict_delete' => true,
22172          'delete_with_parent' => false,
22173          'on_delete_set_to' => 0,
22174        ),
22175      ),
22176      'cheque' =>
22177      array (
22178        'tienda_id' =>
22179        array (
22180          'es' => 'catalog_entry',
22181          'formato' => 'jqgrid',
22182          'to_table' => 'cheque',
22183          'to_field' => 'tienda_id',
22184          'this_table' => 'tienda',
22185          'this_field' => 'tienda_id',
22186          'restrict_delete' => true,
22187          'delete_with_parent' => false,
22188          'on_delete_set_to' => 0,
22189        ),
22190      ),
22191      'cheque_log' =>
22192      array (
22193        'tienda_id' =>
22194        array (
22195          'es' => 'catalog_entry',
22196          'formato' => 'jqgrid',
22197          'to_table' => 'cheque_log',
22198          'to_field' => 'tienda_id',
22199          'this_table' => 'tienda',
22200          'this_field' => 'tienda_id',
22201          'restrict_delete' => true,
22202          'delete_with_parent' => false,
22203          'on_delete_set_to' => 0,
22204        ),
22205      ),
22206      'cheque_pago' =>
22207      array (
22208        'tienda_id' =>
22209        array (
22210          'es' => 'catalog_entry',
22211          'formato' => 'jqgrid',
22212          'to_table' => 'cheque_pago',
22213          'to_field' => 'tienda_id',
22214          'this_table' => 'tienda',
22215          'this_field' => 'tienda_id',
22216          'restrict_delete' => true,
22217          'delete_with_parent' => false,
22218          'on_delete_set_to' => 0,
22219        ),
22220      ),
22221      'cheque_pago_log' =>
22222      array (
22223        'tienda_id' =>
22224        array (
22225          'es' => 'catalog_entry',
22226          'formato' => 'jqgrid',
22227          'to_table' => 'cheque_pago_log',
22228          'to_field' => 'tienda_id',
22229          'this_table' => 'tienda',
22230          'this_field' => 'tienda_id',
22231          'restrict_delete' => true,
22232          'delete_with_parent' => false,
22233          'on_delete_set_to' => 0,
22234        ),
22235      ),
22236      'cliente' =>
22237      array (
22238        'tienda_id' =>
22239        array (
22240          'es' => 'catalog_entry',
22241          'formato' => 'jqgrid',
22242          'to_table' => 'cliente',
22243          'to_field' => 'tienda_id',
22244          'this_table' => 'tienda',
22245          'this_field' => 'tienda_id',
22246          'restrict_delete' => true,
22247          'delete_with_parent' => false,
22248          'on_delete_set_to' => 0,
22249        ),
22250      ),
22251      'clientes_saldos_cat' =>
22252      array (
22253        'tienda_id' =>
22254        array (
22255          'es' => 'catalog_entry',
22256          'formato' => 'jqgrid',
22257          'to_table' => 'clientes_saldos_cat',
22258          'to_field' => 'tienda_id',
22259          'this_table' => 'tienda',
22260          'this_field' => 'tienda_id',
22261          'restrict_delete' => true,
22262          'delete_with_parent' => false,
22263          'on_delete_set_to' => 0,
22264        ),
22265      ),
22266      'clientes_saldos_live' =>
22267      array (
22268        'tienda_id' =>
22269        array (
22270          'es' => 'catalog_entry',
22271          'formato' => 'jqgrid',
22272          'to_table' => 'clientes_saldos_live',
22273          'to_field' => 'tienda_id',
22274          'this_table' => 'tienda',
22275          'this_field' => 'tienda_id',
22276          'restrict_delete' => true,
22277          'delete_with_parent' => false,
22278          'on_delete_set_to' => 0,
22279        ),
22280      ),
22281      'compra' =>
22282      array (
22283        'tienda_id' =>
22284        array (
22285          'es' => 'catalog_entry',
22286          'formato' => 'jqgrid',
22287          'to_table' => 'compra',
22288          'to_field' => 'tienda_id',
22289          'this_table' => 'tienda',
22290          'this_field' => 'tienda_id',
22291          'restrict_delete' => true,
22292          'delete_with_parent' => false,
22293          'on_delete_set_to' => 0,
22294        ),
22295      ),
22296      'compra_log' =>
22297      array (
22298        'tienda_id' =>
22299        array (
22300          'es' => 'catalog_entry',
22301          'formato' => 'jqgrid',
22302          'to_table' => 'compra_log',
22303          'to_field' => 'tienda_id',
22304          'this_table' => 'tienda',
22305          'this_field' => 'tienda_id',
22306          'restrict_delete' => true,
22307          'delete_with_parent' => false,
22308          'on_delete_set_to' => 0,
22309        ),
22310      ),
22311      'compra_pago' =>
22312      array (
22313        'tienda_id' =>
22314        array (
22315          'es' => 'catalog_entry',
22316          'formato' => 'jqgrid',
22317          'to_table' => 'compra_pago',
22318          'to_field' => 'tienda_id',
22319          'this_table' => 'tienda',
22320          'this_field' => 'tienda_id',
22321          'restrict_delete' => true,
22322          'delete_with_parent' => false,
22323          'on_delete_set_to' => 0,
22324        ),
22325      ),
22326      'compra_pago_log' =>
22327      array (
22328        'tienda_id' =>
22329        array (
22330          'es' => 'catalog_entry',
22331          'formato' => 'jqgrid',
22332          'to_table' => 'compra_pago_log',
22333          'to_field' => 'tienda_id',
22334          'this_table' => 'tienda',
22335          'this_field' => 'tienda_id',
22336          'restrict_delete' => true,
22337          'delete_with_parent' => false,
22338          'on_delete_set_to' => 0,
22339        ),
22340      ),
22341      'coso' =>
22342      array (
22343        'tienda_id' =>
22344        array (
22345          'es' => 'catalog_entry',
22346          'formato' => 'jqgrid',
22347          'to_table' => 'coso',
22348          'to_field' => 'tienda_id',
22349          'this_table' => 'tienda',
22350          'this_field' => 'tienda_id',
22351          'restrict_delete' => true,
22352          'delete_with_parent' => false,
22353          'on_delete_set_to' => 0,
22354        ),
22355      ),
22356      'cuentat' =>
22357      array (
22358        'tienda_id' =>
22359        array (
22360          'es' => 'catalog_entry',
22361          'formato' => 'jqgrid',
22362          'to_table' => 'cuentat',
22363          'to_field' => 'tienda_id',
22364          'this_table' => 'tienda',
22365          'this_field' => 'tienda_id',
22366          'restrict_delete' => true,
22367          'delete_with_parent' => false,
22368          'on_delete_set_to' => 0,
22369        ),
22370      ),
22371      'cuentat_a_banco' =>
22372      array (
22373        'tienda_id' =>
22374        array (
22375          'es' => 'catalog_entry',
22376          'formato' => 'jqgrid',
22377          'to_table' => 'cuentat_a_banco',
22378          'to_field' => 'tienda_id',
22379          'this_table' => 'tienda',
22380          'this_field' => 'tienda_id',
22381          'restrict_delete' => true,
22382          'delete_with_parent' => false,
22383          'on_delete_set_to' => 0,
22384        ),
22385      ),
22386      'cuentat_a_banco_links' =>
22387      array (
22388        'tienda_id' =>
22389        array (
22390          'es' => 'catalog_entry',
22391          'formato' => 'jqgrid',
22392          'to_table' => 'cuentat_a_banco_links',
22393          'to_field' => 'tienda_id',
22394          'this_table' => 'tienda',
22395          'this_field' => 'tienda_id',
22396          'restrict_delete' => true,
22397          'delete_with_parent' => false,
22398          'on_delete_set_to' => 0,
22399        ),
22400        'link_tienda_id' =>
22401        array (
22402          'es' => 'catalog_entry',
22403          'formato' => 'jqgrid',
22404          'to_table' => 'cuentat_a_banco_links',
22405          'to_field' => 'link_tienda_id',
22406          'this_table' => 'tienda',
22407          'this_field' => 'tienda_id',
22408          'restrict_delete' => true,
22409          'delete_with_parent' => false,
22410          'on_delete_set_to' => 0,
22411        ),
22412      ),
22413      'cuentat_a_banco_tc' =>
22414      array (
22415        'tienda_id' =>
22416        array (
22417          'es' => 'catalog_entry',
22418          'formato' => 'jqgrid',
22419          'to_table' => 'cuentat_a_banco_tc',
22420          'to_field' => 'tienda_id',
22421          'this_table' => 'tienda',
22422          'this_field' => 'tienda_id',
22423          'restrict_delete' => true,
22424          'delete_with_parent' => false,
22425          'on_delete_set_to' => 0,
22426        ),
22427      ),
22428      'cuentat_ingreso' =>
22429      array (
22430        'tienda_id' =>
22431        array (
22432          'es' => 'catalog_entry',
22433          'formato' => 'jqgrid',
22434          'to_table' => 'cuentat_ingreso',
22435          'to_field' => 'tienda_id',
22436          'this_table' => 'tienda',
22437          'this_field' => 'tienda_id',
22438          'restrict_delete' => true,
22439          'delete_with_parent' => false,
22440          'on_delete_set_to' => 0,
22441        ),
22442      ),
22443      'cuentat_ingreso_xtienda' =>
22444      array (
22445        'tienda_id' =>
22446        array (
22447          'es' => 'child',
22448          'formato' => 'jqgrid',
22449          'to_table' => 'cuentat_ingreso_xtienda',
22450          'to_field' => 'tienda_id',
22451          'this_table' => 'tienda',
22452          'this_field' => 'tienda_id',
22453          'restrict_delete' => true,
22454          'delete_with_parent' => false,
22455          'on_delete_set_to' => 0,
22456        ),
22457      ),
22458      'cuentat_mov' =>
22459      array (
22460        'tienda_id' =>
22461        array (
22462          'es' => 'catalog_entry',
22463          'formato' => 'jqgrid',
22464          'to_table' => 'cuentat_mov',
22465          'to_field' => 'tienda_id',
22466          'this_table' => 'tienda',
22467          'this_field' => 'tienda_id',
22468          'restrict_delete' => true,
22469          'delete_with_parent' => false,
22470          'on_delete_set_to' => 0,
22471        ),
22472      ),
22473      'cuentat_mov_con_links' =>
22474      array (
22475        'tienda_id' =>
22476        array (
22477          'es' => 'catalog_entry',
22478          'formato' => 'jqgrid',
22479          'to_table' => 'cuentat_mov_con_links',
22480          'to_field' => 'tienda_id',
22481          'this_table' => 'tienda',
22482          'this_field' => 'tienda_id',
22483          'restrict_delete' => true,
22484          'delete_with_parent' => false,
22485          'on_delete_set_to' => 0,
22486        ),
22487      ),
22488      'cuentat_mov_live' =>
22489      array (
22490        'tienda_id' =>
22491        array (
22492          'es' => 'catalog_entry',
22493          'formato' => 'jqgrid',
22494          'to_table' => 'cuentat_mov_live',
22495          'to_field' => 'tienda_id',
22496          'this_table' => 'tienda',
22497          'this_field' => 'tienda_id',
22498          'restrict_delete' => true,
22499          'delete_with_parent' => false,
22500          'on_delete_set_to' => 0,
22501        ),
22502      ),
22503      'cuentat_mov_tmp' =>
22504      array (
22505        'tienda_id' =>
22506        array (
22507          'es' => 'catalog_entry',
22508          'formato' => 'jqgrid',
22509          'to_table' => 'cuentat_mov_tmp',
22510          'to_field' => 'tienda_id',
22511          'this_table' => 'tienda',
22512          'this_field' => 'tienda_id',
22513          'restrict_delete' => true,
22514          'delete_with_parent' => false,
22515          'on_delete_set_to' => 0,
22516        ),
22517      ),
22518      'doctos' =>
22519      array (
22520        'tienda_id' =>
22521        array (
22522          'es' => 'catalog_entry',
22523          'formato' => 'link_one_select',
22524          'to_table' => 'doctos',
22525          'to_field' => 'tienda_id',
22526          'this_table' => 'tienda',
22527          'this_field' => 'tienda_id',
22528          'restrict_delete' => true,
22529          'delete_with_parent' => false,
22530          'on_delete_set_to' => 0,
22531        ),
22532      ),
22533      'inversion_reembolso' =>
22534      array (
22535        'tienda_id' =>
22536        array (
22537          'es' => 'catalog_entry',
22538          'formato' => 'jqgrid',
22539          'to_table' => 'inversion_reembolso',
22540          'to_field' => 'tienda_id',
22541          'this_table' => 'tienda',
22542          'this_field' => 'tienda_id',
22543          'restrict_delete' => true,
22544          'delete_with_parent' => false,
22545          'on_delete_set_to' => 0,
22546        ),
22547      ),
22548      'links_al_banco' =>
22549      array (
22550        'tienda_id' =>
22551        array (
22552          'es' => 'catalog_entry',
22553          'formato' => 'jqgrid',
22554          'to_table' => 'links_al_banco',
22555          'to_field' => 'tienda_id',
22556          'this_table' => 'tienda',
22557          'this_field' => 'tienda_id',
22558          'restrict_delete' => true,
22559          'delete_with_parent' => false,
22560          'on_delete_set_to' => 0,
22561        ),
22562      ),
22563      'links_al_banco_live' =>
22564      array (
22565        'tienda_id' =>
22566        array (
22567          'es' => 'catalog_entry',
22568          'formato' => 'jqgrid',
22569          'to_table' => 'links_al_banco_live',
22570          'to_field' => 'tienda_id',
22571          'this_table' => 'tienda',
22572          'this_field' => 'tienda_id',
22573          'restrict_delete' => true,
22574          'delete_with_parent' => false,
22575          'on_delete_set_to' => 0,
22576        ),
22577      ),
22578      'lista_precios_tienda' =>
22579      array (
22580        'tienda_id' =>
22581        array (
22582          'es' => 'child',
22583          'formato' => 'jqgrid',
22584          'to_table' => 'lista_precios_tienda',
22585          'to_field' => 'tienda_id',
22586          'this_table' => 'tienda',
22587          'this_field' => 'tienda_id',
22588          'restrict_delete' => true,
22589          'delete_with_parent' => false,
22590          'on_delete_set_to' => 0,
22591        ),
22592      ),
22593      'mov_verificado' =>
22594      array (
22595        'tienda_id' =>
22596        array (
22597          'es' => 'catalog_entry',
22598          'formato' => 'jqgrid',
22599          'to_table' => 'mov_verificado',
22600          'to_field' => 'tienda_id',
22601          'this_table' => 'tienda',
22602          'this_field' => 'tienda_id',
22603          'restrict_delete' => true,
22604          'delete_with_parent' => false,
22605          'on_delete_set_to' => 0,
22606        ),
22607      ),
22608      'mov_verificado_con_links' =>
22609      array (
22610        'tienda_id' =>
22611        array (
22612          'es' => 'catalog_entry',
22613          'formato' => 'jqgrid',
22614          'to_table' => 'mov_verificado_con_links',
22615          'to_field' => 'tienda_id',
22616          'this_table' => 'tienda',
22617          'this_field' => 'tienda_id',
22618          'restrict_delete' => true,
22619          'delete_with_parent' => false,
22620          'on_delete_set_to' => 0,
22621        ),
22622        'link_tienda_id' =>
22623        array (
22624          'es' => 'catalog_entry',
22625          'formato' => 'jqgrid',
22626          'to_table' => 'mov_verificado_con_links',
22627          'to_field' => 'link_tienda_id',
22628          'this_table' => 'tienda',
22629          'this_field' => 'tienda_id',
22630          'restrict_delete' => true,
22631          'delete_with_parent' => false,
22632          'on_delete_set_to' => 0,
22633        ),
22634      ),
22635      'nota' =>
22636      array (
22637        'tienda_id' =>
22638        array (
22639          'es' => 'catalog_entry',
22640          'formato' => 'jqgrid',
22641          'to_table' => 'nota',
22642          'to_field' => 'tienda_id',
22643          'this_table' => 'tienda',
22644          'this_field' => 'tienda_id',
22645          'restrict_delete' => true,
22646          'delete_with_parent' => false,
22647          'on_delete_set_to' => 0,
22648        ),
22649      ),
22650      'origen_bodega' =>
22651      array (
22652        'tienda_id' =>
22653        array (
22654          'es' => 'catalog_entry',
22655          'formato' => 'jqgrid',
22656          'to_table' => 'origen_bodega',
22657          'to_field' => 'tienda_id',
22658          'this_table' => 'tienda',
22659          'this_field' => 'tienda_id',
22660          'restrict_delete' => true,
22661          'delete_with_parent' => false,
22662          'on_delete_set_to' => 0,
22663        ),
22664      ),
22665      'pagare' =>
22666      array (
22667        'tienda_id' =>
22668        array (
22669          'es' => 'catalog_entry',
22670          'formato' => 'jqgrid',
22671          'to_table' => 'pagare',
22672          'to_field' => 'tienda_id',
22673          'this_table' => 'tienda',
22674          'this_field' => 'tienda_id',
22675          'restrict_delete' => true,
22676          'delete_with_parent' => false,
22677          'on_delete_set_to' => 0,
22678        ),
22679      ),
22680      'pagare_log' =>
22681      array (
22682        'tienda_id' =>
22683        array (
22684          'es' => 'catalog_entry',
22685          'formato' => 'jqgrid',
22686          'to_table' => 'pagare_log',
22687          'to_field' => 'tienda_id',
22688          'this_table' => 'tienda',
22689          'this_field' => 'tienda_id',
22690          'restrict_delete' => true,
22691          'delete_with_parent' => false,
22692          'on_delete_set_to' => 0,
22693        ),
22694      ),
22695      'pagare_pago' =>
22696      array (
22697        'tienda_id' =>
22698        array (
22699          'es' => 'catalog_entry',
22700          'formato' => 'jqgrid',
22701          'to_table' => 'pagare_pago',
22702          'to_field' => 'tienda_id',
22703          'this_table' => 'tienda',
22704          'this_field' => 'tienda_id',
22705          'restrict_delete' => true,
22706          'delete_with_parent' => false,
22707          'on_delete_set_to' => 0,
22708        ),
22709      ),
22710      'pagare_pago_log' =>
22711      array (
22712        'tienda_id' =>
22713        array (
22714          'es' => 'catalog_entry',
22715          'formato' => 'jqgrid',
22716          'to_table' => 'pagare_pago_log',
22717          'to_field' => 'tienda_id',
22718          'this_table' => 'tienda',
22719          'this_field' => 'tienda_id',
22720          'restrict_delete' => true,
22721          'delete_with_parent' => false,
22722          'on_delete_set_to' => 0,
22723        ),
22724      ),
22725      'pagare_test' =>
22726      array (
22727        'tienda_id' =>
22728        array (
22729          'es' => 'catalog_entry',
22730          'formato' => 'jqgrid',
22731          'to_table' => 'pagare_test',
22732          'to_field' => 'tienda_id',
22733          'this_table' => 'tienda',
22734          'this_field' => 'tienda_id',
22735          'restrict_delete' => true,
22736          'delete_with_parent' => false,
22737          'on_delete_set_to' => 0,
22738        ),
22739      ),
22740      'permiso_bodega_consulta_salida_tienda' =>
22741      array (
22742        'tienda_id' =>
22743        array (
22744          'es' => 'child',
22745          'formato' => 'jqgrid',
22746          'to_table' => 'permiso_bodega_consulta_salida_tienda',
22747          'to_field' => 'tienda_id',
22748          'this_table' => 'tienda',
22749          'this_field' => 'tienda_id',
22750          'restrict_delete' => true,
22751          'delete_with_parent' => false,
22752          'on_delete_set_to' => 0,
22753        ),
22754      ),
22755      'plantilla_cobranza' =>
22756      array (
22757        'tienda_id' =>
22758        array (
22759          'es' => 'catalog_entry',
22760          'formato' => 'jqgrid',
22761          'to_table' => 'plantilla_cobranza',
22762          'to_field' => 'tienda_id',
22763          'this_table' => 'tienda',
22764          'this_field' => 'tienda_id',
22765          'restrict_delete' => true,
22766          'delete_with_parent' => false,
22767          'on_delete_set_to' => 0,
22768        ),
22769      ),
22770      'vale' =>
22771      array (
22772        'tienda_id' =>
22773        array (
22774          'es' => 'catalog_entry',
22775          'formato' => 'jqgrid',
22776          'to_table' => 'vale',
22777          'to_field' => 'tienda_id',
22778          'this_table' => 'tienda',
22779          'this_field' => 'tienda_id',
22780          'restrict_delete' => true,
22781          'delete_with_parent' => false,
22782          'on_delete_set_to' => 0,
22783        ),
22784      ),
22785      'vale_log' =>
22786      array (
22787        'tienda_id' =>
22788        array (
22789          'es' => 'catalog_entry',
22790          'formato' => 'jqgrid',
22791          'to_table' => 'vale_log',
22792          'to_field' => 'tienda_id',
22793          'this_table' => 'tienda',
22794          'this_field' => 'tienda_id',
22795          'restrict_delete' => true,
22796          'delete_with_parent' => false,
22797          'on_delete_set_to' => 0,
22798        ),
22799      ),
22800      'vale_pago' =>
22801      array (
22802        'tienda_id' =>
22803        array (
22804          'es' => 'catalog_entry',
22805          'formato' => 'jqgrid',
22806          'to_table' => 'vale_pago',
22807          'to_field' => 'tienda_id',
22808          'this_table' => 'tienda',
22809          'this_field' => 'tienda_id',
22810          'restrict_delete' => true,
22811          'delete_with_parent' => false,
22812          'on_delete_set_to' => 0,
22813        ),
22814      ),
22815      'vale_pago_log' =>
22816      array (
22817        'tienda_id' =>
22818        array (
22819          'es' => 'catalog_entry',
22820          'formato' => 'jqgrid',
22821          'to_table' => 'vale_pago_log',
22822          'to_field' => 'tienda_id',
22823          'this_table' => 'tienda',
22824          'this_field' => 'tienda_id',
22825          'restrict_delete' => true,
22826          'delete_with_parent' => false,
22827          'on_delete_set_to' => 0,
22828        ),
22829      ),
22830      'vale_permiso' =>
22831      array (
22832        'tienda_id' =>
22833        array (
22834          'es' => 'key_value_select',
22835          'formato' => 'key_value_select',
22836          'to_table' => 'vale_permiso',
22837          'to_field' => 'tienda_id',
22838          'this_table' => 'tienda',
22839          'this_field' => 'tienda_id',
22840          'restrict_delete' => true,
22841          'delete_with_parent' => false,
22842          'on_delete_set_to' => 0,
22843        ),
22844      ),
22845    ),
22846    'links_to' =>
22847    array (
22848      'empresa' =>
22849      array (
22850        'empresa_id' =>
22851        array (
22852          'es' => 'catalog',
22853          'formato' => 'link_one_select',
22854          'to_table' => 'empresa',
22855          'to_field' => 'empresa_id',
22856          'this_table' => 'tienda',
22857          'this_field' => 'empresa_id',
22858        ),
22859      ),
22860      'cp_cliente_direccion' =>
22861      array (
22862        'cp_cliente_direccion_id' =>
22863        array (
22864          'es' => 'catalog',
22865          'formato' => 'link_one_select',
22866          'to_table' => 'cp_cliente_direccion',
22867          'to_field' => 'cp_cliente_direccion_id',
22868          'this_table' => 'tienda',
22869          'this_field' => 'cp_cliente_direccion_id',
22870        ),
22871      ),
22872    ),
22873  ),
22874  'tienda_hist' =>
22875  array (
22876    'es' => 'data',
22877    'pk_single_field' => 'history_id',
22878    'pk_single_type' => 'auto_increment',
22879    'label_field' => 'action',
22880    'has_seq' => false,
22881    'has_child' => false,
22882    'has_datetime' => true,
22883    'links_from' =>
22884    array (
22885      'ajuste_hist' =>
22886      array (
22887        'es' => 'one2one',
22888      ),
22889      'bodega_hist' =>
22890      array (
22891        'es' => 'one2one',
22892      ),
22893      'cheque_hist' =>
22894      array (
22895        'es' => 'one2one',
22896      ),
22897      'cliente_hist' =>
22898      array (
22899        'es' => 'one2one',
22900      ),
22901      'color_hist' =>
22902      array (
22903        'es' => 'one2one',
22904      ),
22905      'estado_bodega_hist' =>
22906      array (
22907        'es' => 'one2one',
22908      ),
22909      'importador_hist' =>
22910      array (
22911        'es' => 'one2one',
22912      ),
22913      'nota_bodega_hist' =>
22914      array (
22915        'es' => 'one2one',
22916      ),
22917      'nota_bodega_verificacion_hist' =>
22918      array (
22919        'es' => 'one2one',
22920      ),
22921      'origen_bodega_bodega_hist' =>
22922      array (
22923        'es' => 'one2one',
22924      ),
22925      'origen_bodega_hist' =>
22926      array (
22927        'es' => 'one2one',
22928      ),
22929      'pagare_hist' =>
22930      array (
22931        'es' => 'one2one',
22932      ),
22933      'pedido_hist' =>
22934      array (
22935        'es' => 'one2one',
22936      ),
22937      'permiso_bodega_hist' =>
22938      array (
22939        'es' => 'one2one',
22940      ),
22941      'producto_bodega_hist' =>
22942      array (
22943        'es' => 'one2one',
22944      ),
22945      'producto_color_hist' =>
22946      array (
22947        'es' => 'one2one',
22948      ),
22949      'producto_general_hist' =>
22950      array (
22951        'es' => 'one2one',
22952      ),
22953      'solicitud_carta_porte_hist' =>
22954      array (
22955        'es' => 'one2one',
22956      ),
22957      'vale_hist' =>
22958      array (
22959        'es' => 'one2one',
22960      ),
22961    ),
22962  ),
22963  'unidades' =>
22964  array (
22965    'es' => 'parent',
22966    'pk_single_field' => 'unidades_id',
22967    'pk_single_type' => 'auto_increment',
22968    'label_field' => 'unidad',
22969    'vale' => true,
22970    'orden' => true,
22971    'has_seq' => false,
22972    'has_child' => true,
22973    'has_numeric' => true,
22974    'UNI' =>
22975    array (
22976      0 => 'unidad',
22977    ),
22978    'links_from' =>
22979    array (
22980      'producto_bodega' =>
22981      array (
22982        'unidades_id' =>
22983        array (
22984          'es' => 'catalog_entry',
22985          'formato' => 'jqgrid',
22986          'to_table' => 'producto_bodega',
22987          'to_field' => 'unidades_id',
22988          'this_table' => 'unidades',
22989          'this_field' => 'unidades_id',
22990          'restrict_delete' => true,
22991          'delete_with_parent' => false,
22992          'on_delete_set_to' => 0,
22993        ),
22994      ),
22995      'producto_general' =>
22996      array (
22997        'unidades_id' =>
22998        array (
22999          'es' => 'catalog_entry',
23000          'formato' => 'jqgrid',
23001          'to_table' => 'producto_general',
23002          'to_field' => 'unidades_id',
23003          'this_table' => 'unidades',
23004          'this_field' => 'unidades_id',
23005          'restrict_delete' => true,
23006          'delete_with_parent' => false,
23007          'on_delete_set_to' => 0,
23008        ),
23009      ),
23010    ),
23011  ),
23012  'usuario_defaults' =>
23013  array (
23014    'es' => 'child',
23015    'pk_single_field' => 'usuario_defaults_id',
23016    'pk_single_type' => 'auto_increment',
23017    'label_field' => 'url',
23018    'has_seq' => false,
23019    'has_child' => false,
23020    'UNI' =>
23021    array (
23022      'url' =>
23023      array (
23024        1 => 'url',
23025        2 => 'iac_usr_id',
23026        3 => 'nombre',
23027      ),
23028    ),
23029    'links_to' =>
23030    array (
23031      'iac_usr' =>
23032      array (
23033        'iac_usr_id' =>
23034        array (
23035          'es' => 'catalog',
23036          'formato' => 'link_one_select',
23037          'to_table' => 'iac_usr',
23038          'to_field' => 'iac_usr_id',
23039          'this_table' => 'usuario_defaults',
23040          'this_field' => 'iac_usr_id',
23041        ),
23042      ),
23043    ),
23044  ),
23045  'vale' =>
23046  array (
23047    'es' => 'parent',
23048    'pk_single_field' => 'vale_id',
23049    'pk_single_type' => 'uuid',
23050    'label_field' => 'cliente',
23051    'has_seq' => false,
23052    'has_child' => true,
23053    'has_datetime' => true,
23054    'has_numeric' => true,
23055    'has_date' => true,
23056    'has_file_upload' => true,
23057    'has_fckeditor' => true,
23058    'links_to' =>
23059    array (
23060      'cliente' =>
23061      array (
23062        'cliente_id' =>
23063        array (
23064          'es' => 'catalog',
23065          'formato' => 'link_one_select',
23066          'to_table' => 'cliente',
23067          'to_field' => 'cliente_id',
23068          'this_table' => 'vale',
23069          'this_field' => 'cliente_id',
23070        ),
23071      ),
23072      'cuentat' =>
23073      array (
23074        'cuentaT_id' =>
23075        array (
23076          'es' => 'catalog',
23077          'formato' => 'link_one_select',
23078          'to_table' => 'cuentat',
23079          'to_field' => 'cuentaT_id',
23080          'this_table' => 'vale',
23081          'this_field' => 'cuentaT_id',
23082        ),
23083        'dinero_en_cuentaT_id' =>
23084        array (
23085          'es' => 'catalog',
23086          'formato' => 'link_one_select',
23087          'to_table' => 'cuentat',
23088          'to_field' => 'cuentaT_id',
23089          'this_table' => 'vale',
23090          'this_field' => 'dinero_en_cuentaT_id',
23091        ),
23092      ),
23093      'moneda' =>
23094      array (
23095        'moneda_id' =>
23096        array (
23097          'es' => 'catalog',
23098          'formato' => 'link_one_select',
23099          'to_table' => 'moneda',
23100          'to_field' => 'moneda_id',
23101          'this_table' => 'vale',
23102          'this_field' => 'moneda_id',
23103        ),
23104        'recibido_moneda_id' =>
23105        array (
23106          'es' => 'catalog',
23107          'formato' => 'link_one_select',
23108          'to_table' => 'moneda',
23109          'to_field' => 'moneda_id',
23110          'this_table' => 'vale',
23111          'this_field' => 'recibido_moneda_id',
23112        ),
23113      ),
23114      'banco_cuenta_mov_link' =>
23115      array (
23116        'banco_cuenta_mov_link_id' =>
23117        array (
23118          'es' => 'catalog',
23119          'formato' => 'link_one_select',
23120          'to_table' => 'banco_cuenta_mov_link',
23121          'to_field' => 'banco_cuenta_mov_link_id',
23122          'this_table' => 'vale',
23123          'this_field' => 'banco_cuenta_mov_link_id',
23124        ),
23125      ),
23126      'banco_cuenta' =>
23127      array (
23128        'banco_cuenta_id' =>
23129        array (
23130          'es' => 'catalog',
23131          'formato' => 'link_one_select',
23132          'to_table' => 'banco_cuenta',
23133          'to_field' => 'banco_cuenta_id',
23134          'this_table' => 'vale',
23135          'this_field' => 'banco_cuenta_id',
23136        ),
23137      ),
23138      'metodo_pago' =>
23139      array (
23140        'metodo_pago_id' =>
23141        array (
23142          'es' => 'catalog',
23143          'formato' => 'link_one_select',
23144          'to_table' => 'metodo_pago',
23145          'to_field' => 'metodo_pago_id',
23146          'this_table' => 'vale',
23147          'this_field' => 'metodo_pago_id',
23148        ),
23149      ),
23150      'empresa' =>
23151      array (
23152        'empresa_id' =>
23153        array (
23154          'es' => 'catalog',
23155          'formato' => 'link_one_select',
23156          'to_table' => 'empresa',
23157          'to_field' => 'empresa_id',
23158          'this_table' => 'vale',
23159          'this_field' => 'empresa_id',
23160        ),
23161      ),
23162      'tienda' =>
23163      array (
23164        'tienda_id' =>
23165        array (
23166          'es' => 'catalog',
23167          'formato' => 'link_one_select',
23168          'to_table' => 'tienda',
23169          'to_field' => 'tienda_id',
23170          'this_table' => 'vale',
23171          'this_field' => 'tienda_id',
23172        ),
23173      ),
23174      'cuentat_mov' =>
23175      array (
23176        'cuenta_t_mov_id' =>
23177        array (
23178          'es' => 'catalog',
23179          'formato' => 'link_one_select',
23180          'to_table' => 'cuentat_mov',
23181          'to_field' => 'cuentaT_mov_id',
23182          'this_table' => 'vale',
23183          'this_field' => 'cuenta_t_mov_id',
23184        ),
23185      ),
23186      'categoria' =>
23187      array (
23188        'categoria_id' =>
23189        array (
23190          'es' => 'catalog',
23191          'formato' => 'link_one_select',
23192          'to_table' => 'categoria',
23193          'to_field' => 'categoria_id',
23194          'this_table' => 'vale',
23195          'this_field' => 'categoria_id',
23196        ),
23197      ),
23198    ),
23199    'links_from' =>
23200    array (
23201      'vale_pago' =>
23202      array (
23203        'vale_id' =>
23204        array (
23205          'es' => 'child',
23206          'formato' => 'jqgrid',
23207          'to_table' => 'vale_pago',
23208          'to_field' => 'vale_id',
23209          'this_table' => 'vale',
23210          'this_field' => 'vale_id',
23211          'restrict_delete' => true,
23212          'delete_with_parent' => false,
23213          'on_delete_set_to' => 0,
23214        ),
23215      ),
23216      'vale_pago_log' =>
23217      array (
23218        'vale_id' =>
23219        array (
23220          'es' => 'child',
23221          'formato' => 'jqgrid',
23222          'to_table' => 'vale_pago_log',
23223          'to_field' => 'vale_id',
23224          'this_table' => 'vale',
23225          'this_field' => 'vale_id',
23226          'restrict_delete' => true,
23227          'delete_with_parent' => false,
23228          'on_delete_set_to' => 0,
23229        ),
23230      ),
23231      'vale_permiso' =>
23232      array (
23233        'vale_id' =>
23234        array (
23235          'es' => 'child',
23236          'formato' => 'key_value_select',
23237          'to_table' => 'vale_permiso',
23238          'to_field' => 'vale_id',
23239          'this_table' => 'vale',
23240          'this_field' => 'vale_id',
23241          'restrict_delete' => false,
23242          'delete_with_parent' => true,
23243          'on_delete_set_to' => 0,
23244        ),
23245      ),
23246      'vale_uso' =>
23247      array (
23248        'vale_id' =>
23249        array (
23250          'es' => 'child',
23251          'formato' => 'jqgrid',
23252          'to_table' => 'vale_uso',
23253          'to_field' => 'vale_id',
23254          'this_table' => 'vale',
23255          'this_field' => 'vale_id',
23256          'restrict_delete' => true,
23257          'delete_with_parent' => false,
23258          'on_delete_set_to' => 0,
23259        ),
23260      ),
23261      'vale_uso_log' =>
23262      array (
23263        'vale_id' =>
23264        array (
23265          'es' => 'child',
23266          'formato' => 'jqgrid',
23267          'to_table' => 'vale_uso_log',
23268          'to_field' => 'vale_id',
23269          'this_table' => 'vale',
23270          'this_field' => 'vale_id',
23271          'restrict_delete' => true,
23272          'delete_with_parent' => false,
23273          'on_delete_set_to' => 0,
23274        ),
23275      ),
23276      'vale_log' =>
23277      array (
23278        'es' => 'one2one',
23279      ),
23280    ),
23281  ),
23282  'vale_hist' =>
23283  array (
23284    'es' => 'data',
23285    'pk_single_field' => 'history_id',
23286    'pk_single_type' => 'auto_increment',
23287    'label_field' => 'action',
23288    'has_seq' => false,
23289    'has_child' => false,
23290    'has_datetime' => true,
23291    'links_from' =>
23292    array (
23293      'ajuste_hist' =>
23294      array (
23295        'es' => 'one2one',
23296      ),
23297      'bodega_hist' =>
23298      array (
23299        'es' => 'one2one',
23300      ),
23301      'cheque_hist' =>
23302      array (
23303        'es' => 'one2one',
23304      ),
23305      'cliente_hist' =>
23306      array (
23307        'es' => 'one2one',
23308      ),
23309      'color_hist' =>
23310      array (
23311        'es' => 'one2one',
23312      ),
23313      'estado_bodega_hist' =>
23314      array (
23315        'es' => 'one2one',
23316      ),
23317      'importador_hist' =>
23318      array (
23319        'es' => 'one2one',
23320      ),
23321      'nota_bodega_hist' =>
23322      array (
23323        'es' => 'one2one',
23324      ),
23325      'nota_bodega_verificacion_hist' =>
23326      array (
23327        'es' => 'one2one',
23328      ),
23329      'origen_bodega_bodega_hist' =>
23330      array (
23331        'es' => 'one2one',
23332      ),
23333      'origen_bodega_hist' =>
23334      array (
23335        'es' => 'one2one',
23336      ),
23337      'pagare_hist' =>
23338      array (
23339        'es' => 'one2one',
23340      ),
23341      'pedido_hist' =>
23342      array (
23343        'es' => 'one2one',
23344      ),
23345      'permiso_bodega_hist' =>
23346      array (
23347        'es' => 'one2one',
23348      ),
23349      'producto_bodega_hist' =>
23350      array (
23351        'es' => 'one2one',
23352      ),
23353      'producto_color_hist' =>
23354      array (
23355        'es' => 'one2one',
23356      ),
23357      'producto_general_hist' =>
23358      array (
23359        'es' => 'one2one',
23360      ),
23361      'solicitud_carta_porte_hist' =>
23362      array (
23363        'es' => 'one2one',
23364      ),
23365      'tienda_hist' =>
23366      array (
23367        'es' => 'one2one',
23368      ),
23369    ),
23370  ),
23371  'vale_log' =>
23372  array (
23373    'es' => 'child',
23374    'pk_single_field' => 'vale_id',
23375    'pk_single_type' => 'uuid',
23376    'label_field' => 'cliente',
23377    'has_seq' => false,
23378    'has_child' => false,
23379    'has_datetime' => true,
23380    'has_numeric' => true,
23381    'has_date' => true,
23382    'has_fckeditor' => true,
23383    'has_file_upload' => true,
23384    'links_to' =>
23385    array (
23386      'cliente' =>
23387      array (
23388        'cliente_id' =>
23389        array (
23390          'es' => 'catalog',
23391          'formato' => 'link_one_select',
23392          'to_table' => 'cliente',
23393          'to_field' => 'cliente_id',
23394          'this_table' => 'vale_log',
23395          'this_field' => 'cliente_id',
23396        ),
23397      ),
23398      'cuentat' =>
23399      array (
23400        'cuentaT_id' =>
23401        array (
23402          'es' => 'catalog',
23403          'formato' => 'link_one_select',
23404          'to_table' => 'cuentat',
23405          'to_field' => 'cuentaT_id',
23406          'this_table' => 'vale_log',
23407          'this_field' => 'cuentaT_id',
23408        ),
23409        'dinero_en_cuentaT_id' =>
23410        array (
23411          'es' => 'catalog',
23412          'formato' => 'link_one_select',
23413          'to_table' => 'cuentat',
23414          'to_field' => 'cuentaT_id',
23415          'this_table' => 'vale_log',
23416          'this_field' => 'dinero_en_cuentaT_id',
23417        ),
23418      ),
23419      'moneda' =>
23420      array (
23421        'moneda_id' =>
23422        array (
23423          'es' => 'catalog',
23424          'formato' => 'link_one_select',
23425          'to_table' => 'moneda',
23426          'to_field' => 'moneda_id',
23427          'this_table' => 'vale_log',
23428          'this_field' => 'moneda_id',
23429        ),
23430        'recibido_moneda_id' =>
23431        array (
23432          'es' => 'catalog',
23433          'formato' => 'link_one_select',
23434          'to_table' => 'moneda',
23435          'to_field' => 'moneda_id',
23436          'this_table' => 'vale_log',
23437          'this_field' => 'recibido_moneda_id',
23438        ),
23439      ),
23440      'banco_cuenta_mov_link' =>
23441      array (
23442        'banco_cuenta_mov_link_id' =>
23443        array (
23444          'es' => 'catalog',
23445          'formato' => 'link_one_select',
23446          'to_table' => 'banco_cuenta_mov_link',
23447          'to_field' => 'banco_cuenta_mov_link_id',
23448          'this_table' => 'vale_log',
23449          'this_field' => 'banco_cuenta_mov_link_id',
23450        ),
23451      ),
23452      'banco_cuenta' =>
23453      array (
23454        'banco_cuenta_id' =>
23455        array (
23456          'es' => 'catalog',
23457          'formato' => 'link_one_select',
23458          'to_table' => 'banco_cuenta',
23459          'to_field' => 'banco_cuenta_id',
23460          'this_table' => 'vale_log',
23461          'this_field' => 'banco_cuenta_id',
23462        ),
23463      ),
23464      'metodo_pago' =>
23465      array (
23466        'metodo_pago_id' =>
23467        array (
23468          'es' => 'catalog',
23469          'formato' => 'link_one_select',
23470          'to_table' => 'metodo_pago',
23471          'to_field' => 'metodo_pago_id',
23472          'this_table' => 'vale_log',
23473          'this_field' => 'metodo_pago_id',
23474        ),
23475      ),
23476      'empresa' =>
23477      array (
23478        'empresa_id' =>
23479        array (
23480          'es' => 'catalog',
23481          'formato' => 'link_one_select',
23482          'to_table' => 'empresa',
23483          'to_field' => 'empresa_id',
23484          'this_table' => 'vale_log',
23485          'this_field' => 'empresa_id',
23486        ),
23487      ),
23488      'tienda' =>
23489      array (
23490        'tienda_id' =>
23491        array (
23492          'es' => 'catalog',
23493          'formato' => 'link_one_select',
23494          'to_table' => 'tienda',
23495          'to_field' => 'tienda_id',
23496          'this_table' => 'vale_log',
23497          'this_field' => 'tienda_id',
23498        ),
23499      ),
23500      'cuentat_mov' =>
23501      array (
23502        'cuenta_t_mov_id' =>
23503        array (
23504          'es' => 'catalog',
23505          'formato' => 'link_one_select',
23506          'to_table' => 'cuentat_mov',
23507          'to_field' => 'cuentaT_mov_id',
23508          'this_table' => 'vale_log',
23509          'this_field' => 'cuenta_t_mov_id',
23510        ),
23511      ),
23512      'categoria' =>
23513      array (
23514        'categoria_id' =>
23515        array (
23516          'es' => 'catalog',
23517          'formato' => 'link_one_select',
23518          'to_table' => 'categoria',
23519          'to_field' => 'categoria_id',
23520          'this_table' => 'vale_log',
23521          'this_field' => 'categoria_id',
23522        ),
23523      ),
23524    ),
23525    'links_from' =>
23526    array (
23527      'vale' =>
23528      array (
23529        'es' => 'one2one',
23530      ),
23531    ),
23532  ),
23533  'vale_pago' =>
23534  array (
23535    'es' => 'parent',
23536    'pk_single_field' => 'vale_pago_id',
23537    'pk_single_type' => 'uuid',
23538    'label_field' => 'vale_id',
23539    'has_seq' => false,
23540    'has_child' => true,
23541    'has_datetime' => true,
23542    'has_numeric' => true,
23543    'has_fckeditor' => true,
23544    'links_to' =>
23545    array (
23546      'vale' =>
23547      array (
23548        'vale_id' =>
23549        array (
23550          'es' => 'catalog',
23551          'formato' => 'link_one_select',
23552          'to_table' => 'vale',
23553          'to_field' => 'vale_id',
23554          'this_table' => 'vale_pago',
23555          'this_field' => 'vale_id',
23556        ),
23557      ),
23558      'moneda' =>
23559      array (
23560        'moneda_id' =>
23561        array (
23562          'es' => 'catalog',
23563          'formato' => 'link_one_select',
23564          'to_table' => 'moneda',
23565          'to_field' => 'moneda_id',
23566          'this_table' => 'vale_pago',
23567          'this_field' => 'moneda_id',
23568        ),
23569      ),
23570      'metodo_pago' =>
23571      array (
23572        'metodo_pago_id' =>
23573        array (
23574          'es' => 'catalog',
23575          'formato' => 'link_one_select',
23576          'to_table' => 'metodo_pago',
23577          'to_field' => 'metodo_pago_id',
23578          'this_table' => 'vale_pago',
23579          'this_field' => 'metodo_pago_id',
23580        ),
23581      ),
23582      'banco_cuenta' =>
23583      array (
23584        'banco_cuenta_id' =>
23585        array (
23586          'es' => 'catalog',
23587          'formato' => 'link_one_select',
23588          'to_table' => 'banco_cuenta',
23589          'to_field' => 'banco_cuenta_id',
23590          'this_table' => 'vale_pago',
23591          'this_field' => 'banco_cuenta_id',
23592        ),
23593      ),
23594      'banco_cuenta_mov_link' =>
23595      array (
23596        'banco_cuenta_mov_link_id' =>
23597        array (
23598          'es' => 'catalog',
23599          'formato' => 'link_one_select',
23600          'to_table' => 'banco_cuenta_mov_link',
23601          'to_field' => 'banco_cuenta_mov_link_id',
23602          'this_table' => 'vale_pago',
23603          'this_field' => 'banco_cuenta_mov_link_id',
23604        ),
23605      ),
23606      'cuentat_mov' =>
23607      array (
23608        'cuenta_t_mov_id' =>
23609        array (
23610          'es' => 'catalog',
23611          'formato' => 'link_one_select',
23612          'to_table' => 'cuentat_mov',
23613          'to_field' => 'cuentaT_mov_id',
23614          'this_table' => 'vale_pago',
23615          'this_field' => 'cuenta_t_mov_id',
23616        ),
23617      ),
23618      'cuentat' =>
23619      array (
23620        'cuentaT_id' =>
23621        array (
23622          'es' => 'catalog',
23623          'formato' => 'link_one_select',
23624          'to_table' => 'cuentat',
23625          'to_field' => 'cuentaT_id',
23626          'this_table' => 'vale_pago',
23627          'this_field' => 'cuentaT_id',
23628        ),
23629      ),
23630      'empresa' =>
23631      array (
23632        'empresa_id' =>
23633        array (
23634          'es' => 'catalog',
23635          'formato' => 'link_one_select',
23636          'to_table' => 'empresa',
23637          'to_field' => 'empresa_id',
23638          'this_table' => 'vale_pago',
23639          'this_field' => 'empresa_id',
23640        ),
23641      ),
23642      'tienda' =>
23643      array (
23644        'tienda_id' =>
23645        array (
23646          'es' => 'catalog',
23647          'formato' => 'link_one_select',
23648          'to_table' => 'tienda',
23649          'to_field' => 'tienda_id',
23650          'this_table' => 'vale_pago',
23651          'this_field' => 'tienda_id',
23652        ),
23653      ),
23654    ),
23655    'links_from' =>
23656    array (
23657      'vale_pago_log' =>
23658      array (
23659        'vale_pago_id' =>
23660        array (
23661          'es' => 'child',
23662          'formato' => 'jqgrid',
23663          'to_table' => 'vale_pago_log',
23664          'to_field' => 'vale_pago_id',
23665          'this_table' => 'vale_pago',
23666          'this_field' => 'vale_pago_id',
23667          'restrict_delete' => false,
23668          'delete_with_parent' => true,
23669          'on_delete_set_to' => 0,
23670        ),
23671      ),
23672    ),
23673  ),
23674  'vale_pago_log' =>
23675  array (
23676    'es' => 'child',
23677    'pk_single_field' => 'vale_pago_log_id',
23678    'pk_single_type' => 'uuid',
23679    'label_field' => 'vale_pago_id',
23680    'has_seq' => false,
23681    'has_child' => false,
23682    'has_datetime' => true,
23683    'has_numeric' => true,
23684    'has_fckeditor' => true,
23685    'links_to' =>
23686    array (
23687      'vale_pago' =>
23688      array (
23689        'vale_pago_id' =>
23690        array (
23691          'es' => 'catalog',
23692          'formato' => 'link_one_select',
23693          'to_table' => 'vale_pago',
23694          'to_field' => 'vale_pago_id',
23695          'this_table' => 'vale_pago_log',
23696          'this_field' => 'vale_pago_id',
23697        ),
23698      ),
23699      'vale' =>
23700      array (
23701        'vale_id' =>
23702        array (
23703          'es' => 'catalog',
23704          'formato' => 'link_one_select',
23705          'to_table' => 'vale',
23706          'to_field' => 'vale_id',
23707          'this_table' => 'vale_pago_log',
23708          'this_field' => 'vale_id',
23709        ),
23710      ),
23711      'moneda' =>
23712      array (
23713        'moneda_id' =>
23714        array (
23715          'es' => 'catalog',
23716          'formato' => 'link_one_select',
23717          'to_table' => 'moneda',
23718          'to_field' => 'moneda_id',
23719          'this_table' => 'vale_pago_log',
23720          'this_field' => 'moneda_id',
23721        ),
23722      ),
23723      'metodo_pago' =>
23724      array (
23725        'metodo_pago_id' =>
23726        array (
23727          'es' => 'catalog',
23728          'formato' => 'link_one_select',
23729          'to_table' => 'metodo_pago',
23730          'to_field' => 'metodo_pago_id',
23731          'this_table' => 'vale_pago_log',
23732          'this_field' => 'metodo_pago_id',
23733        ),
23734      ),
23735      'banco_cuenta' =>
23736      array (
23737        'banco_cuenta_id' =>
23738        array (
23739          'es' => 'catalog',
23740          'formato' => 'link_one_select',
23741          'to_table' => 'banco_cuenta',
23742          'to_field' => 'banco_cuenta_id',
23743          'this_table' => 'vale_pago_log',
23744          'this_field' => 'banco_cuenta_id',
23745        ),
23746      ),
23747      'banco_cuenta_mov_link' =>
23748      array (
23749        'banco_cuenta_mov_link_id' =>
23750        array (
23751          'es' => 'catalog',
23752          'formato' => 'link_one_select',
23753          'to_table' => 'banco_cuenta_mov_link',
23754          'to_field' => 'banco_cuenta_mov_link_id',
23755          'this_table' => 'vale_pago_log',
23756          'this_field' => 'banco_cuenta_mov_link_id',
23757        ),
23758      ),
23759      'cuentat_mov' =>
23760      array (
23761        'cuenta_t_mov_id' =>
23762        array (
23763          'es' => 'catalog',
23764          'formato' => 'link_one_select',
23765          'to_table' => 'cuentat_mov',
23766          'to_field' => 'cuentaT_mov_id',
23767          'this_table' => 'vale_pago_log',
23768          'this_field' => 'cuenta_t_mov_id',
23769        ),
23770      ),
23771      'cuentat' =>
23772      array (
23773        'cuentaT_id' =>
23774        array (
23775          'es' => 'catalog',
23776          'formato' => 'link_one_select',
23777          'to_table' => 'cuentat',
23778          'to_field' => 'cuentaT_id',
23779          'this_table' => 'vale_pago_log',
23780          'this_field' => 'cuentaT_id',
23781        ),
23782      ),
23783      'empresa' =>
23784      array (
23785        'empresa_id' =>
23786        array (
23787          'es' => 'catalog',
23788          'formato' => 'link_one_select',
23789          'to_table' => 'empresa',
23790          'to_field' => 'empresa_id',
23791          'this_table' => 'vale_pago_log',
23792          'this_field' => 'empresa_id',
23793        ),
23794      ),
23795      'tienda' =>
23796      array (
23797        'tienda_id' =>
23798        array (
23799          'es' => 'catalog',
23800          'formato' => 'link_one_select',
23801          'to_table' => 'tienda',
23802          'to_field' => 'tienda_id',
23803          'this_table' => 'vale_pago_log',
23804          'this_field' => 'tienda_id',
23805        ),
23806      ),
23807    ),
23808  ),
23809  'vale_permiso' =>
23810  array (
23811    'es' => 'key_value_select',
23812    'pk_single_field' => 'vale_permiso_id',
23813    'pk_single_type' => 'auto_increment',
23814    'label_field' => 'vale_id',
23815    'has_seq' => false,
23816    'has_child' => false,
23817    'links_to' =>
23818    array (
23819      'vale' =>
23820      array (
23821        'vale_id' =>
23822        array (
23823          'es' => 'catalog',
23824          'formato' => 'key_value_select',
23825          'to_table' => 'vale',
23826          'to_field' => 'vale_id',
23827          'this_table' => 'vale_permiso',
23828          'this_field' => 'vale_id',
23829          'key_value_select' =>
23830          array (
23831            0 =>
23832            array (
23833              'table' => 'iac_usr',
23834              'table_pk' => 'iac_usr_id',
23835              'label' => 'nick',
23836              'relateid' => 'iac_usr_id',
23837              'linkid' => 'vale_id',
23838            ),
23839            1 =>
23840            array (
23841              'table' => 'tienda',
23842              'table_pk' => 'tienda_id',
23843              'label' => 'clave',
23844              'relateid' => 'tienda_id',
23845              'linkid' => 'vale_id',
23846            ),
23847          ),
23848        ),
23849      ),
23850      'iac_usr' =>
23851      array (
23852        'iac_usr_id' =>
23853        array (
23854          'es' => 'catalog',
23855          'formato' => 'key_value_select',
23856          'to_table' => 'iac_usr',
23857          'to_field' => 'iac_usr_id',
23858          'this_table' => 'vale_permiso',
23859          'this_field' => 'iac_usr_id',
23860          'key_value_select' =>
23861          array (
23862            0 =>
23863            array (
23864              'table' => 'vale',
23865              'table_pk' => 'vale_id',
23866              'label' => 'cliente',
23867              'relateid' => 'vale_id',
23868              'linkid' => 'iac_usr_id',
23869            ),
23870            1 =>
23871            array (
23872              'table' => 'tienda',
23873              'table_pk' => 'tienda_id',
23874              'label' => 'clave',
23875              'relateid' => 'tienda_id',
23876              'linkid' => 'iac_usr_id',
23877            ),
23878          ),
23879        ),
23880      ),
23881      'tienda' =>
23882      array (
23883        'tienda_id' =>
23884        array (
23885          'es' => 'catalog',
23886          'formato' => 'key_value_select',
23887          'to_table' => 'tienda',
23888          'to_field' => 'tienda_id',
23889          'this_table' => 'vale_permiso',
23890          'this_field' => 'tienda_id',
23891          'key_value_select' =>
23892          array (
23893            0 =>
23894            array (
23895              'table' => 'vale',
23896              'table_pk' => 'vale_id',
23897              'label' => 'cliente',
23898              'relateid' => 'vale_id',
23899              'linkid' => 'tienda_id',
23900            ),
23901            1 =>
23902            array (
23903              'table' => 'iac_usr',
23904              'table_pk' => 'iac_usr_id',
23905              'label' => 'nick',
23906              'relateid' => 'iac_usr_id',
23907              'linkid' => 'tienda_id',
23908            ),
23909          ),
23910        ),
23911      ),
23912    ),
23913  ),
23914  'vale_uso' =>
23915  array (
23916    'es' => 'parent',
23917    'pk_single_field' => 'vale_uso_id',
23918    'pk_single_type' => 'uuid',
23919    'label_field' => 'vale_id',
23920    'has_seq' => false,
23921    'has_child' => true,
23922    'has_date' => true,
23923    'has_numeric' => true,
23924    'links_to' =>
23925    array (
23926      'vale' =>
23927      array (
23928        'vale_id' =>
23929        array (
23930          'es' => 'catalog',
23931          'formato' => 'link_one_select',
23932          'to_table' => 'vale',
23933          'to_field' => 'vale_id',
23934          'this_table' => 'vale_uso',
23935          'this_field' => 'vale_id',
23936        ),
23937      ),
23938      'moneda' =>
23939      array (
23940        'moneda_id' =>
23941        array (
23942          'es' => 'catalog',
23943          'formato' => 'link_one_select',
23944          'to_table' => 'moneda',
23945          'to_field' => 'moneda_id',
23946          'this_table' => 'vale_uso',
23947          'this_field' => 'moneda_id',
23948        ),
23949      ),
23950      'metodo_pago' =>
23951      array (
23952        'metodo_pago_id' =>
23953        array (
23954          'es' => 'catalog',
23955          'formato' => 'link_one_select',
23956          'to_table' => 'metodo_pago',
23957          'to_field' => 'metodo_pago_id',
23958          'this_table' => 'vale_uso',
23959          'this_field' => 'metodo_pago_id',
23960        ),
23961      ),
23962      'banco_cuenta' =>
23963      array (
23964        'banco_cuenta_id' =>
23965        array (
23966          'es' => 'catalog',
23967          'formato' => 'link_one_select',
23968          'to_table' => 'banco_cuenta',
23969          'to_field' => 'banco_cuenta_id',
23970          'this_table' => 'vale_uso',
23971          'this_field' => 'banco_cuenta_id',
23972        ),
23973      ),
23974      'banco_cuenta_mov_link' =>
23975      array (
23976        'banco_cuenta_mov_link_id' =>
23977        array (
23978          'es' => 'catalog',
23979          'formato' => 'link_one_select',
23980          'to_table' => 'banco_cuenta_mov_link',
23981          'to_field' => 'banco_cuenta_mov_link_id',
23982          'this_table' => 'vale_uso',
23983          'this_field' => 'banco_cuenta_mov_link_id',
23984        ),
23985      ),
23986      'cuentat_mov' =>
23987      array (
23988        'cuenta_t_mov_id' =>
23989        array (
23990          'es' => 'catalog',
23991          'formato' => 'link_one_select',
23992          'to_table' => 'cuentat_mov',
23993          'to_field' => 'cuentaT_mov_id',
23994          'this_table' => 'vale_uso',
23995          'this_field' => 'cuenta_t_mov_id',
23996        ),
23997      ),
23998    ),
23999    'links_from' =>
24000    array (
24001      'vale_uso_log' =>
24002      array (
24003        'vale_uso_id' =>
24004        array (
24005          'es' => 'child',
24006          'formato' => 'jqgrid',
24007          'to_table' => 'vale_uso_log',
24008          'to_field' => 'vale_uso_id',
24009          'this_table' => 'vale_uso',
24010          'this_field' => 'vale_uso_id',
24011          'restrict_delete' => false,
24012          'delete_with_parent' => true,
24013          'on_delete_set_to' => 0,
24014        ),
24015      ),
24016    ),
24017  ),
24018  'vale_uso_log' =>
24019  array (
24020    'es' => 'child',
24021    'pk_single_field' => 'vale_uso_log_id',
24022    'pk_single_type' => 'uuid',
24023    'label_field' => 'vale_uso_id',
24024    'has_seq' => false,
24025    'has_child' => false,
24026    'has_date' => true,
24027    'has_numeric' => true,
24028    'links_to' =>
24029    array (
24030      'vale_uso' =>
24031      array (
24032        'vale_uso_id' =>
24033        array (
24034          'es' => 'catalog',
24035          'formato' => 'link_one_select',
24036          'to_table' => 'vale_uso',
24037          'to_field' => 'vale_uso_id',
24038          'this_table' => 'vale_uso_log',
24039          'this_field' => 'vale_uso_id',
24040        ),
24041      ),
24042      'vale' =>
24043      array (
24044        'vale_id' =>
24045        array (
24046          'es' => 'catalog',
24047          'formato' => 'link_one_select',
24048          'to_table' => 'vale',
24049          'to_field' => 'vale_id',
24050          'this_table' => 'vale_uso_log',
24051          'this_field' => 'vale_id',
24052        ),
24053      ),
24054      'moneda' =>
24055      array (
24056        'moneda_id' =>
24057        array (
24058          'es' => 'catalog',
24059          'formato' => 'link_one_select',
24060          'to_table' => 'moneda',
24061          'to_field' => 'moneda_id',
24062          'this_table' => 'vale_uso_log',
24063          'this_field' => 'moneda_id',
24064        ),
24065      ),
24066      'metodo_pago' =>
24067      array (
24068        'metodo_pago_id' =>
24069        array (
24070          'es' => 'catalog',
24071          'formato' => 'link_one_select',
24072          'to_table' => 'metodo_pago',
24073          'to_field' => 'metodo_pago_id',
24074          'this_table' => 'vale_uso_log',
24075          'this_field' => 'metodo_pago_id',
24076        ),
24077      ),
24078      'banco_cuenta' =>
24079      array (
24080        'banco_cuenta_id' =>
24081        array (
24082          'es' => 'catalog',
24083          'formato' => 'link_one_select',
24084          'to_table' => 'banco_cuenta',
24085          'to_field' => 'banco_cuenta_id',
24086          'this_table' => 'vale_uso_log',
24087          'this_field' => 'banco_cuenta_id',
24088        ),
24089      ),
24090      'banco_cuenta_mov_link' =>
24091      array (
24092        'banco_cuenta_mov_link_id' =>
24093        array (
24094          'es' => 'catalog',
24095          'formato' => 'link_one_select',
24096          'to_table' => 'banco_cuenta_mov_link',
24097          'to_field' => 'banco_cuenta_mov_link_id',
24098          'this_table' => 'vale_uso_log',
24099          'this_field' => 'banco_cuenta_mov_link_id',
24100        ),
24101      ),
24102      'cuentat_mov' =>
24103      array (
24104        'cuenta_t_mov_id' =>
24105        array (
24106          'es' => 'catalog',
24107          'formato' => 'link_one_select',
24108          'to_table' => 'cuentat_mov',
24109          'to_field' => 'cuentaT_mov_id',
24110          'this_table' => 'vale_uso_log',
24111          'this_field' => 'cuenta_t_mov_id',
24112        ),
24113      ),
24114    ),
24115  ),
24116  'vitex_grid' =>
24117  array (
24118    'es' => 'parent',
24119    'pk_single_field' => 'vitex_grid_id',
24120    'pk_single_type' => 'uuid',
24121    'label_field' => 'nombre',
24122    'has_seq' => false,
24123    'has_child' => true,
24124    'UNI' =>
24125    array (
24126      0 => 'grid_id',
24127    ),
24128    'links_from' =>
24129    array (
24130      'vitex_grid_col' =>
24131      array (
24132        'vitex_grid_id' =>
24133        array (
24134          'es' => 'child',
24135          'formato' => 'jqgrid',
24136          'to_table' => 'vitex_grid_col',
24137          'to_field' => 'vitex_grid_id',
24138          'this_table' => 'vitex_grid',
24139          'this_field' => 'vitex_grid_id',
24140          'restrict_delete' => false,
24141          'delete_with_parent' => true,
24142          'on_delete_set_to' => 0,
24143        ),
24144      ),
24145    ),
24146  ),
24147  'vitex_grid_col' =>
24148  array (
24149    'es' => 'child',
24150    'pk_single_field' => 'vitex_grid_col_id',
24151    'pk_single_type' => 'auto_increment',
24152    'label_field' => 'vitex_grid_id',
24153    'has_seq' => false,
24154    'has_child' => false,
24155    'links_to' =>
24156    array (
24157      'vitex_grid' =>
24158      array (
24159        'vitex_grid_id' =>
24160        array (
24161          'es' => 'catalog',
24162          'formato' => 'link_one_select',
24163          'to_table' => 'vitex_grid',
24164          'to_field' => 'vitex_grid_id',
24165          'this_table' => 'vitex_grid_col',
24166          'this_field' => 'vitex_grid_id',
24167        ),
24168      ),
24169    ),
24170  ),
24171  'xpert_reglas' =>
24172  array (
24173    'es' => 'data',
24174    'PK' =>
24175    array (
24176      0 => 'tema',
24177      1 => 'nombre',
24178    ),
24179    'label_field' => 'alta_por',
24180    'has_seq' => false,
24181    'has_child' => false,
24182  ),
24183);
24184
24185    }
24186
24187    /* TALBE_DEFAULT_INFO END */
24188
24189    /**
24190     * appRelate::enums_default_info
24191     * Definicion default de los enums, no cambiar cambiar en enum_final_info()
24192     *
24193     */
24194       /* ENUM_DEFAULT_INFO START */
24195    public function enums_default_info() {
24196    $this->enums=array (
24197  'a_cuentas_live.activo' =>
24198  array (
24199    'Si' => 'Si',
24200    'No' => 'No',
24201  ),
24202  'grupos_de.activo' =>
24203  array (
24204    'No' => 'No',
24205    'Si' => 'Si',
24206  ),
24207  'tipo_cash_nota' =>
24208  array (
24209    'CASH' => 'CASH',
24210    'NOTA' => 'NOTA',
24211    'OTRO' => 'OTRO',
24212  ),
24213  'cobra_iva' =>
24214  array (
24215    'SI' => 'SI',
24216    'NO' => 'NO',
24217  ),
24218  'iva_incluido' =>
24219  array (
24220    'SI' => 'SI',
24221    'NO' => 'NO',
24222  ),
24223  'puede_borrar' =>
24224  array (
24225    'Si' => 'Si',
24226    'No' => 'No',
24227  ),
24228  'cancelado' =>
24229  array (
24230    'Si' => 'Si',
24231    'No' => 'No',
24232  ),
24233  'borrado' =>
24234  array (
24235    'Si' => 'Si',
24236    'No' => 'No',
24237  ),
24238  'nota_bodega_disponible' =>
24239  array (
24240    'Si' => 'Si',
24241    'No' => 'No',
24242  ),
24243  'estatus_peligroso' =>
24244  array (
24245    '' => '',
24246    'Faltante grande' => 'Faltante grande',
24247    'Sobrante grande' => 'Sobrante grande',
24248  ),
24249  'autorizacion_de_bodega' =>
24250  array (
24251    'Si' => 'Si',
24252    'No' => 'No',
24253    '' => '',
24254  ),
24255  'autorizacion_propia' =>
24256  array (
24257    'Si' => 'Si',
24258    'No' => 'No',
24259    '' => '',
24260  ),
24261  'ajuste.autorizacion_rony' =>
24262  array (
24263    'Si' => 'Si',
24264    'No' => 'No',
24265    '' => '',
24266  ),
24267  'pedido.autorizacion_rony' =>
24268  array (
24269    'Si' => 'Si',
24270    'No' => 'No',
24271  ),
24272  'tipo_ajuste' =>
24273  array (
24274    'Global' => 'Global',
24275    'Puntual' => 'Puntual',
24276    '' => '',
24277  ),
24278  'ajuste_autorizacion.valor' =>
24279  array (
24280    'Si' => 'Si',
24281    'No' => 'No',
24282  ),
24283  'autorizacion_modificacion_importante_log.valor' =>
24284  array (
24285    'Si' => 'Si',
24286    'No' => 'No',
24287    'Mal' => 'Mal',
24288    'Rechazado' => 'Rechazado',
24289  ),
24290  'nuevo' =>
24291  array (
24292    'Si' => 'Si',
24293    'No' => 'No',
24294  ),
24295  'cambio_por_usuario' =>
24296  array (
24297    'Si' => 'Si',
24298    'No' => 'No',
24299  ),
24300  'average_mal' =>
24301  array (
24302    'Si' => 'Si',
24303    'No' => 'No',
24304  ),
24305  'autorizacion_recepcion_nota_bodega.tipo' =>
24306  array (
24307    'autorizacion_salida' => 'autorizacion_salida',
24308    'recepcion_salida' => 'recepcion_salida',
24309    'autorizacion_entrada' => 'autorizacion_entrada',
24310    'autorizacion_cancelacion' => 'autorizacion_cancelacion',
24311    'autorizacion_modificacion' => 'autorizacion_modificacion',
24312    'autorizacion_origen_especial' => 'autorizacion_origen_especial',
24313    'autorizacion_nota_borrada' => 'autorizacion_nota_borrada',
24314    'autorizacion_nota_apartado' => 'autorizacion_nota_apartado',
24315    'autorizacion_salida_mayor_metros' => 'autorizacion_salida_mayor_metros',
24316    'autorizacion_salida_mayor_rollos' => 'autorizacion_salida_mayor_rollos',
24317    'autorizacion_salida_mayor_kilos' => 'autorizacion_salida_mayor_kilos',
24318    'autorizacion_ajuste_de_inventario' => 'autorizacion_ajuste_de_inventario',
24319    'autorizacion_reset_producto_bodega' => 'autorizacion_reset_producto_bodega',
24320  ),
24321  'banco_cuenta_trans.tipo' =>
24322  array (
24323    'Ingreso' => 'Ingreso',
24324    'Egreso' => 'Egreso',
24325    'Transfer Accepted' => 'Transfer Accepted',
24326    'Transfer Sent' => 'Transfer Sent',
24327  ),
24328  'categoria.tipo' =>
24329  array (
24330    'TODOS' => 'TODOS',
24331    'DEFAULT' => 'DEFAULT',
24332    'NADA' => 'NADA',
24333  ),
24334  'cheque.tipo' =>
24335  array (
24336    '' => '',
24337    'GASTO' => 'GASTO',
24338    'NOTA' => 'NOTA',
24339  ),
24340  'compra.tipo' =>
24341  array (
24342    '' => '',
24343    'GASTO' => 'GASTO',
24344    'COMPRA' => 'COMPRA',
24345  ),
24346  'iac_usr.tipo' =>
24347  array (
24348    'Normal' => 'Normal',
24349    'Administrador' => 'Administrador',
24350    'Super user' => 'Super user',
24351  ),
24352  'nota_bodega.tipo' =>
24353  array (
24354    'Movimiento' => 'Movimiento',
24355    'Transferencia' => 'Transferencia',
24356    'Traslado' => 'Traslado',
24357    'Devolucion' => 'Devolucion',
24358    'Devolucion Fabricante' => 'Devolucion Fabricante',
24359    'Correccion' => 'Correccion',
24360    'Cancelacion' => 'Cancelacion',
24361    'Container' => 'Container',
24362    'Venta Cliente' => 'Venta Cliente',
24363    'Borrado' => 'Borrado',
24364  ),
24365  'nota_bodega_autorizacion.tipo' =>
24366  array (
24367    'Movimiento' => 'Movimiento',
24368    'Transferencia' => 'Transferencia',
24369    'Traslado' => 'Traslado',
24370    'Devolucion' => 'Devolucion',
24371    'Devolucion Fabricante' => 'Devolucion Fabricante',
24372    'Correccion' => 'Correccion',
24373    'Cancelacion' => 'Cancelacion',
24374    'Container' => 'Container',
24375    'Venta Cliente' => 'Venta Cliente',
24376  ),
24377  'pagare.tipo' =>
24378  array (
24379    '' => '',
24380    'GASTO' => 'GASTO',
24381    'TIENDA' => 'TIENDA',
24382  ),
24383  'pedido_recomienda.tipo' =>
24384  array (
24385    'Olla' => 'Olla',
24386    'Programacion' => 'Programacion',
24387  ),
24388  'solicitud_carta_porte.tipo' =>
24389  array (
24390    'Movimiento' => 'Movimiento',
24391    'Transferencia' => 'Transferencia',
24392    'Traslado' => 'Traslado',
24393    'Devolucion' => 'Devolucion',
24394    'Devolucion Fabricante' => 'Devolucion Fabricante',
24395    'Correccion' => 'Correccion',
24396    'Cancelacion' => 'Cancelacion',
24397  ),
24398  'mostrar' =>
24399  array (
24400    'Si' => 'Si',
24401    'No' => 'No',
24402  ),
24403  'es_encargado' =>
24404  array (
24405    'Si' => 'Si',
24406    'No' => 'No',
24407  ),
24408  'naturaleza' =>
24409  array (
24410    'Fiscal' => 'Fiscal',
24411    'No Fiscal' => 'No Fiscal',
24412  ),
24413  'vale' =>
24414  array (
24415    'Active' => 'Active',
24416    'Inactive' => 'Inactive',
24417  ),
24418  'banco_china' =>
24419  array (
24420    'Si' => 'Si',
24421    'No' => 'No',
24422  ),
24423  'ignorar_bran' =>
24424  array (
24425    'Si' => 'Si',
24426    'No' => 'No',
24427  ),
24428  'tipo_inversion_empresa_privada' =>
24429  array (
24430    'empresa' => 'empresa',
24431    'privada' => 'privada',
24432  ),
24433  'es' =>
24434  array (
24435    'Deposito' => 'Deposito',
24436    'Retiro' => 'Retiro',
24437  ),
24438  'puede_editar' =>
24439  array (
24440    'Si' => 'Si',
24441    'No' => 'No',
24442  ),
24443  'verificado' =>
24444  array (
24445    'Pendiente' => 'Pendiente',
24446    'Si' => 'Si',
24447    'No' => 'No',
24448  ),
24449  'banco_cuenta_mov.link_vale' =>
24450  array (
24451    'ND' => 'ND',
24452    'Q' => 'Q',
24453    'LP' => 'LP',
24454    'LT' => 'LT',
24455    'SBC' => 'SBC',
24456    'RJ' => 'RJ',
24457    'SYS' => 'SYS',
24458    'PEND' => 'PEND',
24459    'INC' => 'INC',
24460    'NA' => 'NA',
24461    'ERROR' => 'ERROR',
24462    'DEV' => 'DEV',
24463    'STOP' => 'STOP',
24464    'CORRECTED' => 'CORRECTED',
24465    'COMMENTS' => 'COMMENTS',
24466    'NEW' => 'NEW',
24467    'RONY' => 'RONY',
24468    'AA' => 'AA',
24469    'APP' => 'APP',
24470    'BLOCKED' => 'BLOCKED',
24471    'CONTRACT' => 'CONTRACT',
24472    'RETORNO' => 'RETORNO',
24473    'GARANTIA' => 'GARANTIA',
24474    'NAVIERA' => 'NAVIERA',
24475    'HOLD' => 'HOLD',
24476    'RETAIN' => 'RETAIN',
24477    'FID' => 'FID',
24478    'INV' => 'INV',
24479  ),
24480  'banco_mov_tipo.link_vale' =>
24481  array (
24482    'ND' => 'ND',
24483    'Q' => 'Q',
24484  ),
24485  'gastosdebanco.link_vale' =>
24486  array (
24487    'ND' => 'ND',
24488    'Q' => 'Q',
24489    'LP' => 'LP',
24490    'LT' => 'LT',
24491    'SBC' => 'SBC',
24492    'BL' => 'BL',
24493    'RJ' => 'RJ',
24494    'SYS' => 'SYS',
24495    'PEND' => 'PEND',
24496    'INC' => 'INC',
24497  ),
24498  'withdrawal_autorizado' =>
24499  array (
24500    'Si' => 'Si',
24501    'No' => 'No',
24502  ),
24503  'alta_tipo' =>
24504  array (
24505    'auto' => 'auto',
24506    'manual' => 'manual',
24507    'match' => 'match',
24508  ),
24509  'pendiente' =>
24510  array (
24511    'Si' => 'Si',
24512    'No' => 'No',
24513  ),
24514  'importante' =>
24515  array (
24516    'Si' => 'Si',
24517    'No' => 'No',
24518  ),
24519  'repetido' =>
24520  array (
24521    'Si' => 'Si',
24522    'No' => 'No',
24523  ),
24524  'puede' =>
24525  array (
24526    'Nada' => 'Nada',
24527    'R/O' => 'R/O',
24528    'R/W' => 'R/W',
24529    'A/O' => 'A/O',
24530    'D/O' => 'D/O',
24531  ),
24532  'checkedF' =>
24533  array (
24534    'Si' => 'Si',
24535    'No' => 'No',
24536  ),
24537  'banco_cuenta_trans.status' =>
24538  array (
24539    'COMPLETA' => 'COMPLETA',
24540    'PENDIENTE' => 'PENDIENTE',
24541    'CANCELADA' => 'CANCELADA',
24542  ),
24543  'cuentat_transfer.status' =>
24544  array (
24545    'Waiting' => 'Waiting',
24546    'Transfer accepted' => 'Transfer accepted',
24547    'Cancel' => 'Cancel',
24548  ),
24549  'icac_error.status' =>
24550  array (
24551    'Bug' => 'Bug',
24552    'Fixed' => 'Fixed',
24553    'Wont Fix' => 'Wont Fix',
24554    'Info' => 'Info',
24555  ),
24556  'login_log.status' =>
24557  array (
24558    'Logged In' => 'Logged In',
24559    'Logged Out' => 'Logged Out',
24560    'Unkown' => 'Unkown',
24561    'Expired' => 'Expired',
24562  ),
24563  'nota_bodega_autorizacion2.status' =>
24564  array (
24565    'Autorizada YA' => 'Autorizada YA',
24566    'Por autorizar' => 'Por autorizar',
24567    'Cancelada' => 'Cancelada',
24568  ),
24569  'pedido_items.status' =>
24570  array (
24571    'Capturando' => 'Capturando',
24572    'Pedido' => 'Pedido',
24573    'Entregado' => 'Entregado',
24574  ),
24575  'banco_cuenta_trans.esta_en' =>
24576  array (
24577    'user' => 'user',
24578    'transfer' => 'transfer',
24579    'done' => 'done',
24580    'cancelado' => 'cancelado',
24581  ),
24582  'cheque.esta_en' =>
24583  array (
24584    'user' => 'user',
24585    'transfer' => 'transfer',
24586  ),
24587  'factura_directa' =>
24588  array (
24589    'SI' => 'SI',
24590    'NO' => 'NO',
24591  ),
24592  'afecta_cuentat' =>
24593  array (
24594    'SI' => 'SI',
24595    'NO' => 'NO',
24596  ),
24597  'banco_cuenta_trans.revisado' =>
24598  array (
24599    'Si' => 'Si',
24600    'No' => 'No',
24601  ),
24602  'brain_avisos.revisado' =>
24603  array (
24604    'No Aplica' => 'No Aplica',
24605    'Por revisar' => 'Por revisar',
24606    'Revisado' => 'Revisado',
24607  ),
24608  'login_log_raro.revisado' =>
24609  array (
24610    'No' => 'No',
24611    'Si' => 'Si',
24612  ),
24613  'autorizado' =>
24614  array (
24615    'Si' => 'Si',
24616    'No' => 'No',
24617  ),
24618  'rechazado' =>
24619  array (
24620    'Si' => 'Si',
24621    'No' => 'No',
24622  ),
24623  'banco_cuenta_trans.iva_revisado' =>
24624  array (
24625    'Si' => 'Si',
24626    'No' => 'No',
24627    'Pend' => 'Pend',
24628  ),
24629  'fiduciario_reembolso.iva_revisado' =>
24630  array (
24631    'Si' => 'Si',
24632    'No' => 'No',
24633  ),
24634  'cancelacion_revisada' =>
24635  array (
24636    'Si' => 'Si',
24637    'No' => 'No',
24638    'Pend' => 'Pend',
24639  ),
24640  'agregar_palabra_clave' =>
24641  array (
24642    'Si' => 'Si',
24643    'No' => 'No',
24644  ),
24645  'buscar_repetidos' =>
24646  array (
24647    'Si' => 'Si',
24648    'No' => 'No',
24649  ),
24650  'resalta_subtitulo' =>
24651  array (
24652    'Si' => 'Si',
24653    'No' => 'No',
24654  ),
24655  'resalta_palabras' =>
24656  array (
24657    'Si' => 'Si',
24658    'No' => 'No',
24659  ),
24660  'lleva_ide' =>
24661  array (
24662    'Si' => 'Si',
24663    'No' => 'No',
24664  ),
24665  'es_mixto' =>
24666  array (
24667    'Si' => 'Si',
24668    'No' => 'No',
24669  ),
24670  'cash' =>
24671  array (
24672    'Si' => 'Si',
24673    'No' => 'No',
24674  ),
24675  'deposit' =>
24676  array (
24677    'Si' => 'Si',
24678    'No' => 'No',
24679  ),
24680  'withdrawal' =>
24681  array (
24682    'Si' => 'Si',
24683    'No' => 'No',
24684  ),
24685  'bancario' =>
24686  array (
24687    'Si' => 'Si',
24688    'No' => 'No',
24689  ),
24690  'solicita_link_bancario' =>
24691  array (
24692    'Si' => 'Si',
24693    'No' => 'No',
24694  ),
24695  'especial' =>
24696  array (
24697    'NORMAL' => 'NORMAL',
24698    'MIXTO' => 'MIXTO',
24699    'TARJCRED' => 'TARJCRED',
24700    'TRANSFERCT' => 'TRANSFERCT',
24701    'CHEQUE' => 'CHEQUE',
24702    'VALE' => 'VALE',
24703    'PAGARE' => 'PAGARE',
24704    'GASTOEMPRESA' => 'GASTOEMPRESA',
24705  ),
24706  'gasto' =>
24707  array (
24708    'Si' => 'Si',
24709    'No' => 'No',
24710  ),
24711  'dectatabanco' =>
24712  array (
24713    'Si' => 'Si',
24714    'No' => 'No',
24715  ),
24716  'comision' =>
24717  array (
24718    'Si' => 'Si',
24719    'No' => 'No',
24720  ),
24721  'ayudantes_requeridos' =>
24722  array (
24723    'No' => 'No',
24724    'Si' => 'Si',
24725  ),
24726  'pedido_por_requeridos' =>
24727  array (
24728    'Si' => 'Si',
24729    'No' => 'No',
24730  ),
24731  'bodega_existencia_diaria.es_saldo' =>
24732  array (
24733    'No' => 'No',
24734    'Si' => 'Si',
24735  ),
24736  'producto_general.es_saldo' =>
24737  array (
24738    'No' => 'No',
24739    'Si' => 'Si',
24740    'Algunos' => 'Algunos',
24741  ),
24742  'bodega_existencia_diaria.en_remate' =>
24743  array (
24744    'No' => 'No',
24745    'Si' => 'Si',
24746  ),
24747  'producto_general.en_remate' =>
24748  array (
24749    'No' => 'No',
24750    'Si' => 'Si',
24751    'Algunos' => 'Algunos',
24752  ),
24753  'bodega_existencia_diaria.lento' =>
24754  array (
24755    'No' => 'No',
24756    'Si' => 'Si',
24757  ),
24758  'nota_bodega_verificacion_items.lento' =>
24759  array (
24760    'Si' => 'Si',
24761    'No' => 'No',
24762  ),
24763  'producto_general.lento' =>
24764  array (
24765    'Si' => 'Si',
24766    'No' => 'No',
24767    'Algunos' => 'Algunos',
24768  ),
24769  'bodega_existencia_diaria.super_lento' =>
24770  array (
24771    'No' => 'No',
24772    'Si' => 'Si',
24773  ),
24774  'nota_bodega_verificacion_items.super_lento' =>
24775  array (
24776    'Si' => 'Si',
24777    'No' => 'No',
24778  ),
24779  'producto_general.super_lento' =>
24780  array (
24781    'Si' => 'Si',
24782    'No' => 'No',
24783    'Algunos' => 'Algunos',
24784  ),
24785  'pedir' =>
24786  array (
24787    'Si' => 'Si',
24788    'No' => 'No',
24789  ),
24790  'categoria.para_quien' =>
24791  array (
24792    'TODOS' => 'TODOS',
24793    'RONY' => 'RONY',
24794  ),
24795  'estado.para_quien' =>
24796  array (
24797    'rony' => 'rony',
24798    'todos' => 'todos',
24799  ),
24800  'checked' =>
24801  array (
24802    'checked' => 'checked',
24803    'not_checked' => 'not_checked',
24804    'wrong' => 'wrong',
24805  ),
24806  'name_on_check' =>
24807  array (
24808    '' => '',
24809    'Same as client' => 'Same as client',
24810    'No name' => 'No name',
24811  ),
24812  'accepted' =>
24813  array (
24814    'Not delivered' => 'Not delivered',
24815    'Waiting' => 'Waiting',
24816    'Accepted' => 'Accepted',
24817  ),
24818  'puede_origen_cuentat' =>
24819  array (
24820    'Si' => 'Si',
24821    'No' => 'No',
24822  ),
24823  'primer_delivered' =>
24824  array (
24825    'Si' => 'Si',
24826    'No' => 'No',
24827  ),
24828  'paid_revisado' =>
24829  array (
24830    'Si' => 'Si',
24831    'No' => 'No',
24832    'Error' => 'Error',
24833  ),
24834  'remarks_bloqueado' =>
24835  array (
24836    'Si' => 'Si',
24837    'No' => 'No',
24838    '' => '',
24839  ),
24840  'puede_cambiar_tipo_cambio' =>
24841  array (
24842    'Si' => 'Si',
24843    'No' => 'No',
24844  ),
24845  'interno' =>
24846  array (
24847    'Si' => 'Si',
24848    'No' => 'No',
24849  ),
24850  'principal' =>
24851  array (
24852    'Si' => 'Si',
24853    'No' => 'No',
24854  ),
24855  'es_banco' =>
24856  array (
24857    'Si' => 'Si',
24858    'No' => 'No',
24859  ),
24860  'es_de' =>
24861  array (
24862    'Usuario' => 'Usuario',
24863    'Tienda' => 'Tienda',
24864    'Huerfana' => 'Huerfana',
24865  ),
24866  'cuentat.poner_delivered_cheques' =>
24867  array (
24868    'Si' => 'Si',
24869    'No' => 'No',
24870  ),
24871  'permiso_ctat.poner_delivered_cheques' =>
24872  array (
24873    'Si' => 'Si',
24874    'No' => 'No',
24875    'SN' => 'SN',
24876  ),
24877  'cuentat.poner_delivered_pagares' =>
24878  array (
24879    'Si' => 'Si',
24880    'No' => 'No',
24881  ),
24882  'permiso_ctat.poner_delivered_pagares' =>
24883  array (
24884    'Si' => 'Si',
24885    'No' => 'No',
24886    'SN' => 'SN',
24887  ),
24888  'auto_acepta' =>
24889  array (
24890    'Si' => 'Si',
24891    'No' => 'No',
24892  ),
24893  'attachment_requerido' =>
24894  array (
24895    'Si' => 'Si',
24896    'No' => 'No',
24897  ),
24898  'cuentat_gasto.solo_rony' =>
24899  array (
24900    'Si' => 'Si',
24901    'No' => 'No',
24902  ),
24903  'estado_bodega.solo_rony' =>
24904  array (
24905    'No' => 'No',
24906    'Si' => 'Si',
24907  ),
24908  'marked' =>
24909  array (
24910    'Si' => 'Si',
24911    'No' => 'No',
24912  ),
24913  'delivered_status' =>
24914  array (
24915    'Waiting' => 'Waiting',
24916    'Accepted' => 'Accepted',
24917    'Canceled' => 'Canceled',
24918    'Rejected' => 'Rejected',
24919  ),
24920  'dep_rota' =>
24921  array (
24922    'Diario' => 'Diario',
24923    'Redondo' => 'Redondo',
24924    'Una vez' => 'Una vez',
24925    'Tiempo o Monto' => 'Tiempo o Monto',
24926    'Siempre' => 'Siempre',
24927    'No Depositar' => 'No Depositar',
24928    'Safety' => 'Safety',
24929  ),
24930  'completada' =>
24931  array (
24932    'Vigente' => 'Vigente',
24933    'Completada' => 'Completada',
24934  ),
24935  'estaba_en' =>
24936  array (
24937    'Oculta' => 'Oculta',
24938    'Visible' => 'Visible',
24939  ),
24940  'posicion' =>
24941  array (
24942    'Arriba' => 'Arriba',
24943    'Renglón 1: primera' => 'Renglón 1: primera',
24944    'Renglón 2: Ãºltima' => 'Renglón 2: Ãºltima',
24945    'Abajo' => 'Abajo',
24946  ),
24947  'recuerdame' =>
24948  array (
24949    'Si' => 'Si',
24950    'No' => 'No',
24951  ),
24952  'terminado' =>
24953  array (
24954    'Si' => 'Si',
24955    'No' => 'No',
24956  ),
24957  'capturado' =>
24958  array (
24959    'Si' => 'Si',
24960    'No' => 'No',
24961  ),
24962  'modificado' =>
24963  array (
24964    'Si' => 'Si',
24965    'No' => 'No',
24966  ),
24967  'fiduciario.bloqueado' =>
24968  array (
24969    'ABIERTO' => 'ABIERTO',
24970    'MODIFICADO' => 'MODIFICADO',
24971    'CERRADO' => 'CERRADO',
24972    'CONTMOD' => 'CONTMOD',
24973    'AMBOSMOD' => 'AMBOSMOD',
24974  ),
24975  'fiduciario_contenedor.bloqueado' =>
24976  array (
24977    'ABIERTO' => 'ABIERTO',
24978    'MODIFICADO' => 'MODIFICADO',
24979    'CERRADO' => 'CERRADO',
24980  ),
24981  'fiduciario.error' =>
24982  array (
24983    'Si' => 'Si',
24984    'No' => 'No',
24985    'Pa' => 'Pa',
24986  ),
24987  'fiduciario_contenedor.error' =>
24988  array (
24989    'Si' => 'Si',
24990    'No' => 'No',
24991    'Tu' => 'Tu',
24992  ),
24993  'pagado' =>
24994  array (
24995    'Si' => 'Si',
24996    'No' => 'No',
24997  ),
24998  'devuelto' =>
24999  array (
25000    'Si' => 'Si',
25001    'No' => 'No',
25002  ),
25003  'ver' =>
25004  array (
25005    'No' => 'No',
25006    'Si' => 'Si',
25007    'Timed' => 'Timed',
25008  ),
25009  'insertar' =>
25010  array (
25011    'No' => 'No',
25012    'Si' => 'Si',
25013    'Timed' => 'Timed',
25014  ),
25015  'cambiar' =>
25016  array (
25017    'No' => 'No',
25018    'Si' => 'Si',
25019    'Timed' => 'Timed',
25020  ),
25021  'actualiza_desde_xecom' =>
25022  array (
25023    'Si' => 'Si',
25024    'No' => 'No',
25025  ),
25026  'avisa_brain_si_hay_error_en_actualiza_desde_xecom' =>
25027  array (
25028    'Si' => 'Si',
25029    'No' => 'No',
25030  ),
25031  'actualiza_desde_xecom_en_sabado' =>
25032  array (
25033    'Si' => 'Si',
25034    'No' => 'No',
25035  ),
25036  'actualiza_desde_xecom_en_domingo' =>
25037  array (
25038    'Si' => 'Si',
25039    'No' => 'No',
25040  ),
25041  'permitir_gastos_de_cuentat_en_negativo' =>
25042  array (
25043    'Si' => 'Si',
25044    'No' => 'No',
25045  ),
25046  'flashear_tab_actualizar_bancos' =>
25047  array (
25048    'Si' => 'Si',
25049    'No' => 'No',
25050  ),
25051  'flashear_tab_fiduciario' =>
25052  array (
25053    'Si' => 'Si',
25054    'No' => 'No',
25055  ),
25056  'mostrar_corrected' =>
25057  array (
25058    'Si' => 'Si',
25059    'No' => 'No',
25060  ),
25061  'bloquear_notas_automaticamente' =>
25062  array (
25063    'Si' => 'Si',
25064    'No' => 'No',
25065  ),
25066  'chofer_responsable_obligatorio' =>
25067  array (
25068    'Si' => 'Si',
25069    'No' => 'No',
25070  ),
25071  'ayudantes_obligatorio' =>
25072  array (
25073    'Si' => 'Si',
25074    'No' => 'No',
25075  ),
25076  'abonar_cuentast_tiendas' =>
25077  array (
25078    'Si' => 'Si',
25079    'No' => 'No',
25080  ),
25081  'puede_list' =>
25082  array (
25083    'Si' => 'Si',
25084    'No' => 'No',
25085  ),
25086  'puede_read' =>
25087  array (
25088    'Si' => 'Si',
25089    'No' => 'No',
25090  ),
25091  'puede_export' =>
25092  array (
25093    'Si' => 'Si',
25094    'No' => 'No',
25095  ),
25096  'puede_insert' =>
25097  array (
25098    'Si' => 'Si',
25099    'No' => 'No',
25100  ),
25101  'puede_update' =>
25102  array (
25103    'Si' => 'Si',
25104    'No' => 'No',
25105    'Timed' => 'Timed',
25106  ),
25107  'puede_delete' =>
25108  array (
25109    'Si' => 'Si',
25110    'No' => 'No',
25111    'Timed' => 'Timed',
25112  ),
25113  'puede_deuda' =>
25114  array (
25115    'Si' => 'Si',
25116    'No' => 'No',
25117  ),
25118  'puede_gasto' =>
25119  array (
25120    'Si' => 'Si',
25121    'No' => 'No',
25122    'RW' => 'RW',
25123    'RO' => 'RO',
25124    'CONT' => 'CONT',
25125  ),
25126  'cuentat_propia' =>
25127  array (
25128    'Si' => 'Si',
25129    'No' => 'No',
25130  ),
25131  'cuentat_unica' =>
25132  array (
25133    'Si' => 'Si',
25134    'No' => 'No',
25135  ),
25136  'puede_clientes' =>
25137  array (
25138    'Si' => 'Si',
25139    'No' => 'No',
25140    'RO' => 'RO',
25141  ),
25142  'puede_gasto_ctat' =>
25143  array (
25144    'Si' => 'Si',
25145    'No' => 'No',
25146  ),
25147  'puede_banco_china' =>
25148  array (
25149    'Si' => 'Si',
25150    'No' => 'No',
25151  ),
25152  'puede_ingreso_directo_a_cuentat' =>
25153  array (
25154    'Si' => 'Si',
25155    'No' => 'No',
25156  ),
25157  'puede_modificar_reportes_grid' =>
25158  array (
25159    'Si' => 'Si',
25160    'No' => 'No',
25161  ),
25162  'usuario_tipo_rony' =>
25163  array (
25164    'Si' => 'Si',
25165    'No' => 'No',
25166  ),
25167  'puede_link_tc' =>
25168  array (
25169    'Si' => 'Si',
25170    'No' => 'No',
25171  ),
25172  'puede_fiduciario' =>
25173  array (
25174    'Si' => 'Si',
25175    'No' => 'No',
25176    'RO' => 'RO',
25177  ),
25178  'puede_facturas' =>
25179  array (
25180    'Si' => 'Si',
25181    'No' => 'No',
25182  ),
25183  'puede_depositar_en' =>
25184  array (
25185    'Si' => 'Si',
25186    'No' => 'No',
25187  ),
25188  'puede_inversion' =>
25189  array (
25190    'Si' => 'Si',
25191    'No' => 'No',
25192  ),
25193  'puede_reembolso_inversion' =>
25194  array (
25195    'Si' => 'Si',
25196    'No' => 'No',
25197  ),
25198  'puede_revisar_gastos_cuentaT' =>
25199  array (
25200    'Si' => 'Si',
25201    'No' => 'No',
25202  ),
25203  'puede_revisar_movimientos_banco' =>
25204  array (
25205    'Si' => 'Si',
25206    'No' => 'No',
25207  ),
25208  'puede_ser_supervisor_banco' =>
25209  array (
25210    'Si' => 'Si',
25211    'No' => 'No',
25212  ),
25213  'puede_ser_supervisor' =>
25214  array (
25215    'Si' => 'Si',
25216    'No' => 'No',
25217  ),
25218  'forza_cambio_password' =>
25219  array (
25220    'Si' => 'Si',
25221    'No' => 'No',
25222  ),
25223  'puede_cheque_dd' =>
25224  array (
25225    'Si' => 'Si',
25226    'No' => 'No',
25227    'RO' => 'RO',
25228  ),
25229  'activa_alerta_gastos' =>
25230  array (
25231    'Si' => 'Si',
25232    'No' => 'No',
25233  ),
25234  'puede_compra' =>
25235  array (
25236    'Si' => 'Si',
25237    'No' => 'No',
25238    'RO' => 'RO',
25239  ),
25240  'puede_supervisar_bodega' =>
25241  array (
25242    'Si' => 'Si',
25243    'No' => 'No',
25244  ),
25245  'puede_ser_encargado_bodega' =>
25246  array (
25247    'Si' => 'Si',
25248    'No' => 'No',
25249  ),
25250  'puede_solo_consultar_bodegas' =>
25251  array (
25252    'Si' => 'Si',
25253    'No' => 'No',
25254  ),
25255  'puede_registrar_todas_bodegas' =>
25256  array (
25257    'Si' => 'Si',
25258    'No' => 'No',
25259  ),
25260  'puede_solicitar_traslado_efectivo' =>
25261  array (
25262    'Si' => 'Si',
25263    'No' => 'No',
25264  ),
25265  'puede_ver_modulo_solicitar_traslado_efectivo' =>
25266  array (
25267    'Si' => 'Si',
25268    'No' => 'No',
25269    'RO' => 'RO',
25270  ),
25271  'puede_ver_traslados_match' =>
25272  array (
25273    'Si' => 'Si',
25274    'No' => 'No',
25275  ),
25276  'puede_ver_traslados' =>
25277  array (
25278    'Si' => 'Si',
25279    'No' => 'No',
25280  ),
25281  'puede_bodega_destinos_especiales' =>
25282  array (
25283    'Si' => 'Si',
25284    'No' => 'No',
25285  ),
25286  'puede_ver_acuentas' =>
25287  array (
25288    'Si' => 'Si',
25289    'No' => 'No',
25290  ),
25291  'puede_ver_doctos' =>
25292  array (
25293    'Si' => 'Si',
25294    'No' => 'No',
25295  ),
25296  'puede_ver_deliveries' =>
25297  array (
25298    'Si' => 'Si',
25299    'No' => 'No',
25300  ),
25301  'puede_consultar_existencia' =>
25302  array (
25303    'Si' => 'Si',
25304    'No' => 'No',
25305  ),
25306  'puede_autorizar_notas_ultimo_movimiento' =>
25307  array (
25308    'Si' => 'Si',
25309    'No' => 'No',
25310  ),
25311  'puede_hacer_reset_producto_color' =>
25312  array (
25313    'Si' => 'Si',
25314    'No' => 'No',
25315  ),
25316  'puede_hacer_reset_inconsistencias' =>
25317  array (
25318    'Si' => 'Si',
25319    'No' => 'No',
25320  ),
25321  'notificar_nuevas_cartas_porte' =>
25322  array (
25323    'Si' => 'Si',
25324    'No' => 'No',
25325  ),
25326  'puede_editar_campos_cash_nota_bodega' =>
25327  array (
25328    'Si' => 'Si',
25329    'No' => 'No',
25330  ),
25331  'puede_hacer_ajuste_producto_color' =>
25332  array (
25333    'Si' => 'Si',
25334    'No' => 'No',
25335  ),
25336  'tipo_inconsistencia' =>
25337  array (
25338    'fecha' => 'fecha',
25339    'chofer_responsable' => 'chofer_responsable',
25340    'ayudantes' => 'ayudantes',
25341    'contra_nota' => 'contra_nota',
25342    'tipo_nota' => 'tipo_nota',
25343    'numero_tipo_nota' => 'numero_tipo_nota',
25344    'quantity_tipo_nota' => 'quantity_tipo_nota',
25345    'tipo_nota_pina' => 'tipo_nota_pina',
25346    'numero_compra' => 'numero_compra',
25347    'clientes' => 'clientes',
25348    'average' => 'average',
25349    'INCONSISTENCIA OTRA' => 'INCONSISTENCIA OTRA',
25350    'pedido_por' => 'pedido_por',
25351    'negativos' => 'negativos',
25352    'calidad' => 'calidad',
25353  ),
25354  'nivel' =>
25355  array (
25356    'info' => 'info',
25357    'warning' => 'warning',
25358    'danger' => 'danger',
25359  ),
25360  'puede_verlo' =>
25361  array (
25362    'rony' => 'rony',
25363    'todos' => 'todos',
25364    'no_rony' => 'no_rony',
25365  ),
25366  'inconsistencia_nota_bodega.estado' =>
25367  array (
25368    'activo' => 'activo',
25369    'solved' => 'solved',
25370    'autorizado' => 'autorizado',
25371    'inactivo' => 'inactivo',
25372  ),
25373  'pedido.estado' =>
25374  array (
25375    'Validando' => 'Validando',
25376    'Autorizado' => 'Autorizado',
25377    'PI' => 'PI',
25378    'Container' => 'Container',
25379    'Entregado' => 'Entregado',
25380    'Cancelado' => 'Cancelado',
25381    'Otro' => 'Otro',
25382  ),
25383  'indefinida' =>
25384  array (
25385    'Si' => 'Si',
25386    'No' => 'No',
25387  ),
25388  'tipo_ganancia_perdida' =>
25389  array (
25390    'Si' => 'Si',
25391    'No' => 'No',
25392  ),
25393  'myDefault' =>
25394  array (
25395    'No' => 'No',
25396    'Si' => 'Si',
25397  ),
25398  'para_todos' =>
25399  array (
25400    'No' => 'No',
25401    'Si' => 'Si',
25402  ),
25403  'ocultar_ribbon' =>
25404  array (
25405    'No' => 'No',
25406    'Si' => 'Si',
25407  ),
25408  'es_default' =>
25409  array (
25410    0 => '0',
25411    1 => '1',
25412  ),
25413  'lista_precios_producto.notificado' =>
25414  array (
25415    'Si' => 'Si',
25416    'No' => 'No',
25417  ),
25418  'producto_color.notificado' =>
25419  array (
25420    'No' => 'No',
25421    'Si' => 'Si',
25422  ),
25423  'conected_from' =>
25424  array (
25425    'Internet' => 'Internet',
25426    'Red' => 'Red',
25427    'localhost' => 'localhost',
25428    'Bad IP' => 'Bad IP',
25429  ),
25430  'era_tipo_rony' =>
25431  array (
25432    'Si' => 'Si',
25433    'No' => 'No',
25434  ),
25435  'warning' =>
25436  array (
25437    'SI' => 'SI',
25438    'NO' => 'NO',
25439    'TU' => 'TU',
25440    'PE' => 'PE',
25441    'TUR' => 'TUR',
25442  ),
25443  'warning_status' =>
25444  array (
25445    'No Aplica' => 'No Aplica',
25446    'Por revisar' => 'Por revisar',
25447    'Revisado' => 'Revisado',
25448  ),
25449  'entrada_salida' =>
25450  array (
25451    'Entrada' => 'Entrada',
25452    'Salida' => 'Salida',
25453  ),
25454  'estado_verificacion' =>
25455  array (
25456    'NO HAN VERIFICADO' => 'NO HAN VERIFICADO',
25457    'FALTAN VERIFICACIONES' => 'FALTAN VERIFICACIONES',
25458    'VERIFICADA' => 'VERIFICADA',
25459    'NO VERIFICADA' => 'NO VERIFICADA',
25460    'RONY VERIFICO' => 'RONY VERIFICO',
25461  ),
25462  'nota_bodega.tipo_nota' =>
25463  array (
25464    'CASH' => 'CASH',
25465    'NOTA' => 'NOTA',
25466    'PIÑA' => 'PIÑA',
25467    'OTRO' => 'OTRO',
25468    '' => '',
25469  ),
25470  'nota_bodega_log.tipo_nota' =>
25471  array (
25472    'CASH' => 'CASH',
25473    'NOTA' => 'NOTA',
25474    'OTRO' => 'OTRO',
25475    '' => '',
25476  ),
25477  'documento' =>
25478  array (
25479    'carta_porte' => 'carta_porte',
25480    'cfdi_traslado' => 'cfdi_traslado',
25481    'factura' => 'factura',
25482    'nada' => 'nada',
25483  ),
25484  'confirmacion_etiquetado' =>
25485  array (
25486    'Si' => 'Si',
25487    'No' => 'No',
25488  ),
25489  'nota_bodega.forma_etiquetado' =>
25490  array (
25491    'YA TENIA ETIQUETADO' => 'YA TENIA ETIQUETADO',
25492    'NO TENIA Y SE ETIQUETO' => 'NO TENIA Y SE ETIQUETO',
25493    'REETIQUETADO' => 'REETIQUETADO',
25494    '' => '',
25495  ),
25496  'solicitud_carta_porte.forma_etiquetado' =>
25497  array (
25498    'YA TENIA ETIQUETADO' => 'YA TENIA ETIQUETADO',
25499    'NO TENIA Y SE ETIQUETO' => 'NO TENIA Y SE ETIQUETO',
25500    'REETIQUETADO' => 'REETIQUETADO',
25501  ),
25502  'recibido' =>
25503  array (
25504    'Si' => 'Si',
25505    'No' => 'No',
25506    'Mal' => 'Mal',
25507  ),
25508  'es_apartado' =>
25509  array (
25510    'Si' => 'Si',
25511    'No' => 'No',
25512  ),
25513  'autorizacion_ultimo_movimiento' =>
25514  array (
25515    'Si' => 'Si',
25516    'No' => 'No',
25517  ),
25518  'autorizacion_ultimo_movimiento_rony' =>
25519  array (
25520    'Si' => 'Si',
25521    'No' => 'No',
25522    'Rechazado' => 'Rechazado',
25523  ),
25524  'traslado_forza_ok' =>
25525  array (
25526    'No' => 'No',
25527    'Si' => 'Si',
25528  ),
25529  'modificacion_importante' =>
25530  array (
25531    'Si' => 'Si',
25532    'No' => 'No',
25533  ),
25534  'modificacion_importante_autorizada' =>
25535  array (
25536    'Si' => 'Si',
25537    'No' => 'No',
25538  ),
25539  'destino_fuerza_ok' =>
25540  array (
25541    'No' => 'No',
25542    'Si' => 'Si',
25543  ),
25544  'verificada' =>
25545  array (
25546    'Si' => 'Si',
25547    'No' => 'No',
25548  ),
25549  'producto_general_calidad' =>
25550  array (
25551    'Muy Buena' => 'Muy Buena',
25552    'Buena' => 'Buena',
25553    'Regular' => 'Regular',
25554    'Mala' => 'Mala',
25555    '' => '',
25556  ),
25557  'autorizacion_para' =>
25558  array (
25559    'Rony' => 'Rony',
25560    'Usuarios' => 'Usuarios',
25561  ),
25562  'producto_color_calidad' =>
25563  array (
25564    'Muy Buena' => 'Muy Buena',
25565    'Buena' => 'Buena',
25566    'Regular' => 'Regular',
25567    'Mala' => 'Mala',
25568    '' => '',
25569  ),
25570  'match' =>
25571  array (
25572    'Si' => 'Si',
25573    'No' => 'No',
25574  ),
25575  'vale_bodega_entrada' =>
25576  array (
25577    'Si' => 'Si',
25578    'No' => 'No',
25579  ),
25580  'vale_bodega_salida' =>
25581  array (
25582    'Si' => 'Si',
25583    'No' => 'No',
25584  ),
25585  'estado_entrada' =>
25586  array (
25587    'Cambios' => 'Cambios',
25588    'Diferencias' => 'Diferencias',
25589    '' => '',
25590    'Aceptada' => 'Aceptada',
25591    'Ok' => 'Ok',
25592  ),
25593  'bodega_eta_es' =>
25594  array (
25595    'Por capturar' => 'Por capturar',
25596    'Capturada' => 'Capturada',
25597    'Estimada por Importador' => 'Estimada por Importador',
25598  ),
25599  'our_reference_unico' =>
25600  array (
25601    'Si' => 'Si',
25602    'No' => 'No',
25603  ),
25604  'numero_pi_unico' =>
25605  array (
25606    'Si' => 'Si',
25607    'No' => 'No',
25608  ),
25609  'numero_contenedor_unico' =>
25610  array (
25611    'Si' => 'Si',
25612    'No' => 'No',
25613  ),
25614  'mostrar_en_ventas' =>
25615  array (
25616    'Si' => 'Si',
25617    'No' => 'No',
25618  ),
25619  'pidiendo_pi' =>
25620  array (
25621    'No' => 'No',
25622    'Si' => 'Si',
25623  ),
25624  'entregado' =>
25625  array (
25626    'Si' => 'Si',
25627    'No' => 'No',
25628  ),
25629  'pedido' =>
25630  array (
25631    'Si' => 'Si',
25632    'No' => 'No',
25633  ),
25634  'digo' =>
25635  array (
25636    'Pedir' => 'Pedir',
25637    'Importante' => 'Importante',
25638    'Complemento' => 'Complemento',
25639    'Expansion' => 'Expansion',
25640    'No Pedir' => 'No Pedir',
25641    '' => '',
25642  ),
25643  'estatus' =>
25644  array (
25645    'SOLICITUD' => 'SOLICITUD',
25646    'ACEPTO' => 'ACEPTO',
25647    'RECHAZO' => 'RECHAZO',
25648    'PIDIO' => 'PIDIO',
25649  ),
25650  'puede_movimientos' =>
25651  array (
25652    'Nada' => 'Nada',
25653    'R/O' => 'R/O',
25654    'R/W' => 'R/W',
25655  ),
25656  'puede_verificar_movimientos' =>
25657  array (
25658    'Nada' => 'Nada',
25659    'R/O' => 'R/O',
25660    'R/W' => 'R/W',
25661  ),
25662  'puede_conteo_fisico' =>
25663  array (
25664    'Nada' => 'Nada',
25665    'R/O' => 'R/O',
25666    'R/W' => 'R/W',
25667  ),
25668  'puede_reportes_especiales' =>
25669  array (
25670    'No' => 'No',
25671    'Si' => 'Si',
25672  ),
25673  'puede_ver_valor_productos' =>
25674  array (
25675    'No' => 'No',
25676    'Si' => 'Si',
25677  ),
25678  'mi_favorita' =>
25679  array (
25680    'Si' => 'Si',
25681    'No' => 'No',
25682  ),
25683  'acceso' =>
25684  array (
25685    'Si' => 'Si',
25686    'No' => 'No',
25687  ),
25688  'permiso_ctat.link_cuentat_a_banco' =>
25689  array (
25690    'Si' => 'Si',
25691    'No' => 'No',
25692    'SN' => 'SN',
25693  ),
25694  'plantilla_permiso_ctat.link_cuentat_a_banco' =>
25695  array (
25696    'Si' => 'Si',
25697    'No' => 'No',
25698  ),
25699  'permiso_ctat.transfer_entre_cuentast' =>
25700  array (
25701    'Si' => 'Si',
25702    'No' => 'No',
25703    'SN' => 'SN',
25704  ),
25705  'plantilla_permiso_ctat.transfer_entre_cuentast' =>
25706  array (
25707    'Si' => 'Si',
25708    'No' => 'No',
25709  ),
25710  'permiso_ctat.ver_saldo_y_movimientos' =>
25711  array (
25712    'Si' => 'Si',
25713    'No' => 'No',
25714    'SN' => 'SN',
25715  ),
25716  'plantilla_permiso_ctat.ver_saldo_y_movimientos' =>
25717  array (
25718    'Si' => 'Si',
25719    'No' => 'No',
25720  ),
25721  'permiso_ctat.emitido_por_en_vales' =>
25722  array (
25723    'Si' => 'Si',
25724    'No' => 'No',
25725    'SN' => 'SN',
25726  ),
25727  'plantilla_permiso_ctat.emitido_por_en_vales' =>
25728  array (
25729    'Si' => 'Si',
25730    'No' => 'No',
25731  ),
25732  'permiso_ctat.pagar_deudas' =>
25733  array (
25734    'Si' => 'Si',
25735    'No' => 'No',
25736    'SN' => 'SN',
25737  ),
25738  'plantilla_permiso_ctat.pagar_deudas' =>
25739  array (
25740    'Si' => 'Si',
25741    'No' => 'No',
25742  ),
25743  'permiso_ctat.pagar_gastos' =>
25744  array (
25745    'Si' => 'Si',
25746    'No' => 'No',
25747    'SN' => 'SN',
25748  ),
25749  'plantilla_permiso_ctat.pagar_gastos' =>
25750  array (
25751    'Si' => 'Si',
25752    'No' => 'No',
25753  ),
25754  'permiso_ctat.aceptar_delivered_cheques' =>
25755  array (
25756    'Si' => 'Si',
25757    'No' => 'No',
25758    'SN' => 'SN',
25759  ),
25760  'plantilla_permiso_ctat.aceptar_delivered_cheques' =>
25761  array (
25762    'Si' => 'Si',
25763    'No' => 'No',
25764  ),
25765  'permiso_ctat.elegir_cuentat_origen_cheques' =>
25766  array (
25767    'Si' => 'Si',
25768    'No' => 'No',
25769    'SN' => 'SN',
25770  ),
25771  'plantilla_permiso_ctat.elegir_cuentat_origen_cheques' =>
25772  array (
25773    'Si' => 'Si',
25774    'No' => 'No',
25775  ),
25776  'permiso_ctat.abonar_a_cheques' =>
25777  array (
25778    'Si' => 'Si',
25779    'No' => 'No',
25780    'SN' => 'SN',
25781  ),
25782  'plantilla_permiso_ctat.abonar_a_cheques' =>
25783  array (
25784    'Si' => 'Si',
25785    'No' => 'No',
25786  ),
25787  'permiso_ctat.aceptar_delivered_pagares' =>
25788  array (
25789    'Si' => 'Si',
25790    'No' => 'No',
25791    'SN' => 'SN',
25792  ),
25793  'plantilla_permiso_ctat.aceptar_delivered_pagares' =>
25794  array (
25795    'Si' => 'Si',
25796    'No' => 'No',
25797  ),
25798  'permiso_ctat.elegir_cuentat_origen_pagares' =>
25799  array (
25800    'Si' => 'Si',
25801    'No' => 'No',
25802    'SN' => 'SN',
25803  ),
25804  'plantilla_permiso_ctat.elegir_cuentat_origen_pagares' =>
25805  array (
25806    'Si' => 'Si',
25807    'No' => 'No',
25808  ),
25809  'permiso_ctat.abonar_a_pagares' =>
25810  array (
25811    'Si' => 'Si',
25812    'No' => 'No',
25813    'SN' => 'SN',
25814  ),
25815  'plantilla_permiso_ctat.abonar_a_pagares' =>
25816  array (
25817    'Si' => 'Si',
25818    'No' => 'No',
25819  ),
25820  'permiso_ctat.ingreso_directo' =>
25821  array (
25822    'Si' => 'Si',
25823    'No' => 'No',
25824    'SN' => 'SN',
25825  ),
25826  'plantilla_permiso_ctat.ingreso_directo' =>
25827  array (
25828    'Si' => 'Si',
25829    'No' => 'No',
25830  ),
25831  'permiso_ctat.transfer_hacia_cuentat' =>
25832  array (
25833    'Si' => 'Si',
25834    'No' => 'No',
25835    'SN' => 'SN',
25836  ),
25837  'plantilla_permiso_ctat.transfer_hacia_cuentat' =>
25838  array (
25839    'Si' => 'Si',
25840    'No' => 'No',
25841  ),
25842  'pagar_compras' =>
25843  array (
25844    'Si' => 'Si',
25845    'No' => 'No',
25846  ),
25847  'puede_ver_cuentat' =>
25848  array (
25849    'Si' => 'Si',
25850    'No' => 'No',
25851  ),
25852  'permiso_cheque' =>
25853  array (
25854    'Nada' => 'Nada',
25855    'Consultar' => 'Consultar',
25856    'Editar' => 'Editar',
25857  ),
25858  'permiso_pagare' =>
25859  array (
25860    'Nada' => 'Nada',
25861    'Consultar' => 'Consultar',
25862    'Editar' => 'Editar',
25863  ),
25864  'permiso_cobranza' =>
25865  array (
25866    'Nada' => 'Nada',
25867    'Consultar' => 'Consultar',
25868    'Editar' => 'Editar',
25869  ),
25870  'activa' =>
25871  array (
25872    'Si' => 'Si',
25873    'No' => 'No',
25874  ),
25875  'pausado' =>
25876  array (
25877    'Si' => 'Si',
25878    'No' => 'No',
25879  ),
25880  'tiene_restricciones' =>
25881  array (
25882    'Si' => 'Si',
25883    'No' => 'No',
25884  ),
25885  'monto_default' =>
25886  array (
25887    '\\0S\\0i' => '\\0S\\0i',
25888    '\\0N\\0o' => '\\0N\\0o',
25889  ),
25890  'prohibido' =>
25891  array (
25892    'No' => 'No',
25893    'Si' => 'Si',
25894  ),
25895  'cero_capturado' =>
25896  array (
25897    'No' => 'No',
25898    'Si' => 'Si',
25899  ),
25900  'cost_tc_use' =>
25901  array (
25902    'Actual' => 'Actual',
25903    'Propio' => 'Propio',
25904  ),
25905  'solo_carta_porte' =>
25906  array (
25907    'Si' => 'Si',
25908    'No' => 'No',
25909  ),
25910  'huerfano' =>
25911  array (
25912    'Si' => 'Si',
25913    'No' => 'No',
25914  ),
25915  'para_quienes' =>
25916  array (
25917    0 => '0',
25918    1 => '1',
25919  ),
25920  'generado' =>
25921  array (
25922    'Si' => 'Si',
25923    'No' => 'No',
25924  ),
25925  'vale_origen_destino' =>
25926  array (
25927    'Si' => 'Si',
25928    'No' => 'No',
25929  ),
25930);
25931    }
25932    /* ENUM_DEFAULT_INFO END */
25933
25934    /**
25935     * appRelate::links_default_info
25936     * Definicion default de las relaciones entre tablas, no cambiar cambiar en links_final_info()
25937     *
25938     */
25939       /* LINKS_DEFAULT_INFO START */
25940    public function links_default_info() {
25941    $this->links=array (
25942  'a_cuentas_live' =>
25943  array (
25944    'options' => 'SELECT /*appRelate*/ m.doc_pago_id as id, doc_id as label FROM a_cuentas_live m  ORDER BY  2',
25945    'read' => 'SELECT /*appRelate*/ doc_id as label FROM a_cuentas_live m WHERE doc_pago_id=\'%id%\' ORDER BY  1',
25946  ),
25947  'agenda_clientes' =>
25948  array (
25949    'options' => 'SELECT /*appRelate*/ m.agenda_clientes_id as id, nombre as label FROM agenda_clientes m  ORDER BY  2',
25950    'read' => 'SELECT /*appRelate*/ nombre as label FROM agenda_clientes m WHERE agenda_clientes_id=\'%id%\' ORDER BY  1',
25951  ),
25952  'agrupa_def' =>
25953  array (
25954    'options' => 'SELECT /*appRelate*/ m.grupo as id, subGrupoTable as label FROM agrupa_def m  ORDER BY  2',
25955    'read' => 'SELECT /*appRelate*/ subGrupoTable as label FROM agrupa_def m WHERE grupo=\'%id%\' ORDER BY  1',
25956  ),
25957  'ajuste' =>
25958  array (
25959    'options' => 'SELECT /*appRelate*/ m.ajuste_id as id, bodega_id as label FROM ajuste m  ORDER BY  2',
25960    'read' => 'SELECT /*appRelate*/ bodega_id as label FROM ajuste m WHERE ajuste_id=\'%id%\' ORDER BY  1',
25961  ),
25962  'ajuste_autorizacion' =>
25963  array (
25964    'options' => 'SELECT /*appRelate*/ m.ajuste_autorizacion as id, nota_bodega_id as label FROM ajuste_autorizacion m  ORDER BY  2',
25965    'read' => 'SELECT /*appRelate*/ nota_bodega_id as label FROM ajuste_autorizacion m WHERE ajuste_autorizacion=\'%id%\' ORDER BY  1',
25966  ),
25967  'ajuste_hist' =>
25968  array (
25969    'options' => 'SELECT /*appRelate*/ m.history_id as id, action as label FROM ajuste_hist m  ORDER BY  2',
25970    'read' => 'SELECT /*appRelate*/ action as label FROM ajuste_hist m WHERE history_id=\'%id%\' ORDER BY  1',
25971  ),
25972  'ajuste_item' =>
25973  array (
25974    'options' => 'SELECT /*appRelate*/ m.ajuste_item_id as id, ajuste_id as label FROM ajuste_item m  ORDER BY  2',
25975    'read' => 'SELECT /*appRelate*/ ajuste_id as label FROM ajuste_item m WHERE ajuste_item_id=\'%id%\' ORDER BY  1',
25976  ),
25977  'asignacion' =>
25978  array (
25979    'options' => 'SELECT /*appRelate*/ m.asignacion_id as id, cuentat_gasto_id as label FROM asignacion m  ORDER BY  2',
25980    'read' => 'SELECT /*appRelate*/ cuentat_gasto_id as label FROM asignacion m WHERE asignacion_id=\'%id%\' ORDER BY  1',
25981  ),
25982  'auto_complete' =>
25983  array (
25984    'options' => 'SELECT /*appRelate*/ m.id_auto_complete as id, valor as label FROM auto_complete m  ORDER BY  2',
25985    'read' => 'SELECT /*appRelate*/ valor as label FROM auto_complete m WHERE id_auto_complete=\'%id%\' ORDER BY  1',
25986  ),
25987  'autorizacion_modificacion_importante_log' =>
25988  array (
25989    'options' => 'SELECT /*appRelate*/ m.autorizacion_modificacion_importante_log_id as id, nota_bodega_id as label FROM autorizacion_modificacion_importante_log m  ORDER BY  2',
25990    'read' => 'SELECT /*appRelate*/ nota_bodega_id as label FROM autorizacion_modificacion_importante_log m WHERE autorizacion_modificacion_importante_log_id=\'%id%\' ORDER BY  1',
25991  ),
25992  'autorizacion_recepcion_nota_bodega' =>
25993  array (
25994    'options' => 'SELECT /*appRelate*/ m.autorizacion_recepcion_nota_bodega_id as id, nota_bodega_id as label FROM autorizacion_recepcion_nota_bodega m  ORDER BY  2',
25995    'read' => 'SELECT /*appRelate*/ nota_bodega_id as label FROM autorizacion_recepcion_nota_bodega m WHERE autorizacion_recepcion_nota_bodega_id=\'%id%\' ORDER BY  1',
25996  ),
25997  'ayudantes' =>
25998  array (
25999    'options' => 'SELECT /*appRelate*/ m.ayudante_id as id, nombre as label FROM ayudantes m  ORDER BY  m.orden, 2',
26000    'read' => 'SELECT /*appRelate*/ nombre as label FROM ayudantes m WHERE ayudante_id=\'%id%\' ORDER BY  m.orden, 1',
26001  ),
26002  'banco' =>
26003  array (
26004    'options' => 'SELECT /*appRelate*/ m.banco_id as id, clave as label FROM banco m  ORDER BY  2',
26005    'read' => 'SELECT /*appRelate*/ clave as label FROM banco m WHERE banco_id=\'%id%\' ORDER BY  1',
26006  ),
26007  'banco_cuenta' =>
26008  array (
26009    'options' => 'SELECT /*appRelate*/ m.banco_cuenta_id as id, nombre as label FROM banco_cuenta m  WHERE m.vale=\'Active\' ORDER BY  m.orden, 2',
26010    'read' => 'SELECT /*appRelate*/ nombre as label FROM banco_cuenta m WHERE banco_cuenta_id=\'%id%\' ORDER BY  m.orden, 1',
26011  ),
26012  'banco_cuenta_mov_link' =>
26013  array (
26014    'options' => 'SELECT /*appRelate*/ m.banco_cuenta_mov_link_id as id, banco_cuenta_mov_id as label FROM banco_cuenta_mov_link m  ORDER BY  2',
26015    'read' => 'SELECT /*appRelate*/ banco_cuenta_mov_id as label FROM banco_cuenta_mov_link m WHERE banco_cuenta_mov_link_id=\'%id%\' ORDER BY  1',
26016  ),
26017  'banco_cuenta_mov_plantilla' =>
26018  array (
26019    'options' => 'SELECT /*appRelate*/ m.banco_cuenta_mov_plantilla_id as id, plantilla_id as label FROM banco_cuenta_mov_plantilla m  ORDER BY  2',
26020    'read' => 'SELECT /*appRelate*/ plantilla_id as label FROM banco_cuenta_mov_plantilla m WHERE banco_cuenta_mov_plantilla_id=\'%id%\' ORDER BY  1',
26021  ),
26022  'banco_cuenta_saldos' =>
26023  array (
26024    'options' => 'SELECT /*appRelate*/ m.banco_cuenta_id as id, nombre as label FROM banco_cuenta_saldos m  ORDER BY  m.orden, 2',
26025    'read' => 'SELECT /*appRelate*/ nombre as label FROM banco_cuenta_saldos m WHERE banco_cuenta_id=\'%id%\' ORDER BY  m.orden, 1',
26026  ),
26027  'banco_cuenta_saldos_hist' =>
26028  array (
26029    'options' => 'SELECT /*appRelate*/ m.banco_cuenta_id as id, nombre as label FROM banco_cuenta_saldos_hist m  ORDER BY  m.orden, 2',
26030    'read' => 'SELECT /*appRelate*/ nombre as label FROM banco_cuenta_saldos_hist m WHERE banco_cuenta_id=\'%id%\' ORDER BY  m.orden, 1',
26031  ),
26032  'banco_cuenta_tipo' =>
26033  array (
26034    'options' => 'SELECT /*appRelate*/ m.banco_cuenta_tipo_id as id, banco_cuenta_tipo as label FROM banco_cuenta_tipo m  WHERE m.vale=\'Active\' ORDER BY  m.orden, 2',
26035    'read' => 'SELECT /*appRelate*/ banco_cuenta_tipo as label FROM banco_cuenta_tipo m WHERE banco_cuenta_tipo_id=\'%id%\' ORDER BY  m.orden, 1',
26036  ),
26037  'banco_cuenta_trans' =>
26038  array (
26039    'options' => 'SELECT /*appRelate*/ m.banco_cuenta_trans_id as id, referencia as label FROM banco_cuenta_trans m  ORDER BY  2',
26040    'read' => 'SELECT /*appRelate*/ referencia as label FROM banco_cuenta_trans m WHERE banco_cuenta_trans_id=\'%id%\' ORDER BY  1',
26041  ),
26042  'banco_cuenta_trans_pend' =>
26043  array (
26044    'options' => 'SELECT /*appRelate*/ m.banco_cuenta_trans_pend_id as id, alta_por as label FROM banco_cuenta_trans_pend m  ORDER BY  2',
26045    'read' => 'SELECT /*appRelate*/ alta_por as label FROM banco_cuenta_trans_pend m WHERE banco_cuenta_trans_pend_id=\'%id%\' ORDER BY  1',
26046  ),
26047  'banco_diccionario_dato' =>
26048  array (
26049    'options' => 'SELECT /*appRelate*/ m.banco_diccionario_dato_id as id, nombre as label FROM banco_diccionario_dato m  WHERE m.vale=\'Active\' ORDER BY  m.orden, 2',
26050    'read' => 'SELECT /*appRelate*/ nombre as label FROM banco_diccionario_dato m WHERE banco_diccionario_dato_id=\'%id%\' ORDER BY  m.orden, 1',
26051  ),
26052  'banco_gasto_diccionario_dato' =>
26053  array (
26054    'options' => 'SELECT /*appRelate*/ m.banco_gasto_diccionario_dato_id as id, titulo as label FROM banco_gasto_diccionario_dato m  ORDER BY  2',
26055    'read' => 'SELECT /*appRelate*/ titulo as label FROM banco_gasto_diccionario_dato m WHERE banco_gasto_diccionario_dato_id=\'%id%\' ORDER BY  1',
26056  ),
26057  'banco_mov_remarks' =>
26058  array (
26059    'options' => 'SELECT /*appRelate*/ m.banco_mov_remarks_id as id, remarks as label FROM banco_mov_remarks m  WHERE m.vale=\'Active\' ORDER BY  m.orden, 2',
26060    'read' => 'SELECT /*appRelate*/ remarks as label FROM banco_mov_remarks m WHERE banco_mov_remarks_id=\'%id%\' ORDER BY  m.orden, 1',
26061  ),
26062  'banco_mov_tipo' =>
26063  array (
26064    'options' => 'SELECT /*appRelate*/ m.banco_mov_tipo_id as id, tipo as label FROM banco_mov_tipo m  WHERE m.vale=\'Active\' ORDER BY  m.orden, 2',
26065    'read' => 'SELECT /*appRelate*/ tipo as label FROM banco_mov_tipo m WHERE banco_mov_tipo_id=\'%id%\' ORDER BY  m.orden, 1',
26066  ),
26067  'bodega' =>
26068  array (
26069    'options' => 'SELECT /*appRelate*/ m.bodega_id as id, grupo as label FROM bodega m  ORDER BY  2',
26070    'read' => 'SELECT /*appRelate*/ grupo as label FROM bodega m WHERE bodega_id=\'%id%\' ORDER BY  1',
26071  ),
26072  'bodega_grupo_verificador' =>
26073  array (
26074    'options' => 'SELECT /*appRelate*/ m.bodega_grupo_verificador_id as id, grupo_verficiador as label FROM bodega_grupo_verificador m  ORDER BY  2',
26075    'read' => 'SELECT /*appRelate*/ grupo_verficiador as label FROM bodega_grupo_verificador m WHERE bodega_grupo_verificador_id=\'%id%\' ORDER BY  1',
26076  ),
26077  'bodega_grupo_verificador_verfica_bodega' =>
26078  array (
26079    'options' => 'SELECT /*appRelate*/ m.bodega_grupo_verificador_verfica_bodega_id as id, bodega_id as label FROM bodega_grupo_verificador_verfica_bodega m  ORDER BY  2',
26080    'read' => 'SELECT /*appRelate*/ bodega_id as label FROM bodega_grupo_verificador_verfica_bodega m WHERE bodega_grupo_verificador_verfica_bodega_id=\'%id%\' ORDER BY  1',
26081  ),
26082  'bodega_grupo_verificador_verifica_usuario' =>
26083  array (
26084    'options' => 'SELECT /*appRelate*/ m.bodega_grupo_verificador_verfica_bodega_id as id, alta_por as label FROM bodega_grupo_verificador_verifica_usuario m  ORDER BY  2',
26085    'read' => 'SELECT /*appRelate*/ alta_por as label FROM bodega_grupo_verificador_verifica_usuario m WHERE bodega_grupo_verificador_verfica_bodega_id=\'%id%\' ORDER BY  1',
26086  ),
26087  'bodega_grupo_verificador_verifica_usuario_consulta' =>
26088  array (
26089    'options' => 'SELECT /*appRelate*/ m.bodega_grupo_verificador_verfica_bodega_id as id, alta_por as label FROM bodega_grupo_verificador_verifica_usuario_consulta m  ORDER BY  2',
26090    'read' => 'SELECT /*appRelate*/ alta_por as label FROM bodega_grupo_verificador_verifica_usuario_consulta m WHERE bodega_grupo_verificador_verfica_bodega_id=\'%id%\' ORDER BY  1',
26091  ),
26092  'bodega_hist' =>
26093  array (
26094    'options' => 'SELECT /*appRelate*/ m.history_id as id, action as label FROM bodega_hist m  ORDER BY  2',
26095    'read' => 'SELECT /*appRelate*/ action as label FROM bodega_hist m WHERE history_id=\'%id%\' ORDER BY  1',
26096  ),
26097  'bodega_verificador' =>
26098  array (
26099    'options' => 'SELECT /*appRelate*/ m.bodega_verificador_id as id, bodega_id as label FROM bodega_verificador m  ORDER BY  2',
26100    'read' => 'SELECT /*appRelate*/ bodega_id as label FROM bodega_verificador m WHERE bodega_verificador_id=\'%id%\' ORDER BY  1',
26101  ),
26102  'brain_avisos' =>
26103  array (
26104    'options' => 'SELECT /*appRelate*/ m.brain_avisos_id as id, para as label FROM brain_avisos m  ORDER BY  2',
26105    'read' => 'SELECT /*appRelate*/ para as label FROM brain_avisos m WHERE brain_avisos_id=\'%id%\' ORDER BY  1',
26106  ),
26107  'brain_store' =>
26108  array (
26109    'options' => 'SELECT /*appRelate*/ m.brain_store_id as id, md5 as label FROM brain_store m  ORDER BY  2',
26110    'read' => 'SELECT /*appRelate*/ md5 as label FROM brain_store m WHERE brain_store_id=\'%id%\' ORDER BY  1',
26111  ),
26112  'campos_exists' =>
26113  array (
26114    'options' => 'SELECT /*appRelate*/ m.campos_exists_id as id, valor as label FROM campos_exists m  ORDER BY  2',
26115    'read' => 'SELECT /*appRelate*/ valor as label FROM campos_exists m WHERE campos_exists_id=\'%id%\' ORDER BY  1',
26116  ),
26117  'cash' =>
26118  array (
26119    'options' => 'SELECT /*appRelate*/ m.cash_id as id, cliente_id as label FROM cash m  ORDER BY  2',
26120    'read' => 'SELECT /*appRelate*/ cliente_id as label FROM cash m WHERE cash_id=\'%id%\' ORDER BY  1',
26121  ),
26122  'cash_pago' =>
26123  array (
26124    'options' => 'SELECT /*appRelate*/ m.cash_pago_id as id, cash_id as label FROM cash_pago m  ORDER BY  2',
26125    'read' => 'SELECT /*appRelate*/ cash_id as label FROM cash_pago m WHERE cash_pago_id=\'%id%\' ORDER BY  1',
26126  ),
26127  'categoria' =>
26128  array (
26129    'options' => 'SELECT /*appRelate*/ m.categoria_id as id, categoria as label FROM categoria m  ORDER BY  2',
26130    'read' => 'SELECT /*appRelate*/ categoria as label FROM categoria m WHERE categoria_id=\'%id%\' ORDER BY  1',
26131  ),
26132  'categoria_gasto' =>
26133  array (
26134    'options' => 'SELECT /*appRelate*/ m.categoria_gasto_id as id, nombre as label FROM categoria_gasto m  ORDER BY  m.orden, 2',
26135    'read' => 'SELECT /*appRelate*/ nombre as label FROM categoria_gasto m WHERE categoria_gasto_id=\'%id%\' ORDER BY  m.orden, 1',
26136  ),
26137  'checked_document' =>
26138  array (
26139    'options' => 'SELECT /*appRelate*/ m.checked_document_id as id, tema as label FROM checked_document m  ORDER BY  2',
26140    'read' => 'SELECT /*appRelate*/ tema as label FROM checked_document m WHERE checked_document_id=\'%id%\' ORDER BY  1',
26141  ),
26142  'cheque' =>
26143  array (
26144    'options' => 'SELECT /*appRelate*/ m.cheque_id as id, cliente_id as label FROM cheque m  ORDER BY  2',
26145    'read' => 'SELECT /*appRelate*/ cliente_id as label FROM cheque m WHERE cheque_id=\'%id%\' ORDER BY  1',
26146  ),
26147  'cheque_hist' =>
26148  array (
26149    'options' => 'SELECT /*appRelate*/ m.history_id as id, action as label FROM cheque_hist m  ORDER BY  2',
26150    'read' => 'SELECT /*appRelate*/ action as label FROM cheque_hist m WHERE history_id=\'%id%\' ORDER BY  1',
26151  ),
26152  'cheque_log' =>
26153  array (
26154    'options' => 'SELECT /*appRelate*/ m.cheque_id as id, cliente_id as label FROM cheque_log m  ORDER BY  2',
26155    'read' => 'SELECT /*appRelate*/ cliente_id as label FROM cheque_log m WHERE cheque_id=\'%id%\' ORDER BY  1',
26156  ),
26157  'cheque_pago' =>
26158  array (
26159    'options' => 'SELECT /*appRelate*/ m.cheque_pago_id as id, cheque_id as label FROM cheque_pago m  ORDER BY  2',
26160    'read' => 'SELECT /*appRelate*/ cheque_id as label FROM cheque_pago m WHERE cheque_pago_id=\'%id%\' ORDER BY  1',
26161  ),
26162  'cheque_pago_log' =>
26163  array (
26164    'options' => 'SELECT /*appRelate*/ m.cheque_pago_log_id as id, cheque_pago_id as label FROM cheque_pago_log m  ORDER BY  2',
26165    'read' => 'SELECT /*appRelate*/ cheque_pago_id as label FROM cheque_pago_log m WHERE cheque_pago_log_id=\'%id%\' ORDER BY  1',
26166  ),
26167  'cliente' =>
26168  array (
26169    'options' => 'SELECT /*appRelate*/ m.cliente_id as id, nombre as label FROM cliente m  WHERE m.vale=\'Active\' ORDER BY  m.orden, 2',
26170    'read' => 'SELECT /*appRelate*/ nombre as label FROM cliente m WHERE cliente_id=\'%id%\' ORDER BY  m.orden, 1',
26171  ),
26172  'cliente_facturacion' =>
26173  array (
26174    'options' => 'SELECT /*appRelate*/ m.cliente_facturacion_id as id, nombre as label FROM cliente_facturacion m  ORDER BY  2',
26175    'read' => 'SELECT /*appRelate*/ nombre as label FROM cliente_facturacion m WHERE cliente_facturacion_id=\'%id%\' ORDER BY  1',
26176  ),
26177  'cliente_hist' =>
26178  array (
26179    'options' => 'SELECT /*appRelate*/ m.history_id as id, action as label FROM cliente_hist m  ORDER BY  2',
26180    'read' => 'SELECT /*appRelate*/ action as label FROM cliente_hist m WHERE history_id=\'%id%\' ORDER BY  1',
26181  ),
26182  'cliente_resumen' =>
26183  array (
26184    'options' => 'SELECT /*appRelate*/ m.cliente_id as id, cuantos_vales_pagados as label FROM cliente_resumen m  ORDER BY  2',
26185    'read' => 'SELECT /*appRelate*/ cuantos_vales_pagados as label FROM cliente_resumen m WHERE cliente_id=\'%id%\' ORDER BY  1',
26186  ),
26187  'color' =>
26188  array (
26189    'options' => 'SELECT /*appRelate*/ m.color_id as id, color as label FROM color m  ORDER BY  m.orden, 2',
26190    'read' => 'SELECT /*appRelate*/ color as label FROM color m WHERE color_id=\'%id%\' ORDER BY  m.orden, 1',
26191  ),
26192  'color_hist' =>
26193  array (
26194    'options' => 'SELECT /*appRelate*/ m.history_id as id, action as label FROM color_hist m  ORDER BY  2',
26195    'read' => 'SELECT /*appRelate*/ action as label FROM color_hist m WHERE history_id=\'%id%\' ORDER BY  1',
26196  ),
26197  'compra' =>
26198  array (
26199    'options' => 'SELECT /*appRelate*/ m.compra_id as id, cliente_id as label FROM compra m  ORDER BY  2',
26200    'read' => 'SELECT /*appRelate*/ cliente_id as label FROM compra m WHERE compra_id=\'%id%\' ORDER BY  1',
26201  ),
26202  'compra_log' =>
26203  array (
26204    'options' => 'SELECT /*appRelate*/ m.compra_id as id, cliente_id as label FROM compra_log m  ORDER BY  2',
26205    'read' => 'SELECT /*appRelate*/ cliente_id as label FROM compra_log m WHERE compra_id=\'%id%\' ORDER BY  1',
26206  ),
26207  'compra_pago' =>
26208  array (
26209    'options' => 'SELECT /*appRelate*/ m.compra_pago_id as id, compra_id as label FROM compra_pago m  ORDER BY  2',
26210    'read' => 'SELECT /*appRelate*/ compra_id as label FROM compra_pago m WHERE compra_pago_id=\'%id%\' ORDER BY  1',
26211  ),
26212  'compra_pago_log' =>
26213  array (
26214    'options' => 'SELECT /*appRelate*/ m.compra_pago_log_id as id, compra_pago_id as label FROM compra_pago_log m  ORDER BY  2',
26215    'read' => 'SELECT /*appRelate*/ compra_pago_id as label FROM compra_pago_log m WHERE compra_pago_log_id=\'%id%\' ORDER BY  1',
26216  ),
26217  'cp_autotransporte' =>
26218  array (
26219    'options' => 'SELECT /*appRelate*/ m.autotransporte_id as id, PermSCT as label FROM cp_autotransporte m  ORDER BY  2',
26220    'read' => 'SELECT /*appRelate*/ PermSCT as label FROM cp_autotransporte m WHERE autotransporte_id=\'%id%\' ORDER BY  1',
26221  ),
26222  'cp_cliente' =>
26223  array (
26224    'options' => 'SELECT /*appRelate*/ m.cp_cliente_id as id, cliente_id as label FROM cp_cliente m  ORDER BY  2',
26225    'read' => 'SELECT /*appRelate*/ cliente_id as label FROM cp_cliente m WHERE cp_cliente_id=\'%id%\' ORDER BY  1',
26226  ),
26227  'cp_cliente_direccion' =>
26228  array (
26229    'options' => 'SELECT /*appRelate*/ m.cp_cliente_direccion_id as id, cp_cliente_id as label FROM cp_cliente_direccion m  ORDER BY  2',
26230    'read' => 'SELECT /*appRelate*/ cp_cliente_id as label FROM cp_cliente_direccion m WHERE cp_cliente_direccion_id=\'%id%\' ORDER BY  1',
26231  ),
26232  'cp_figuratransporte' =>
26233  array (
26234    'options' => 'SELECT /*appRelate*/ m.figuratransporte_id as id, TipoFigura as label FROM cp_figuratransporte m  ORDER BY  2',
26235    'read' => 'SELECT /*appRelate*/ TipoFigura as label FROM cp_figuratransporte m WHERE figuratransporte_id=\'%id%\' ORDER BY  1',
26236  ),
26237  'cp_sat_codigo_postal' =>
26238  array (
26239    'options' => 'SELECT /*appRelate*/ m.cp_sat_codigo_postal_id as id, codigo_postal as label FROM cp_sat_codigo_postal m  ORDER BY  2',
26240    'read' => 'SELECT /*appRelate*/ codigo_postal as label FROM cp_sat_codigo_postal m WHERE cp_sat_codigo_postal_id=\'%id%\' ORDER BY  1',
26241  ),
26242  'cp_sat_estado' =>
26243  array (
26244    'options' => 'SELECT /*appRelate*/ m.cp_sat_estado_id as id, estado as label FROM cp_sat_estado m  ORDER BY  2',
26245    'read' => 'SELECT /*appRelate*/ estado as label FROM cp_sat_estado m WHERE cp_sat_estado_id=\'%id%\' ORDER BY  1',
26246  ),
26247  'cp_tipofiguratransporte' =>
26248  array (
26249    'options' => 'SELECT /*appRelate*/ m.cp_tipofiguratransporte_id as id, ClaveFiguraTransporte as label FROM cp_tipofiguratransporte m  ORDER BY  2',
26250    'read' => 'SELECT /*appRelate*/ ClaveFiguraTransporte as label FROM cp_tipofiguratransporte m WHERE cp_tipofiguratransporte_id=\'%id%\' ORDER BY  1',
26251  ),
26252  'cuentat' =>
26253  array (
26254    'options' => 'SELECT /*appRelate*/ m.cuentaT_id as id, usuario as label FROM cuentat m  WHERE m.vale=\'Active\' ORDER BY  m.orden, 2',
26255    'read' => 'SELECT /*appRelate*/ usuario as label FROM cuentat m WHERE cuentaT_id=\'%id%\' ORDER BY  m.orden, 1',
26256  ),
26257  'cuentat_a_banco' =>
26258  array (
26259    'options' => 'SELECT /*appRelate*/ m.cuentat_a_banco_mov_id as id, referencia as label FROM cuentat_a_banco m  ORDER BY  2',
26260    'read' => 'SELECT /*appRelate*/ referencia as label FROM cuentat_a_banco m WHERE cuentat_a_banco_mov_id=\'%id%\' ORDER BY  1',
26261  ),
26262  'cuentat_a_banco_tc' =>
26263  array (
26264    'options' => 'SELECT /*appRelate*/ m.cuentat_a_banco_tc_mov_id as id, referencia as label FROM cuentat_a_banco_tc m  ORDER BY  2',
26265    'read' => 'SELECT /*appRelate*/ referencia as label FROM cuentat_a_banco_tc m WHERE cuentat_a_banco_tc_mov_id=\'%id%\' ORDER BY  1',
26266  ),
26267  'cuentat_gasto' =>
26268  array (
26269    'options' => 'SELECT /*appRelate*/ m.cuentat_gasto_id as id, autorizado_por as label FROM cuentat_gasto m  ORDER BY  2',
26270    'read' => 'SELECT /*appRelate*/ autorizado_por as label FROM cuentat_gasto m WHERE cuentat_gasto_id=\'%id%\' ORDER BY  1',
26271  ),
26272  'cuentat_ingreso' =>
26273  array (
26274    'options' => 'SELECT /*appRelate*/ m.cuentat_ingreso_id as id, entregado_por as label FROM cuentat_ingreso m  ORDER BY  2',
26275    'read' => 'SELECT /*appRelate*/ entregado_por as label FROM cuentat_ingreso m WHERE cuentat_ingreso_id=\'%id%\' ORDER BY  1',
26276  ),
26277  'cuentat_ingreso_xtienda' =>
26278  array (
26279    'options' => 'SELECT /*appRelate*/ m.cuentat_ingreso_id as id, entregado_por as label FROM cuentat_ingreso_xtienda m  ORDER BY  2',
26280    'read' => 'SELECT /*appRelate*/ entregado_por as label FROM cuentat_ingreso_xtienda m WHERE cuentat_ingreso_id=\'%id%\' ORDER BY  1',
26281  ),
26282  'cuentat_mov' =>
26283  array (
26284    'options' => 'SELECT /*appRelate*/ m.cuentaT_mov_id as id, referencia as label FROM cuentat_mov m  ORDER BY  2',
26285    'read' => 'SELECT /*appRelate*/ referencia as label FROM cuentat_mov m WHERE cuentaT_mov_id=\'%id%\' ORDER BY  1',
26286  ),
26287  'cuentat_mov_pay' =>
26288  array (
26289    'options' => 'SELECT /*appRelate*/ m.cuentaT_mov_pay_id as id, comentario as label FROM cuentat_mov_pay m  ORDER BY  2',
26290    'read' => 'SELECT /*appRelate*/ comentario as label FROM cuentat_mov_pay m WHERE cuentaT_mov_pay_id=\'%id%\' ORDER BY  1',
26291  ),
26292  'cuentat_tipo_mov' =>
26293  array (
26294    'options' => 'SELECT /*appRelate*/ m.cuentaT_tipo_mov_id as id, tipo_mov as label FROM cuentat_tipo_mov m  ORDER BY  2',
26295    'read' => 'SELECT /*appRelate*/ tipo_mov as label FROM cuentat_tipo_mov m WHERE cuentaT_tipo_mov_id=\'%id%\' ORDER BY  1',
26296  ),
26297  'cuentat_transfer' =>
26298  array (
26299    'options' => 'SELECT /*appRelate*/ m.cuentat_transfer_id as id, remarks as label FROM cuentat_transfer m  ORDER BY  2',
26300    'read' => 'SELECT /*appRelate*/ remarks as label FROM cuentat_transfer m WHERE cuentat_transfer_id=\'%id%\' ORDER BY  1',
26301  ),
26302  'delivered' =>
26303  array (
26304    'options' => 'SELECT /*appRelate*/ m.delivered_id as id, document_type as label FROM delivered m  ORDER BY  2',
26305    'read' => 'SELECT /*appRelate*/ document_type as label FROM delivered m WHERE delivered_id=\'%id%\' ORDER BY  1',
26306  ),
26307  'deposita_en' =>
26308  array (
26309    'options' => 'SELECT /*appRelate*/ m.deposita_en_id as id, dep_label as label FROM deposita_en m  WHERE m.vale=\'Active\' ORDER BY  2',
26310    'read' => 'SELECT /*appRelate*/ dep_label as label FROM deposita_en m WHERE deposita_en_id=\'%id%\' ORDER BY  1',
26311  ),
26312  'deposita_en_lista_cuentas' =>
26313  array (
26314    'options' => 'SELECT /*appRelate*/ m.banco_cuenta_id as id, ordenado as label FROM deposita_en_lista_cuentas m  ORDER BY  2',
26315    'read' => 'SELECT /*appRelate*/ ordenado as label FROM deposita_en_lista_cuentas m WHERE banco_cuenta_id=\'%id%\' ORDER BY  1',
26316  ),
26317  'deuda' =>
26318  array (
26319    'options' => 'SELECT /*appRelate*/ m.deuda_id as id, acreedor as label FROM deuda m  ORDER BY  2',
26320    'read' => 'SELECT /*appRelate*/ acreedor as label FROM deuda m WHERE deuda_id=\'%id%\' ORDER BY  1',
26321  ),
26322  'deuda_pago' =>
26323  array (
26324    'options' => 'SELECT /*appRelate*/ m.deuda_pago_id as id, deuda_id as label FROM deuda_pago m  ORDER BY  2',
26325    'read' => 'SELECT /*appRelate*/ deuda_id as label FROM deuda_pago m WHERE deuda_pago_id=\'%id%\' ORDER BY  1',
26326  ),
26327  'dime' =>
26328  array (
26329    'options' => 'SELECT /*appRelate*/ m.dime_id as id, script as label FROM dime m  ORDER BY  2',
26330    'read' => 'SELECT /*appRelate*/ script as label FROM dime m WHERE dime_id=\'%id%\' ORDER BY  1',
26331  ),
26332  'empresa' =>
26333  array (
26334    'options' => 'SELECT /*appRelate*/ m.empresa_id as id, empresa as label FROM empresa m  WHERE m.vale=\'Active\' ORDER BY  m.orden, 2',
26335    'read' => 'SELECT /*appRelate*/ empresa as label FROM empresa m WHERE empresa_id=\'%id%\' ORDER BY  m.orden, 1',
26336  ),
26337  'estado' =>
26338  array (
26339    'options' => 'SELECT /*appRelate*/ m.estado_id as id, clave as label FROM estado m  ORDER BY  m.orden, 2',
26340    'read' => 'SELECT /*appRelate*/ clave as label FROM estado m WHERE estado_id=\'%id%\' ORDER BY  m.orden, 1',
26341  ),
26342  'estado_bodega' =>
26343  array (
26344    'options' => 'SELECT /*appRelate*/ m.estado_bodega_id as id, origen as label FROM estado_bodega m  ORDER BY  m.orden, 2',
26345    'read' => 'SELECT /*appRelate*/ origen as label FROM estado_bodega m WHERE estado_bodega_id=\'%id%\' ORDER BY  m.orden, 1',
26346  ),
26347  'estado_bodega_hist' =>
26348  array (
26349    'options' => 'SELECT /*appRelate*/ m.history_id as id, action as label FROM estado_bodega_hist m  ORDER BY  2',
26350    'read' => 'SELECT /*appRelate*/ action as label FROM estado_bodega_hist m WHERE history_id=\'%id%\' ORDER BY  1',
26351  ),
26352  'estilos_grid' =>
26353  array (
26354    'options' => 'SELECT /*appRelate*/ m.id as id, pagina as label FROM estilos_grid m  ORDER BY  2',
26355    'read' => 'SELECT /*appRelate*/ pagina as label FROM estilos_grid m WHERE id=\'%id%\' ORDER BY  1',
26356  ),
26357  'fabricas' =>
26358  array (
26359    'options' => 'SELECT /*appRelate*/ m.fabrica_id as id, fabrica as label FROM fabricas m  ORDER BY  2',
26360    'read' => 'SELECT /*appRelate*/ fabrica as label FROM fabricas m WHERE fabrica_id=\'%id%\' ORDER BY  1',
26361  ),
26362  'fiduciario' =>
26363  array (
26364    'options' => 'SELECT /*appRelate*/ m.fiduciario_id as id, banco_cuenta_mov_id as label FROM fiduciario m  ORDER BY  2',
26365    'read' => 'SELECT /*appRelate*/ banco_cuenta_mov_id as label FROM fiduciario m WHERE fiduciario_id=\'%id%\' ORDER BY  1',
26366  ),
26367  'fiduciario_contenedor' =>
26368  array (
26369    'options' => 'SELECT /*appRelate*/ m.fiduciario_contenedor_id as id, fiduciario_id as label FROM fiduciario_contenedor m  ORDER BY  2',
26370    'read' => 'SELECT /*appRelate*/ fiduciario_id as label FROM fiduciario_contenedor m WHERE fiduciario_contenedor_id=\'%id%\' ORDER BY  1',
26371  ),
26372  'fiduciario_reembolso' =>
26373  array (
26374    'options' => 'SELECT /*appRelate*/ m.fiduciario_reembolso_id as id, banco_cuenta_mov_id as label FROM fiduciario_reembolso m  ORDER BY  2',
26375    'read' => 'SELECT /*appRelate*/ banco_cuenta_mov_id as label FROM fiduciario_reembolso m WHERE fiduciario_reembolso_id=\'%id%\' ORDER BY  1',
26376  ),
26377  'gasto_empresa' =>
26378  array (
26379    'options' => 'SELECT /*appRelate*/ m.gasto_empresa_id as id, alta_por as label FROM gasto_empresa m  ORDER BY  2',
26380    'read' => 'SELECT /*appRelate*/ alta_por as label FROM gasto_empresa m WHERE gasto_empresa_id=\'%id%\' ORDER BY  1',
26381  ),
26382  'iac_enum_class' =>
26383  array (
26384    'options' => 'SELECT /*appRelate*/ m.iac_enum_class_id as id, valor_enum as label,m.class FROM iac_enum_class m  ORDER BY  2',
26385    'read' => 'SELECT /*appRelate*/ valor_enum as label FROM iac_enum_class m WHERE iac_enum_class_id=\'%id%\' ORDER BY  1',
26386  ),
26387  'iac_field_permission' =>
26388  array (
26389    'options' => 'SELECT /*appRelate*/ m.iac_field_permission_id as id, iac_table as label FROM iac_field_permission m  ORDER BY  2',
26390    'read' => 'SELECT /*appRelate*/ iac_table as label FROM iac_field_permission m WHERE iac_field_permission_id=\'%id%\' ORDER BY  1',
26391  ),
26392  'iac_limits' =>
26393  array (
26394    'options' => 'SELECT /*appRelate*/ m.iac_limits_id as id, iac_table as label FROM iac_limits m  ORDER BY  2',
26395    'read' => 'SELECT /*appRelate*/ iac_table as label FROM iac_limits m WHERE iac_limits_id=\'%id%\' ORDER BY  1',
26396  ),
26397  'iac_log_hecho' =>
26398  array (
26399    'options' => 'SELECT /*appRelate*/ m.iac_log_hecho_id as id, hecho as label FROM iac_log_hecho m  ORDER BY  2',
26400    'read' => 'SELECT /*appRelate*/ hecho as label FROM iac_log_hecho m WHERE iac_log_hecho_id=\'%id%\' ORDER BY  1',
26401  ),
26402  'iac_parametros' =>
26403  array (
26404    'options' => 'SELECT /*appRelate*/ m.iac_parametros_id as id, path_archivos_estado_de_cuenta as label FROM iac_parametros m  ORDER BY  2',
26405    'read' => 'SELECT /*appRelate*/ path_archivos_estado_de_cuenta as label FROM iac_parametros m WHERE iac_parametros_id=\'%id%\' ORDER BY  1',
26406  ),
26407  'iac_seq' =>
26408  array (
26409    'options' => 'SELECT /*appRelate*/ m.name as id, val as label FROM iac_seq m  ORDER BY  2',
26410    'read' => 'SELECT /*appRelate*/ val as label FROM iac_seq m WHERE name=\'%id%\' ORDER BY  1',
26411  ),
26412  'iac_table' =>
26413  array (
26414    'options' => 'SELECT /*appRelate*/ m.iac_table_id as id, tabla as label FROM iac_table m  ORDER BY  2',
26415    'read' => 'SELECT /*appRelate*/ tabla as label FROM iac_table m WHERE iac_table_id=\'%id%\' ORDER BY  1',
26416  ),
26417  'iac_table_permission' =>
26418  array (
26419    'options' => 'SELECT /*appRelate*/ m.iac_table_permission_id as id, iac_table as label FROM iac_table_permission m  ORDER BY  2',
26420    'read' => 'SELECT /*appRelate*/ iac_table as label FROM iac_table_permission m WHERE iac_table_permission_id=\'%id%\' ORDER BY  1',
26421  ),
26422  'iac_usr' =>
26423  array (
26424    'options' => 'SELECT /*appRelate*/ m.iac_usr_id as id, nick as label FROM iac_usr m  WHERE m.vale=\'Active\' ORDER BY  m.orden, 2',
26425    'read' => 'SELECT /*appRelate*/ nick as label FROM iac_usr m WHERE iac_usr_id=\'%id%\' ORDER BY  m.orden, 1',
26426  ),
26427  'iafiller' =>
26428  array (
26429    'options' => 'SELECT /*appRelate*/ m.iaFiller_id as id, nombre as label FROM iafiller m  ORDER BY  2',
26430    'read' => 'SELECT /*appRelate*/ nombre as label FROM iafiller m WHERE iaFiller_id=\'%id%\' ORDER BY  1',
26431  ),
26432  'icac_error' =>
26433  array (
26434    'options' => 'SELECT /*appRelate*/ m.icac_error_id as id, file as label FROM icac_error m  ORDER BY  2',
26435    'read' => 'SELECT /*appRelate*/ file as label FROM icac_error m WHERE icac_error_id=\'%id%\' ORDER BY  1',
26436  ),
26437  'iconos_fa' =>
26438  array (
26439    'options' => 'SELECT /*appRelate*/ m.id as id, nombre as label FROM iconos_fa m  ORDER BY  2',
26440    'read' => 'SELECT /*appRelate*/ nombre as label FROM iconos_fa m WHERE id=\'%id%\' ORDER BY  1',
26441  ),
26442  'importador' =>
26443  array (
26444    'options' => 'SELECT /*appRelate*/ m.importador_id as id, nombre as label FROM importador m  ORDER BY  2',
26445    'read' => 'SELECT /*appRelate*/ nombre as label FROM importador m WHERE importador_id=\'%id%\' ORDER BY  1',
26446  ),
26447  'importador_hist' =>
26448  array (
26449    'options' => 'SELECT /*appRelate*/ m.history_id as id, action as label FROM importador_hist m  ORDER BY  2',
26450    'read' => 'SELECT /*appRelate*/ action as label FROM importador_hist m WHERE history_id=\'%id%\' ORDER BY  1',
26451  ),
26452  'incidencias' =>
26453  array (
26454    'options' => 'SELECT /*appRelate*/ m.incidencia_id as id, doc_id as label FROM incidencias m  ORDER BY  2',
26455    'read' => 'SELECT /*appRelate*/ doc_id as label FROM incidencias m WHERE incidencia_id=\'%id%\' ORDER BY  1',
26456  ),
26457  'inconsistencia_nota_bodega' =>
26458  array (
26459    'options' => 'SELECT /*appRelate*/ m.inconsistencia_nota_bodega_id as id, nota_bodega_id as label FROM inconsistencia_nota_bodega m  ORDER BY  2',
26460    'read' => 'SELECT /*appRelate*/ nota_bodega_id as label FROM inconsistencia_nota_bodega m WHERE inconsistencia_nota_bodega_id=\'%id%\' ORDER BY  1',
26461  ),
26462  'inversion' =>
26463  array (
26464    'options' => 'SELECT /*appRelate*/ m.inversion_id as id, banco_cuenta_mov_id as label FROM inversion m  ORDER BY  2',
26465    'read' => 'SELECT /*appRelate*/ banco_cuenta_mov_id as label FROM inversion m WHERE inversion_id=\'%id%\' ORDER BY  1',
26466  ),
26467  'inversion_reembolso' =>
26468  array (
26469    'options' => 'SELECT /*appRelate*/ m.inversion_reembolso_id as id, banco_cuenta_mov_id as label FROM inversion_reembolso m  ORDER BY  2',
26470    'read' => 'SELECT /*appRelate*/ banco_cuenta_mov_id as label FROM inversion_reembolso m WHERE inversion_reembolso_id=\'%id%\' ORDER BY  1',
26471  ),
26472  'jqgridcolssorter' =>
26473  array (
26474    'options' => 'SELECT /*appRelate*/ m.jqGridColsSorter_id as id, col_def_key as label FROM jqgridcolssorter m  ORDER BY  2',
26475    'read' => 'SELECT /*appRelate*/ col_def_key as label FROM jqgridcolssorter m WHERE jqGridColsSorter_id=\'%id%\' ORDER BY  1',
26476  ),
26477  'kv_accion_log' =>
26478  array (
26479    'options' => 'SELECT /*appRelate*/ m.kv_accion_log_id as id, accion as label FROM kv_accion_log m  ORDER BY  2',
26480    'read' => 'SELECT /*appRelate*/ accion as label FROM kv_accion_log m WHERE kv_accion_log_id=\'%id%\' ORDER BY  1',
26481  ),
26482  'kv_record_log' =>
26483  array (
26484    'options' => 'SELECT /*appRelate*/ m.kv_record_log as id, record_id as label FROM kv_record_log m  ORDER BY  2',
26485    'read' => 'SELECT /*appRelate*/ record_id as label FROM kv_record_log m WHERE kv_record_log=\'%id%\' ORDER BY  1',
26486  ),
26487  'links_al_banco_live' =>
26488  array (
26489    'options' => 'SELECT /*appRelate*/ m.link_id as id, banco_cuenta_mov_link_id as label FROM links_al_banco_live m  ORDER BY  2',
26490    'read' => 'SELECT /*appRelate*/ banco_cuenta_mov_link_id as label FROM links_al_banco_live m WHERE link_id=\'%id%\' ORDER BY  1',
26491  ),
26492  'linkspendientes' =>
26493  array (
26494    'options' => 'SELECT /*appRelate*/ m.id as id, docto as label FROM linkspendientes m  ORDER BY  2',
26495    'read' => 'SELECT /*appRelate*/ docto as label FROM linkspendientes m WHERE id=\'%id%\' ORDER BY  1',
26496  ),
26497  'lista_precios' =>
26498  array (
26499    'options' => 'SELECT /*appRelate*/ m.lista_precios_id as id, nombre as label FROM lista_precios m  ORDER BY  2',
26500    'read' => 'SELECT /*appRelate*/ nombre as label FROM lista_precios m WHERE lista_precios_id=\'%id%\' ORDER BY  1',
26501  ),
26502  'lista_precios_tc' =>
26503  array (
26504    'options' => 'SELECT /*appRelate*/ m.id as id, nombre as label FROM lista_precios_tc m  ORDER BY  2',
26505    'read' => 'SELECT /*appRelate*/ nombre as label FROM lista_precios_tc m WHERE id=\'%id%\' ORDER BY  1',
26506  ),
26507  'login_log' =>
26508  array (
26509    'options' => 'SELECT /*appRelate*/ m.login_log_id as id, session_id as label FROM login_log m  ORDER BY  2',
26510    'read' => 'SELECT /*appRelate*/ session_id as label FROM login_log m WHERE login_log_id=\'%id%\' ORDER BY  1',
26511  ),
26512  'login_log_configure' =>
26513  array (
26514    'options' => 'SELECT /*appRelate*/ m.nombre as id, val as label FROM login_log_configure m  ORDER BY  2',
26515    'read' => 'SELECT /*appRelate*/ val as label FROM login_log_configure m WHERE nombre=\'%id%\' ORDER BY  1',
26516  ),
26517  'login_log_raro' =>
26518  array (
26519    'options' => 'SELECT /*appRelate*/ m.login_log_raro_id as id, raro as label FROM login_log_raro m  ORDER BY  m.orden, 2',
26520    'read' => 'SELECT /*appRelate*/ raro as label FROM login_log_raro m WHERE login_log_raro_id=\'%id%\' ORDER BY  m.orden, 1',
26521  ),
26522  'metodo_pago' =>
26523  array (
26524    'options' => 'SELECT /*appRelate*/ m.metodo_pago_id as id, metodo_pago as label FROM metodo_pago m  WHERE m.vale=\'Active\' ORDER BY  m.orden, 2',
26525    'read' => 'SELECT /*appRelate*/ metodo_pago as label FROM metodo_pago m WHERE metodo_pago_id=\'%id%\' ORDER BY  m.orden, 1',
26526  ),
26527  'moneda' =>
26528  array (
26529    'options' => 'SELECT /*appRelate*/ m.moneda_id as id, moneda as label FROM moneda m  ORDER BY  2',
26530    'read' => 'SELECT /*appRelate*/ moneda as label FROM moneda m WHERE moneda_id=\'%id%\' ORDER BY  1',
26531  ),
26532  'mov_verificado' =>
26533  array (
26534    'options' => 'SELECT /*appRelate*/ m.mov_verificado_id as id, banco_cuenta_mov_id as label FROM mov_verificado m  ORDER BY  2',
26535    'read' => 'SELECT /*appRelate*/ banco_cuenta_mov_id as label FROM mov_verificado m WHERE mov_verificado_id=\'%id%\' ORDER BY  1',
26536  ),
26537  'mov_verificado_plantilla' =>
26538  array (
26539    'options' => 'SELECT /*appRelate*/ m.mov_verificado_plantilla_id as id, plantilla_id as label FROM mov_verificado_plantilla m  ORDER BY  2',
26540    'read' => 'SELECT /*appRelate*/ plantilla_id as label FROM mov_verificado_plantilla m WHERE mov_verificado_plantilla_id=\'%id%\' ORDER BY  1',
26541  ),
26542  'movimiento_divisa' =>
26543  array (
26544    'options' => 'SELECT /*appRelate*/ m.movimiento_divisa_id as id, descripcion as label FROM movimiento_divisa m  ORDER BY  2',
26545    'read' => 'SELECT /*appRelate*/ descripcion as label FROM movimiento_divisa m WHERE movimiento_divisa_id=\'%id%\' ORDER BY  1',
26546  ),
26547  'nota' =>
26548  array (
26549    'options' => 'SELECT /*appRelate*/ m.nota_id as id, cliente_id as label FROM nota m  ORDER BY  2',
26550    'read' => 'SELECT /*appRelate*/ cliente_id as label FROM nota m WHERE nota_id=\'%id%\' ORDER BY  1',
26551  ),
26552  'nota_bodega_contra_nota_bodega' =>
26553  array (
26554    'options' => 'SELECT /*appRelate*/ m.nota_bodega_contra_nota_bodega_id as id, nota_bodega_id as label FROM nota_bodega_contra_nota_bodega m  ORDER BY  2',
26555    'read' => 'SELECT /*appRelate*/ nota_bodega_id as label FROM nota_bodega_contra_nota_bodega m WHERE nota_bodega_contra_nota_bodega_id=\'%id%\' ORDER BY  1',
26556  ),
26557  'nota_bodega_hist' =>
26558  array (
26559    'options' => 'SELECT /*appRelate*/ m.history_id as id, action as label FROM nota_bodega_hist m  ORDER BY  2',
26560    'read' => 'SELECT /*appRelate*/ action as label FROM nota_bodega_hist m WHERE history_id=\'%id%\' ORDER BY  1',
26561  ),
26562  'nota_bodega_items' =>
26563  array (
26564    'options' => 'SELECT /*appRelate*/ m.nota_bodega_item_id as id, nota_bodega_id as label FROM nota_bodega_items m  ORDER BY  2',
26565    'read' => 'SELECT /*appRelate*/ nota_bodega_id as label FROM nota_bodega_items m WHERE nota_bodega_item_id=\'%id%\' ORDER BY  1',
26566  ),
26567  'nota_bodega_items_log' =>
26568  array (
26569    'options' => 'SELECT /*appRelate*/ m.nota_bodega_item_id as id, nota_bodega_id as label FROM nota_bodega_items_log m  ORDER BY  2',
26570    'read' => 'SELECT /*appRelate*/ nota_bodega_id as label FROM nota_bodega_items_log m WHERE nota_bodega_item_id=\'%id%\' ORDER BY  1',
26571  ),
26572  'nota_bodega_log' =>
26573  array (
26574    'options' => 'SELECT /*appRelate*/ m.nota_bodega_id as id, numero as label FROM nota_bodega_log m  ORDER BY  2',
26575    'read' => 'SELECT /*appRelate*/ numero as label FROM nota_bodega_log m WHERE nota_bodega_id=\'%id%\' ORDER BY  1',
26576  ),
26577  'nota_bodega_verificacion_hist' =>
26578  array (
26579    'options' => 'SELECT /*appRelate*/ m.history_id as id, action as label FROM nota_bodega_verificacion_hist m  ORDER BY  2',
26580    'read' => 'SELECT /*appRelate*/ action as label FROM nota_bodega_verificacion_hist m WHERE history_id=\'%id%\' ORDER BY  1',
26581  ),
26582  'nota_bodega_verificacion_items' =>
26583  array (
26584    'options' => 'SELECT /*appRelate*/ m.nota_bodega_verificacion_item_id as id, nota_bodega_verificacion_id as label FROM nota_bodega_verificacion_items m  ORDER BY  2',
26585    'read' => 'SELECT /*appRelate*/ nota_bodega_verificacion_id as label FROM nota_bodega_verificacion_items m WHERE nota_bodega_verificacion_item_id=\'%id%\' ORDER BY  1',
26586  ),
26587  'nota_items' =>
26588  array (
26589    'options' => 'SELECT /*appRelate*/ m.nota_items_id as id, nota_id as label FROM nota_items m  ORDER BY  2',
26590    'read' => 'SELECT /*appRelate*/ nota_id as label FROM nota_items m WHERE nota_items_id=\'%id%\' ORDER BY  1',
26591  ),
26592  'nota_pago' =>
26593  array (
26594    'options' => 'SELECT /*appRelate*/ m.nota_pago_id as id, nota_id as label FROM nota_pago m  ORDER BY  2',
26595    'read' => 'SELECT /*appRelate*/ nota_id as label FROM nota_pago m WHERE nota_pago_id=\'%id%\' ORDER BY  1',
26596  ),
26597  'origen_bodega' =>
26598  array (
26599    'options' => 'SELECT /*appRelate*/ m.origen_bodega_id as id, clave as label FROM origen_bodega m  ORDER BY  m.orden, 2',
26600    'read' => 'SELECT /*appRelate*/ clave as label FROM origen_bodega m WHERE origen_bodega_id=\'%id%\' ORDER BY  m.orden, 1',
26601  ),
26602  'origen_bodega_bodega_hist' =>
26603  array (
26604    'options' => 'SELECT /*appRelate*/ m.history_id as id, action as label FROM origen_bodega_bodega_hist m  ORDER BY  2',
26605    'read' => 'SELECT /*appRelate*/ action as label FROM origen_bodega_bodega_hist m WHERE history_id=\'%id%\' ORDER BY  1',
26606  ),
26607  'origen_bodega_hist' =>
26608  array (
26609    'options' => 'SELECT /*appRelate*/ m.history_id as id, action as label FROM origen_bodega_hist m  ORDER BY  2',
26610    'read' => 'SELECT /*appRelate*/ action as label FROM origen_bodega_hist m WHERE history_id=\'%id%\' ORDER BY  1',
26611  ),
26612  'pagare' =>
26613  array (
26614    'options' => 'SELECT /*appRelate*/ m.pagare_id as id, cliente_id as label FROM pagare m  ORDER BY  2',
26615    'read' => 'SELECT /*appRelate*/ cliente_id as label FROM pagare m WHERE pagare_id=\'%id%\' ORDER BY  1',
26616  ),
26617  'pagare_hist' =>
26618  array (
26619    'options' => 'SELECT /*appRelate*/ m.history_id as id, action as label FROM pagare_hist m  ORDER BY  2',
26620    'read' => 'SELECT /*appRelate*/ action as label FROM pagare_hist m WHERE history_id=\'%id%\' ORDER BY  1',
26621  ),
26622  'pagare_log' =>
26623  array (
26624    'options' => 'SELECT /*appRelate*/ m.pagare_id as id, cliente_id as label FROM pagare_log m  ORDER BY  2',
26625    'read' => 'SELECT /*appRelate*/ cliente_id as label FROM pagare_log m WHERE pagare_id=\'%id%\' ORDER BY  1',
26626  ),
26627  'pagare_pago' =>
26628  array (
26629    'options' => 'SELECT /*appRelate*/ m.pagare_pago_id as id, pagare_id as label FROM pagare_pago m  ORDER BY  2',
26630    'read' => 'SELECT /*appRelate*/ pagare_id as label FROM pagare_pago m WHERE pagare_pago_id=\'%id%\' ORDER BY  1',
26631  ),
26632  'pagare_pago_log' =>
26633  array (
26634    'options' => 'SELECT /*appRelate*/ m.pagare_pago_log_id as id, pagare_pago_id as label FROM pagare_pago_log m  ORDER BY  2',
26635    'read' => 'SELECT /*appRelate*/ pagare_pago_id as label FROM pagare_pago_log m WHERE pagare_pago_log_id=\'%id%\' ORDER BY  1',
26636  ),
26637  'pagare_test' =>
26638  array (
26639    'options' => 'SELECT /*appRelate*/ m.pagare_id as id, cliente_id as label FROM pagare_test m  ORDER BY  2',
26640    'read' => 'SELECT /*appRelate*/ cliente_id as label FROM pagare_test m WHERE pagare_id=\'%id%\' ORDER BY  1',
26641  ),
26642  'parametro' =>
26643  array (
26644    'options' => 'SELECT /*appRelate*/ m.parametro_id as id, tema as label FROM parametro m  ORDER BY  2',
26645    'read' => 'SELECT /*appRelate*/ tema as label FROM parametro m WHERE parametro_id=\'%id%\' ORDER BY  1',
26646  ),
26647  'payment_conditions' =>
26648  array (
26649    'options' => 'SELECT /*appRelate*/ m.payment_conditions_id as id, condicion as label FROM payment_conditions m  WHERE m.vale=\'Active\' ORDER BY  m.orden, 2',
26650    'read' => 'SELECT /*appRelate*/ condicion as label FROM payment_conditions m WHERE payment_conditions_id=\'%id%\' ORDER BY  m.orden, 1',
26651  ),
26652  'pedido' =>
26653  array (
26654    'options' => 'SELECT /*appRelate*/ m.pedido_id as id, own_reference as label FROM pedido m  ORDER BY  2',
26655    'read' => 'SELECT /*appRelate*/ own_reference as label FROM pedido m WHERE pedido_id=\'%id%\' ORDER BY  1',
26656  ),
26657  'pedido_hist' =>
26658  array (
26659    'options' => 'SELECT /*appRelate*/ m.history_id as id, action as label FROM pedido_hist m  ORDER BY  2',
26660    'read' => 'SELECT /*appRelate*/ action as label FROM pedido_hist m WHERE history_id=\'%id%\' ORDER BY  1',
26661  ),
26662  'pedido_items' =>
26663  array (
26664    'options' => 'SELECT /*appRelate*/ m.pedido_item_id as id, pedido_id as label FROM pedido_items m  ORDER BY  m.orden, 2',
26665    'read' => 'SELECT /*appRelate*/ pedido_id as label FROM pedido_items m WHERE pedido_item_id=\'%id%\' ORDER BY  m.orden, 1',
26666  ),
26667  'pedido_recomienda' =>
26668  array (
26669    'options' => 'SELECT /*appRelate*/ m.pedido_recomienda_id as id, nombre as label FROM pedido_recomienda m  ORDER BY  2',
26670    'read' => 'SELECT /*appRelate*/ nombre as label FROM pedido_recomienda m WHERE pedido_recomienda_id=\'%id%\' ORDER BY  1',
26671  ),
26672  'pedido_recomienda_items' =>
26673  array (
26674    'options' => 'SELECT /*appRelate*/ m.pedido_recomienda_items_id as id, producto_general_id as label FROM pedido_recomienda_items m  ORDER BY  2',
26675    'read' => 'SELECT /*appRelate*/ producto_general_id as label FROM pedido_recomienda_items m WHERE pedido_recomienda_items_id=\'%id%\' ORDER BY  1',
26676  ),
26677  'pedido_recomienda_log' =>
26678  array (
26679    'options' => 'SELECT /*appRelate*/ m.pedido_recomienda_log_id as id, accion as label FROM pedido_recomienda_log m  ORDER BY  2',
26680    'read' => 'SELECT /*appRelate*/ accion as label FROM pedido_recomienda_log m WHERE pedido_recomienda_log_id=\'%id%\' ORDER BY  1',
26681  ),
26682  'pedir_producto' =>
26683  array (
26684    'options' => 'SELECT /*appRelate*/ m.pedir_producto_id as id, producto_bodega_id as label FROM pedir_producto m  ORDER BY  2',
26685    'read' => 'SELECT /*appRelate*/ producto_bodega_id as label FROM pedir_producto m WHERE pedir_producto_id=\'%id%\' ORDER BY  1',
26686  ),
26687  'perfil_reporte_grid' =>
26688  array (
26689    'options' => 'SELECT /*appRelate*/ m.perfil_reporte_grid_id as id, perfil as label FROM perfil_reporte_grid m  ORDER BY  2',
26690    'read' => 'SELECT /*appRelate*/ perfil as label FROM perfil_reporte_grid m WHERE perfil_reporte_grid_id=\'%id%\' ORDER BY  1',
26691  ),
26692  'perfil_reporte_grid_col' =>
26693  array (
26694    'options' => 'SELECT /*appRelate*/ m.perfil_reporte_grid_col_id as id, perfil_reporte_grid_id as label FROM perfil_reporte_grid_col m  ORDER BY  m.orden, 2',
26695    'read' => 'SELECT /*appRelate*/ perfil_reporte_grid_id as label FROM perfil_reporte_grid_col m WHERE perfil_reporte_grid_col_id=\'%id%\' ORDER BY  m.orden, 1',
26696  ),
26697  'permiso_bodega' =>
26698  array (
26699    'options' => 'SELECT /*appRelate*/ m.permiso_bodega_id as id, bodega_id as label FROM permiso_bodega m  ORDER BY  2',
26700    'read' => 'SELECT /*appRelate*/ bodega_id as label FROM permiso_bodega m WHERE permiso_bodega_id=\'%id%\' ORDER BY  1',
26701  ),
26702  'permiso_bodega_consulta_salida_tienda' =>
26703  array (
26704    'options' => 'SELECT /*appRelate*/ m.permiso_bodega_consulta_salida_tienda_id as id, origen_bodega_id as label FROM permiso_bodega_consulta_salida_tienda m  ORDER BY  2',
26705    'read' => 'SELECT /*appRelate*/ origen_bodega_id as label FROM permiso_bodega_consulta_salida_tienda m WHERE permiso_bodega_consulta_salida_tienda_id=\'%id%\' ORDER BY  1',
26706  ),
26707  'permiso_bodega_hist' =>
26708  array (
26709    'options' => 'SELECT /*appRelate*/ m.history_id as id, action as label FROM permiso_bodega_hist m  ORDER BY  2',
26710    'read' => 'SELECT /*appRelate*/ action as label FROM permiso_bodega_hist m WHERE history_id=\'%id%\' ORDER BY  1',
26711  ),
26712  'permiso_ctat' =>
26713  array (
26714    'options' => 'SELECT /*appRelate*/ m.permiso_ctat_id as id, alta_por as label FROM permiso_ctat m  ORDER BY  2',
26715    'read' => 'SELECT /*appRelate*/ alta_por as label FROM permiso_ctat m WHERE permiso_ctat_id=\'%id%\' ORDER BY  1',
26716  ),
26717  'permiso_nombre' =>
26718  array (
26719    'options' => 'SELECT /*appRelate*/ m.permiso_nombre as id, ultimo_cambio as label FROM permiso_nombre m  ORDER BY  2',
26720    'read' => 'SELECT /*appRelate*/ ultimo_cambio as label FROM permiso_nombre m WHERE permiso_nombre=\'%id%\' ORDER BY  1',
26721  ),
26722  'permiso_usuario' =>
26723  array (
26724    'options' => 'SELECT /*appRelate*/ m.permiso_usuario_id as id, permiso_nombre as label FROM permiso_usuario m  ORDER BY  2',
26725    'read' => 'SELECT /*appRelate*/ permiso_nombre as label FROM permiso_usuario m WHERE permiso_usuario_id=\'%id%\' ORDER BY  1',
26726  ),
26727  'permisos' =>
26728  array (
26729    'options' => 'SELECT /*appRelate*/ m.permisos_id as id, tema as label FROM permisos m  ORDER BY  2',
26730    'read' => 'SELECT /*appRelate*/ tema as label FROM permisos m WHERE permisos_id=\'%id%\' ORDER BY  1',
26731  ),
26732  'plantilla' =>
26733  array (
26734    'options' => 'SELECT /*appRelate*/ m.plantilla_id as id, plantilla as label FROM plantilla m  ORDER BY  2',
26735    'read' => 'SELECT /*appRelate*/ plantilla as label FROM plantilla m WHERE plantilla_id=\'%id%\' ORDER BY  1',
26736  ),
26737  'plantilla_cobranza' =>
26738  array (
26739    'options' => 'SELECT /*appRelate*/ m.plantilla_cobranza_id as id, plantillatienda_id as label FROM plantilla_cobranza m  ORDER BY  2',
26740    'read' => 'SELECT /*appRelate*/ plantillatienda_id as label FROM plantilla_cobranza m WHERE plantilla_cobranza_id=\'%id%\' ORDER BY  1',
26741  ),
26742  'plantilla_cuentat_gasto' =>
26743  array (
26744    'options' => 'SELECT /*appRelate*/ m.plantilla_cuentat_gasto_id as id, nombre as label FROM plantilla_cuentat_gasto m  WHERE m.vale=\'Active\' ORDER BY  m.orden, 2',
26745    'read' => 'SELECT /*appRelate*/ nombre as label FROM plantilla_cuentat_gasto m WHERE plantilla_cuentat_gasto_id=\'%id%\' ORDER BY  m.orden, 1',
26746  ),
26747  'plantilla_permiso_ctat' =>
26748  array (
26749    'options' => 'SELECT /*appRelate*/ m.plantilla_permiso_ctat_id as id, nombre as label FROM plantilla_permiso_ctat m  ORDER BY  2',
26750    'read' => 'SELECT /*appRelate*/ nombre as label FROM plantilla_permiso_ctat m WHERE plantilla_permiso_ctat_id=\'%id%\' ORDER BY  1',
26751  ),
26752  'plantillatienda' =>
26753  array (
26754    'options' => 'SELECT /*appRelate*/ m.plantilla as id, plantillatienda_id as label FROM plantillatienda m  ORDER BY  2',
26755    'read' => 'SELECT /*appRelate*/ plantillatienda_id as label FROM plantillatienda m WHERE plantilla=\'%id%\' ORDER BY  1',
26756  ),
26757  'producto_bodega_hist' =>
26758  array (
26759    'options' => 'SELECT /*appRelate*/ m.history_id as id, action as label FROM producto_bodega_hist m  ORDER BY  2',
26760    'read' => 'SELECT /*appRelate*/ action as label FROM producto_bodega_hist m WHERE history_id=\'%id%\' ORDER BY  1',
26761  ),
26762  'producto_color' =>
26763  array (
26764    'options' => 'SELECT /*appRelate*/ m.producto_color_id as id, producto as label FROM producto_color m  ORDER BY  2',
26765    'read' => 'SELECT /*appRelate*/ producto as label FROM producto_color m WHERE producto_color_id=\'%id%\' ORDER BY  1',
26766  ),
26767  'producto_color_hist' =>
26768  array (
26769    'options' => 'SELECT /*appRelate*/ m.history_id as id, action as label FROM producto_color_hist m  ORDER BY  2',
26770    'read' => 'SELECT /*appRelate*/ action as label FROM producto_color_hist m WHERE history_id=\'%id%\' ORDER BY  1',
26771  ),
26772  'producto_color_nuevo' =>
26773  array (
26774    'options' => 'SELECT /*appRelate*/ m.producto_color_id as id, producto_general_id as label FROM producto_color_nuevo m  ORDER BY  2',
26775    'read' => 'SELECT /*appRelate*/ producto_general_id as label FROM producto_color_nuevo m WHERE producto_color_id=\'%id%\' ORDER BY  1',
26776  ),
26777  'producto_general' =>
26778  array (
26779    'options' => 'SELECT /*appRelate*/ m.producto_general_id as id, producto as label FROM producto_general m  ORDER BY  2',
26780    'read' => 'SELECT /*appRelate*/ producto as label FROM producto_general m WHERE producto_general_id=\'%id%\' ORDER BY  1',
26781  ),
26782  'producto_general_hist' =>
26783  array (
26784    'options' => 'SELECT /*appRelate*/ m.history_id as id, action as label FROM producto_general_hist m  ORDER BY  2',
26785    'read' => 'SELECT /*appRelate*/ action as label FROM producto_general_hist m WHERE history_id=\'%id%\' ORDER BY  1',
26786  ),
26787  'registro_transferencia_dinero' =>
26788  array (
26789    'options' => 'SELECT /*appRelate*/ m.documento_generado_id as id, nombre_empresa as label FROM registro_transferencia_dinero m  ORDER BY  2',
26790    'read' => 'SELECT /*appRelate*/ nombre_empresa as label FROM registro_transferencia_dinero m WHERE documento_generado_id=\'%id%\' ORDER BY  1',
26791  ),
26792  'reportes_grid' =>
26793  array (
26794    'options' => 'SELECT /*appRelate*/ m.reporte_grid_id as id, origen as label FROM reportes_grid m  ORDER BY  2',
26795    'read' => 'SELECT /*appRelate*/ origen as label FROM reportes_grid m WHERE reporte_grid_id=\'%id%\' ORDER BY  1',
26796  ),
26797  'reset_history' =>
26798  array (
26799    'options' => 'SELECT /*appRelate*/ m.id_reset as id, bodega_id as label FROM reset_history m  ORDER BY  2',
26800    'read' => 'SELECT /*appRelate*/ bodega_id as label FROM reset_history m WHERE id_reset=\'%id%\' ORDER BY  1',
26801  ),
26802  'solicitud_carta_porte' =>
26803  array (
26804    'options' => 'SELECT /*appRelate*/ m.solicitud_carta_porte_id as id, origen_id as label FROM solicitud_carta_porte m  ORDER BY  2',
26805    'read' => 'SELECT /*appRelate*/ origen_id as label FROM solicitud_carta_porte m WHERE solicitud_carta_porte_id=\'%id%\' ORDER BY  1',
26806  ),
26807  'solicitud_carta_porte_hist' =>
26808  array (
26809    'options' => 'SELECT /*appRelate*/ m.history_id as id, action as label FROM solicitud_carta_porte_hist m  ORDER BY  2',
26810    'read' => 'SELECT /*appRelate*/ action as label FROM solicitud_carta_porte_hist m WHERE history_id=\'%id%\' ORDER BY  1',
26811  ),
26812  'solicitud_carta_porte_items' =>
26813  array (
26814    'options' => 'SELECT /*appRelate*/ m.solicitud_carta_porte_item_id as id, solicitud_carta_porte_id as label FROM solicitud_carta_porte_items m  ORDER BY  2',
26815    'read' => 'SELECT /*appRelate*/ solicitud_carta_porte_id as label FROM solicitud_carta_porte_items m WHERE solicitud_carta_porte_item_id=\'%id%\' ORDER BY  1',
26816  ),
26817  'subcategoria_gasto' =>
26818  array (
26819    'options' => 'SELECT /*appRelate*/ m.subcategoria_gasto_id as id, nombre as label FROM subcategoria_gasto m  ORDER BY  m.orden, 2',
26820    'read' => 'SELECT /*appRelate*/ nombre as label FROM subcategoria_gasto m WHERE subcategoria_gasto_id=\'%id%\' ORDER BY  m.orden, 1',
26821  ),
26822  'tablas' =>
26823  array (
26824    'options' => 'SELECT /*appRelate*/ m.tabla_id as id, tabla as label FROM tablas m  ORDER BY  2',
26825    'read' => 'SELECT /*appRelate*/ tabla as label FROM tablas m WHERE tabla_id=\'%id%\' ORDER BY  1',
26826  ),
26827  'tc_log' =>
26828  array (
26829    'options' => 'SELECT /*appRelate*/ m.tc_log_id as id, origen as label FROM tc_log m  ORDER BY  2',
26830    'read' => 'SELECT /*appRelate*/ origen as label FROM tc_log m WHERE tc_log_id=\'%id%\' ORDER BY  1',
26831  ),
26832  'tienda' =>
26833  array (
26834    'options' => 'SELECT /*appRelate*/ m.tienda_id as id, clave as label FROM tienda m  WHERE m.vale=\'Active\' ORDER BY  2',
26835    'read' => 'SELECT /*appRelate*/ clave as label FROM tienda m WHERE tienda_id=\'%id%\' ORDER BY  1',
26836  ),
26837  'tienda_hist' =>
26838  array (
26839    'options' => 'SELECT /*appRelate*/ m.history_id as id, action as label FROM tienda_hist m  ORDER BY  2',
26840    'read' => 'SELECT /*appRelate*/ action as label FROM tienda_hist m WHERE history_id=\'%id%\' ORDER BY  1',
26841  ),
26842  'unidades' =>
26843  array (
26844    'options' => 'SELECT /*appRelate*/ m.unidades_id as id, unidad as label FROM unidades m  WHERE m.vale=\'Active\' ORDER BY  m.orden, 2',
26845    'read' => 'SELECT /*appRelate*/ unidad as label FROM unidades m WHERE unidades_id=\'%id%\' ORDER BY  m.orden, 1',
26846  ),
26847  'usuario_defaults' =>
26848  array (
26849    'options' => 'SELECT /*appRelate*/ m.usuario_defaults_id as id, url as label FROM usuario_defaults m  ORDER BY  2',
26850    'read' => 'SELECT /*appRelate*/ url as label FROM usuario_defaults m WHERE usuario_defaults_id=\'%id%\' ORDER BY  1',
26851  ),
26852  'vale' =>
26853  array (
26854    'options' => 'SELECT /*appRelate*/ m.vale_id as id, cliente as label FROM vale m  ORDER BY  2',
26855    'read' => 'SELECT /*appRelate*/ cliente as label FROM vale m WHERE vale_id=\'%id%\' ORDER BY  1',
26856  ),
26857  'vale_hist' =>
26858  array (
26859    'options' => 'SELECT /*appRelate*/ m.history_id as id, action as label FROM vale_hist m  ORDER BY  2',
26860    'read' => 'SELECT /*appRelate*/ action as label FROM vale_hist m WHERE history_id=\'%id%\' ORDER BY  1',
26861  ),
26862  'vale_log' =>
26863  array (
26864    'options' => 'SELECT /*appRelate*/ m.vale_id as id, cliente as label FROM vale_log m  ORDER BY  2',
26865    'read' => 'SELECT /*appRelate*/ cliente as label FROM vale_log m WHERE vale_id=\'%id%\' ORDER BY  1',
26866  ),
26867  'vale_pago' =>
26868  array (
26869    'options' => 'SELECT /*appRelate*/ m.vale_pago_id as id, vale_id as label FROM vale_pago m  ORDER BY  2',
26870    'read' => 'SELECT /*appRelate*/ vale_id as label FROM vale_pago m WHERE vale_pago_id=\'%id%\' ORDER BY  1',
26871  ),
26872  'vale_pago_log' =>
26873  array (
26874    'options' => 'SELECT /*appRelate*/ m.vale_pago_log_id as id, vale_pago_id as label FROM vale_pago_log m  ORDER BY  2',
26875    'read' => 'SELECT /*appRelate*/ vale_pago_id as label FROM vale_pago_log m WHERE vale_pago_log_id=\'%id%\' ORDER BY  1',
26876  ),
26877  'vale_permiso' =>
26878  array (
26879    'options' => 'SELECT /*appRelate*/ m.vale_permiso_id as id, vale_id as label FROM vale_permiso m  ORDER BY  2',
26880    'read' => 'SELECT /*appRelate*/ vale_id as label FROM vale_permiso m WHERE vale_permiso_id=\'%id%\' ORDER BY  1',
26881  ),
26882  'vale_uso' =>
26883  array (
26884    'options' => 'SELECT /*appRelate*/ m.vale_uso_id as id, vale_id as label FROM vale_uso m  ORDER BY  2',
26885    'read' => 'SELECT /*appRelate*/ vale_id as label FROM vale_uso m WHERE vale_uso_id=\'%id%\' ORDER BY  1',
26886  ),
26887  'vale_uso_log' =>
26888  array (
26889    'options' => 'SELECT /*appRelate*/ m.vale_uso_log_id as id, vale_uso_id as label FROM vale_uso_log m  ORDER BY  2',
26890    'read' => 'SELECT /*appRelate*/ vale_uso_id as label FROM vale_uso_log m WHERE vale_uso_log_id=\'%id%\' ORDER BY  1',
26891  ),
26892  'vitex_grid' =>
26893  array (
26894    'options' => 'SELECT /*appRelate*/ m.vitex_grid_id as id, nombre as label FROM vitex_grid m  ORDER BY  2',
26895    'read' => 'SELECT /*appRelate*/ nombre as label FROM vitex_grid m WHERE vitex_grid_id=\'%id%\' ORDER BY  1',
26896  ),
26897  'vitex_grid_col' =>
26898  array (
26899    'options' => 'SELECT /*appRelate*/ m.vitex_grid_col_id as id, vitex_grid_id as label FROM vitex_grid_col m  ORDER BY  2',
26900    'read' => 'SELECT /*appRelate*/ vitex_grid_id as label FROM vitex_grid_col m WHERE vitex_grid_col_id=\'%id%\' ORDER BY  1',
26901  ),
26902);
26903    }
26904    /* LINKS_DEFAULT_INFO END */
26905
26906}
26907?>