Plugin Directory

Changeset 2979275


Ignore:
Timestamp:
10/15/2023 11:04:18 PM (2 years ago)
Author:
kamilml
Message:

1.3.15

Location:
apisunat/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • apisunat/trunk/README.txt

    r2979254 r2979275  
    55Requires at least: 5.8
    66Tested up to: 6.3.2
    7 Stable tag: 1.3.14
     7Stable tag: 1.3.15
    88Requires PHP: 7.4
    99License: GPLv3 or later
     
    7676== Changelog ==
    7777
     78= 1.3.15 =
     79* Correcciones en textos y descripciones varios
     80* Tipo de CPE por defecto ahora es BOLETA con DNI
     81
    7882= 1.3.14 =
    7983(1.3.1 - 1.3.14) Correcciones en el envío automático, envío masivo, inputs de configuración fallando, mal uso de queries con filtros y data innecesaria, limpiando logs, etc
  • apisunat/trunk/admin/class-apisunat-admin.php

    r2979254 r2979275  
    288288
    289289        $document_types = array(
     290            $temp['_billing_apisunat_document_type']['value_03'] => 'BOLETA DE VENTA',
    290291            $temp['_billing_apisunat_document_type']['value_01'] => 'FACTURA',
    291             $temp['_billing_apisunat_document_type']['value_03'] => 'BOLETA DE VENTA',
    292292        );
    293293
    294294        $customer_id_types = array(
     295            $temp['_billing_apisunat_customer_id_type']['value_1'] => 'DNI',
    295296            $temp['_billing_apisunat_customer_id_type']['value_6'] => 'RUC',
    296             $temp['_billing_apisunat_customer_id_type']['value_1'] => 'DNI',
    297297            $temp['_billing_apisunat_customer_id_type']['value_7'] => 'PASAPORTE',
    298298            $temp['_billing_apisunat_customer_id_type']['value_B'] => 'OTROS (Doc. Extranjero)',
     
    308308                    }
    309309                    ?>>
    310                     <strong>Tipo de Documento:</strong>
     310                    <strong>Tipo de CPE:</strong>
    311311                    <?php echo $document_types[$document_type] ? esc_html($document_types[$document_type]) : 'No document type selected.'; ?>
    312312                </p>
     
    316316                    }
    317317                    ?>>
    318                     <strong>Tipo de Documento: </strong>
     318                    <strong>Tipo de Doc. del comprador: </strong>
    319319                    <?php echo $customer_id_types[$customer_id_type] ? esc_html($customer_id_types[$customer_id_type]) : 'No customer id type selected.'; ?>
    320320
     
    325325                    }
    326326                    ?>>
    327                     <strong>Número de Documento:</strong>
     327                    <strong>Número de Doc. del comprador:</strong>
    328328                    <?php echo $customer_id ? esc_html($customer_id) : 'No customer id'; ?>
    329329                </p>
     
    335335                array(
    336336                    'id'            => '_billing_apisunat_document_type',
    337                     'label'         => 'Tipo de Identificacion',
     337                    'label'         => 'Tipo de CPE',
    338338                    'wrapper_class' => 'form-field-wide',
    339339                    'value'         => $document_type,
     
    344344                array(
    345345                    'id'            => '_billing_apisunat_customer_id_type',
    346                     'label'         => 'Tipo de Documento',
     346                    'label'         => 'Tipo de Doc. del comprador',
    347347                    'wrapper_class' => 'form-field-wide',
    348348                    'value'         => $customer_id_type,
     
    353353                array(
    354354                    'id'            => '_billing_apisunat_customer_id',
    355                     'label'         => 'Número de Documento:',
     355                    'label'         => 'Número de Doc. del comprador',
    356356                    'value'         => $customer_id,
    357357                    'wrapper_class' => 'form-field-wide',
     
    973973            ),
    974974            array(
    975                 'title'    => 'Emitir CPE sin datos del comprador: ',
     975                'title'    => 'Permitir CPE sin Documento del comprador: ',
    976976                'type'     => 'select',
    977977                'name'     => 'apisunat_no_doc',
     
    11131113            ),
    11141114            array(
    1115                 'title'       => 'key para Tipo de Comprobante: ',
     1115                'title'       => 'key para Tipo de CPE: ',
    11161116                'type'        => 'input',
    11171117                'name'        => 'apisunat_key_tipo_comprobante',
     
    11461146            ),
    11471147            array(
    1148                 'title'       => 'key para Tipo de Documento: ',
     1148                'title'       => 'key para Tipo de Documento del comprador: ',
    11491149                'type'        => 'input',
    11501150                'name'        => 'apisunat_key_tipo_documento',
     
    12011201            ),
    12021202            array(
    1203                 'title'       => 'key para Número de Documento: ',
     1203                'title'       => 'key para Número de Documento del comprador: ',
    12041204                'type'        => 'input',
    12051205                'name'        => 'apisunat_key_numero_documento',
     
    12691269    {
    12701270        echo '<hr>';
    1271         echo '<h3>Configuración</h3>';
     1271        echo '<h3>Avanzado</h3>';
    12721272    }
    12731273
  • apisunat/trunk/apisunat.php

    r2979254 r2979275  
    1616 * Plugin URI:        https://github.com/kamilml/apisunat-for-woocommerce
    1717 * Description:       Emite tus comprobantes electrónicos para SUNAT-PERU directamente desde tu tienda en WooCommerce.
    18  * Version:           1.3.14
     18 * Version:           1.3.15
    1919 * Author:            APISUNAT
    2020 * Author URI:        https://apisunat.com/
  • apisunat/trunk/public/class-apisunat-public.php

    r2759521 r2979275  
    120120
    121121        $fields['billing_apisunat_document_type'] = array(
    122             'label'    => 'TIPO DE DOCUMENTO', // Add custom field label!
     122            'label'    => 'Comprobante de Pago', // Add custom field label!
    123123            'required' => true, // if field is required or not!
    124124            'clear'    => true, // add clear or not!
     
    126126            'class'    => array( 'form-row-wide' ), // add class name!
    127127            'options'  => array(
     128                '03' => 'BOLETA DE VENTA',
    128129                '01' => 'FACTURA',
    129                 '03' => 'BOLETA DE VENTA',
    130130            ),
    131131            'priority' => 21,
     
    133133
    134134        $fields['billing_apisunat_customer_id_type'] = array(
    135             'label'    => 'TIPO DE IDENTIFICACIÓN', // Add custom field label!
     135            'label'    => 'Tipo de Doc. identificación', // Add custom field label!
    136136            'required' => true, // if field is required or not!
    137137            'clear'    => true, // add clear or not!
     
    139139            'class'    => array( 'form-row-wide' ), // add class name!
    140140            'options'  => array(
     141                '1' => 'DNI',
    141142                '6' => 'RUC',
    142                 '1' => 'DNI',
    143143                '7' => 'PASAPORTE',
    144144                'B' => 'OTROS (Doc. Extranjero)',
     
    148148
    149149        $fields['billing_apisunat_customer_id'] = array(
    150             'label'       => 'Número del Documento',
     150            'label'       => 'Número de Doc. identificación',
    151151            'required'    => true,
    152152            'class'       => array( 'form-row-wide' ),
Note: See TracChangeset for help on using the changeset viewer.