Changeset 2979275
- Timestamp:
- 10/15/2023 11:04:18 PM (2 years ago)
- Location:
- apisunat/trunk
- Files:
-
- 4 edited
-
README.txt (modified) (2 diffs)
-
admin/class-apisunat-admin.php (modified) (12 diffs)
-
apisunat.php (modified) (1 diff)
-
public/class-apisunat-public.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
apisunat/trunk/README.txt
r2979254 r2979275 5 5 Requires at least: 5.8 6 6 Tested up to: 6.3.2 7 Stable tag: 1.3.1 47 Stable tag: 1.3.15 8 8 Requires PHP: 7.4 9 9 License: GPLv3 or later … … 76 76 == Changelog == 77 77 78 = 1.3.15 = 79 * Correcciones en textos y descripciones varios 80 * Tipo de CPE por defecto ahora es BOLETA con DNI 81 78 82 = 1.3.14 = 79 83 (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 288 288 289 289 $document_types = array( 290 $temp['_billing_apisunat_document_type']['value_03'] => 'BOLETA DE VENTA', 290 291 $temp['_billing_apisunat_document_type']['value_01'] => 'FACTURA', 291 $temp['_billing_apisunat_document_type']['value_03'] => 'BOLETA DE VENTA',292 292 ); 293 293 294 294 $customer_id_types = array( 295 $temp['_billing_apisunat_customer_id_type']['value_1'] => 'DNI', 295 296 $temp['_billing_apisunat_customer_id_type']['value_6'] => 'RUC', 296 $temp['_billing_apisunat_customer_id_type']['value_1'] => 'DNI',297 297 $temp['_billing_apisunat_customer_id_type']['value_7'] => 'PASAPORTE', 298 298 $temp['_billing_apisunat_customer_id_type']['value_B'] => 'OTROS (Doc. Extranjero)', … … 308 308 } 309 309 ?>> 310 <strong>Tipo de Documento:</strong>310 <strong>Tipo de CPE:</strong> 311 311 <?php echo $document_types[$document_type] ? esc_html($document_types[$document_type]) : 'No document type selected.'; ?> 312 312 </p> … … 316 316 } 317 317 ?>> 318 <strong>Tipo de Doc umento: </strong>318 <strong>Tipo de Doc. del comprador: </strong> 319 319 <?php echo $customer_id_types[$customer_id_type] ? esc_html($customer_id_types[$customer_id_type]) : 'No customer id type selected.'; ?> 320 320 … … 325 325 } 326 326 ?>> 327 <strong>Número de Doc umento:</strong>327 <strong>Número de Doc. del comprador:</strong> 328 328 <?php echo $customer_id ? esc_html($customer_id) : 'No customer id'; ?> 329 329 </p> … … 335 335 array( 336 336 'id' => '_billing_apisunat_document_type', 337 'label' => 'Tipo de Identificacion',337 'label' => 'Tipo de CPE', 338 338 'wrapper_class' => 'form-field-wide', 339 339 'value' => $document_type, … … 344 344 array( 345 345 'id' => '_billing_apisunat_customer_id_type', 346 'label' => 'Tipo de Doc umento',346 'label' => 'Tipo de Doc. del comprador', 347 347 'wrapper_class' => 'form-field-wide', 348 348 'value' => $customer_id_type, … … 353 353 array( 354 354 'id' => '_billing_apisunat_customer_id', 355 'label' => 'Número de Doc umento:',355 'label' => 'Número de Doc. del comprador', 356 356 'value' => $customer_id, 357 357 'wrapper_class' => 'form-field-wide', … … 973 973 ), 974 974 array( 975 'title' => ' Emitir CPE sin datosdel comprador: ',975 'title' => 'Permitir CPE sin Documento del comprador: ', 976 976 'type' => 'select', 977 977 'name' => 'apisunat_no_doc', … … 1113 1113 ), 1114 1114 array( 1115 'title' => 'key para Tipo de C omprobante: ',1115 'title' => 'key para Tipo de CPE: ', 1116 1116 'type' => 'input', 1117 1117 'name' => 'apisunat_key_tipo_comprobante', … … 1146 1146 ), 1147 1147 array( 1148 'title' => 'key para Tipo de Documento : ',1148 'title' => 'key para Tipo de Documento del comprador: ', 1149 1149 'type' => 'input', 1150 1150 'name' => 'apisunat_key_tipo_documento', … … 1201 1201 ), 1202 1202 array( 1203 'title' => 'key para Número de Documento : ',1203 'title' => 'key para Número de Documento del comprador: ', 1204 1204 'type' => 'input', 1205 1205 'name' => 'apisunat_key_numero_documento', … … 1269 1269 { 1270 1270 echo '<hr>'; 1271 echo '<h3> Configuración</h3>';1271 echo '<h3>Avanzado</h3>'; 1272 1272 } 1273 1273 -
apisunat/trunk/apisunat.php
r2979254 r2979275 16 16 * Plugin URI: https://github.com/kamilml/apisunat-for-woocommerce 17 17 * Description: Emite tus comprobantes electrónicos para SUNAT-PERU directamente desde tu tienda en WooCommerce. 18 * Version: 1.3.1 418 * Version: 1.3.15 19 19 * Author: APISUNAT 20 20 * Author URI: https://apisunat.com/ -
apisunat/trunk/public/class-apisunat-public.php
r2759521 r2979275 120 120 121 121 $fields['billing_apisunat_document_type'] = array( 122 'label' => ' TIPO DE DOCUMENTO', // Add custom field label!122 'label' => 'Comprobante de Pago', // Add custom field label! 123 123 'required' => true, // if field is required or not! 124 124 'clear' => true, // add clear or not! … … 126 126 'class' => array( 'form-row-wide' ), // add class name! 127 127 'options' => array( 128 '03' => 'BOLETA DE VENTA', 128 129 '01' => 'FACTURA', 129 '03' => 'BOLETA DE VENTA',130 130 ), 131 131 'priority' => 21, … … 133 133 134 134 $fields['billing_apisunat_customer_id_type'] = array( 135 'label' => 'T IPO DE IDENTIFICACIÓN', // Add custom field label!135 'label' => 'Tipo de Doc. identificación', // Add custom field label! 136 136 'required' => true, // if field is required or not! 137 137 'clear' => true, // add clear or not! … … 139 139 'class' => array( 'form-row-wide' ), // add class name! 140 140 'options' => array( 141 '1' => 'DNI', 141 142 '6' => 'RUC', 142 '1' => 'DNI',143 143 '7' => 'PASAPORTE', 144 144 'B' => 'OTROS (Doc. Extranjero)', … … 148 148 149 149 $fields['billing_apisunat_customer_id'] = array( 150 'label' => 'Número de l Documento',150 'label' => 'Número de Doc. identificación', 151 151 'required' => true, 152 152 'class' => array( 'form-row-wide' ),
Note: See TracChangeset
for help on using the changeset viewer.