<?php 
 $GLOBALS["dictionary"]["P02_Ventas"]=array (
  'table' => 'p02_ventas',
  'audited' => true,
  'duplicate_merge' => true,
  'fields' => 
  array (
    'id' => 
    array (
      'name' => 'id',
      'vname' => 'LBL_ID',
      'type' => 'id',
      'required' => true,
      'reportable' => true,
      'comment' => 'Unique identifier',
      'inline_edit' => false,
    ),
    'name' => 
    array (
      'name' => 'name',
      'vname' => 'LBL_NAME',
      'type' => 'name',
      'link' => true,
      'dbType' => 'varchar',
      'len' => '150',
      'unified_search' => false,
      'full_text_search' => 
      array (
        'boost' => 3,
      ),
      'required' => true,
      'importable' => 'required',
      'duplicate_merge' => 'enabled',
      'merge_filter' => 'selected',
      'massupdate' => 0,
      'no_default' => false,
      'comments' => '',
      'help' => '',
      'duplicate_merge_dom_value' => '3',
      'audited' => false,
      'reportable' => true,
      'size' => '20',
    ),
    'date_entered' => 
    array (
      'name' => 'date_entered',
      'vname' => 'LBL_DATE_ENTERED',
      'type' => 'datetime',
      'group' => 'created_by_name',
      'comment' => 'Date record created',
      'enable_range_search' => true,
      'options' => 'date_range_search_dom',
      'inline_edit' => false,
    ),
    'date_modified' => 
    array (
      'name' => 'date_modified',
      'vname' => 'LBL_DATE_MODIFIED',
      'type' => 'datetime',
      'group' => 'modified_by_name',
      'comment' => 'Date record last modified',
      'enable_range_search' => true,
      'options' => 'date_range_search_dom',
      'inline_edit' => false,
    ),
    'modified_user_id' => 
    array (
      'name' => 'modified_user_id',
      'rname' => 'user_name',
      'id_name' => 'modified_user_id',
      'vname' => 'LBL_MODIFIED',
      'type' => 'assigned_user_name',
      'table' => 'users',
      'isnull' => 'false',
      'group' => 'modified_by_name',
      'dbType' => 'id',
      'reportable' => true,
      'comment' => 'User who last modified record',
      'massupdate' => false,
      'inline_edit' => false,
    ),
    'modified_by_name' => 
    array (
      'name' => 'modified_by_name',
      'vname' => 'LBL_MODIFIED_NAME',
      'type' => 'relate',
      'reportable' => false,
      'source' => 'non-db',
      'rname' => 'user_name',
      'table' => 'users',
      'id_name' => 'modified_user_id',
      'module' => 'Users',
      'link' => 'modified_user_link',
      'duplicate_merge' => 'disabled',
      'massupdate' => false,
      'inline_edit' => false,
    ),
    'created_by' => 
    array (
      'name' => 'created_by',
      'rname' => 'user_name',
      'id_name' => 'modified_user_id',
      'vname' => 'LBL_CREATED',
      'type' => 'assigned_user_name',
      'table' => 'users',
      'isnull' => 'false',
      'dbType' => 'id',
      'group' => 'created_by_name',
      'comment' => 'User who created record',
      'massupdate' => false,
      'inline_edit' => false,
    ),
    'created_by_name' => 
    array (
      'name' => 'created_by_name',
      'vname' => 'LBL_CREATED',
      'type' => 'relate',
      'reportable' => false,
      'link' => 'created_by_link',
      'rname' => 'user_name',
      'source' => 'non-db',
      'table' => 'users',
      'id_name' => 'created_by',
      'module' => 'Users',
      'duplicate_merge' => 'disabled',
      'importable' => 'false',
      'massupdate' => false,
      'inline_edit' => false,
    ),
    'description' => 
    array (
      'name' => 'description',
      'vname' => 'LBL_DESCRIPTION',
      'type' => 'text',
      'comment' => 'Full text of the note',
      'rows' => 6,
      'cols' => 80,
    ),
    'deleted' => 
    array (
      'name' => 'deleted',
      'vname' => 'LBL_DELETED',
      'type' => 'bool',
      'default' => '0',
      'reportable' => false,
      'comment' => 'Record deletion indicator',
    ),
    'created_by_link' => 
    array (
      'name' => 'created_by_link',
      'type' => 'link',
      'relationship' => 'p02_ventas_created_by',
      'vname' => 'LBL_CREATED_USER',
      'link_type' => 'one',
      'module' => 'Users',
      'bean_name' => 'User',
      'source' => 'non-db',
    ),
    'modified_user_link' => 
    array (
      'name' => 'modified_user_link',
      'type' => 'link',
      'relationship' => 'p02_ventas_modified_user',
      'vname' => 'LBL_MODIFIED_USER',
      'link_type' => 'one',
      'module' => 'Users',
      'bean_name' => 'User',
      'source' => 'non-db',
    ),
    'assigned_user_id' => 
    array (
      'name' => 'assigned_user_id',
      'rname' => 'user_name',
      'id_name' => 'assigned_user_id',
      'vname' => 'LBL_ASSIGNED_TO_ID',
      'group' => 'assigned_user_name',
      'type' => 'relate',
      'table' => 'users',
      'module' => 'Users',
      'reportable' => true,
      'isnull' => 'false',
      'dbType' => 'id',
      'audited' => true,
      'comment' => 'User ID assigned to record',
      'duplicate_merge' => 'disabled',
    ),
    'assigned_user_name' => 
    array (
      'name' => 'assigned_user_name',
      'link' => 'assigned_user_link',
      'vname' => 'LBL_ASSIGNED_TO_NAME',
      'rname' => 'user_name',
      'type' => 'relate',
      'reportable' => false,
      'source' => 'non-db',
      'table' => 'users',
      'id_name' => 'assigned_user_id',
      'module' => 'Users',
      'duplicate_merge' => 'disabled',
    ),
    'assigned_user_link' => 
    array (
      'name' => 'assigned_user_link',
      'type' => 'link',
      'relationship' => 'p02_ventas_assigned_user',
      'vname' => 'LBL_ASSIGNED_TO_USER',
      'link_type' => 'one',
      'module' => 'Users',
      'bean_name' => 'User',
      'source' => 'non-db',
      'duplicate_merge' => 'enabled',
      'rname' => 'user_name',
      'id_name' => 'assigned_user_id',
      'table' => 'users',
    ),
    'SecurityGroups' => 
    array (
      'name' => 'SecurityGroups',
      'type' => 'link',
      'relationship' => 'securitygroups_p02_ventas',
      'module' => 'SecurityGroups',
      'bean_name' => 'SecurityGroup',
      'source' => 'non-db',
      'vname' => 'LBL_SECURITYGROUPS',
    ),
    'venc_certificado' => 
    array (
      'required' => true,
      'name' => 'venc_certificado',
      'vname' => 'LBL_VENC_CERTIFICADO',
      'type' => 'date',
      'massupdate' => 0,
      'no_default' => false,
      'comments' => '',
      'help' => '',
      'importable' => 'true',
      'duplicate_merge' => 'disabled',
      'duplicate_merge_dom_value' => '0',
      'audited' => false,
      'reportable' => true,
      'unified_search' => false,
      'merge_filter' => 'disabled',
      'size' => '20',
      'enable_range_search' => false,
    ),
    'monto' => 
    array (
      'required' => false,
      'name' => 'monto',
      'vname' => 'LBL_MONTO',
      'type' => 'decimal',
      'massupdate' => 0,
      'no_default' => false,
      'comments' => '',
      'help' => '',
      'importable' => 'true',
      'duplicate_merge' => 'disabled',
      'duplicate_merge_dom_value' => '0',
      'audited' => false,
      'reportable' => true,
      'unified_search' => false,
      'merge_filter' => 'disabled',
      'len' => '18',
      'size' => '20',
      'enable_range_search' => false,
      'precision' => '2',
      'inline_edit' => true,
    ),
    'nro_transaccion' => 
    array (
      'required' => true,
      'name' => 'nro_transaccion',
      'vname' => 'LBL_NRO_TRANSACCION',
      'type' => 'varchar',
      'massupdate' => 0,
      'no_default' => false,
      'comments' => '',
      'help' => '',
      'importable' => 'true',
      'duplicate_merge' => 'disabled',
      'duplicate_merge_dom_value' => '0',
      'audited' => false,
      'reportable' => true,
      'unified_search' => false,
      'merge_filter' => 'disabled',
      'len' => '25',
      'size' => '20',
    ),
    'fecha_transaccion' => 
    array (
      'required' => true,
      'name' => 'fecha_transaccion',
      'vname' => 'LBL_FECHA_TRANSACCION',
      'type' => 'date',
      'massupdate' => 0,
      'no_default' => false,
      'comments' => '',
      'help' => '',
      'importable' => 'true',
      'duplicate_merge' => 'disabled',
      'duplicate_merge_dom_value' => '0',
      'audited' => false,
      'reportable' => true,
      'unified_search' => false,
      'merge_filter' => 'disabled',
      'size' => '20',
      'enable_range_search' => false,
    ),
    'banco_transaccion' => 
    array (
      'required' => true,
      'name' => 'banco_transaccion',
      'vname' => 'LBL_BANCO_TRANSACCION',
      'type' => 'enum',
      'massupdate' => 0,
      'no_default' => false,
      'comments' => '',
      'help' => '',
      'importable' => 'true',
      'duplicate_merge' => 'disabled',
      'duplicate_merge_dom_value' => '0',
      'audited' => false,
      'reportable' => true,
      'unified_search' => false,
      'merge_filter' => 'disabled',
      'len' => 100,
      'size' => '20',
      'options' => 'banco_emisor_list',
      'studio' => 'visible',
      'dependency' => false,
    ),
    'monto_transaccion' => 
    array (
      'required' => true,
      'name' => 'monto_transaccion',
      'vname' => 'LBL_MONTO_TRANSACCION',
      'type' => 'decimal',
      'massupdate' => 0,
      'no_default' => false,
      'comments' => '',
      'help' => '',
      'importable' => 'true',
      'duplicate_merge' => 'disabled',
      'duplicate_merge_dom_value' => '0',
      'audited' => false,
      'reportable' => true,
      'unified_search' => false,
      'merge_filter' => 'disabled',
      'len' => '18',
      'size' => '20',
      'enable_range_search' => false,
      'precision' => '2',
    ),
    'estatus' => 
    array (
      'required' => true,
      'name' => 'estatus',
      'vname' => 'LBL_ESTATUS',
      'type' => 'enum',
      'massupdate' => '1',
      'no_default' => false,
      'comments' => '',
      'help' => '',
      'importable' => 'true',
      'duplicate_merge' => 'disabled',
      'duplicate_merge_dom_value' => '0',
      'audited' => false,
      'reportable' => true,
      'unified_search' => false,
      'merge_filter' => 'disabled',
      'len' => 100,
      'size' => '20',
      'options' => 'estatus_venta',
      'studio' => 'visible',
      'dependency' => false,
      'default' => 'PorAprobar',
    ),
    'punto_bancario' => 
    array (
      'required' => true,
      'name' => 'punto_bancario',
      'vname' => 'LBL_PUNTO_BANCARIO',
      'type' => 'enum',
      'massupdate' => 0,
      'no_default' => false,
      'comments' => '',
      'help' => '',
      'importable' => 'true',
      'duplicate_merge' => 'disabled',
      'duplicate_merge_dom_value' => '0',
      'audited' => false,
      'reportable' => true,
      'unified_search' => false,
      'merge_filter' => 'disabled',
      'len' => 100,
      'size' => '20',
      'options' => 'punto_bancario_list',
      'studio' => 'visible',
      'dependency' => false,
    ),
    'fecha_venta' => 
    array (
      'required' => true,
      'name' => 'fecha_venta',
      'vname' => 'LBL_FECHA_VENTA',
      'type' => 'date',
      'massupdate' => 0,
      'no_default' => false,
      'comments' => '',
      'help' => '',
      'importable' => 'true',
      'duplicate_merge' => 'disabled',
      'duplicate_merge_dom_value' => '0',
      'audited' => false,
      'reportable' => true,
      'unified_search' => false,
      'merge_filter' => 'disabled',
      'size' => '20',
      'enable_range_search' => false,
      'display_default' => 'now',
      'inline_edit' => true,
    ),
    'accounts_p02_ventas_1' => 
    array (
      'name' => 'accounts_p02_ventas_1',
      'type' => 'link',
      'relationship' => 'accounts_p02_ventas_1',
      'source' => 'non-db',
      'module' => 'Accounts',
      'bean_name' => 'Account',
      'vname' => 'LBL_ACCOUNTS_P02_VENTAS_1_FROM_ACCOUNTS_TITLE',
      'id_name' => 'accounts_p02_ventas_1accounts_ida',
    ),
    'accounts_p02_ventas_1_name' => 
    array (
      'name' => 'accounts_p02_ventas_1_name',
      'type' => 'relate',
      'source' => 'non-db',
      'vname' => 'LBL_ACCOUNTS_P02_VENTAS_1_FROM_ACCOUNTS_TITLE',
      'save' => true,
      'id_name' => 'accounts_p02_ventas_1accounts_ida',
      'link' => 'accounts_p02_ventas_1',
      'table' => 'accounts',
      'module' => 'Accounts',
      'rname' => 'name',
    ),
    'accounts_p02_ventas_1accounts_ida' => 
    array (
      'name' => 'accounts_p02_ventas_1accounts_ida',
      'type' => 'link',
      'relationship' => 'accounts_p02_ventas_1',
      'source' => 'non-db',
      'reportable' => false,
      'side' => 'right',
      'vname' => 'LBL_ACCOUNTS_P02_VENTAS_1_FROM_P02_VENTAS_TITLE',
    ),
    'p02_ventas_p05_pagos_1' => 
    array (
      'name' => 'p02_ventas_p05_pagos_1',
      'type' => 'link',
      'relationship' => 'p02_ventas_p05_pagos_1',
      'source' => 'non-db',
      'module' => 'P05_Pagos',
      'bean_name' => 'P05_Pagos',
      'side' => 'right',
      'vname' => 'LBL_P02_VENTAS_P05_PAGOS_1_FROM_P05_PAGOS_TITLE',
    ),
    'p02_ventas_p06_verificacion_1' => 
    array (
      'name' => 'p02_ventas_p06_verificacion_1',
      'type' => 'link',
      'relationship' => 'p02_ventas_p06_verificacion_1',
      'source' => 'non-db',
      'module' => 'P06_Verificacion',
      'bean_name' => 'P06_Verificacion',
      'side' => 'right',
      'vname' => 'LBL_P02_VENTAS_P06_VERIFICACION_1_FROM_P06_VERIFICACION_TITLE',
    ),
    'p02_ventas_p11_boletos_1' => 
    array (
      'name' => 'p02_ventas_p11_boletos_1',
      'type' => 'link',
      'relationship' => 'p02_ventas_p11_boletos_1',
      'source' => 'non-db',
      'module' => 'P11_Boletos',
      'bean_name' => 'P11_Boletos',
      'side' => 'right',
      'vname' => 'LBL_P02_VENTAS_P11_BOLETOS_1_FROM_P11_BOLETOS_TITLE',
    ),
    'p02_ventas_p13_tours_1' => 
    array (
      'name' => 'p02_ventas_p13_tours_1',
      'type' => 'link',
      'relationship' => 'p02_ventas_p13_tours_1',
      'source' => 'non-db',
      'module' => 'P13_Tours',
      'bean_name' => 'P13_Tours',
      'side' => 'right',
      'vname' => 'LBL_P02_VENTAS_P13_TOURS_1_FROM_P13_TOURS_TITLE',
    ),
    'p02_ventas_p14_traslados_1' => 
    array (
      'name' => 'p02_ventas_p14_traslados_1',
      'type' => 'link',
      'relationship' => 'p02_ventas_p14_traslados_1',
      'source' => 'non-db',
      'module' => 'P14_Traslados',
      'bean_name' => 'P14_Traslados',
      'side' => 'right',
      'vname' => 'LBL_P02_VENTAS_P14_TRASLADOS_1_FROM_P14_TRASLADOS_TITLE',
    ),
    'p16_viajes_p02_ventas_1' => 
    array (
      'name' => 'p16_viajes_p02_ventas_1',
      'type' => 'link',
      'relationship' => 'p16_viajes_p02_ventas_1',
      'source' => 'non-db',
      'module' => 'P16_Viajes',
      'bean_name' => 'P16_Viajes',
      'vname' => 'LBL_P16_VIAJES_P02_VENTAS_1_FROM_P16_VIAJES_TITLE',
      'id_name' => 'p16_viajes_p02_ventas_1p16_viajes_ida',
    ),
    'p16_viajes_p02_ventas_1_name' => 
    array (
      'name' => 'p16_viajes_p02_ventas_1_name',
      'type' => 'relate',
      'source' => 'non-db',
      'vname' => 'LBL_P16_VIAJES_P02_VENTAS_1_FROM_P16_VIAJES_TITLE',
      'save' => true,
      'id_name' => 'p16_viajes_p02_ventas_1p16_viajes_ida',
      'link' => 'p16_viajes_p02_ventas_1',
      'table' => 'p16_viajes',
      'module' => 'P16_Viajes',
      'rname' => 'name',
    ),
    'p16_viajes_p02_ventas_1p16_viajes_ida' => 
    array (
      'name' => 'p16_viajes_p02_ventas_1p16_viajes_ida',
      'type' => 'link',
      'relationship' => 'p16_viajes_p02_ventas_1',
      'source' => 'non-db',
      'reportable' => false,
      'side' => 'right',
      'vname' => 'LBL_P16_VIAJES_P02_VENTAS_1_FROM_P02_VENTAS_TITLE',
    ),
    'comision_venta_c' => 
    array (
      'inline_edit' => '',
      'labelValue' => 'Comisión Venta',
      'required' => false,
      'source' => 'custom_fields',
      'name' => 'comision_venta_c',
      'vname' => 'LBL_COMISION_VENTA',
      'type' => 'varchar',
      'massupdate' => '0',
      'default' => '',
      'no_default' => false,
      'comments' => '',
      'help' => '',
      'importable' => 'true',
      'duplicate_merge' => 'disabled',
      'duplicate_merge_dom_value' => '0',
      'audited' => true,
      'reportable' => true,
      'unified_search' => false,
      'merge_filter' => 'disabled',
      'len' => '50',
      'size' => '20',
      'id' => 'P02_Ventascomision_venta_c',
      'custom_module' => 'P02_Ventas',
    ),
    'departamento_c' => 
    array (
      'inline_edit' => '',
      'labelValue' => 'Departamento',
      'required' => true,
      'source' => 'custom_fields',
      'name' => 'departamento_c',
      'vname' => 'LBL_DEPARTAMENTO',
      'type' => 'enum',
      'massupdate' => '0',
      'default' => NULL,
      'no_default' => false,
      'comments' => '',
      'help' => '',
      'importable' => 'true',
      'duplicate_merge' => 'disabled',
      'duplicate_merge_dom_value' => '0',
      'audited' => true,
      'reportable' => true,
      'unified_search' => false,
      'merge_filter' => 'disabled',
      'len' => 100,
      'size' => '20',
      'options' => 'departamento_list',
      'studio' => 'visible',
      'dependency' => false,
      'id' => 'P02_Ventasdepartamento_c',
      'custom_module' => 'P02_Ventas',
    ),
    'empleado_c' => 
    array (
      'inline_edit' => '',
      'labelValue' => 'Empleado',
      'required' => true,
      'source' => 'non-db',
      'name' => 'empleado_c',
      'vname' => 'LBL_EMPLEADO',
      'type' => 'relate',
      'massupdate' => '0',
      'default' => NULL,
      'no_default' => false,
      'comments' => '',
      'help' => '',
      'importable' => 'true',
      'duplicate_merge' => 'disabled',
      'duplicate_merge_dom_value' => '0',
      'audited' => true,
      'reportable' => true,
      'unified_search' => false,
      'merge_filter' => 'disabled',
      'len' => '255',
      'size' => '20',
      'id_name' => 'p10_empleados_id_c',
      'ext2' => 'P10_Empleados',
      'module' => 'P10_Empleados',
      'rname' => 'name',
      'quicksearch' => 'enabled',
      'studio' => 'visible',
      'id' => 'P02_Ventasempleado_c',
      'custom_module' => 'P02_Ventas',
    ),
    'estatus_producto_c' => 
    array (
      'inline_edit' => '',
      'labelValue' => 'Estatus Producto',
      'required' => false,
      'source' => 'custom_fields',
      'name' => 'estatus_producto_c',
      'vname' => 'LBL_ESTATUS_PRODUCTO',
      'type' => 'enum',
      'massupdate' => '0',
      'default' => NULL,
      'no_default' => false,
      'comments' => '',
      'help' => '',
      'importable' => 'true',
      'duplicate_merge' => 'disabled',
      'duplicate_merge_dom_value' => '0',
      'audited' => true,
      'reportable' => true,
      'unified_search' => false,
      'merge_filter' => 'disabled',
      'len' => 100,
      'size' => '20',
      'options' => 'estatus_producto',
      'studio' => 'visible',
      'dependency' => false,
      'id' => 'P02_Ventasestatus_producto_c',
      'custom_module' => 'P02_Ventas',
    ),
    'nro_certificado_c' => 
    array (
      'inline_edit' => '',
      'labelValue' => 'Nro Certificado',
      'required' => false,
      'source' => 'custom_fields',
      'name' => 'nro_certificado_c',
      'vname' => 'LBL_NRO_CERTIFICADO',
      'type' => 'varchar',
      'massupdate' => '0',
      'default' => '',
      'no_default' => false,
      'comments' => '',
      'help' => '',
      'importable' => 'true',
      'duplicate_merge' => 'disabled',
      'duplicate_merge_dom_value' => '0',
      'audited' => true,
      'reportable' => true,
      'unified_search' => false,
      'merge_filter' => 'disabled',
      'len' => '50',
      'size' => '20',
      'id' => 'P02_Ventasnro_certificado_c',
      'custom_module' => 'P02_Ventas',
    ),
    'nro_factura_c' => 
    array (
      'inline_edit' => '',
      'labelValue' => 'Nro Factura',
      'required' => false,
      'source' => 'custom_fields',
      'name' => 'nro_factura_c',
      'vname' => 'LBL_NRO_FACTURA',
      'type' => 'varchar',
      'massupdate' => '0',
      'default' => '',
      'no_default' => false,
      'comments' => '',
      'help' => '',
      'importable' => 'true',
      'duplicate_merge' => 'disabled',
      'duplicate_merge_dom_value' => '0',
      'audited' => true,
      'reportable' => true,
      'unified_search' => false,
      'merge_filter' => 'disabled',
      'len' => '50',
      'size' => '20',
      'id' => 'P02_Ventasnro_factura_c',
      'custom_module' => 'P02_Ventas',
    ),
    'p01_productos_id_c' => 
    array (
      'inline_edit' => 1,
      'required' => false,
      'source' => 'custom_fields',
      'name' => 'p01_productos_id_c',
      'vname' => 'LBL_PRODUCTO_VENTA_P01_PRODUCTOS_ID',
      'type' => 'id',
      'massupdate' => '0',
      'default' => NULL,
      'no_default' => false,
      'comments' => '',
      'help' => '',
      'importable' => 'true',
      'duplicate_merge' => 'disabled',
      'duplicate_merge_dom_value' => '0',
      'audited' => false,
      'reportable' => false,
      'unified_search' => false,
      'merge_filter' => 'disabled',
      'len' => '36',
      'size' => '20',
      'id' => 'P02_Ventasp01_productos_id_c',
      'custom_module' => 'P02_Ventas',
    ),
    'p10_empleados_id_c' => 
    array (
      'inline_edit' => 1,
      'required' => false,
      'source' => 'custom_fields',
      'name' => 'p10_empleados_id_c',
      'vname' => 'LBL_EMPLEADO_P10_EMPLEADOS_ID',
      'type' => 'id',
      'massupdate' => '0',
      'default' => NULL,
      'no_default' => false,
      'comments' => '',
      'help' => '',
      'importable' => 'true',
      'duplicate_merge' => 'disabled',
      'duplicate_merge_dom_value' => '0',
      'audited' => false,
      'reportable' => false,
      'unified_search' => false,
      'merge_filter' => 'disabled',
      'len' => '36',
      'size' => '20',
      'id' => 'P02_Ventasp10_empleados_id_c',
      'custom_module' => 'P02_Ventas',
    ),
    'producto_venta_c' => 
    array (
      'inline_edit' => '',
      'labelValue' => 'Producto Venta',
      'required' => true,
      'source' => 'non-db',
      'name' => 'producto_venta_c',
      'vname' => 'LBL_PRODUCTO_VENTA',
      'type' => 'relate',
      'massupdate' => '0',
      'default' => NULL,
      'no_default' => false,
      'comments' => '',
      'help' => '',
      'importable' => 'true',
      'duplicate_merge' => 'disabled',
      'duplicate_merge_dom_value' => '0',
      'audited' => true,
      'reportable' => true,
      'unified_search' => false,
      'merge_filter' => 'disabled',
      'len' => '255',
      'size' => '20',
      'id_name' => 'p01_productos_id_c',
      'ext2' => 'P01_Productos',
      'module' => 'P01_Productos',
      'rname' => 'name',
      'quicksearch' => 'enabled',
      'studio' => 'visible',
      'id' => 'P02_Ventasproducto_venta_c',
      'custom_module' => 'P02_Ventas',
    ),
  ),
  'relationships' => 
  array (
    'p02_ventas_modified_user' => 
    array (
      'lhs_module' => 'Users',
      'lhs_table' => 'users',
      'lhs_key' => 'id',
      'rhs_module' => 'P02_Ventas',
      'rhs_table' => 'p02_ventas',
      'rhs_key' => 'modified_user_id',
      'relationship_type' => 'one-to-many',
    ),
    'p02_ventas_created_by' => 
    array (
      'lhs_module' => 'Users',
      'lhs_table' => 'users',
      'lhs_key' => 'id',
      'rhs_module' => 'P02_Ventas',
      'rhs_table' => 'p02_ventas',
      'rhs_key' => 'created_by',
      'relationship_type' => 'one-to-many',
    ),
    'p02_ventas_assigned_user' => 
    array (
      'lhs_module' => 'Users',
      'lhs_table' => 'users',
      'lhs_key' => 'id',
      'rhs_module' => 'P02_Ventas',
      'rhs_table' => 'p02_ventas',
      'rhs_key' => 'assigned_user_id',
      'relationship_type' => 'one-to-many',
    ),
    'securitygroups_p02_ventas' => 
    array (
      'lhs_module' => 'SecurityGroups',
      'lhs_table' => 'securitygroups',
      'lhs_key' => 'id',
      'rhs_module' => 'P02_Ventas',
      'rhs_table' => 'p02_ventas',
      'rhs_key' => 'id',
      'relationship_type' => 'many-to-many',
      'join_table' => 'securitygroups_records',
      'join_key_lhs' => 'securitygroup_id',
      'join_key_rhs' => 'record_id',
      'relationship_role_column' => 'module',
      'relationship_role_column_value' => 'P02_Ventas',
    ),
  ),
  'optimistic_locking' => true,
  'unified_search' => true,
  'indices' => 
  array (
    'id' => 
    array (
      'name' => 'p02_ventaspk',
      'type' => 'primary',
      'fields' => 
      array (
        0 => 'id',
      ),
    ),
  ),
  'templates' => 
  array (
    'security_groups' => 'security_groups',
    'assignable' => 'assignable',
    'basic' => 'basic',
  ),
  'custom_fields' => true,
);