<?php
$module_name = 'AOS_Invoices';
$_object_name = 'aos_invoices';
$viewdefs [$module_name] = 
array (
  'DetailView' => 
  array (
    'templateMeta' => 
    array (
      'form' => 
      array (
        'buttons' => 
        array (
          0 => 'EDIT',
          1 => 'DUPLICATE',
          2 => 'DELETE',
          3 => 'FIND_DUPLICATES',
          4 => 
          array (
            'customCode' => '<input type="button" class="button" onClick="showPopup(\'pdf\');" value="{$MOD.LBL_PRINT_AS_PDF}">',
          ),
        ),
      ),
      'maxColumns' => '2',
      'widths' => 
      array (
        0 => 
        array (
          'label' => '10',
          'field' => '30',
        ),
        1 => 
        array (
          'label' => '10',
          'field' => '30',
        ),
      ),
      'useTabs' => false,
      'tabDefs' => 
      array (
        'DEFAULT' => 
        array (
          'newTab' => false,
          'panelDefault' => 'expanded',
        ),
        'LBL_LINE_ITEMS' => 
        array (
          'newTab' => false,
          'panelDefault' => 'expanded',
        ),
      ),
    ),
    'panels' => 
    array (
      'default' => 
      array (
        0 => 
        array (
          0 => 
          array (
            'name' => 'name',
            'label' => 'LBL_NAME',
          ),
          1 => 
          array (
            'name' => 'created_by_name',
            'label' => 'LBL_CREATED',
          ),
        ),
        1 => 
        array (
          0 => 
          array (
            'name' => 'invoice_date',
            'label' => 'LBL_INVOICE_DATE',
          ),
          1 => 
          array (
            'name' => 'status',
            'label' => 'LBL_STATUS',
          ),
        ),
        2 => 
        array (
          0 => 
          array (
            'name' => 'billing_contact',
            'label' => 'LBL_BILLING_CONTACT',
          ),
        ),
        3 => 
        array (
          0 => 
          array (
            'name' => 'primary_address_street_c',
            'label' => 'LBL_PRIMARY_ADDRESS_STREET',
          ),
          1 => 
          array (
            'name' => 'barrios_c',
            'studio' => 'visible',
            'label' => 'LBL_BARRIOS',
          ),
        ),
        4 => 
        array (
          0 => 
          array (
            'name' => 'phone_home_c',
            'label' => 'LBL_PHONE_HOME ',
          ),
          1 => 
          array (
            'name' => 'phone_mobile_c',
            'label' => 'LBL_PHONE_MOBILE',
          ),
        ),
        5 => 
        array (
          0 => 
          array (
            'name' => 'referencia1_c',
            'label' => 'LBL_REFERENCIA1',
          ),
        ),
        6 => 
        array (
          0 => 
          array (
            'name' => 'referencia1_tel_c',
            'label' => 'LBL_REFERENCIA1_TEL',
          ),
          1 => 
          array (
            'name' => 'referencia1_cel_c',
            'label' => 'LBL_REFERENCIA1_CEL',
          ),
        ),
        7 => 
        array (
          0 => 
          array (
            'name' => 'fechas_sugeridas_c',
            'studio' => 'visible',
            'label' => 'LBL_FECHAS_SUGERIDAS',
          ),
        ),
        8 => 
        array (
          0 => 
          array (
            'name' => 'fecha_sugerida1_c',
            'label' => 'LBL_FECHA_SUGERIDA1',
          ),
          1 => 
          array (
            'name' => 'fecha_sugerida5_c',
            'label' => 'LBL_FECHA_SUGERIDA5',
          ),
        ),
        9 => 
        array (
          0 => 
          array (
            'name' => 'fecha_sugerida2_c',
            'label' => 'LBL_FECHA_SUGERIDA2',
          ),
          1 => 
          array (
            'name' => 'fecha_sugerida6_c',
            'label' => 'LBL_FECHA_SUGERIDA6',
          ),
        ),
        10 => 
        array (
          0 => 
          array (
            'name' => 'fecha_sugerida3_c',
            'label' => 'LBL_FECHA_SUGERIDA3',
          ),
          1 => 
          array (
            'name' => 'fecha_sugerida7_c',
            'label' => 'LBL_FECHA_SUGERIDA7',
          ),
        ),
        11 => 
        array (
          0 => 
          array (
            'name' => 'fecha_sugerida4_c',
            'label' => 'LBL_FECHA_SUGERIDA4',
          ),
          1 => 
          array (
            'name' => 'fecha_sugerida8_c',
            'label' => 'LBL_FECHA_SUGERIDA8',
          ),
        ),
        12 => 
        array (
          0 => 
          array (
            'name' => 'code_bar_c',
            'label' => 'LBL_CODEBAR',
            'type' => 'ImgBarcode',
          ),
          1 => 
          array (
            'name' => 'code_bar_c',
            'label' => 'LBL_CODEBAR',
            'type' => 'ImgBarcode',
          ),
        ),
        13 => 
        array (
          0 => 
          array (
            'name' => 'template_ddown_c',
            'studio' => 'visible',
            'label' => 'LBL_TEMPLATE_DDOWN_C',
          ),
          1 => 
          array (
            'name' => 'gea_cartera_aos_invoices_1_name',
          ),
        ),
      ),
      'lbl_line_items' => 
      array (
        0 => 
        array (
          0 => 
          array (
            'name' => 'line_items_c',
            'label' => 'LBL_LINE_ITEMS',
            'customCode' => '{$LINE_ITEMS}',
          ),
        ),
        1 => 
        array (
          0 => 
          array (
            'name' => 'observaciones_c',
            'studio' => 'visible',
            'label' => 'LBL_OBSERVACIONES',
          ),
        ),
        2 => 
        array (
          0 => 
          array (
            'name' => 'total_amt',
            'label' => 'LBL_TOTAL_AMT',
          ),
        ),
        3 => 
        array (
          0 => 
          array (
            'name' => 'discount_amount',
            'label' => 'LBL_DISCOUNT_AMOUNT',
          ),
        ),
        4 => 
        array (
          0 => 
          array (
            'name' => 'subtotal_amount',
            'label' => 'LBL_SUBTOTAL_AMOUNT',
          ),
        ),
        5 => 
        array (
          0 => 
          array (
            'name' => 'tax_amount',
            'label' => 'LBL_TAX_AMOUNT',
          ),
        ),
        6 => 
        array (
          0 => 
          array (
            'name' => 'shipping_amount',
            'label' => 'LBL_SHIPPING_AMOUNT',
          ),
        ),
        7 => 
        array (
          0 => 
          array (
            'name' => 'total_amount',
            'label' => 'LBL_GRAND_TOTAL',
          ),
        ),
      ),
    ),
  ),
);
?>
