Plugin Directory

Changeset 3422044


Ignore:
Timestamp:
12/17/2025 03:20:12 PM (3 months ago)
Author:
kakaroto84
Message:

4.0.0

  • New module to void invoices.
  • Added tools to obtain data for integration with other systems.
  • New credit note module: create, review, and link with the company
Location:
wc-yabi
Files:
8 added
1 deleted
18 edited

Legend:

Unmodified
Added
Removed
  • wc-yabi/trunk/content/admin.php

    r3218446 r3422044  
    1 <?php if( $ok ): ?>
     1<?php
     2/**
     3 * Yabi Admin Page Template
     4 * Plantilla moderna con tabs AJAX
     5 *
     6 * @package yabi_wc
     7 * @version 4.0.0
     8 */
    29
    3 <div class="notice notice-success is-dismissible inline">
    4     <p><?php echo __('Setting saved!','yabi-wc'); ?></p>
     10if ( ! defined( 'ABSPATH' ) ) {
     11    exit;
     12}
     13
     14$has_settings = false !== get_option( 'yabi_settings' );
     15$current_tab = isset( $tab ) ? $tab : 'information';
     16?>
     17
     18<div class="yabi-admin-wrap">
     19   
     20    <!-- Header -->
     21    <div class="yabi-header">
     22        <div class="yabi-header-icon">
     23            <span class="dashicons dashicons-media-spreadsheet"></span>
     24        </div>
     25        <div class="yabi-header-content">
     26            <h1><?php echo esc_html__('Yabi for WooCommerce','yabi-wc'); ?></h1>
     27            <p><?php echo esc_html__('Electronic invoicing integration for Colombia','yabi-wc'); ?></p>
     28        </div>
     29    </div>
     30   
     31    <!-- Container Principal -->
     32    <div class="yabi-container">
     33       
     34        <!-- Navegación de Tabs -->
     35        <nav class="yabi-tabs-nav">
     36            <div class="yabi-tab-item">
     37                <a href="#information"
     38                   class="yabi-tab-link <?php echo $current_tab === 'information' || empty($current_tab) ? 'active' : ''; ?>"
     39                   data-tab="information">
     40                    <span class="dashicons dashicons-info"></span>
     41                    <?php echo esc_html__('Information','yabi-wc'); ?>
     42                </a>
     43            </div>
     44           
     45            <div class="yabi-tab-item">
     46                <a href="#settings"
     47                   class="yabi-tab-link <?php echo $current_tab === 'settings' ? 'active' : ''; ?>"
     48                   data-tab="settings">
     49                    <span class="dashicons dashicons-admin-settings"></span>
     50                    <?php echo esc_html__('Settings','yabi-wc'); ?>
     51                </a>
     52            </div>
     53           
     54            <?php if( $has_settings ): ?>
     55            <div class="yabi-tab-item">
     56                <a href="#dian"
     57                   class="yabi-tab-link <?php echo $current_tab === 'dian' ? 'active' : ''; ?>"
     58                   data-tab="dian">
     59                    <span class="dashicons dashicons-database"></span>
     60                    <?php echo esc_html__('DIAN','yabi-wc'); ?>
     61                </a>
     62            </div>
     63           
     64            <div class="yabi-tab-item">
     65                <a href="#cancel_invoice"
     66                   class="yabi-tab-link <?php echo $current_tab === 'cancel_invoice' ? 'active' : ''; ?>"
     67                   data-tab="cancel_invoice">
     68                    <span class="dashicons dashicons-dismiss"></span>
     69                    <?php echo esc_html__('Cancel Invoice','yabi-wc'); ?>
     70                </a>
     71            </div>
     72            <?php endif; ?>
     73        </nav>
     74       
     75        <!-- Contenido de Tabs -->
     76        <div class="yabi-tab-content" id="yabi-tab-content">
     77            <div class="yabi-loader">
     78                <div class="yabi-spinner"></div>
     79                <span class="yabi-loader-text"><?php echo esc_html__('Loading...','yabi-wc'); ?></span>
     80            </div>
     81        </div>
     82       
     83    </div>
     84
     85    <!-- Notificaciones -->
     86    <div id="yabi-notifications">
     87        <?php if( $ok ): ?>
     88        <div class="yabi-notice yabi-notice-success auto-dismiss">
     89            <span class="yabi-notice-icon">✓</span>
     90            <span class="yabi-notice-content"><?php echo esc_html__('Settings saved successfully!','yabi-wc'); ?></span>
     91            <button type="button" class="yabi-notice-dismiss">×</button>
     92        </div>
     93        <?php endif; ?>
     94    </div>
     95   
    596</div>
    6 
    7 <?php endif; ?>
    8  
    9 <div class="wrap">     
    10    
    11     <div class="postbox">   
    12                
    13         <div class="inside">
    14        
    15             <h1><?php echo __('Yabi for WooCommerce','yabi-wc'); ?></h1>
    16        
    17             <nav class="nav-tab-wrapper">
    18                 <a href="admin.php?page=yabi" class="nav-tab <?php if( empty( $tab ) ):?>nav-tab-active<?php endif; ?>"><?php echo __('Information','yabi-wc'); ?></a>
    19                 <a href="admin.php?page=yabi&tab=settings" class="nav-tab <?php if( $tab == 'settings'):?>nav-tab-active<?php endif; ?>"><?php echo __('Settings','yabi-wc'); ?></a>
    20                
    21                 <?php if( false !== get_option( 'yabi_settings' ) ): ?>
    22                
    23                     <a href="admin.php?page=yabi&tab=dian" class="nav-tab <?php if( $tab == 'dian'):?>nav-tab-active<?php endif; ?>"><?php echo __('DIAN','yabi-wc'); ?></a>
    24                    
    25                 <?php endif; ?>       
    26                                
    27             </nav>
    28            
    29             <div class="tab-content">
    30                 <?php switch( $tab ) :
    31                
    32                     case 'settings':
    33                         require_once( YABI_PLUGIN_PATH . 'content/settings.php' );
    34                         break;
    35                    
    36                     case 'dian':
    37                         require_once( YABI_PLUGIN_PATH . 'content/dian.php' );
    38                         break; 
    39                        
    40                     default:
    41                         require_once( YABI_PLUGIN_PATH . 'content/information.php' );
    42                         break;
    43                        
    44                 endswitch; ?>
    45             </div>
    46        
    47         </div>
    48        
    49     </div>
    50    
    51 </div>
  • wc-yabi/trunk/content/dian.php

    r3218446 r3422044  
    1 <style>
    2 table {
    3     width: 100%;
    4     border-collapse: collapse;
     1<?php
     2/**
     3 * Yabi DIAN Tab Content
     4 *
     5 * @package yabi_wc
     6 * @version 4.0.0
     7 */
     8
     9if ( ! defined( 'ABSPATH' ) ) {
     10    exit;
    511}
    6 th, td {
    7     border: 1px solid #ddd;
    8     padding: 8px;
    9     text-align: left;
    10 }
    11 th {
    12     background-color: #f4f4f4;
    13 }
     12?>
    1413
    15 .card
    16 {
    17     max-width: 100%;
    18 }
     14<!-- Actualizar resolución -->
     15<div class="yabi-card">
     16    <div class="yabi-card-header">
     17        <div class="yabi-card-icon">
     18            <span class="dashicons dashicons-update"></span>
     19        </div>
     20        <h2 class="yabi-card-title"><?php echo esc_html__('Update resolution in yabi.co','yabi-wc'); ?></h2>
     21    </div>
     22    <div class="yabi-card-body">
     23        <p><?php echo esc_html__('Create the resolution in the DIAN Muisca system and assign it in the DIAN "Electronic Billing" portal to Neia / Yabi.co.','yabi-wc'); ?></p>
     24       
     25        <div class="yabi-info-box">
     26            <div class="yabi-info-box-icon">📋</div>
     27            <div class="yabi-info-box-content">
     28                <h3><?php echo esc_html__('Note','yabi-wc'); ?></h3>
     29                <p><?php echo esc_html__('After the DIAN has created the resolutions, please click on the "Update" button','yabi-wc'); ?></p>
     30            </div>
     31        </div>
     32       
     33        <div class="yabi-btn-group" style="align-items: center;">
     34            <button type="button" id="update-dian" class="yabi-btn yabi-btn-primary">
     35                <span class="dashicons dashicons-update"></span>
     36                <?php echo esc_html__('Update','yabi-wc'); ?>
     37            </button>
     38            <div id="thespiner" class="spinner" style="float:none;margin:0;"></div>
     39        </div>
     40       
     41        <div id="response1" style="margin-top: 15px;"></div>
     42    </div>
     43</div>
    1944
    20 #check-prefix{
    21     display: none;
    22 }
     45<!-- Verificar prefijos -->
     46<div class="yabi-card">
     47    <div class="yabi-card-header">
     48        <div class="yabi-card-icon" style="background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);">
     49            <span class="dashicons dashicons-search"></span>
     50        </div>
     51        <h2 class="yabi-card-title"><?php echo esc_html__('Checking resolution prefixes in the Yabi system','yabi-wc'); ?></h2>
     52    </div>
     53    <div class="yabi-card-body">
     54        <p><?php echo esc_html__('Click the "Check" button to generate a table with the latest resolutions available in Yabi','yabi-wc'); ?></p>
     55       
     56        <div class="yabi-btn-group" style="align-items: center;">
     57            <button type="button" id="show-dian" class="yabi-btn yabi-btn-success">
     58                <span class="dashicons dashicons-visibility"></span>
     59                <?php echo esc_html__('Check','yabi-wc'); ?>
     60            </button>
     61            <div id="thespiner2" class="spinner" style="float:none;margin:0;"></div>
     62        </div>
     63       
     64        <div id="response2" style="margin-top: 15px;"></div>
     65       
     66        <div id="check-prefix" style="display: none; margin-top: 20px;">
     67            <div class="yabi-table-wrapper">
     68                <table id="data-table" class="yabi-table">
     69                    <thead>
     70                        <tr>
     71                            <th><?php echo esc_html__('Start Date','yabi-wc'); ?></th>
     72                            <th><?php echo esc_html__('Resolution Number','yabi-wc'); ?></th>
     73                            <th><?php echo esc_html__('Prefix ID','yabi-wc'); ?></th>
     74                            <th><?php echo esc_html__('Prefix','yabi-wc'); ?></th>
     75                            <th><?php echo esc_html__('Environment','yabi-wc'); ?></th>
     76                            <th><?php echo esc_html__('End Date','yabi-wc'); ?></th>
     77                            <th><?php echo esc_html__('Document Type','yabi-wc'); ?></th>
     78                            <th><?php echo esc_html__('Business Unit Uuid','yabi-wc'); ?></th>
     79                        </tr>
     80                    </thead>
     81                    <tbody>
     82                        <!-- Filas generadas dinámicamente -->
     83                    </tbody>
     84                </table>
     85            </div>
     86        </div>
     87    </div>
     88</div>
    2389
    24 </style>
    25 
    26 <script type="text/javascript">
    27 
    28 jQuery( document ).ready(function(){
    29 
    30     jQuery( '#show-dian' ).on( 'click', function(e){
     90<!-- Asociar prefijo -->
     91<div class="yabi-card">
     92    <div class="yabi-card-header">
     93        <div class="yabi-card-icon" style="background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);">
     94            <span class="dashicons dashicons-admin-links"></span>
     95        </div>
     96        <h2 class="yabi-card-title"><?php echo esc_html__('Associates a prefix with an organizational unit on Yabi','yabi-wc'); ?></h2>
     97    </div>
     98    <div class="yabi-card-body">
     99        <p><?php echo esc_html__('Select the prefix you want to associate and click the "Save" button. First, click "Check" to load available prefixes.','yabi-wc'); ?></p>
    31100       
    32         e.preventDefault();
     101        <div class="yabi-form-row">
     102            <div class="yabi-form-group">
     103                <label class="yabi-label" for="prefix-select"><?php echo esc_html__('Prefix','yabi-wc'); ?></label>
     104                <select id="prefix-select" name="prefix" class="yabi-select">
     105                    <option value=""><?php echo esc_html__('Select a prefix','yabi-wc'); ?></option>
     106                </select>
     107            </div>
     108        </div>
    33109       
    34         showResolution();
     110        <div class="yabi-btn-group" style="align-items: center;">
     111            <button type="button" id="update-prefix" class="yabi-btn yabi-btn-primary">
     112                <span class="dashicons dashicons-saved"></span>
     113                <?php echo esc_html__('Save','yabi-wc'); ?>
     114            </button>
     115            <div id="thespiner3" class="spinner" style="float:none;margin:0;"></div>
     116        </div>
    35117       
    36     });
    37 
    38     jQuery( '#update-dian' ).on( 'click', function(e){
    39        
    40         e.preventDefault();
    41        
    42         updateResolution();
    43        
    44     });
    45    
    46     jQuery( '#update-prefix' ).on( 'click', function(e){
    47        
    48         e.preventDefault();
    49        
    50         savePrefix();
    51        
    52     });
    53    
    54 });
    55 
    56 function savePrefix()
    57 {
    58     jQuery( '#thespiner3' ).addClass( 'is-active' );
    59     jQuery( '#response1, #response2, #response3' ).empty();
    60     jQuery( '#update-prefix' ).attr( 'disabled', true );
    61     const prefix = jQuery( '#prefix' ).val();
    62    
    63     jQuery.post( '<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>', { 'action': 'yabi_save_prefix', 'code': 'OYT4+H7@az1', 'prefix': prefix } )
    64         .done(function( data ) {           
    65            
    66             if( 'FAIL' == data )
    67             {
    68                 yabiMessage3( 'error', '<?php echo __( 'Unexpected error, try again later.!', 'yabi-wc' ); ?>', true );
    69             }
    70             else
    71             {
    72                 var obj = JSON.parse( data );
    73                
    74                 if( parseInt( obj.error ) == 1 )
    75                 {
    76                     yabiMessage3( 'error', obj.message, true );
    77                 }
    78                 else
    79                 {
    80                     yabiMessage3( 'success', '<?php echo __( 'Success', 'yabi-wc' ); ?>', false );
    81                 }
    82             }           
    83         });
    84 }
    85 
    86 function showResolution()
    87 {
    88     jQuery( '#thespiner2' ).addClass( 'is-active' );
    89     jQuery( '#response1, #response2, #response3' ).empty();
    90     jQuery( '#show-dian' ).attr( 'disabled', true );
    91     jQuery( '#check-prefix' ).hide();
    92    
    93     jQuery.post( '<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>', { 'action': 'yabi_show_resolution', 'code': 'kE0W+H7@az1' } )
    94         .done(function( data ) {           
    95            
    96             if( 'FAIL' == data )
    97             {
    98                 yabiMessage2( 'error', '<?php echo __( 'Unexpected error, try again later.!', 'yabi-wc' ); ?>', true );
    99             }
    100             else
    101             {
    102                 var obj = JSON.parse( data );
    103                
    104                 if( parseInt( obj.error ) == 1 )
    105                 {
    106                     yabiMessage2( 'error', obj.message, true );
    107                 }
    108                 else
    109                 {
    110                     yabiMessage2( 'success', '<?php echo __( 'Success', 'yabi-wc' ); ?>', false );
    111                    
    112                     const tableBody = document.querySelector("#data-table tbody");
    113                    
    114                     obj.message.forEach(item => {
    115                         const node = item.node;
    116                         const row = document.createElement("tr");
    117            
    118                         const columns = [
    119                             node.startDate || "N/A",
    120                             node.resolutionNumber || "N/A",
    121                             node.prefixId || "N/A",
    122                             node.prefix || "N/A",
    123                             node.environment || "N/A",
    124                             node.endDate || "N/A",
    125                             node.documentType || "N/A"
    126                         ];
    127            
    128                         columns.forEach(col => {
    129                             const cell = document.createElement("td");
    130                             cell.textContent = col;
    131                             row.appendChild(cell);
    132                         });
    133            
    134                         tableBody.appendChild(row);
    135                     });
    136                    
    137                     jQuery( '#check-prefix' ).show();
    138                 }
    139             }           
    140         });
    141 }
    142 
    143 function updateResolution()
    144 {
    145     jQuery( '#thespiner' ).addClass( 'is-active' );
    146     jQuery( '#response1, #response2, #response3' ).empty();
    147     jQuery( '#update-dian' ).attr( 'disabled', true );
    148    
    149     jQuery.post( '<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>', { 'action': 'yabi_update_resolution', 'code': 'kE0W+H7@qb4' } )
    150         .done(function( data ) {           
    151            
    152             if( 'FAIL' == data )
    153             {
    154                 yabiMessage( 'error', '<?php echo __( 'Unexpected error, try again later.!', 'yabi-wc' ); ?>', true );
    155             }
    156             else
    157             {
    158                 var obj = JSON.parse( data );
    159                
    160                 if( parseInt( obj.error ) == 1 )
    161                 {
    162                     yabiMessage( 'error', obj.message, true );
    163                 }
    164                 else
    165                 {
    166                     yabiMessage( 'success', obj.message, false );
    167                 }
    168             }           
    169         });
    170 }
    171 
    172 function yabiMessage( type, message, show )
    173 {
    174     jQuery( '#thespiner' ).removeClass( 'is-active' );
    175     jQuery( '#response1' ).html( '<div class="notice notice-'+ type +' inline"><p>'+ message +'</p></div>' );
    176    
    177     if( show )
    178     {
    179         jQuery( '#update-dian' ).attr( 'disabled', false );
    180     }
    181 }
    182 
    183 function yabiMessage2( type, message, show )
    184 {
    185     jQuery( '#thespiner2' ).removeClass( 'is-active' );
    186     jQuery( '#response2' ).html( '<div class="notice notice-'+ type +' inline"><p>'+ message +'</p></div>' );
    187    
    188     if( show )
    189     {
    190         jQuery( '#show-dian' ).attr( 'disabled', false );
    191     }
    192 }
    193 
    194 function yabiMessage3( type, message, show )
    195 {
    196     jQuery( '#thespiner3' ).removeClass( 'is-active' );
    197     jQuery( '#response3' ).html( '<div class="notice notice-'+ type +' inline"><p>'+ message +'</p></div>' );
    198    
    199     if( show )
    200     {
    201         jQuery( '#update-prefix' ).attr( 'disabled', false );
    202     }
    203 }
    204 
    205 </script>
    206 
    207 <div class="wrap">
    208    
    209     <h1><?php echo __( 'DIAN','yabi-wc' ); ?></h1> 
    210    
    211     <div class="card">
    212  
    213         <h2><?php echo __( 'Update resolution in yabi.co','yabi-wc' ); ?></h2>
    214        
    215         <p><?php echo __( 'Create the resolution in the DIAN Muisca system and assign it in the DIAN “Electronic Billing” portal to Neia / Yabi.co.','yabi-wc' ); ?></p>
    216        
    217         <p><?php echo __( 'After the DIAN has created the resolutions, please click on the "Update" button','yabi-wc' ); ?></p>
    218        
    219         <input class="button-primary" id="update-dian" type="button" name="Update" value="<?php echo __( 'Update','yabi-wc' ); ?>" />
    220    
    221         <div id="thespiner" class="spinner" style="float:none;width:auto;height:auto;padding:10px 0 10px 30px;background-position:0;"></div>
    222    
    223     </div>       
    224    
    225     <div id="response1"></div>
    226    
    227     <div class="card">
    228  
    229         <h2><?php echo __( 'Checking resolution prefixes in the Yabi system','yabi-wc' ); ?></h2>
    230        
    231         <p><?php echo __( 'Click the "Check" button to generate a table with the latest resolutions available in Yabi','yabi-wc' ); ?></p>
    232        
    233         <input class="button-primary" id="show-dian" type="button" name="Update" value="<?php echo __( 'Check','yabi-wc' ); ?>" />
    234    
    235         <div id="thespiner2" class="spinner" style="float:none;width:auto;height:auto;padding:10px 0 10px 30px;background-position:0;"></div>
    236        
    237         <div id="check-prefix">
    238        
    239             <table id="data-table">
    240                 <thead>
    241                     <tr>
    242                         <th><?php echo __( 'Start Date', 'yabi-wc' ); ?></th>
    243                         <th><?php echo __( 'Resolution Number', 'yabi-wc' ); ?></th>
    244                         <th><?php echo __( 'Prefix ID', 'yabi-wc' ); ?></th>
    245                         <th><?php echo __( 'Prefix', 'yabi-wc' ); ?></th>
    246                         <th><?php echo __( 'Environment', 'yabi-wc' ); ?></th>
    247                         <th><?php echo __( 'End Date', 'yabi-wc' ); ?></th>
    248                         <th><?php echo __( 'Document Type', 'yabi-wc' ); ?></th>
    249                     </tr>
    250                 </thead>
    251                 <tbody>
    252                     <!-- Filas generadas dinámicamente -->
    253                 </tbody>
    254             </table>
    255            
    256         </div>
    257    
    258     </div>
    259    
    260     <div id="response2"></div>
    261    
    262     <div class="card">
    263    
    264         <h2><?php echo __( 'Associates a prefix with an organizational unit on Yabi','yabi-wc' ); ?></h2>
    265        
    266         <p><?php echo __( 'Enter the prefix you want to add in the "prefix" field and click the "Save" button.' ); ?></p>
    267        
    268         <label for="prefix">
    269        
    270             <?php echo __( 'Prefix','yabi-wc' ); ?>:
    271        
    272             <input class="regular-text" type="text" name="prefix" id="prefix" value="" placeholder="xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" />
    273        
    274         </label>
    275        
    276         <input class="button-primary" id="update-prefix" type="button" name="Save" value="<?php echo __( 'Save','yabi-wc' ); ?>" />
    277    
    278         <div id="thespiner3" class="spinner" style="float:none;width:auto;height:auto;padding:10px 0 10px 30px;background-position:0;"></div>
    279    
    280     </div>
    281    
    282     <div id="response3"></div>
    283    
     118        <div id="response3" style="margin-top: 15px;"></div>
     119    </div>
    284120</div>
  • wc-yabi/trunk/content/information.php

    r3121708 r3422044  
    1 <div class="wrap">
     1<?php
     2/**
     3 * Yabi Information Tab Content
     4 *
     5 * @package yabi_wc
     6 * @version 4.0.0
     7 */
    28
    3     <div id="icon-options-general" class="icon32"></div>
    4     <h1><?php echo __('Information','yabi-wc'); ?></h1>
     9if ( ! defined( 'ABSPATH' ) ) {
     10    exit;
     11}
     12?>
    513
    6     <div id="poststuff">
    7 
    8         <div id="post-body" class="metabox-holder columns-2">
    9 
    10             <!-- main content -->
    11             <div id="post-body-content">
    12 
    13                 <div class="meta-box-sortables ui-sortable">
    14 
    15                     <div class="postbox">
    16                    
    17                         <h2><span><?php echo __('Instructions for settings','yabi-wc'); ?></span></h2>
    18                        
    19                          <div class="inside">
    20                        
    21                             <p><?php echo __('Invoices can be defined in Cash or In Credit','yabi-wc'); ?></p>             
    22                            
    23                             <ul>
    24                                 <li><?php echo __('Cash: The payment is made immediately.','yabi-wc'); ?></li>
    25                                 <li><?php echo __('In Credit: The payment is credited and you can select the number of days of the credit, generally it is 30 days','yabi-wc'); ?></li>
    26                             </ul>   
    27                            
    28                             <p><?php echo __('I agree to modify the checkout','yabi-wc'); ?></p>   
    29                            
    30                             <ul>
    31                                 <li><?php echo __('This option allows you to modify the default Woocommerce form to allow the custom fields that Yabi uses, such as IDs or NIT. It also displays the departments and municipalities of Colombia with their respective DIAN codes. It also generates a link so that people can generate the address as necessary for the DIAN.','yabi-wc'); ?></li>
    32                             </ul>   
    33                            
    34                             <p><?php echo __('Invoice type','yabi-wc'); ?></p>
    35                            
    36                             <ul>
    37                                 <li><?php echo __('Automatic: Generates automatic invoices, this depends on whether the data has been filled out correctly.','yabi-wc'); ?></li>
    38                                 <li><?php echo __('Manual: Generate invoices manually in order administration','yabi-wc'); ?></li>
    39                             </ul>
    40                            
    41                         </div>
    42                    
    43                         <p>&nbsp;</p>
    44                         <hr/>
    45                         <p>&nbsp;</p>
    46                    
    47                         <h2><span><?php echo __('Instructions for invoice','yabi-wc'); ?></span></h2>
    48                        
    49                          <div class="inside">
    50                        
    51                             <p><?php echo __('The fields of the invoice are the name and the consecutive number of the invoice, before the DIAN the requirement for the numbering had to be passed. Please fill in the corresponding data. Example: SETT-26.','yabi-wc'); ?></p>                 
    52                            
    53                             <ol>                               
    54                                 <li><?php echo __('Go to','yabi-wc'); ?> <a href="<?php echo admin_url('/admin.php?page=yabi&tab=settings'); ?>"><?php echo __('settings page','yabi-wc'); ?></a>.</li>
    55                                 <li><?php echo __('Fill the text field "Invoice Name" with the invoice name. Example: "SETT-", "SE"','yabi-wc'); ?></li>
    56                                 <li><?php echo __('Fill the text field with the consecutive invoice. Example: if the consecutive number is 25, please fill the text field with 26.','yabi-wc'); ?></li>
    57                                 <li><?php echo __('Click in button &quot;Save&quot;.','yabi-wc'); ?></li>
    58                                
    59                             </ol>
    60                            
    61                         </div> 
    62                    
    63                         <p>&nbsp;</p>
    64                         <hr/>
    65                         <p>&nbsp;</p>
    66 
    67                         <h2><span><?php echo __('Instructions for client','yabi-wc'); ?></span></h2>
    68 
    69                         <div class="inside">
    70                            
    71                             <ol>
    72                                 <li><?php echo __('To get started, contact Yabi to send you the personalized Token of your account by email.','yabi-wc'); ?></li>
    73                                 <li><?php echo __('Enter the Yabi system','yabi-wc'); ?> <a href="https://einvoices.yabi.co/public/login" target="_blank">https://einvoices.yabi.co/public/login</a> <?php echo __('with your username and password.','yabi-wc'); ?></li>
    74                                 <li><?php echo __('Click on &quot;Business Units&quot;.','yabi-wc'); ?></li>
    75                                 <li><?php echo __('Click on a business unit, this displays the information of the business unit.','yabi-wc'); ?></li>
    76                                 <li><?php echo __('Copy the code of the business unit.','yabi-wc'); ?></li>
    77                                 <li><?php echo __('Go to','yabi-wc'); ?> <a href="<?php echo admin_url('/admin.php?page=yabi&tab=settings'); ?>"><?php echo __('settings page','yabi-wc'); ?></a>.</li>
    78                                 <li><?php echo __('Paste the previously copied code in the text field &quot;Business Unit Uuid&quot;.','yabi-wc'); ?></li>
    79                                 <li><?php echo __('Copy and paste  the personalized Token in the text field &quot;Token&quot;.','yabi-wc'); ?></li>
    80                                 <li><?php echo __('Copy the example URL client in the text field &quot;URL client&quot;.','yabi-wc'); ?></li>
    81                                 <li><?php echo __('Click in button &quot;Save&quot;.','yabi-wc'); ?></li>
    82                                
    83                             </ol>
    84                            
    85                         </div>
    86                         <!-- .inside -->
    87                        
    88                         <p>&nbsp;</p>
    89                         <hr/>
    90                         <p>&nbsp;</p>
    91 
    92                         <h2><span><?php echo __('How to generate an invoice?','yabi-wc'); ?></span></h2>
    93 
    94                         <div class="inside">
    95                        
    96                             <p><?php echo __('The process to generate an invoice.','yabi-wc'); ?></p>
    97                            
    98                             <p><?php echo __('The WooCommerce purchase must be in a completed state, in order to generate the electronic invoice. (Automatic or Manual)','yabi-wc'); ?></p>
    99                            
    100                             <ol>
    101                                 <li><?php echo __('Click on WooCommerce orders','yabi-wc'); ?></li>
    102                                 <li><?php echo __('Find the order in the completed state for which you want to generate an invoice','yabi-wc'); ?></li>
    103                                 <li><?php echo __('Click on the order to open the details','yabi-wc'); ?></li>
    104                                 <li><?php echo __('When displaying the order information, the Yabi module will be displayed at the bottom','yabi-wc'); ?></li>
    105                                 <li><?php echo __('You must select the type of person','yabi-wc'); ?></li>
    106                                 <li><?php echo __('Depending on the type of person, you must complete the additional information','yabi-wc'); ?></li>
    107                                 <li><?php echo __('Click on the "Save" button to save the information of the fields','yabi-wc'); ?></li>
    108                                 <li><?php echo __('Click on the button "Save and generate" for when you are sure to generate the invoice, after the invoice is generated you will not be able to edit the fields again.','yabi-wc'); ?></li>
    109                                 <li><?php echo __('To download the invoice you have to enter the Yabi platform','yabi-wc'); ?></li>
    110                             </ol>
    111                        
    112                         </div>
    113 
     14<div class="yabi-grid yabi-grid-2" style="grid-template-columns: 1fr 300px;">
     15   
     16    <!-- Contenido Principal -->
     17    <div class="yabi-main-content">
     18       
     19        <!-- Instrucciones de configuración -->
     20        <div class="yabi-card">
     21            <div class="yabi-card-header">
     22                <div class="yabi-card-icon">
     23                    <span class="dashicons dashicons-admin-settings"></span>
     24                </div>
     25                <h2 class="yabi-card-title"><?php echo esc_html__('Instructions for settings','yabi-wc'); ?></h2>
     26            </div>
     27            <div class="yabi-card-body">
     28                <p><?php echo esc_html__('Invoices can be defined in Cash or In Credit','yabi-wc'); ?></p>
     29               
     30                <ul class="yabi-list">
     31                    <li class="yabi-list-item">
     32                        <span class="yabi-list-number">1</span>
     33                        <span class="yabi-list-content"><strong><?php echo esc_html__('Cash','yabi-wc'); ?>:</strong> <?php echo esc_html__('The payment is made immediately.','yabi-wc'); ?></span>
     34                    </li>
     35                    <li class="yabi-list-item">
     36                        <span class="yabi-list-number">2</span>
     37                        <span class="yabi-list-content"><strong><?php echo esc_html__('In Credit','yabi-wc'); ?>:</strong> <?php echo esc_html__('The payment is credited and you can select the number of days of the credit, generally it is 30 days','yabi-wc'); ?></span>
     38                    </li>
     39                </ul>
     40               
     41                <div class="yabi-divider"></div>
     42               
     43                <h3><?php echo esc_html__('I agree to modify the checkout','yabi-wc'); ?></h3>
     44                <p><?php echo esc_html__('This option allows you to modify the default Woocommerce form to allow the custom fields that Yabi uses, such as IDs or NIT. It also displays the departments and municipalities of Colombia with their respective DIAN codes. It also generates a link so that people can generate the address as necessary for the DIAN.','yabi-wc'); ?></p>
     45               
     46                <div class="yabi-divider"></div>
     47               
     48                <h3><?php echo esc_html__('Invoice type','yabi-wc'); ?></h3>
     49                <ul class="yabi-list">
     50                    <li class="yabi-list-item">
     51                        <span class="yabi-list-number">A</span>
     52                        <span class="yabi-list-content"><strong><?php echo esc_html__('Automatic','yabi-wc'); ?>:</strong> <?php echo esc_html__('Generates automatic invoices, this depends on whether the data has been filled out correctly.','yabi-wc'); ?></span>
     53                    </li>
     54                    <li class="yabi-list-item">
     55                        <span class="yabi-list-number">M</span>
     56                        <span class="yabi-list-content"><strong><?php echo esc_html__('Manual','yabi-wc'); ?>:</strong> <?php echo esc_html__('Generate invoices manually in order administration','yabi-wc'); ?></span>
     57                    </li>
     58                </ul>
     59            </div>
     60        </div>
     61       
     62        <!-- Instrucciones para factura -->
     63        <div class="yabi-card">
     64            <div class="yabi-card-header">
     65                <div class="yabi-card-icon">
     66                    <span class="dashicons dashicons-media-text"></span>
     67                </div>
     68                <h2 class="yabi-card-title"><?php echo esc_html__('Instructions for invoice','yabi-wc'); ?></h2>
     69            </div>
     70            <div class="yabi-card-body">
     71                <p><?php echo esc_html__('The fields of the invoice are the name and the consecutive number of the invoice, before the DIAN the requirement for the numbering had to be passed. Please fill in the corresponding data. Example: SETT-26.','yabi-wc'); ?></p>
     72               
     73                <ol class="yabi-list">
     74                    <li class="yabi-list-item">
     75                        <span class="yabi-list-number">1</span>
     76                        <span class="yabi-list-content"><?php echo esc_html__('Go to','yabi-wc'); ?> <a href="#settings" data-tab="settings"><?php echo esc_html__('settings page','yabi-wc'); ?></a></span>
     77                    </li>
     78                    <li class="yabi-list-item">
     79                        <span class="yabi-list-number">2</span>
     80                        <span class="yabi-list-content"><?php echo esc_html__('Select "Invoice Name" with the invoice name. Example: "SETT-", "SE"','yabi-wc'); ?></span>
     81                    </li>
     82                    <li class="yabi-list-item">
     83                        <span class="yabi-list-number">3</span>
     84                        <span class="yabi-list-content"><?php echo esc_html__('Fill the text field with the consecutive invoice. Example: if the consecutive number is 25, please fill the text field with 26.','yabi-wc'); ?></span>
     85                    </li>
     86                    <li class="yabi-list-item">
     87                        <span class="yabi-list-number">4</span>
     88                        <span class="yabi-list-content"><?php echo esc_html__('You can check the numbering by clicking the "View Last Invoice" button','yabi-wc'); ?></span>
     89                    </li>
     90                    <li class="yabi-list-item">
     91                        <span class="yabi-list-number">5</span>
     92                        <span class="yabi-list-content"><?php echo esc_html__('Click in button "Save".','yabi-wc'); ?></span>
     93                    </li>
     94                </ol>
     95            </div>
     96        </div>
     97       
     98        <!-- Instrucciones para nota crédito -->
     99        <div class="yabi-card">
     100            <div class="yabi-card-header">
     101                <div class="yabi-card-icon">
     102                    <span class="dashicons dashicons-money-alt"></span>
     103                </div>
     104                <h2 class="yabi-card-title"><?php echo esc_html__('Instructions for credit note','yabi-wc'); ?></h2>
     105            </div>
     106            <div class="yabi-card-body">
     107                <p><?php echo esc_html__('The fields of the invoice are the name and the consecutive number of the invoice, before the DIAN the requirement for the numbering had to be passed. Please fill in the corresponding data. Example: SETT-26.','yabi-wc'); ?></p>
     108               
     109                <ol class="yabi-list">
     110                    <li class="yabi-list-item">
     111                        <span class="yabi-list-number">1</span>
     112                        <span class="yabi-list-content"><?php echo esc_html__('Go to','yabi-wc'); ?> <a href="#settings" data-tab="settings"><?php echo esc_html__('settings page','yabi-wc'); ?></a></span>
     113                    </li>
     114                    <li class="yabi-list-item">
     115                        <span class="yabi-list-number">2</span>
     116                        <span class="yabi-list-content"><?php echo esc_html__('Select "Credit Note Prefix" with the credit note name. Example: "CNS-", "CN"','yabi-wc'); ?></span>
     117                    </li>
     118                    <li class="yabi-list-item">
     119                        <span class="yabi-list-number">3</span>
     120                        <span class="yabi-list-content"><?php echo esc_html__('Fill the text field with the consecutive invoice. Example: if the consecutive number is 25, please fill the text field with 26.','yabi-wc'); ?></span>
     121                    </li>
     122                    <li class="yabi-list-item">
     123                        <span class="yabi-list-number">4</span>
     124                        <span class="yabi-list-content"><?php echo esc_html__('You can check the numbering by clicking the "View Last Credit Note" button','yabi-wc'); ?></span>
     125                    </li>
     126                    <li class="yabi-list-item">
     127                        <span class="yabi-list-number">5</span>
     128                        <span class="yabi-list-content"><?php echo esc_html__('Click in button "Save".','yabi-wc'); ?></span>
     129                    </li>
     130                </ol>
     131            </div>
     132        </div>
     133       
     134        <!-- Instrucciones para cliente -->
     135        <div class="yabi-card">
     136            <div class="yabi-card-header">
     137                <div class="yabi-card-icon">
     138                    <span class="dashicons dashicons-businesswoman"></span>
     139                </div>
     140                <h2 class="yabi-card-title"><?php echo esc_html__('Instructions for client','yabi-wc'); ?></h2>
     141            </div>
     142            <div class="yabi-card-body">
     143                <ol class="yabi-list">
     144                    <li class="yabi-list-item">
     145                        <span class="yabi-list-number">1</span>
     146                        <span class="yabi-list-content"><?php echo esc_html__('To get started, contact Yabi to send you the personalized Token of your account by email.','yabi-wc'); ?></span>
     147                    </li>
     148                    <li class="yabi-list-item">
     149                        <span class="yabi-list-number">2</span>
     150                        <span class="yabi-list-content"><?php echo esc_html__('Enter the Yabi system','yabi-wc'); ?> <a href="https://einvoices.yabi.co/public/login" target="_blank" rel="noopener noreferrer">https://einvoices.yabi.co/public/login</a> <?php echo esc_html__('with your username and password.','yabi-wc'); ?></span>
     151                    </li>
     152                    <li class="yabi-list-item">
     153                        <span class="yabi-list-number">3</span>
     154                        <span class="yabi-list-content"><?php echo esc_html__('Click on "Business Units".','yabi-wc'); ?></span>
     155                    </li>
     156                    <li class="yabi-list-item">
     157                        <span class="yabi-list-number">4</span>
     158                        <span class="yabi-list-content"><?php echo esc_html__('Click on a business unit, this displays the information of the business unit.','yabi-wc'); ?></span>
     159                    </li>
     160                    <li class="yabi-list-item">
     161                        <span class="yabi-list-number">5</span>
     162                        <span class="yabi-list-content"><?php echo esc_html__('Copy the code of the business unit.','yabi-wc'); ?></span>
     163                    </li>
     164                    <li class="yabi-list-item">
     165                        <span class="yabi-list-number">6</span>
     166                        <span class="yabi-list-content"><?php echo esc_html__('Go to','yabi-wc'); ?> <a href="#settings" data-tab="settings"><?php echo esc_html__('settings page','yabi-wc'); ?></a></span>
     167                    </li>
     168                    <li class="yabi-list-item">
     169                        <span class="yabi-list-number">7</span>
     170                        <span class="yabi-list-content"><?php echo esc_html__('Paste the previously copied code in the text field "Business Unit Uuid".','yabi-wc'); ?></span>
     171                    </li>
     172                    <li class="yabi-list-item">
     173                        <span class="yabi-list-number">8</span>
     174                        <span class="yabi-list-content"><?php echo esc_html__('Copy and paste the personalized Token in the text field "Token".','yabi-wc'); ?></span>
     175                    </li>
     176                    <li class="yabi-list-item">
     177                        <span class="yabi-list-number">9</span>
     178                        <span class="yabi-list-content"><?php echo esc_html__('Copy the example URL client in the text field "URL client".','yabi-wc'); ?></span>
     179                    </li>
     180                    <li class="yabi-list-item">
     181                        <span class="yabi-list-number">10</span>
     182                        <span class="yabi-list-content"><?php echo esc_html__('Click in button "Save".','yabi-wc'); ?></span>
     183                    </li>
     184                </ol>
     185            </div>
     186        </div>
     187       
     188        <!-- Cómo generar factura -->
     189        <div class="yabi-card">
     190            <div class="yabi-card-header">
     191                <div class="yabi-card-icon">
     192                    <span class="dashicons dashicons-printer"></span>
     193                </div>
     194                <h2 class="yabi-card-title"><?php echo esc_html__('How to generate an invoice?','yabi-wc'); ?></h2>
     195            </div>
     196            <div class="yabi-card-body">
     197                <p><?php echo esc_html__('The process to generate an invoice.','yabi-wc'); ?></p>
     198               
     199                <div class="yabi-info-box">
     200                    <div class="yabi-info-box-icon">💡</div>
     201                    <div class="yabi-info-box-content">
     202                        <h3><?php echo esc_html__('Important','yabi-wc'); ?></h3>
     203                        <p><?php echo esc_html__('The WooCommerce purchase must be in a completed state, in order to generate the electronic invoice. (Automatic or Manual)','yabi-wc'); ?></p>
    114204                    </div>
    115                     <!-- .postbox -->
    116 
    117                 </div>
    118                 <!-- .meta-box-sortables .ui-sortable -->
    119 
    120             </div>
    121             <!-- post-body-content -->
    122 
    123             <!-- sidebar -->
    124             <div id="postbox-container-1" class="postbox-container">
    125 
    126                 <div class="meta-box-sortables">
    127 
    128                     <div class="postbox">
    129 
    130                         <h2><span><?php echo __('About the plugin','yabi-wc'); ?></span></h2>
    131 
    132                         <div class="inside">
    133                            
    134                             <p>
    135                                 <?php echo __('Support this plugin','yabi-wc'); ?>
    136                                
    137                                 <form action="https://www.paypal.com/donate" method="post" target="_top">
    138 <input type="hidden" name="hosted_button_id" value="NY5NTM46C5PS4" />
    139 <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
    140 <img alt="" border="0" src="https://www.paypal.com/en_CO/i/scr/pixel.gif" width="1" height="1" />
    141 </form>
    142 
    143                             </p>
    144                             <hr/>
    145                             <p>
    146                                 <?php echo __('Code QR','yabi-wc'); ?><br/><br/>
    147                                 <img src="<?php echo YABI_PLUGIN_URL; ?>/images/CodigoQR.png" width="128" height="128" />
    148                             </p>
    149                            
    150                         </div>
    151                         <!-- .inside -->
    152 
    153                     </div>
    154                     <!-- .postbox -->
    155 
    156                 </div>
    157                 <!-- .meta-box-sortables -->
    158 
    159             </div>
    160             <!-- #postbox-container-1 .postbox-container -->
    161 
    162         </div>
    163         <!-- #post-body .metabox-holder .columns-2 -->
    164 
    165         <br class="clear">
     205                </div>
     206               
     207                <ol class="yabi-list">
     208                    <li class="yabi-list-item">
     209                        <span class="yabi-list-number">1</span>
     210                        <span class="yabi-list-content"><?php echo esc_html__('Click on WooCommerce orders','yabi-wc'); ?></span>
     211                    </li>
     212                    <li class="yabi-list-item">
     213                        <span class="yabi-list-number">2</span>
     214                        <span class="yabi-list-content"><?php echo esc_html__('Find the order in the completed state for which you want to generate an invoice','yabi-wc'); ?></span>
     215                    </li>
     216                    <li class="yabi-list-item">
     217                        <span class="yabi-list-number">3</span>
     218                        <span class="yabi-list-content"><?php echo esc_html__('Click on the order to open the details','yabi-wc'); ?></span>
     219                    </li>
     220                    <li class="yabi-list-item">
     221                        <span class="yabi-list-number">4</span>
     222                        <span class="yabi-list-content"><?php echo esc_html__('When displaying the order information, the Yabi module will be displayed at the bottom','yabi-wc'); ?></span>
     223                    </li>
     224                    <li class="yabi-list-item">
     225                        <span class="yabi-list-number">5</span>
     226                        <span class="yabi-list-content"><?php echo esc_html__('You must select the type of person','yabi-wc'); ?></span>
     227                    </li>
     228                    <li class="yabi-list-item">
     229                        <span class="yabi-list-number">6</span>
     230                        <span class="yabi-list-content"><?php echo esc_html__('Depending on the type of person, you must complete the additional information','yabi-wc'); ?></span>
     231                    </li>
     232                    <li class="yabi-list-item">
     233                        <span class="yabi-list-number">7</span>
     234                        <span class="yabi-list-content"><?php echo esc_html__('Click on the "Save" button to save the information of the fields','yabi-wc'); ?></span>
     235                    </li>
     236                    <li class="yabi-list-item">
     237                        <span class="yabi-list-number">8</span>
     238                        <span class="yabi-list-content"><?php echo esc_html__('Click on the button "Save and generate" for when you are sure to generate the invoice, after the invoice is generated you will not be able to edit the fields again.','yabi-wc'); ?></span>
     239                    </li>
     240                    <li class="yabi-list-item">
     241                        <span class="yabi-list-number">9</span>
     242                        <span class="yabi-list-content"><?php echo esc_html__('To download the invoice you have to enter the Yabi platform','yabi-wc'); ?></span>
     243                    </li>
     244                </ol>
     245            </div>
     246        </div>
     247       
     248        <!-- Actualizar resolución -->
     249        <div class="yabi-card">
     250            <div class="yabi-card-header">
     251                <div class="yabi-card-icon">
     252                    <span class="dashicons dashicons-database"></span>
     253                </div>
     254                <h2 class="yabi-card-title"><?php echo esc_html__('Update resolution in yabi.co','yabi-wc'); ?></h2>
     255            </div>
     256            <div class="yabi-card-body">
     257                <ol class="yabi-list">
     258                    <li class="yabi-list-item">
     259                        <span class="yabi-list-number">1</span>
     260                        <span class="yabi-list-content"><?php echo esc_html__('Go to','yabi-wc'); ?> <a href="#dian" data-tab="dian"><?php echo esc_html__('DIAN','yabi-wc'); ?></a></span>
     261                    </li>
     262                    <li class="yabi-list-item">
     263                        <span class="yabi-list-number">2</span>
     264                        <span class="yabi-list-content"><?php echo esc_html__('Create the resolution in the DIAN Muisca system and assign it in the DIAN "Electronic Billing" portal to Neia / Yabi.co.','yabi-wc'); ?></span>
     265                    </li>
     266                    <li class="yabi-list-item">
     267                        <span class="yabi-list-number">3</span>
     268                        <span class="yabi-list-content"><?php echo esc_html__('After the DIAN has created the resolutions, please click on the "Update" button','yabi-wc'); ?></span>
     269                    </li>
     270                    <li class="yabi-list-item">
     271                        <span class="yabi-list-number">4</span>
     272                        <span class="yabi-list-content"><?php echo esc_html__('Click the "Check" button to generate a table with the latest resolutions available in Yabi','yabi-wc'); ?></span>
     273                    </li>
     274                    <li class="yabi-list-item">
     275                        <span class="yabi-list-number">5</span>
     276                        <span class="yabi-list-content"><?php echo esc_html__('Select the prefix you want to associate and click the "Save" button.','yabi-wc'); ?></span>
     277                    </li>
     278                </ol>
     279            </div>
     280        </div>
     281       
     282        <!-- Cancelar factura -->
     283        <div class="yabi-card">
     284            <div class="yabi-card-header">
     285                <div class="yabi-card-icon">
     286                    <span class="dashicons dashicons-dismiss"></span>
     287                </div>
     288                <h2 class="yabi-card-title"><?php echo esc_html__('Cancel Invoice','yabi-wc'); ?></h2>
     289            </div>
     290            <div class="yabi-card-body">
     291                <ol class="yabi-list">
     292                    <li class="yabi-list-item">
     293                        <span class="yabi-list-number">1</span>
     294                        <span class="yabi-list-content"><?php echo esc_html__('Go to','yabi-wc'); ?> <a href="#cancel_invoice" data-tab="cancel_invoice"><?php echo esc_html__('Cancel Invoice','yabi-wc'); ?></a></span>
     295                    </li>
     296                    <li class="yabi-list-item">
     297                        <span class="yabi-list-number">2</span>
     298                        <span class="yabi-list-content"><?php echo esc_html__('Enter the prefix and numbering range for the credit note you want to create and click the "Create" button.','yabi-wc'); ?></span>
     299                    </li>
     300                    <li class="yabi-list-item">
     301                        <span class="yabi-list-number">3</span>
     302                        <span class="yabi-list-content"><?php echo esc_html__('Click the "Check" button to generate a table with the latest resolutions available in Yabi','yabi-wc'); ?></span>
     303                    </li>
     304                    <li class="yabi-list-item">
     305                        <span class="yabi-list-number">4</span>
     306                        <span class="yabi-list-content"><?php echo esc_html__('Select the prefix you want to associate and click the "Save" button.','yabi-wc'); ?></span>
     307                    </li>
     308                </ol>
     309            </div>
     310        </div>
     311       
    166312    </div>
    167     <!-- #poststuff -->
    168 
    169 </div> <!-- .wrap -->
     313   
     314    <!-- Sidebar -->
     315    <div class="yabi-sidebar-content">
     316        <div class="yabi-card">
     317            <div class="yabi-card-header">
     318                <div class="yabi-card-icon" style="background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);">
     319                    <span class="dashicons dashicons-heart"></span>
     320                </div>
     321                <h2 class="yabi-card-title"><?php echo esc_html__('About the plugin','yabi-wc'); ?></h2>
     322            </div>
     323            <div class="yabi-card-body">
     324                <p><?php echo esc_html__('Support this plugin','yabi-wc'); ?></p>
     325               
     326                <form action="https://www.paypal.com/donate" method="post" target="_top" style="margin: 15px 0;">
     327                    <input type="hidden" name="hosted_button_id" value="NY5NTM46C5PS4" />
     328                    <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" style="display: block; margin: 0 auto;" />
     329                </form>
     330               
     331                <div class="yabi-divider"></div>
     332               
     333                <p style="text-align: center; margin-bottom: 15px;"><?php echo esc_html__('Code QR','yabi-wc'); ?></p>
     334                <img src="<?php echo esc_url( YABI_PLUGIN_URL ); ?>images/CodigoQR.png" width="128" height="128" alt="QR Code" style="display: block; margin: 0 auto; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);" />
     335            </div>
     336        </div>
     337       
     338        <div class="yabi-card" style="background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); border-color: #4caf50;">
     339            <div class="yabi-card-body" style="text-align: center;">
     340                <span class="dashicons dashicons-yes-alt" style="font-size: 48px; color: #4caf50; margin-bottom: 10px; height: 48px; width: 48px;"></span>
     341                <h3 style="margin: 0 0 5px 0; color: #2e7d32;">Yabi v4.0.0</h3>
     342                <p style="margin: 0; color: #388e3c; font-size: 13px;"><?php echo esc_html__('Electronic invoicing for Colombia','yabi-wc'); ?></p>
     343            </div>
     344        </div>
     345    </div>
     346   
     347</div>
  • wc-yabi/trunk/content/product-invoice.php

    r3218446 r3422044  
     1<?php
     2    $yabi_settings = get_option( 'yabi_settings' );
     3    $credit_note_number = get_option( 'yabi_credit_note_number' );
     4    $credit_prefix = $yabi_settings[ 'credit_prefix' ];
     5?>
    16<style>
    27    #yabi-data th
     
    143148        <td>
    144149           <button class="button" id="yabi-reenviar" name="reenviar"><?php echo __( 'Resend invoice', 'yabi-wc' ); ?></button>
     150           <?php if( !empty( $credit_note_number ) && !empty( $credit_prefix ) ): ?>           
     151            <button class="button" id="yabi-anular" name="anular"><?php echo __( 'Cancel invoice', 'yabi-wc' ); ?></button>
     152           <?php endif; ?>
    145153        </td>
    146154    </tr>
     
    174182<div id="response"></div>
    175183
     184<!-- Modal para anular factura -->
     185<div id="yabi-cancel-modal" style="display:none; position:fixed; z-index:100000; left:0; top:0; width:100%; height:100%; overflow:auto; background-color:rgba(0,0,0,0.4);">
     186    <div style="background-color:#fefefe; margin:10% auto; padding:20px; border:1px solid #888; width:50%; max-width:500px; border-radius:5px;">
     187        <h2 style="
     188    background: #bb2a36;
     189    font-size: 20px;
     190    border-radius: 5px;
     191    color: white;
     192"><?php echo __( 'Cancel Invoice', 'yabi-wc' ); ?></h2>
     193        <p><?php echo __( 'Are you sure you want to cancel this invoice? This action cannot be undone.', 'yabi-wc' ); ?></p>
     194       
     195        <p>
     196            <label for="yabi-razon-cancelacion"><strong><?php echo __( 'Cancellation reason', 'yabi-wc' ); ?> *</strong></label><br>
     197            <textarea id="yabi-razon-cancelacion" name="razon" rows="4" style="width:100%; margin-top:5px;" required></textarea>
     198            <span id="yabi-razon-error" style="color:red; display:none;"><?php echo __( 'The reason is required', 'yabi-wc' ); ?></span>
     199        </p>
     200       
     201        <p style="text-align:right;">
     202            <button class="button" id="yabi-cancel-modal-close"><?php echo __( 'Cancel', 'yabi-wc' ); ?></button>
     203            <button class="button button-primary" id="yabi-confirmar-anular"><?php echo __( 'Confirm Cancellation', 'yabi-wc' ); ?></button>
     204            <span id="thespiner-cancel" class="spinner" style="float:none;"></span>
     205        </p>
     206    </div>
     207</div>
     208
    176209<script type="application/javascript">
    177210
     
    191224       
    192225        yabiSend();
     226       
     227    } );
     228   
     229    jQuery( '#yabi-anular' ).on( 'click', function(e){
     230       
     231        e.preventDefault();
     232       
     233        jQuery( '#yabi-cancel-modal' ).fadeIn( 200 );
     234        jQuery( '#yabi-razon-cancelacion' ).val( '' );
     235        jQuery( '#yabi-razon-error' ).hide();
     236       
     237    } );
     238   
     239    jQuery( '#yabi-cancel-modal-close' ).on( 'click', function(e){
     240       
     241        e.preventDefault();
     242       
     243        jQuery( '#yabi-cancel-modal' ).fadeOut( 200 );
     244       
     245    } );
     246   
     247    jQuery( '#yabi-confirmar-anular' ).on( 'click', function(e){
     248       
     249        e.preventDefault();
     250       
     251        const razon = jQuery( '#yabi-razon-cancelacion' ).val().trim();
     252       
     253        if( '' === razon )
     254        {
     255            jQuery( '#yabi-razon-error' ).show();
     256            return;
     257        }
     258       
     259        jQuery( '#yabi-razon-error' ).hide();
     260       
     261        yabiCancelInvoice( razon );
    193262       
    194263    } );
     
    240309}
    241310
     311function yabiCancelInvoice( razon )
     312{
     313    jQuery( '#thespiner-cancel' ).addClass( 'is-active' );
     314    jQuery( '#response' ).empty();
     315    jQuery( '#yabi-confirmar-anular' ).attr( 'disabled', true );
     316    jQuery( '#yabi-cancel-modal-close' ).attr( 'disabled', true );
     317   
     318    const post_id = jQuery( '#post_ID' ).val();
     319   
     320    jQuery.post( '<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>', { 'action': 'yabi_cancel_invoice', 'post_id': post_id, 'razon': razon } )
     321        .done(function( data ) {
     322           
     323            jQuery( '#thespiner-cancel' ).removeClass( 'is-active' );
     324            jQuery( '#yabi-confirmar-anular' ).attr( 'disabled', false );
     325            jQuery( '#yabi-cancel-modal-close' ).attr( 'disabled', false );
     326           
     327            if( 'FAIL' == data )
     328            {
     329                yabiMessage( 'error', '<?php echo __( 'Unexpected error, try again later or contact support.', 'yabi-wc' ); ?>', true );
     330            }
     331            else
     332            {
     333                var obj = JSON.parse( data );
     334               
     335                if( parseInt( obj.error ) == 1 )
     336                {
     337                    yabiMessage( 'error', obj.message, true );
     338                }
     339                else
     340                {
     341                    yabiMessage( 'success', obj.message, false );
     342                   
     343                    setTimeout(function(){
     344                        location.reload();
     345                    }, 4000);
     346                }
     347            }
     348            jQuery( '#yabi-cancel-modal' ).fadeOut( 200 );
     349        })
     350        .fail(function() {
     351            jQuery( '#thespiner-cancel' ).removeClass( 'is-active' );
     352            jQuery( '#yabi-confirmar-anular' ).attr( 'disabled', false );
     353            jQuery( '#yabi-cancel-modal-close' ).attr( 'disabled', false );
     354            jQuery( '#yabi-cancel-modal' ).fadeOut( 200 );
     355            yabiMessage( 'error', '<?php echo __( 'Unexpected error, try again later or contact support.', 'yabi-wc' ); ?>', true );
     356        });
     357}
     358
    242359</script>
  • wc-yabi/trunk/content/settings.php

    r3218446 r3422044  
    1 <?php
    2     $yabi_settings = get_option( 'yabi_settings' );
    3     $invoice_number = get_option( 'yabi_invoice_number' );
    4    
    5     if( empty( $yabi_settings ) )
    6     {
    7         $yabi_settings = array(
    8             'payment_type'      => 'IN_CASH',
    9             'credit_days'       => 30,
    10             'modified_checkout' => 'No',
    11             'invoice_type'      => 'Manual',
    12             'invoice_name'      => '',
    13             'owner'             => 'person',
    14             'businessunituuid'  => '',
    15             'token'             => '',
    16             'url_client'        => 'https://api.yabi.co/co/einvoices/v2/',
    17         );
    18     }
    19 ?>
    20 <style>
    21     table th
    22     {
    23         text-align: right; 
    24     }
     1<?php
     2/**
     3 * Yabi Settings Tab Content
     4 *
     5 * @package yabi_wc
     6 * @version 4.0.0
     7 */
    258
    26     .card
    27     {
    28         max-width: 100%;
    29     }
    30 </style>
    31 <script>
    32 
    33 jQuery( document ).ready(function(){
    34    
    35     jQuery( '#payment_type' ).change(function(){
    36    
    37         if( 'CREDIT' == jQuery( this ).val() )
    38         {
    39             jQuery( '#option_credit' ).show();
    40         }
    41         else
    42         {
    43             jQuery( '#option_credit' ).hide();
    44         }
    45        
    46     });
    47    
    48     jQuery( '#modified_checkout' ).change(function(){
    49    
    50         setting_automatic();
    51        
    52     });
    53    
    54     setting_automatic();
    55 });
    56 
    57 function setting_automatic()
    58 {
    59     if( 'Yes' == jQuery( '#modified_checkout' ).val() )
    60     {
    61         jQuery( '#automatic_option' ).show();
    62     }
    63     else
    64     {
    65         jQuery( '#automatic_option' ).hide();
    66         jQuery( '#invoice_type' ).val( 'Manual' );
    67     }
     9if ( ! defined( 'ABSPATH' ) ) {
     10    exit;
    6811}
    6912
    70 </script>
    71 <div class="wrap">
     13$yabi_settings = get_option( 'yabi_settings' );
     14$invoice_number = get_option( 'yabi_invoice_number' );
     15$credit_note_number = get_option( 'yabi_credit_note_number' );
    7216
    73     <h1><?php echo __('Settings','yabi-wc'); ?></h1>
     17if( empty( $yabi_settings ) ) {
     18    $yabi_settings = array(
     19        'payment_type'      => 'IN_CASH',
     20        'credit_days'       => 30,
     21        'modified_checkout' => 'No',
     22        'invoice_type'      => 'Manual',
     23        'invoice_name'      => '',
     24        'owner'             => 'person',
     25        'businessunituuid'  => '',
     26        'token'             => '',
     27        'url_client'        => 'https://api.yabi.co/co/einvoices/v2/',
     28        'credit_prefix'     => '',
     29    );
     30}
     31?>
    7432
    75     <form name="thesettings" method="post">
    76    
    77         <div class="card">
    78        
    79             <h2><?php echo __('Settings','yabi-wc'); ?></h2>
    80             <hr />
    81            
    82             <table width="100%" cellpadding="10" cellspacing="10" border="0">
    83            
    84                 <tr>
    85                     <th width="20%"><label for="payment_type"><?php echo __('Payment type','yabi-wc'); ?>:</label></th>
    86                     <td>
    87                         <select id="payment_type" name="payment_type">
    88                             <option value="IN_CASH" <?php if( 'IN_CASH' == $yabi_settings[ 'payment_type' ] ) echo 'selected'; ?>><?php echo __( 'In cash','yabi-wc' ); ?></option>
    89                             <option value="CREDIT" <?php if( 'CREDIT' == $yabi_settings[ 'payment_type' ] ) echo 'selected'; ?>><?php echo __( 'Credit','yabi-wc' ); ?></option>                             
    90                         </select>
    91                     </td>
    92                 </tr>
    93                
    94                 <tr id="option_credit" <?php if( 'CREDIT' != $yabi_settings[ 'payment_type' ] ) echo 'style="display: none;"'; ?>>
    95                     <th><label for="credit_days"><?php echo __('Credit days','yabi-wc'); ?>:</label></th>
    96                     <td>
    97                         <input type="number" class="small-text" id="credit_days" name="credit_days" value="<?php echo esc_attr( $yabi_settings[ 'credit_days' ] ); ?>" /><br/>
    98                         <span class="description">30</span>
    99                     </td>
    100                 </tr>
    101                
    102                 <tr>
    103                     <th><label for="modified_checkout"><?php echo __( 'I agree to modify the checkout','yabi-wc' ); ?>:</label></th>
    104                     <td>
    105                         <select id="modified_checkout" name="modified_checkout">
    106                             <option value="No" <?php if( 'No' == $yabi_settings[ 'modified_checkout' ] ) echo 'selected'; ?>><?php echo __( 'No','yabi-wc' ); ?></option>
    107                             <option value="Yes" <?php if( 'Yes' == $yabi_settings[ 'modified_checkout' ] ) echo 'selected'; ?>><?php echo __( 'Yes','yabi-wc' ); ?></option>                             
    108                         </select>
    109                     </td>
    110                 </tr>
    111                
    112                 <tr id="automatic_option" style="display: none;">
    113                     <th><label for="invoice_type"><?php echo __('Invoice type','yabi-wc'); ?>:</label></th>
    114                     <td>
    115                         <select id="invoice_type" name="invoice_type">
    116                             <option value="Manual" <?php if( 'Manual' == $yabi_settings[ 'invoice_type' ] ) echo 'selected'; ?>><?php echo __( 'Manual','yabi-wc' ); ?></option>
    117                             <option value="Automatic" <?php if( 'Automatic' == $yabi_settings[ 'invoice_type' ] ) echo 'selected'; ?>><?php echo __( 'Automatic','yabi-wc' ); ?></option>                             
    118                         </select>
    119                     </td>
    120                 </tr>
    121            
    122             </table>
    123    
    124             <h2><?php echo __( 'Invoice','yabi-wc' ); ?></h2>   
    125             <hr />   
    126            
    127             <table width="100%" cellpadding="10" cellspacing="10" border="0">
    128                
    129                 <tr>
    130                     <th width="20%"><label for="invoice_name"><?php echo __( 'Invoice Name','yabi-wc' ); ?>:</label></th>
    131                     <td>
    132                         <input type="text" class="small-text" id="invoice_name" name="invoice_name" value="<?php echo esc_attr( $yabi_settings[ 'invoice_name' ] ); ?>" />
    133                     </td>
    134                 </tr>
    135                
    136                 <tr>
    137                     <th><label for="invoice_number"><?php echo __( 'Invoice Number','yabi-wc' ); ?>:</label></th>
    138                     <td>
    139                         <input type="number" class="small-text" id="invoice_number" name="invoice_number" value="<?php echo esc_attr( $invoice_number ); ?>" />
    140                     </td>
    141                 </tr>
    142            
    143             </table>           
    144    
    145             <h2><?php echo __('Client','yabi-wc'); ?></h2>   
    146             <hr />     
    147            
    148             <table width="100%" cellpadding="10" cellspacing="10" border="0">
    149            
    150                 <tr>
    151                     <th width="20%"><label for="owner"><?php echo __( 'Type of Owner','yabi-wc' ); ?>:</label></th>
    152                     <td>
    153                         <select id="owner" name="owner">
    154                             <option value="company" <?php if( 'company' == $yabi_settings[ 'owner' ] ) echo 'selected'; ?>><?php echo __( 'Company','yabi-wc' ); ?></option>
    155                             <option value="person" <?php if( 'person' == $yabi_settings[ 'owner' ] ) echo 'selected'; ?>><?php echo __( 'Person','yabi-wc' ); ?></option>                             
    156                         </select>
    157                     </td>
    158                 </tr>
    159            
    160                 <tr>
    161                     <th><label for="businessunituuid"><?php echo __('Business Unit Uuid','yabi-wc'); ?>:</label></th>
    162                     <td>
    163                         <input type="text" class="large-text" id="businessunituuid" name="businessunituuid" value="<?php echo esc_attr( $yabi_settings[ 'businessunituuid' ] ); ?>" /><br/>
    164                         <span class="description">xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</span>
    165                     </td>
    166                 </tr>
    167            
    168                 <tr>
    169                     <th><label for="token"><?php echo __('Token','yabi-wc'); ?>:</label></th>
    170                     <td>
    171                         <input type="text" class="large-text" id="token" name="token" value="<?php echo esc_attr( $yabi_settings[ 'token' ] ); ?>" /><br/>
    172                         <span class="description">xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</span>
    173                     </td>
    174                 </tr>
    175                
    176                 <tr>
    177                     <th><label for="yabi_url_client"><?php echo __('URL client','yabi-wc'); ?>:</label></th>
    178                     <td>
    179                         <input type="text" class="large-text" id="url_client" name="url_client" value="<?php echo esc_attr( $yabi_settings[ 'url_client' ] ); ?>" /><br/>
    180                          <span class="description">https://api.yabi.co/co/einvoices/v2/</span>
    181                     </td>
    182                 </tr>
    183                
    184                 <tr>
    185                     <th></th>
    186                     <td><input class="button-primary" type="submit" name="Save" value="<?php echo __( 'Save','yabi-wc' ); ?>" /></td>
    187                 </tr>
    188            
    189             </table>     
    190            
    191         </div>
    192    
    193     </form>
    194 
    195 </div>
     33<form name="thesettings" method="post" class="yabi-ajax-form">
     34   
     35    <!-- Configuración de Pagos -->
     36    <div class="yabi-card">
     37        <div class="yabi-card-header">
     38            <div class="yabi-card-icon">
     39                <span class="dashicons dashicons-money-alt"></span>
     40            </div>
     41            <h2 class="yabi-card-title"><?php echo esc_html__('Payment Settings','yabi-wc'); ?></h2>
     42        </div>
     43        <div class="yabi-card-body">
     44            <div class="yabi-form-row">
     45                <div class="yabi-form-group">
     46                    <label class="yabi-label" for="payment_type"><?php echo esc_html__('Payment type','yabi-wc'); ?></label>
     47                    <select id="payment_type" name="payment_type" class="yabi-select">
     48                        <option value="IN_CASH" <?php selected( $yabi_settings['payment_type'], 'IN_CASH' ); ?>><?php echo esc_html__('In cash','yabi-wc'); ?></option>
     49                        <option value="CREDIT" <?php selected( $yabi_settings['payment_type'], 'CREDIT' ); ?>><?php echo esc_html__('Credit','yabi-wc'); ?></option>
     50                    </select>
     51                </div>
     52               
     53                <div class="yabi-form-group" id="option_credit" <?php echo $yabi_settings['payment_type'] !== 'CREDIT' ? 'style="display: none;"' : ''; ?>>
     54                    <label class="yabi-label" for="credit_days"><?php echo esc_html__('Credit days','yabi-wc'); ?></label>
     55                    <input type="number" class="yabi-input yabi-input-small" id="credit_days" name="credit_days" value="<?php echo esc_attr( $yabi_settings['credit_days'] ); ?>" />
     56                    <span class="yabi-input-help"><?php echo esc_html__('Default: 30 days','yabi-wc'); ?></span>
     57                </div>
     58            </div>
     59           
     60            <div class="yabi-form-row">
     61                <div class="yabi-form-group">
     62                    <label class="yabi-label" for="modified_checkout"><?php echo esc_html__('I agree to modify the checkout','yabi-wc'); ?></label>
     63                    <select id="modified_checkout" name="modified_checkout" class="yabi-select">
     64                        <option value="No" <?php selected( $yabi_settings['modified_checkout'], 'No' ); ?>><?php echo esc_html__('No','yabi-wc'); ?></option>
     65                        <option value="Yes" <?php selected( $yabi_settings['modified_checkout'], 'Yes' ); ?>><?php echo esc_html__('Yes','yabi-wc'); ?></option>
     66                    </select>
     67                </div>
     68               
     69                <div class="yabi-form-group" id="automatic_option" style="display: none;">
     70                    <label class="yabi-label" for="invoice_type"><?php echo esc_html__('Invoice type','yabi-wc'); ?></label>
     71                    <select id="invoice_type" name="invoice_type" class="yabi-select">
     72                        <option value="Manual" <?php selected( $yabi_settings['invoice_type'], 'Manual' ); ?>><?php echo esc_html__('Manual','yabi-wc'); ?></option>
     73                        <option value="Automatic" <?php selected( $yabi_settings['invoice_type'], 'Automatic' ); ?>><?php echo esc_html__('Automatic','yabi-wc'); ?></option>
     74                    </select>
     75                </div>
     76            </div>
     77        </div>
     78    </div>
     79   
     80    <!-- Configuración de Factura -->
     81    <div class="yabi-card">
     82        <div class="yabi-card-header">
     83            <div class="yabi-card-icon" style="background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);">
     84                <span class="dashicons dashicons-media-text"></span>
     85            </div>
     86            <h2 class="yabi-card-title"><?php echo esc_html__('Invoice','yabi-wc'); ?></h2>
     87        </div>
     88        <div class="yabi-card-body">
     89            <div class="yabi-form-row">
     90                <div class="yabi-form-group">
     91                    <label class="yabi-label" for="invoice_name"><?php echo esc_html__('Invoice Name','yabi-wc'); ?></label>
     92                    <select id="invoice_name" name="invoice_name" class="yabi-select" data-current="<?php echo esc_attr( $yabi_settings['invoice_name'] ); ?>">
     93                        <option value=""><?php echo esc_html__('Loading...','yabi-wc'); ?></option>
     94                    </select>
     95                </div>
     96               
     97                <div class="yabi-form-group">
     98                    <label class="yabi-label" for="invoice_number"><?php echo esc_html__('Invoice Number','yabi-wc'); ?></label>
     99                    <div style="display: flex; align-items: center; gap: 10px;">
     100                        <input type="number" class="yabi-input yabi-input-small" id="invoice_number" name="invoice_number" value="<?php echo esc_attr( $invoice_number ); ?>" />
     101                        <button type="button" id="btn_last_invoice" class="yabi-btn yabi-btn-secondary yabi-btn-sm">
     102                            <span class="dashicons dashicons-visibility"></span>
     103                            <?php echo esc_html__('View Last','yabi-wc'); ?>
     104                        </button>
     105                    </div>
     106                    <span id="last_invoice_result" class="yabi-input-help" style="font-weight: 600;"></span>
     107                </div>
     108            </div>
     109        </div>
     110    </div>
     111   
     112    <!-- Configuración de Nota de Crédito -->
     113    <div class="yabi-card">
     114        <div class="yabi-card-header">
     115            <div class="yabi-card-icon" style="background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);">
     116                <span class="dashicons dashicons-money-alt"></span>
     117            </div>
     118            <h2 class="yabi-card-title"><?php echo esc_html__('Credit Note','yabi-wc'); ?></h2>
     119        </div>
     120        <div class="yabi-card-body">
     121            <div class="yabi-form-row">
     122                <div class="yabi-form-group">
     123                    <label class="yabi-label" for="credit_prefix"><?php echo esc_html__('Credit Note Prefix','yabi-wc'); ?></label>
     124                    <select id="credit_prefix" name="credit_prefix" class="yabi-select" data-current="<?php echo esc_attr( $yabi_settings['credit_prefix'] ?? '' ); ?>">
     125                        <option value=""><?php echo esc_html__('Loading...','yabi-wc'); ?></option>
     126                    </select>
     127                </div>
     128               
     129                <div class="yabi-form-group">
     130                    <label class="yabi-label" for="credit_note_number"><?php echo esc_html__('Credit Note Number','yabi-wc'); ?></label>
     131                    <div style="display: flex; align-items: center; gap: 10px;">
     132                        <input type="number" class="yabi-input yabi-input-small" id="credit_note_number" name="credit_note_number" value="<?php echo esc_attr( $credit_note_number ); ?>" />
     133                        <button type="button" id="btn_last_credit" class="yabi-btn yabi-btn-secondary yabi-btn-sm">
     134                            <span class="dashicons dashicons-visibility"></span>
     135                            <?php echo esc_html__('View Last','yabi-wc'); ?>
     136                        </button>
     137                    </div>
     138                    <span id="last_credit_result" class="yabi-input-help" style="font-weight: 600;"></span>
     139                </div>
     140            </div>
     141        </div>
     142    </div>
     143   
     144    <!-- Configuración del Cliente -->
     145    <div class="yabi-card">
     146        <div class="yabi-card-header">
     147            <div class="yabi-card-icon" style="background: linear-gradient(135deg, #2196f3 0%, #1565c0 100%);">
     148                <span class="dashicons dashicons-businesswoman"></span>
     149            </div>
     150            <h2 class="yabi-card-title"><?php echo esc_html__('Client','yabi-wc'); ?></h2>
     151        </div>
     152        <div class="yabi-card-body">
     153            <div class="yabi-form-row">
     154                <div class="yabi-form-group">
     155                    <label class="yabi-label" for="owner"><?php echo esc_html__('Type of Owner','yabi-wc'); ?></label>
     156                    <select id="owner" name="owner" class="yabi-select">
     157                        <option value="company" <?php selected( $yabi_settings['owner'], 'company' ); ?>><?php echo esc_html__('Company','yabi-wc'); ?></option>
     158                        <option value="person" <?php selected( $yabi_settings['owner'], 'person' ); ?>><?php echo esc_html__('Person','yabi-wc'); ?></option>
     159                    </select>
     160                </div>
     161            </div>
     162           
     163            <div class="yabi-form-group">
     164                <label class="yabi-label" for="businessunituuid"><?php echo esc_html__('Business Unit Uuid','yabi-wc'); ?></label>
     165                <input type="text" class="yabi-input" id="businessunituuid" name="businessunituuid" value="<?php echo esc_attr( $yabi_settings['businessunituuid'] ); ?>" />
     166                <span class="yabi-input-help">xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</span>
     167            </div>
     168           
     169            <div class="yabi-form-group">
     170                <label class="yabi-label" for="token"><?php echo esc_html__('Token','yabi-wc'); ?></label>
     171                <input type="text" class="yabi-input" id="token" name="token" value="<?php echo esc_attr( $yabi_settings['token'] ); ?>" />
     172                <span class="yabi-input-help">xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</span>
     173            </div>
     174           
     175            <div class="yabi-form-group">
     176                <label class="yabi-label" for="url_client"><?php echo esc_html__('URL client','yabi-wc'); ?></label>
     177                <input type="text" class="yabi-input" id="url_client" name="url_client" value="<?php echo esc_attr( $yabi_settings['url_client'] ); ?>" />
     178                <span class="yabi-input-help">https://api.yabi.co/co/einvoices/v2/</span>
     179            </div>
     180        </div>
     181    </div>
     182   
     183    <!-- Botón Guardar -->
     184    <div class="yabi-btn-group">
     185        <button type="submit" class="yabi-btn yabi-btn-primary yabi-btn-lg">
     186            <span class="dashicons dashicons-saved"></span>
     187            <?php echo esc_html__('Save Settings','yabi-wc'); ?>
     188        </button>
     189    </div>
     190   
     191</form>
  • wc-yabi/trunk/includes/ajax.php

    r3405216 r3422044  
    11<?php
    2 
     2/**
     3 * Yabi AJAX Handlers
     4 *
     5 * @package yabi_wc
     6 * @version 4.0.0
     7 */
     8
     9if ( ! defined( 'ABSPATH' ) ) {
     10    exit;
     11}
     12
     13// Registrar acciones AJAX
    314add_action( 'wp_ajax_yabi_generate_invoice', 'yabi_generate_invoice' );
    415add_action( 'wp_ajax_yabi_save_data', 'yabi_save_data' );
     
    718add_action( 'wp_ajax_yabi_update_resolution', 'yabi_update_resolution' );
    819add_action( 'wp_ajax_yabi_show_resolution', 'yabi_show_resolution' );
     20add_action( 'wp_ajax_yabi_create_prefix', 'yabi_create_prefix' );
     21add_action( 'wp_ajax_yabi_get_active_prefixes', 'yabi_get_active_prefixes' );
     22add_action( 'wp_ajax_yabi_get_last_invoice', 'yabi_get_last_invoice' );
     23add_action( 'wp_ajax_yabi_get_last_credit', 'yabi_get_last_credit' );
     24add_action( 'wp_ajax_yabi_cancel_invoice', 'yabi_cancel_invoice' );
     25add_action( 'wp_ajax_yabi_load_tab', 'yabi_load_tab' );
     26add_action( 'wp_ajax_yabi_save_settings', 'yabi_save_settings_ajax' );
     27
     28/**
     29 * Cargar contenido de tab via AJAX
     30 */
     31function yabi_load_tab()
     32{
     33    // Verificar nonce
     34    if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], 'yabi_admin_nonce' ) ) {
     35        wp_send_json_error( array( 'message' => __( 'Security check failed', 'yabi-wc' ) ) );
     36    }
     37   
     38    // Verificar permisos
     39    if ( ! current_user_can( 'manage_options' ) ) {
     40        wp_send_json_error( array( 'message' => __( 'Permission denied', 'yabi-wc' ) ) );
     41    }
     42   
     43    $tab = isset( $_POST['tab'] ) ? sanitize_text_field( $_POST['tab'] ) : 'information';
     44    $allowed_tabs = array( 'information', 'settings', 'dian', 'cancel_invoice' );
     45   
     46    if ( ! in_array( $tab, $allowed_tabs ) ) {
     47        wp_send_json_error( array( 'message' => __( 'Invalid tab', 'yabi-wc' ) ) );
     48    }
     49   
     50    // Verificar que DIAN y cancel_invoice solo estén disponibles si hay configuración
     51    if ( in_array( $tab, array( 'dian', 'cancel_invoice' ) ) && false === get_option( 'yabi_settings' ) ) {
     52        wp_send_json_error( array( 'message' => __( 'Please configure settings first', 'yabi-wc' ) ) );
     53    }
     54   
     55    // Obtener contenido del tab
     56    ob_start();
     57   
     58    switch( $tab ) {
     59        case 'settings':
     60            require_once( YABI_PLUGIN_PATH . 'content/settings.php' );
     61            break;
     62        case 'dian':
     63            require_once( YABI_PLUGIN_PATH . 'content/dian.php' );
     64            break;
     65        case 'cancel_invoice':
     66            require_once( YABI_PLUGIN_PATH . 'content/cancel-invoice.php' );
     67            break;
     68        case 'information':
     69        default:
     70            require_once( YABI_PLUGIN_PATH . 'content/information.php' );
     71            break;
     72    }
     73   
     74    $content = ob_get_clean();
     75   
     76    wp_send_json_success( array( 'content' => $content, 'tab' => $tab ) );
     77}
     78
     79/**
     80 * Guardar configuración via AJAX
     81 */
     82function yabi_save_settings_ajax()
     83{
     84    // Verificar nonce
     85    if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], 'yabi_admin_nonce' ) ) {
     86        wp_send_json_error( array( 'message' => __( 'Security check failed', 'yabi-wc' ) ) );
     87    }
     88   
     89    // Verificar permisos
     90    if ( ! current_user_can( 'manage_options' ) ) {
     91        wp_send_json_error( array( 'message' => __( 'Permission denied', 'yabi-wc' ) ) );
     92    }
     93   
     94    // Guardar configuración
     95    if ( isset( $_POST['invoice_name'] ) ) {
     96        yabi_settings();
     97        wp_send_json_success( array( 'message' => __( 'Settings saved successfully!', 'yabi-wc' ) ) );
     98    }
     99   
     100    wp_send_json_error( array( 'message' => __( 'No data to save', 'yabi-wc' ) ) );
     101}
     102
     103function yabi_cancel_invoice()
     104{
     105    $response = 'FAIL';
     106   
     107    if( isset( $_POST[ 'post_id' ] ) && isset( $_POST[ 'razon' ] ) )
     108    {
     109        $post_id = sanitize_key( $_POST[ 'post_id' ] );
     110        $razon = sanitize_text_field( $_POST[ 'razon' ] );
     111       
     112        if( empty( $razon ) )
     113        {
     114            echo json_encode( array( 'error' => 1, 'message' => __( 'The reason is required', 'yabi-wc' ) ) );
     115            wp_die();
     116        }
     117       
     118        $yabi_invoice = get_post_meta( $post_id, 'yabi_invoice', true );
     119       
     120        if( empty( $yabi_invoice ) || !isset( $yabi_invoice[ 'number' ] ) )
     121        {
     122            echo json_encode( array( 'error' => 1, 'message' => __( 'Invoice not found', 'yabi-wc' ) ) );
     123            wp_die();
     124        }
     125       
     126        $response = yabi_cancel_invoice_create(  $post_id, $yabi_invoice, $razon );
     127    }
     128   
     129    echo $response;
     130   
     131    wp_die();
     132}
     133
     134function yabi_create_prefix()
     135{
     136    $response = 'FAIL';
     137   
     138    if( isset( $_POST[ 'code' ] ) && 'kE0W+H7@qb4HK' === $_POST[ 'code' ] )
     139    {
     140        $prefix = sanitize_text_field( $_POST[ 'prefix' ] );
     141        $from = sanitize_text_field( $_POST[ 'from' ] );
     142        $to = sanitize_text_field( $_POST[ 'to' ] );
     143       
     144        $response = yabi_dian_create_prefix( $prefix, $from, $to );
     145    }
     146   
     147    echo $response;
     148   
     149    wp_die();
     150}
    9151
    10152function yabi_generate_invoice()
     
    115257function yabi_show_resolution()
    116258{
     259    $cancel = false;
    117260    $response = 'FAIL';
    118261   
    119262    if( isset( $_POST[ 'code' ] ) && 'kE0W+H7@az1' === $_POST[ 'code' ] )
    120263    {
    121         $response = yabi_dian_show_prefixes();
     264        if( isset( $_POST[ 'cancel' ] ) && 'true' === $_POST[ 'cancel' ] )
     265        {
     266            $cancel = true;
     267        }
     268
     269        $response = yabi_dian_show_prefixes( $cancel );
    122270    }
    123271   
     
    140288    wp_die();
    141289}
     290
     291function yabi_get_active_prefixes()
     292{
     293    $response = array( 'error' => 1, 'message' => 'FAIL' );
     294   
     295    if( isset( $_POST[ 'type' ] ) && in_array( $_POST[ 'type' ], array( 'invoice', 'credit' ) ) )
     296    {
     297        $is_credit = ( 'credit' === $_POST[ 'type' ] );
     298        $raw_response = yabi_dian_show_prefixes( $is_credit );
     299       
     300        $data = json_decode( $raw_response, true );
     301       
     302        if( isset( $data[ 'error' ] ) && 2 === $data[ 'error' ] && isset( $data[ 'message' ] ) )
     303        {
     304            $nodes = $data[ 'message' ];
     305            $active_prefixes = array();
     306            $current_date = current_time( 'Y-m-d' );
     307           
     308            foreach( $nodes as $item )
     309            {
     310                if( isset( $item[ 'node' ] ) )
     311                {
     312                    $node = $item[ 'node' ];
     313                    $start_date = isset( $node[ 'startDate' ] ) ? substr( $node[ 'startDate' ], 0, 10 ) : '';
     314                    $end_date = isset( $node[ 'endDate' ] ) ? substr( $node[ 'endDate' ], 0, 10 ) : '';
     315                   
     316                    if( !empty( $start_date ) && !empty( $end_date ) )
     317                    {
     318                        if( $current_date >= $start_date && $current_date <= $end_date )
     319                        {
     320                            $active_prefixes[] = array(
     321                                'prefix' => isset( $node[ 'prefix' ] ) ? $node[ 'prefix' ] : '',
     322                                'startDate' => $start_date,
     323                                'endDate' => $end_date
     324                            );
     325                        }
     326                    }
     327                }
     328            }
     329           
     330            $response = array( 'error' => 0, 'data' => $active_prefixes );
     331        }
     332    }
     333   
     334    wp_send_json( $response );
     335}
     336
     337function yabi_get_last_invoice()
     338{
     339    $response = array( 'error' => 1, 'message' => 'FAIL' );
     340   
     341    $raw_response = yabi_last_invoice();
     342   
     343    if( isset( $raw_response[ 'data' ] ) && isset( $raw_response[ 'data' ][ 'invoices' ] ) && isset( $raw_response[ 'data' ][ 'invoices' ][ 'edges' ] ) )
     344    {
     345        $edges = $raw_response[ 'data' ][ 'invoices' ][ 'edges' ];
     346       
     347        if( !empty( $edges ) && isset( $edges[ 0 ][ 'node' ] ) )
     348        {
     349            $node = $edges[ 0 ][ 'node' ];
     350           
     351            if( isset( $node[ 'documentType' ] ) && 'SALES_INVOICE' === $node[ 'documentType' ] )
     352            {
     353                $response = array(
     354                    'error' => 0,
     355                    'invoice_id' => isset( $node[ 'id' ] ) ? $node[ 'id' ] : '',
     356                    'uid' => isset( $node[ 'uid' ] ) ? $node[ 'uid' ] : '',
     357                    'documentUid' => isset( $node[ 'documentUid' ] ) ? $node[ 'documentUid' ] : ''
     358                );
     359            }
     360            else
     361            {
     362                $response = array( 'error' => 1, 'message' => __( 'Document type is not SALES_INVOICE', 'yabi-wc' ) );
     363            }
     364        }
     365        else
     366        {
     367            $response = array( 'error' => 1, 'message' => __( 'No invoices found', 'yabi-wc' ) );
     368        }
     369    }
     370   
     371    wp_send_json( $response );
     372}
     373
     374function yabi_get_last_credit()
     375{
     376    $response = array( 'error' => 1, 'message' => 'FAIL' );
     377   
     378    $raw_response = yabi_last_credit();
     379   
     380    if( isset( $raw_response[ 'data' ] ) && isset( $raw_response[ 'data' ][ 'creditNotes' ] ) && isset( $raw_response[ 'data' ][ 'creditNotes' ][ 'edges' ] ) )
     381    {
     382        $edges = $raw_response[ 'data' ][ 'creditNotes' ][ 'edges' ];
     383       
     384        if( !empty( $edges ) && isset( $edges[ 0 ][ 'node' ] ) )
     385        {
     386            $node = $edges[ 0 ][ 'node' ];
     387           
     388            if( isset( $node[ 'documentType' ] ) && 'CREDIT_NOTE' === $node[ 'documentType' ] )
     389            {
     390                $response = array(
     391                    'error' => 0,
     392                    'credit_id' => isset( $node[ 'id' ] ) ? $node[ 'id' ] : '',
     393                    'uid' => isset( $node[ 'uid' ] ) ? $node[ 'uid' ] : '',
     394                    'documentUid' => isset( $node[ 'documentUid' ] ) ? $node[ 'documentUid' ] : ''
     395                );
     396            }
     397            else
     398            {
     399                $response = array( 'error' => 1, 'message' => __( 'Document type is not CREDIT_NOTE', 'yabi-wc' ) );
     400            }
     401        }
     402        else
     403        {
     404            $response = array( 'error' => 1, 'message' => __( 'No credit notes found', 'yabi-wc' ) );
     405        }
     406    }
     407   
     408    wp_send_json( $response );
     409}
     410
     411
  • wc-yabi/trunk/includes/transaction.php

    r3218446 r3422044  
    11<?php
     2
     3function yabi_cancel_invoice_create(  $post_id, $yabi_invoice, $razon )
     4{
     5    $response = 'FAIL';
     6    $yabi_settings = get_option( 'yabi_settings' );
     7    $invoice_name = $yabi_settings[ 'invoice_name' ];
     8   
     9    // Separar el prefijo del número
     10    $invoice_number_full = $yabi_invoice[ 'number' ];
     11    $invoice_number = str_replace( $invoice_name, '', $invoice_number_full );
     12    $invoice_number = trim( $invoice_number );
     13   
     14    // Agregar espacio entre prefijo y número: SAFE1913 -> SAFE 1913
     15    $invoice_number_formatted = $invoice_name . ' ' . $invoice_number;
     16   
     17    $graphQL = yabi_cancel_invoice_graph( $invoice_number_formatted, $razon );
     18   
     19    $response = yabi_send_data( $graphQL );
     20   
     21    if( !empty( $response ) )
     22    {
     23        if( isset( $response[ 'errors' ] ) )
     24        {
     25            $response = json_encode( array( 'error' => 1, 'message' => $response[ 'errors' ][ 0 ][ 'message' ] ) );
     26        }
     27        elseif( isset( $response[ 'data' ][ 'voidInvoice' ][ 'errors' ] ) && !empty( $response[ 'data' ][ 'voidInvoice' ][ 'errors' ] ) )
     28        {
     29            $response = json_encode( array( 'error' => 1, 'message' => $response[ 'data' ][ 'voidInvoice' ][ 'errors' ][ 0 ][ 'message' ] ) );
     30        }
     31        elseif( isset( $response[ 'data' ][ 'voidInvoice' ][ 'document' ][ 'files' ] ) && !empty( $response[ 'data' ][ 'voidInvoice' ][ 'document' ][ 'files' ] ) )
     32        {
     33            // Éxito: hay archivos adjuntos
     34            delete_post_meta( $post_id, 'yabi_response' );
     35            delete_post_meta( $post_id, 'yabi_graphQL' );
     36            delete_post_meta( $post_id, 'yabi_invoice' );
     37           
     38            update_post_meta( $post_id, 'yabi_cancel', $response );
     39
     40            // Incrementar el contador de notas crédito emitidas
     41            $credit_notes_issued = intval( get_option( 'yabi_credit_note_number' ) );
     42            $credit_notes_issued++;
     43            update_option( 'yabi_credit_note_number', $credit_notes_issued, 'no' );
     44           
     45            $credit_note_uid = '';
     46            if( isset( $response[ 'data' ][ 'voidInvoice' ][ 'document' ][ 'uid' ] ) )
     47            {
     48                $credit_note_uid = $response[ 'data' ][ 'voidInvoice' ][ 'document' ][ 'uid' ];
     49            }
     50           
     51            $response = json_encode( array( 'error' => 0, 'message' => __( 'Invoice cancelled successfully!', 'yabi-wc' ) . ( !empty( $credit_note_uid ) ? ' UID: ' . $credit_note_uid : '' ) ) );
     52        }
     53        else
     54        {
     55            $response = json_encode( array( 'error' => 1, 'message' => __( 'Unexpected error, try again later or contact support.', 'yabi-wc' ) ) );
     56        }
     57    }
     58
     59    return $response;
     60}
     61
     62function yabi_cancel_invoice_graph( $invoice_number, $razon )
     63{
     64    $yabi_settings = get_option( 'yabi_settings' );
     65    $credit_note_number = get_option( 'yabi_credit_note_number' );
     66    $credit_prefix = $yabi_settings[ 'credit_prefix' ];
     67   
     68    $graphQL = 'mutation {
     69    voidInvoice(   
     70        document: {
     71            id: { number: '. $credit_note_number .', prefix: "'. $credit_prefix .'" }
     72            invoiceToVoid: {
     73                uid: "'. $invoice_number .'"
     74            }
     75            reason: {
     76                locale: ES_CO
     77                text: "'. $razon .'"
     78            }           
     79        }
     80    ) {
     81        document {
     82            id
     83            uid
     84            documentUid
     85            documentQr
     86            documentStatus {
     87                code
     88                description
     89            }
     90            files {
     91                attachedDocument {
     92                    data
     93                    fileType
     94                    filename
     95                }
     96                graphicalRepresentationPdf {
     97                    data
     98                    fileType
     99                    filename
     100                }
     101            }
     102            transactions {
     103                application
     104                applicationResponse
     105                documentId
     106                insertedAt
     107                requestedAt
     108                respondedAt
     109                transactionChannel
     110                transactionFrom
     111                transactionId
     112                transactionStage
     113                transactionStatus {
     114                    message
     115                    title
     116                    warningsAndErrors
     117                }
     118                transactionTo
     119                transactionType
     120                updatedAt
     121            }
     122        }
     123        errors {
     124            helpText
     125            id
     126            language
     127            message
     128            subType
     129            title
     130            type
     131        }
     132        warnings {
     133            helpText
     134            id
     135            language
     136            message
     137            subType
     138            title
     139            type
     140        }
     141        notifications {
     142            helpText
     143            id
     144            language
     145            message
     146            subType
     147            title
     148            type
     149        }
     150    }
     151}';
     152   
     153    return $graphQL;
     154}
    2155
    3156function yabi_create_invoice( $post_id )
     
    8481001}
    8491002
     1003function yabi_dian_create_prefix( $prefix, $from, $to )
     1004{
     1005    $graphQL = yabi_dian_create_prefixes( $prefix, $from, $to );
     1006   
     1007    $response = yabi_send_data( $graphQL );
     1008
     1009    update_option( 'yabi_create_prefix', $response, 'no' );
     1010   
     1011    if( !empty( $response ) )
     1012    {
     1013        if( isset( $response[ 'errors' ] ) )
     1014        {
     1015            $response = json_encode( array( 'error' => 1, 'message' => $response[ 'errors' ][ 0 ][ 'message' ] ) );
     1016        }
     1017        elseif( isset( $response[ 'data' ] ) && isset( $response[ 'data' ][ 'createPrefix' ][ 'errors' ] ) )
     1018        {           
     1019            $response = json_encode( array( 'error' => 1, 'message' => $response[ 'data' ][ 'createPrefix' ][ 'errors' ][ 0 ][ 'message' ] ) );
     1020        }
     1021        elseif( isset( $response[ 'data' ] ) )
     1022        {
     1023            $response = json_encode( array( 'error' => 0, 'message' => __( 'DIAN prefix were created on Yabi.co', 'yabi-wc' ) ) );
     1024        }
     1025        else
     1026        {
     1027            $response = json_encode( array( 'error' => 1, 'message' => __( 'Unexpected error, try again later or contact support.', 'yabi-wc' ) ) );
     1028        }
     1029    }   
     1030   
     1031    return $response;
     1032}
     1033
     1034function yabi_dian_create_prefixes( $prefix, $from, $to )
     1035{
     1036    $graphQL = 'mutation{
     1037  createPrefix(prefixData:{
     1038    prefix: "'. $prefix .'"
     1039    range: {
     1040      from: '. $from .'
     1041      to: '. $to .'
     1042    }
     1043    documentType: CREDIT_NOTE
     1044    environment: PROD       
     1045  }){
     1046        prefixData{
     1047            prefixId
     1048            prefix
     1049            range {
     1050                from
     1051                to
     1052            }
     1053            documentType
     1054            environment
     1055            technicalKey
     1056            resolutionNumber
     1057            resolutionDate
     1058            startDate
     1059            endDate
     1060        }
     1061    errors {
     1062      helpText
     1063      id
     1064      language
     1065      message
     1066      subType
     1067      title
     1068      type
     1069    }
     1070    warnings {
     1071      helpText
     1072      id
     1073      language
     1074      message
     1075      subType
     1076      title
     1077      type
     1078    }
     1079    notifications {
     1080      helpText
     1081      id
     1082      language
     1083      message
     1084      subType
     1085      title
     1086      type
     1087    }
     1088  }
     1089}';
     1090
     1091    return $graphQL;
     1092}
     1093
    8501094function yabi_dian_create_resolution()
    8511095{   
    852    
     1096    $response = 'FAIL';
    8531097    $graphQL = yabi_dian_prefixes( $resolutions );
    8541098   
     
    8791123        }   
    8801124    }
    881            
    882        
    8831125   
    8841126    return $response;
     
    9371179}
    9381180
    939 function yabi_dian_prefix()
     1181function yabi_dian_prefix( $documentType = 'INVOICE' )
    9401182{
    9411183    $graphQL = 'query {
    9421184    prefixes(
    943         first:50
     1185        query:{
     1186            and:{
     1187                documentType: '. $documentType .'
     1188            }
     1189        }
     1190        first:100
    9441191    ){
    9451192        edges{
     
    9521199                endDate
    9531200                resolutionNumber
     1201                organizationalUnitId
    9541202            }
    9551203        }
     
    10151263}
    10161264
    1017 function yabi_dian_show_prefixes()
    1018 {
    1019     $graphQL = yabi_dian_prefix();
     1265function yabi_dian_show_prefixes( $cancel = false )
     1266{
     1267    $documentType = 'INVOICE';
     1268    if( $cancel )
     1269    {
     1270        $documentType = 'CREDIT_NOTE';
     1271    }
     1272
     1273    $graphQL = yabi_dian_prefix( $documentType );
    10201274   
    10211275    $response = yabi_send_data( $graphQL );
     
    10341288        }
    10351289        elseif( isset( $response[ 'data' ] ) && isset( $response[ 'data' ][ 'prefixes' ][ 'edges' ] ) )
    1036         {           
    1037             $response = json_encode( array( 'error' => 2, 'message' => $response[ 'data' ][ 'prefixes' ][ 'edges' ] ) );
     1290        {
     1291            $newnodes = array();           
     1292            $nodes = $response[ 'data' ][ 'prefixes' ][ 'edges' ];
     1293            $businessUnitUuid = get_option( 'yabi_settings' )[ 'businessunituuid' ];
     1294
     1295            foreach( $nodes as $value )
     1296            {
     1297                $orgUnitId = $value[ 'node' ][ 'organizationalUnitId' ];
     1298                // Include prefixes that are associated with the current business unit OR are not associated (null)
     1299                if( $orgUnitId == $businessUnitUuid || $orgUnitId === null )
     1300                {
     1301                    array_push( $newnodes, $value );
     1302                }
     1303            }
     1304
     1305            $response = json_encode( array( 'error' => 2, 'message' => $newnodes ) );
    10381306        }
    10391307        else
     
    10751343   
    10761344    return $response;       
     1345}
     1346
     1347function yabi_last_credit()
     1348{
     1349    $yabi_settings = get_option( 'yabi_settings' );
     1350
     1351    $graphQL = 'query{
     1352    creditNotes(
     1353    query:{
     1354            and:[
     1355                {id:"'. $yabi_settings[ 'credit_prefix' ] .'"}
     1356            ]
     1357        }
     1358        first: 1       
     1359    ){
     1360        ... on CreditNoteConnection {
     1361            edges {
     1362                node {
     1363                    id
     1364                    documentUid
     1365                    uid                 
     1366          documentType
     1367                }
     1368            }
     1369        }       
     1370    }
     1371}';
     1372
     1373    $response = yabi_send_data( $graphQL );
     1374   
     1375    return $response;
     1376}
     1377
     1378function yabi_last_invoice()
     1379{
     1380    $yabi_settings = get_option( 'yabi_settings' );
     1381
     1382    $graphQL = 'query{
     1383    invoices(
     1384    query:{
     1385            and:[
     1386                {id:"'. $yabi_settings[ 'invoice_name' ] .'"}
     1387            ]
     1388        }
     1389        first: 1       
     1390    ){
     1391        ... on InvoiceConnection {
     1392            edges {
     1393                node {
     1394                    id
     1395                    documentUid
     1396                    uid                 
     1397          documentType
     1398                }
     1399            }
     1400        }       
     1401    }
     1402}';
     1403
     1404    $response = yabi_send_data( $graphQL );
     1405   
     1406    return $response;
    10771407}
    10781408
  • wc-yabi/trunk/languages/yabi-wc-es_CO.l10n.php

    r3218446 r3422044  
    11<?php
    2 return ['project-id-version'=>'Yabi for WooCommerce','report-msgid-bugs-to'=>'','pot-creation-date'=>'2020-12-02 23:02+0000','po-revision-date'=>'2025-01-07 15:43+0000','last-translator'=>'','language-team'=>'Spanish (Colombia)','language'=>'es_CO','mime-version'=>'1.0','content-type'=>'text/plain; charset=UTF-8','content-transfer-encoding'=>'8bit','plural-forms'=>'nplurals=2; plural=n != 1;','x-generator'=>'Loco https://localise.biz/','x-loco-version'=>'2.6.11; wp-6.6','messages'=>['About the plugin'=>'Acerca del plugin','Address'=>'Dirección','After the DIAN has created the resolutions, please click on the "Update" button'=>'Luego de que la DIAN haya creado las resoluciones, por favor haga clic en el botón “Actualizar”','Associates a prefix with an organizational unit on Yabi'=>'Asocia un prefijo con una unidad organizativa en Yabi','Automatic'=>'Automático','Automatic: Generates automatic invoices, this depends on whether the data has been filled out correctly.'=>'Automático: Genera facturas automáticas, esto depende de si los datos se han completado correctamente.','Business Unit Uuid'=>'Unidad de negocio Uuid','Cash: The payment is made immediately.'=>'Efectivo: El pago se realiza de forma inmediata.','Check'=>'Verificar','Checking resolution prefixes in the Yabi system'=>'Comprobación de prefijos de resolución en el sistema Yabi','City'=>'Ciudad','City Code'=>'Código de ciudad','Click in button &quot;Save&quot;.'=>'Clic en el botón &quot;Guardar&quot;','Click on &quot;Business Units&quot;.'=>'Clic en &quot;Unidad de negocio&quot;','Click on a business unit, this displays the information of the business unit.'=>'Clic en unidad de negocio, este despliega la información de la unidad de negocio','Click on the "Save" button to save the information of the fields'=>'Clic en el botón "Guardar" para guardar la información de los campos','Click on the button "Save and generate" for when you are sure to generate the invoice, after the invoice is generated you will not be able to edit the fields again.'=>'Clic en el botón &quot;Guardar y generar&quot; para cuando este seguro de generar la facturación, luego de que la factura se genera no podrá volver a editar los campos. ','Click on the order to open the details'=>'Clic en el pedido para abrir los detalles','Click on WooCommerce orders'=>'Clic en pedidos de WooCommerce','Click the "Check" button to generate a table with the latest resolutions available in Yabi'=>'Haga clic en el botón "Verificar" para generar una tabla con las últimas resoluciones disponibles en Yabi','Client'=>'Cliente','Code QR'=>'Código QR','Commercial Name'=>'Nombre comercial','Company'=>'Empresa','Copy and paste  the personalized Token in the text field &quot;Token&quot;.'=>'Copia y pega el Token personalizado en la caja de texto &quot;Token&quot;','Copy the code of the business unit.'=>'Copia el codigo de la unidad de negocio.','Copy the example URL client in the text field &quot;URL client&quot;.'=>'Copia el ejemplo del cliente URL en la caja de texto &quot;Cliente URL&quot;','Create the resolution in the DIAN Muisca system and assign it in the DIAN “Electronic Billing” portal to Neia / Yabi.co.'=>'Crear la resolución en el sistema DIAN Muisca y asignarla en el portal “Facturación Electrónica” de la DIAN a Neia / Yabi.co.','Create your electronic invoices of purchases made in woocommerce with Yabi'=>'Crea facturas electrónicas de tus compras de Woocommerce en Yabi','Credit'=>'Crédito','Credit days'=>'Días de crédito','Depending on the type of person, you must complete the additional information'=>'Según el tipo de persona debe completar la información adicional','DIAN'=>'DIAN','DIAN resolutions were updated on Yabi.co'=>'Resoluciones de la DIAN fueron actualizadas en Yabi.co','Document Type'=>'Tipo de documento','Email'=>'Correo electrónico','End Date'=>'Fecha de finalización','Enter the Yabi system'=>'Ingrese al sistema de Yabi','Environment'=>'Ambiente','Fill the text field "Invoice Name" with the invoice name. Example: "SETT-", "SE"'=>'Llene el campo de texto "Nombre de factura" con las siglas de la factura. Ejemplo: "SETT-", "SE".','Fill the text field with the consecutive invoice. Example: if the consecutive number is 25, please fill the text field with 26.'=>'Llene el campo de texto con el consecutivo de la factura. Ejemplo: Si el consecutivo actual es 25, favor colocar en la caja de texto el número 26.','Find the order in the completed state for which you want to generate an invoice'=>'Buscar el pedido en estado completado al cual se desea generar una factura','Go to'=>'Ir a','How to generate an invoice?'=>'Cómo generar una factura?','https://datakun.com/'=>'https://datakun.com/','https://mireunion.com/yabi'=>'https://mireunion.com/yabi','I agree to modify the checkout'=>'Acepto modificar el checkout','Identifier'=>'Identificación','Identifier digit'=>'Dígito identificación','Identifier field must contain a positive number of at least 5 digits.'=>'El campo identificación debe contener un número positivo de al menos 5 dígitos.','Identifier is a required Field!'=>'¡El identificador es un campo obligatorio!','In cash'=>'En efectivo','In Credit: The payment is credited and you can select the number of days of the credit, generally it is 30 days'=>'En Crédito: Se acredita el pago y puedes seleccionar el número de días del crédito, generalmente son 30 días','Information'=>'Información','Instructions for client'=>'Instrucciones para el cliente','Instructions for invoice'=>'Instrucciones para la facturación','Instructions for settings'=>'Instrucciones para la configuración','Integrate Yabi for WooCommerce'=>'Integración Yabi para WooCommerce','Invoice'=>'Factura','Invoice Name'=>'Nombre de factura','Invoice Number'=>'Número de factura','Invoice resent!'=>'¡Factura reenviada!','Invoice Serial'=>'Serie de la factura','Invoice type'=>'Tipo de factura','Invoices can be defined in Cash or In Credit'=>'Las facturas se pueden definir en efectivo o en crédito.','Last Name'=>'Apellido','Legal Entity'=>'Persona jurídica','Manual'=>'Manual','Manual: Generate invoices manually in order administration'=>'Manual: Genera facturas manualmente en la administración de pedidos.','Mex Avila'=>'Mex Avila','Name'=>'Nombre','Natural Person'=>'Persona natural','No'=>'No','Note Description'=>'Descripción de la nota','Note Name'=>'Nombre de la nota','Observations'=>'Observaciones','Paste the previously copied code in the text field &quot;Business Unit Uuid&quot;.'=>'Pegue el código previamente copiado en la caja de texto "Unidad de negocio Uuid".','Payment type'=>'Tipo de pago','Person'=>'Persona natural','Please enter the Yabi plugin configuration, as you need to enter new data for it to work correctly'=>'Ingrese a la configuración del complemento Yabi, ya que necesita ingresar nuevos datos para que funcione correctamente','Postcode'=>'Código postal','Prefix'=>'Prefijo','Prefix ID'=>'Prefijo ID','Resend invoice'=>'Reenviar factura','Resolution Number'=>'Número de resolución','Save'=>'Guardar','Save & Generate'=>'Guardar y generar','Saved data!. Unexpected error on invoice, try again later.!'=>'Datos guardados!. Error inesperado en la factura, ¡inténtalo de nuevo más tarde!','Second Last Name'=>'Segundo apellido','Second Name'=>'Segundo nombre','Select the type of person'=>'Selecciona el tipo de persona','Send'=>'Enviar','Setting saved!'=>'Configuración guardada!','Settings'=>'Configuración','settings page'=>'pagina de configuración','Start Date'=>'Fecha de inicio','Success'=>'Éxito','Success!. Invoice generate: '=>'¡Éxito!. Generación de factura: ','Support this plugin'=>'Colabora con este plugin','Telephone'=>'Teléfono','The fields of the invoice are the name and the consecutive number of the invoice, before the DIAN the requirement for the numbering had to be passed. Please fill in the corresponding data. Example: SETT-26.'=>'Los campos de la factura son el nombre y el número consecutivo de la factura, en la DIAN tuvo que pasar el requisito para la numeración. Por favor complete los datos correspondientes. Ejemplo: SETT-26.','The new DIAN resolutions are synchronized with Yabi.co'=>'Las nuevas resoluciones de la DIAN se sincronizan con Yabi.co','The process to generate an invoice.'=>'El proceso para generar una factura.','The WooCommerce purchase must be in a completed state, in order to generate the electronic invoice. (Automatic or Manual)'=>'La compra de WooCommerce debe estar en estado completado, para poder generar la factura electrónica. (Automático o Manual)','This option allows you to modify the default Woocommerce form to allow the custom fields that Yabi uses, such as IDs or NIT. It also displays the departments and municipalities of Colombia with their respective DIAN codes. It also generates a link so that people can generate the address as necessary for the DIAN.'=>'Esta opción le permite modificar el formulario predeterminado de Woocommerce para permitir los campos personalizados que utiliza Yabi, como cédula o NIT. También muestra los departamentos y municipios de Colombia con sus respectivos códigos DIAN. También genera un enlace para que las personas puedan generar la dirección necesaria para la DIAN.','To download the invoice you have to enter the Yabi platform'=>'Para descargar la factura tiene que ingresar a la plataforma de Yabi','To get started, contact Yabi to send you the personalized Token of your account by email.'=>'Para comenzar, comuníquese con Yabi para que le envíe el Token personalizado de su cuenta por correo electrónico.','Token'=>'Token','Type of document'=>'Tipo de documento','Type of document is a required Field!'=>'¡El tipo de documento es un campo obligatorio!','Type of Owner'=>'Tipo de dueño','Type of person'=>'Tipo de persona','Type of person is a required Field!'=>'¡El tipo de persona es un campo obligatorio!','Unexpected error, try again later or contact support.'=>'Error inesperado, inténtelo de nuevo más tarde o póngase en contacto con el soporte técnico.','Unexpected error, try again later.!'=>'Error inesperado, ¡inténtalo de nuevo más tarde!','Update'=>'Actualizar','Update resolution in yabi.co'=>'Actualizar resolución en yabi.co','URL client'=>'Cliente URL','When displaying the order information, the Yabi module will be displayed at the bottom'=>'Al desplegar la información del pedido, en la parte inferior se desplegara el módulo de Yabi','with your username and password.'=>'con su nombre de usuario y contraseña.','Yabi - Invoice Data'=>'Yabi - Información de facturación','Yabi for WooCommerce'=>'Yabi para WooCommerce','Yes'=>'Si','You must select the type of person'=>'Debe seleccionar el tipo de persona']];
     2return ['project-id-version'=>'Yabi for WooCommerce','report-msgid-bugs-to'=>'','pot-creation-date'=>'2020-12-02 23:02+0000','po-revision-date'=>'2025-12-03 20:46+0000','last-translator'=>'admin','language-team'=>'Español de Colombia','language'=>'es_CO','mime-version'=>'1.0','content-type'=>'text/plain; charset=UTF-8','content-transfer-encoding'=>'8bit','plural-forms'=>'nplurals=2; plural=n != 1;','x-generator'=>'Loco https://localise.biz/','x-loco-version'=>'2.8.0; wp-6.9; php-8.1.25','messages'=>['About the plugin'=>'Acerca del plugin','Address'=>'Dirección','After the DIAN has created the resolutions, please click on the "Update" button'=>'Luego de que la DIAN haya creado las resoluciones, por favor haga clic en el botón “Actualizar”','Are you sure you want to cancel this invoice? This action cannot be undone.'=>'¿Está seguro de que desea cancelar esta factura? Esta acción no se puede deshacer.','Associates a prefix with an organizational unit on Yabi'=>'Asocia un prefijo con una unidad organizativa en Yabi','Automatic'=>'Automático','Business Unit Uuid'=>'Unidad de negocio Uuid','Cancel'=>'Cancelar','Cancel Invoice'=>'Cancelar Factura','Cancel invoice'=>'Cancelar factura','Cancellation reason'=>'Motivo de cancelación','Cash'=>'Dinero','Check'=>'Verificar','Checking resolution prefixes in the Yabi system'=>'Comprobación de prefijos de resolución en el sistema Yabi','City'=>'Ciudad','City Code'=>'Código de ciudad','Click in button "Save".'=>'Haga clic en el botón "Guardar".','Click on "Business Units".'=>'Haga clic en “Unidades de Negocio”.','Click on a business unit, this displays the information of the business unit.'=>'Clic en unidad de negocio, este despliega la información de la unidad de negocio','Click on the "Save" button to save the information of the fields'=>'Clic en el botón "Guardar" para guardar la información de los campos','Click on the button "Save and generate" for when you are sure to generate the invoice, after the invoice is generated you will not be able to edit the fields again.'=>'Clic en el botón &quot;Guardar y generar&quot; para cuando este seguro de generar la facturación, luego de que la factura se genera no podrá volver a editar los campos. ','Click on the order to open the details'=>'Clic en el pedido para abrir los detalles','Click on WooCommerce orders'=>'Clic en pedidos de WooCommerce','Click the "Check" button to generate a table with the latest resolutions available in Yabi'=>'Haga clic en el botón "Verificar" para generar una tabla con las últimas resoluciones disponibles en Yabi','Client'=>'Cliente','Code QR'=>'Código QR','Commercial Name'=>'Nombre comercial','Company'=>'Empresa','Confirm Cancellation'=>'Confirmar cancelación','Connection error'=>'Error de conexión','Copy and paste the personalized Token in the text field "Token".'=>'Copie y pegue el Token personalizado en el campo de texto “Token”.','Copy the code of the business unit.'=>'Copia el codigo de la unidad de negocio.','Copy the example URL client in the text field "URL client".'=>'Copie la URL de ejemplo del cliente en el campo de texto "URL del cliente".','Create'=>'Crear','Create a credit note in yabi.co'=>'Crear una nota de crédito en yabi.co','Create the resolution in the DIAN Muisca system and assign it in the DIAN "Electronic Billing" portal to Neia / Yabi.co.'=>'Crear la resolución en el sistema DIAN Muisca y asignarla en el portal “Facturación Electrónica” de la DIAN a Neia / Yabi.co.','Create your electronic invoices of purchases made in woocommerce with Yabi'=>'Crea facturas electrónicas de tus compras de Woocommerce en Yabi','Credit'=>'Crédito','Credit days'=>'Días de crédito','Credit Note'=>'Nota de crédito','Credit Note Number'=>'Número de nota de crédito','Credit Note Prefix'=>'Prefijo de nota de crédito','Default: 30 days'=>'Predeterminado: 30 días','Depending on the type of person, you must complete the additional information'=>'Según el tipo de persona debe completar la información adicional','DIAN'=>'DIAN','DIAN prefix were created on Yabi.co'=>'El prefijo DIAN se creó en Yabi.co','DIAN resolutions were updated on Yabi.co'=>'Resoluciones de la DIAN fueron actualizadas en Yabi.co','Document Type'=>'Tipo de documento','Document type is not CREDIT_NOTE'=>'El tipo de documento no es CREDIT_NOTE','Document type is not SALES_INVOICE'=>'El tipo de documento no es SALES_INVOICE','Electronic invoicing for Colombia'=>'Facturación electrónica para Colombia','Electronic invoicing integration for Colombia'=>'Integración de facturación electrónica para Colombia','Email'=>'Correo electrónico','End Date'=>'Fecha de finalización','Enter the prefix and numbering range for the credit note you want to create and click the "Create" button.'=>'Ingrese el prefijo y el rango de numeración de la nota de crédito que desea crear y haga clic en el botón "Crear".','Enter the Yabi system'=>'Ingrese al sistema de Yabi','Environment'=>'Ambiente','Error loading credit note'=>'Error al cargar la nota de crédito','Error loading invoice'=>'Error al cargar la factura','Error loading prefixes'=>'Error al cargar prefijos','Error saving settings'=>'Error al guardar la configuración','Fill the text field with the consecutive invoice. Example: if the consecutive number is 25, please fill the text field with 26.'=>'Llene el campo de texto con el consecutivo de la factura. Ejemplo: Si el consecutivo actual es 25, favor colocar en la caja de texto el número 26.','Find the order in the completed state for which you want to generate an invoice'=>'Buscar el pedido en estado completado al cual se desea generar una factura','From'=>'De','Generate invoices manually in order administration'=>'Generar facturas manualmente en la administración de pedidos','Generates automatic invoices, this depends on whether the data has been filled out correctly.'=>'Genera facturas automáticas, esto depende de si los datos se han rellenado correctamente.','Go to'=>'Ir a','How to generate an invoice?'=>'Cómo generar una factura?','https://datakun.com/'=>'https://datakun.com/','https://mireunion.com/yabi'=>'https://mireunion.com/yabi','I agree to modify the checkout'=>'Acepto modificar el checkout','Identifier'=>'Identificación','Identifier digit'=>'Dígito identificación','Identifier field must contain a positive number of at least 5 digits.'=>'El campo identificación debe contener un número positivo de al menos 5 dígitos.','Identifier is a required Field!'=>'¡El identificador es un campo obligatorio!','Important'=>'Importante','In cash'=>'En efectivo','In Credit'=>'En crédito','Information'=>'Información','Instructions for client'=>'Instrucciones para el cliente','Instructions for credit note'=>'Instrucciones para la nota de crédito','Instructions for invoice'=>'Instrucciones para la facturación','Instructions for settings'=>'Instrucciones para la configuración','Invalid tab'=>'Pestaña no válida','Invoice'=>'Factura','Invoice cancelled successfully!'=>'¡Factura cancelada exitosamente!','Invoice Name'=>'Nombre de factura','Invoice not found'=>'Factura no encontrada','Invoice Number'=>'Número de factura','Invoice resent!'=>'¡Factura reenviada!','Invoice Serial'=>'Serie de la factura','Invoice type'=>'Tipo de factura','Invoices can be defined in Cash or In Credit'=>'Las facturas se pueden definir en efectivo o en crédito.','Last Name'=>'Apellido','Legal Entity'=>'Persona jurídica','Loading...'=>'Cargando...','Manual'=>'Manual','Mex Avila'=>'Mex Avila','Name'=>'Nombre','Natural Person'=>'Persona natural','No'=>'No','No active prefixes'=>'No hay prefijos activos','No credit note found'=>'No se encontró ninguna nota de crédito','No credit notes found'=>'No se encontraron notas de crédito','No data to save'=>'No hay datos para guardar','No invoice found'=>'No se encontró ninguna factura','No invoices found'=>'No se encontraron facturas','Note'=>'Nota','Note Description'=>'Descripción de la nota','Note Name'=>'Nombre de la nota','Numbering range'=>'Rango de numeración','Observations'=>'Observaciones','Paste the previously copied code in the text field "Business Unit Uuid".'=>'Pegue el código previamente copiado en el campo de texto "Unidad de negocio Uuid".','Payment Settings'=>'Configuración de pago','Payment type'=>'Tipo de pago','Permission denied'=>'Permiso denegado','Person'=>'Persona natural','Please configure settings first'=>'Por favor, configure los ajustes primero','Please enter the Yabi plugin configuration, as you need to enter new data for it to work correctly'=>'Ingrese a la configuración del complemento Yabi, ya que necesita ingresar nuevos datos para que funcione correctamente','Please select a prefix'=>'Por favor seleccione un prefijo','Postcode'=>'Código postal','Prefix'=>'Prefijo','Prefix ID'=>'Prefijo ID','Resend invoice'=>'Reenviar factura','Resolution Number'=>'Número de resolución','Save'=>'Guardar','Save & Generate'=>'Guardar y generar','Save Settings'=>'Guardar configuración','Saved data!. Unexpected error on invoice, try again later.!'=>'Datos guardados!. Error inesperado en la factura, ¡inténtalo de nuevo más tarde!','Second Last Name'=>'Segundo apellido','Second Name'=>'Segundo nombre','Security check failed'=>'Comprobación de seguridad fallida','Select "Credit Note Prefix" with the credit note name. Example: "CNS-", "CN"'=>'Seleccione "Prefijo de nota de crédito" con el nombre de la nota. Ejemplo: "CNS-", "CN"','Select "Invoice Name" with the invoice name. Example: "SETT-", "SE"'=>'Seleccione "Nombre de la factura" con el nombre de la factura. Ejemplo: "SETT-", "SE"','Select a prefix'=>'Seleccione un prefijo','Select prefix'=>'Seleccionar prefijo','Select the prefix you want to associate and click the "Save" button.'=>'Seleccione el prefijo que desea asociar y haga clic en el botón "Guardar".','Select the prefix you want to associate and click the "Save" button. First, click "Check" to load available prefixes.'=>'Seleccione el prefijo que desea asociar y haga clic en el botón "Guardar". Primero, haga clic en "Comprobar" para cargar los prefijos disponibles.','Select the type of person'=>'Selecciona el tipo de persona','Send'=>'Enviar','Settings'=>'Configuración','settings page'=>'pagina de configuración','Settings saved successfully!'=>'¡Configuración guardada exitosamente!','Start Date'=>'Fecha de inicio','Success'=>'Éxito','Success!. Invoice generate: '=>'¡Éxito!. Generación de factura: ','Support this plugin'=>'Colabora con este plugin','Telephone'=>'Teléfono','The fields of the invoice are the name and the consecutive number of the invoice, before the DIAN the requirement for the numbering had to be passed. Please fill in the corresponding data. Example: SETT-26.'=>'Los campos de la factura son el nombre y el número consecutivo de la factura, en la DIAN tuvo que pasar el requisito para la numeración. Por favor complete los datos correspondientes. Ejemplo: SETT-26.','The new DIAN resolutions are synchronized with Yabi.co'=>'Las nuevas resoluciones de la DIAN se sincronizan con Yabi.co','The payment is credited and you can select the number of days of the credit, generally it is 30 days'=>'El pago se acredita y puedes seleccionar el número de días del crédito, generalmente son 30 días','The payment is made immediately.'=>'El pago se realiza de inmediato.','The process to generate an invoice.'=>'El proceso para generar una factura.','The reason is required'=>'Se requiere el motivo','The WooCommerce purchase must be in a completed state, in order to generate the electronic invoice. (Automatic or Manual)'=>'La compra de WooCommerce debe estar en estado completado, para poder generar la factura electrónica. (Automático o Manual)','This option allows you to modify the default Woocommerce form to allow the custom fields that Yabi uses, such as IDs or NIT. It also displays the departments and municipalities of Colombia with their respective DIAN codes. It also generates a link so that people can generate the address as necessary for the DIAN.'=>'Esta opción le permite modificar el formulario predeterminado de Woocommerce para permitir los campos personalizados que utiliza Yabi, como cédula o NIT. También muestra los departamentos y municipios de Colombia con sus respectivos códigos DIAN. También genera un enlace para que las personas puedan generar la dirección necesaria para la DIAN.','To'=>'A','To download the invoice you have to enter the Yabi platform'=>'Para descargar la factura tiene que ingresar a la plataforma de Yabi','To get started, contact Yabi to send you the personalized Token of your account by email.'=>'Para comenzar, comuníquese con Yabi para que le envíe el Token personalizado de su cuenta por correo electrónico.','Token'=>'Token','Type of document'=>'Tipo de documento','Type of document is a required Field!'=>'¡El tipo de documento es un campo obligatorio!','Type of Owner'=>'Tipo de dueño','Type of person'=>'Tipo de persona','Type of person is a required Field!'=>'¡El tipo de persona es un campo obligatorio!','Unexpected error, try again later or contact support.'=>'Error inesperado, inténtelo de nuevo más tarde o póngase en contacto con el soporte técnico.','Unexpected error, try again later!'=>'Error inesperado, ¡inténtalo de nuevo más tarde!','Unexpected error, try again later.!'=>'Error inesperado, ¡inténtalo de nuevo más tarde!','Update'=>'Actualizar','Update resolution in yabi.co'=>'Actualizar resolución en yabi.co','URL client'=>'Cliente URL','View Last'=>'Ver último','When displaying the order information, the Yabi module will be displayed at the bottom'=>'Al desplegar la información del pedido, en la parte inferior se desplegara el módulo de Yabi','with your username and password.'=>'con su nombre de usuario y contraseña.','Yabi - Invoice Data'=>'Yabi - Información de facturación','Yabi einvoice for WooCommerce'=>'Factura electrónica Yabi para WooCommerce','Yabi for WooCommerce'=>'Yabi para WooCommerce','Yes'=>'Si','You can check the numbering by clicking the "View Last Credit Note" button'=>'Puede consultar la numeración haciendo clic en el botón "Ver última nota de crédito"','You can check the numbering by clicking the "View Last Invoice" button'=>'Puede comprobar la numeración haciendo clic en el botón "Ver última factura"','You must select the type of person'=>'Debe seleccionar el tipo de persona']];
  • wc-yabi/trunk/languages/yabi-wc-es_CO.po

    r3218446 r3422044  
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2020-12-02 23:02+0000\n"
    6 "PO-Revision-Date: 2025-01-07 15:43+0000\n"
    7 "Last-Translator: \n"
    8 "Language-Team: Spanish (Colombia)\n"
     6"PO-Revision-Date: 2025-12-03 20:46+0000\n"
     7"Last-Translator: admin\n"
     8"Language-Team: Español de Colombia\n"
    99"Language: es_CO\n"
    1010"MIME-Version: 1.0\n"
     
    1313"Plural-Forms: nplurals=2; plural=n != 1;\n"
    1414"X-Generator: Loco https://localise.biz/\n"
    15 "X-Loco-Version: 2.6.11; wp-6.6"
    16 
    17 #: content/information.php:130
     15"X-Loco-Version: 2.8.0; wp-6.9; php-8.1.25"
     16
     17#: content/information.php:321
    1818msgid "About the plugin"
    1919msgstr "Acerca del plugin"
     
    2424msgstr "Dirección"
    2525
    26 #: content/dian.php:217
     26#: content/dian.php:29 content/information.php:268
    2727msgid ""
    2828"After the DIAN has created the resolutions, please click on the \"Update\" "
     
    3232"botón “Actualizar”"
    3333
    34 #: content/dian.php:264
     34#: content/product-invoice.php:186
     35msgid ""
     36"Are you sure you want to cancel this invoice? This action cannot be undone."
     37msgstr ""
     38"¿Está seguro de que desea cancelar esta factura? Esta acción no se puede "
     39"deshacer."
     40
     41#: content/cancel-invoice.php:111 content/dian.php:96
    3542msgid "Associates a prefix with an organizational unit on Yabi"
    3643msgstr "Asocia un prefijo con una unidad organizativa en Yabi"
    3744
    38 #: content/settings.php:117
     45#: content/information.php:52 content/settings.php:73
    3946msgid "Automatic"
    4047msgstr "Automático"
    4148
    42 #: content/information.php:37
    43 msgid ""
    44 "Automatic: Generates automatic invoices, this depends on whether the data "
    45 "has been filled out correctly."
    46 msgstr ""
    47 "Automático: Genera facturas automáticas, esto depende de si los datos se han "
    48 "completado correctamente."
    49 
    50 #: content/settings.php:161
     49#: content/cancel-invoice.php:93 content/dian.php:78 content/settings.php:164
    5150msgid "Business Unit Uuid"
    5251msgstr "Unidad de negocio Uuid"
    5352
    54 #: content/information.php:24
    55 msgid "Cash: The payment is made immediately."
    56 msgstr "Efectivo: El pago se realiza de forma inmediata."
    57 
    58 #: content/dian.php:233
     53#: content/product-invoice.php:195
     54msgid "Cancel"
     55msgstr "Cancelar"
     56
     57#: content/admin.php:80 content/information.php:288 content/information.php:294
     58#: content/product-invoice.php:185
     59msgid "Cancel Invoice"
     60msgstr "Cancelar Factura"
     61
     62#: content/product-invoice.php:145
     63msgid "Cancel invoice"
     64msgstr "Cancelar factura"
     65
     66#: content/product-invoice.php:189
     67msgid "Cancellation reason"
     68msgstr "Motivo de cancelación"
     69
     70#: content/information.php:33
     71msgid "Cash"
     72msgstr "Dinero"
     73
     74#: content/cancel-invoice.php:74 content/dian.php:59
    5975msgid "Check"
    6076msgstr "Verificar"
    6177
    62 #: content/dian.php:229
     78#: content/cancel-invoice.php:66 content/dian.php:51
    6379msgid "Checking resolution prefixes in the Yabi system"
    6480msgstr "Comprobación de prefijos de resolución en el sistema Yabi"
     
    7288msgstr "Código de ciudad"
    7389
    74 #: content/information.php:57 content/information.php:81
    75 #, fuzzy
    76 msgid "Click in button &quot;Save&quot;."
    77 msgstr "Clic en el botón &quot;Guardar&quot;"
    78 
    79 #: content/information.php:74
    80 msgid "Click on &quot;Business Units&quot;."
    81 msgstr "Clic en &quot;Unidad de negocio&quot;"
    82 
    83 #: content/information.php:75
     90#: content/information.php:92 content/information.php:128
     91#: content/information.php:182
     92msgid "Click in button \"Save\"."
     93msgstr "Haga clic en el botón \"Guardar\"."
     94
     95#: content/information.php:154
     96msgid "Click on \"Business Units\"."
     97msgstr "Haga clic en “Unidades de Negocio”."
     98
     99#: content/information.php:158
    84100msgid ""
    85101"Click on a business unit, this displays the information of the business unit."
     
    88104"negocio"
    89105
    90 #: content/information.php:107
     106#: content/information.php:234
    91107msgid "Click on the \"Save\" button to save the information of the fields"
    92108msgstr "Clic en el botón \"Guardar\" para guardar la información de los campos"
    93109
    94 #: content/information.php:108
     110#: content/information.php:238
    95111msgid ""
    96112"Click on the button \"Save and generate\" for when you are sure to generate "
     
    102118"editar los campos. "
    103119
    104 #: content/information.php:103
     120#: content/information.php:218
    105121msgid "Click on the order to open the details"
    106122msgstr "Clic en el pedido para abrir los detalles"
    107123
    108 #: content/information.php:101
     124#: content/information.php:210
    109125msgid "Click on WooCommerce orders"
    110126msgstr "Clic en pedidos de WooCommerce"
    111127
    112 #: content/dian.php:231
     128#: content/cancel-invoice.php:69 content/dian.php:54
     129#: content/information.php:272 content/information.php:302
    113130msgid ""
    114131"Click the \"Check\" button to generate a table with the latest resolutions "
     
    118135"resoluciones disponibles en Yabi"
    119136
    120 #: content/settings.php:145
     137#: content/settings.php:150
    121138msgid "Client"
    122139msgstr "Cliente"
    123140
    124 #: content/information.php:146
     141#: content/information.php:333
    125142msgid "Code QR"
    126143msgstr "Código QR"
     
    130147msgstr "Nombre comercial"
    131148
    132 #: content/settings.php:154
     149#: content/settings.php:157
    133150msgid "Company"
    134151msgstr "Empresa"
    135152
    136 #: content/information.php:79
    137 msgid ""
    138 "Copy and paste  the personalized Token in the text field &quot;Token&quot;."
    139 msgstr ""
    140 "Copia y pega el Token personalizado en la caja de texto &quot;Token&quot;"
    141 
    142 #: content/information.php:76
     153#: content/product-invoice.php:196
     154msgid "Confirm Cancellation"
     155msgstr "Confirmar cancelación"
     156
     157#: wc-yabi.php:119
     158msgid "Connection error"
     159msgstr "Error de conexión"
     160
     161#: content/information.php:174
     162#| msgid "Copy and paste  the personalized Token in the text field \"Token\"."
     163msgid "Copy and paste the personalized Token in the text field \"Token\"."
     164msgstr "Copie y pegue el Token personalizado en el campo de texto “Token”."
     165
     166#: content/information.php:162
    143167msgid "Copy the code of the business unit."
    144168msgstr "Copia el codigo de la unidad de negocio."
    145169
    146 #: content/information.php:80
    147 msgid "Copy the example URL client in the text field &quot;URL client&quot;."
    148 msgstr ""
    149 "Copia el ejemplo del cliente URL en la caja de texto &quot;Cliente URL&quot;"
    150 
    151 #: content/dian.php:215
     170#: content/information.php:178
     171#| msgid ""
     172#| "Copy the example URL client in the text field &quot;URL client&quot;."
     173msgid "Copy the example URL client in the text field \"URL client\"."
     174msgstr ""
     175"Copie la URL de ejemplo del cliente en el campo de texto \"URL del cliente\"."
     176
     177#: content/cancel-invoice.php:51
     178msgid "Create"
     179msgstr "Crear"
     180
     181#: content/cancel-invoice.php:20
     182msgid "Create a credit note in yabi.co"
     183msgstr "Crear una nota de crédito en yabi.co"
     184
     185#: content/dian.php:23 content/information.php:264
     186#| msgid ""
     187#| "Create the resolution in the DIAN Muisca system and assign it in the DIAN "
     188#| "“Electronic Billing” portal to Neia / Yabi.co."
    152189msgid ""
    153190"Create the resolution in the DIAN Muisca system and assign it in the DIAN "
    154 "“Electronic Billing” portal to Neia / Yabi.co."
     191"\"Electronic Billing\" portal to Neia / Yabi.co."
    155192msgstr ""
    156193"Crear la resolución en el sistema DIAN Muisca y asignarla en el portal "
     
    162199msgstr "Crea facturas electrónicas de tus compras de Woocommerce en Yabi"
    163200
    164 #: content/settings.php:89
     201#: content/settings.php:49
    165202msgid "Credit"
    166203msgstr "Crédito"
    167204
    168 #: content/settings.php:95
     205#: content/settings.php:54
    169206msgid "Credit days"
    170207msgstr "Días de crédito"
    171208
    172 #: content/information.php:106
     209#: content/settings.php:118
     210msgid "Credit Note"
     211msgstr "Nota de crédito"
     212
     213#: content/settings.php:130
     214msgid "Credit Note Number"
     215msgstr "Número de nota de crédito"
     216
     217#: content/settings.php:123
     218msgid "Credit Note Prefix"
     219msgstr "Prefijo de nota de crédito"
     220
     221#: content/settings.php:56
     222msgid "Default: 30 days"
     223msgstr "Predeterminado: 30 días"
     224
     225#: content/information.php:230
    173226msgid ""
    174227"Depending on the type of person, you must complete the additional information"
    175228msgstr "Según el tipo de persona debe completar la información adicional"
    176229
    177 #: content/admin.php:23 content/dian.php:209
     230#: content/admin.php:71 content/information.php:260
    178231msgid "DIAN"
    179232msgstr "DIAN"
    180233
    181 #: includes/transaction.php:873
     234#: includes/transaction.php:1023
     235msgid "DIAN prefix were created on Yabi.co"
     236msgstr "El prefijo DIAN se creó en Yabi.co"
     237
     238#: includes/transaction.php:1117
    182239msgid "DIAN resolutions were updated on Yabi.co"
    183240msgstr "Resoluciones de la DIAN fueron actualizadas en Yabi.co"
    184241
    185 #: content/dian.php:248
     242#: content/cancel-invoice.php:92 content/dian.php:77
    186243msgid "Document Type"
    187244msgstr "Tipo de documento"
    188245
     246#: includes/ajax.php:399
     247msgid "Document type is not CREDIT_NOTE"
     248msgstr "El tipo de documento no es CREDIT_NOTE"
     249
     250#: includes/ajax.php:362
     251msgid "Document type is not SALES_INVOICE"
     252msgstr "El tipo de documento no es SALES_INVOICE"
     253
     254#: content/information.php:342
     255msgid "Electronic invoicing for Colombia"
     256msgstr "Facturación electrónica para Colombia"
     257
     258#: content/admin.php:38
     259msgid "Electronic invoicing integration for Colombia"
     260msgstr "Integración de facturación electrónica para Colombia"
     261
    189262#: content/product-invoice-old.php:39 content/product-invoice.php:74
    190 #: content/product-invoice.php:156 content/product.php:186
     263#: content/product-invoice.php:157 content/product.php:186
    191264msgid "Email"
    192265msgstr "Correo electrónico"
    193266
    194 #: content/dian.php:247
     267#: content/cancel-invoice.php:91 content/dian.php:76
    195268msgid "End Date"
    196269msgstr "Fecha de finalización"
    197270
    198 #: content/information.php:73
     271#: content/cancel-invoice.php:23 content/information.php:298
     272msgid ""
     273"Enter the prefix and numbering range for the credit note you want to create "
     274"and click the \"Create\" button."
     275msgstr ""
     276"Ingrese el prefijo y el rango de numeración de la nota de crédito que desea "
     277"crear y haga clic en el botón \"Crear\"."
     278
     279#: content/information.php:150
    199280msgid "Enter the Yabi system"
    200281msgstr "Ingrese al sistema de Yabi"
    201282
    202 #: content/dian.php:246
     283#: content/cancel-invoice.php:90 content/dian.php:75
    203284msgid "Environment"
    204285msgstr "Ambiente"
    205286
    206 #: content/information.php:55
    207 msgid ""
    208 "Fill the text field \"Invoice Name\" with the invoice name. Example: \"SETT-"
    209 "\", \"SE\""
    210 msgstr ""
    211 "Llene el campo de texto \"Nombre de factura\" con las siglas de la factura. "
    212 "Ejemplo: \"SETT-\", \"SE\"."
    213 
    214 #: content/information.php:56
     287#: wc-yabi.php:115
     288msgid "Error loading credit note"
     289msgstr "Error al cargar la nota de crédito"
     290
     291#: wc-yabi.php:113
     292msgid "Error loading invoice"
     293msgstr "Error al cargar la factura"
     294
     295#: wc-yabi.php:111
     296msgid "Error loading prefixes"
     297msgstr "Error al cargar prefijos"
     298
     299#: wc-yabi.php:117
     300msgid "Error saving settings"
     301msgstr "Error al guardar la configuración"
     302
     303#: content/information.php:84 content/information.php:120
    215304msgid ""
    216305"Fill the text field with the consecutive invoice. Example: if the "
     
    220309"consecutivo actual es 25, favor colocar en la caja de texto el número 26."
    221310
    222 #: content/information.php:102
     311#: content/information.php:214
    223312msgid ""
    224313"Find the order in the completed state for which you want to generate an "
     
    227316"Buscar el pedido en estado completado al cual se desea generar una factura"
    228317
    229 #: content/information.php:54 content/information.php:77
     318#: content/cancel-invoice.php:38
     319msgid "From"
     320msgstr "De"
     321
     322#: content/information.php:56
     323#| msgid "Manual: Generate invoices manually in order administration"
     324msgid "Generate invoices manually in order administration"
     325msgstr "Generar facturas manualmente en la administración de pedidos"
     326
     327#: content/information.php:52
     328#| msgid ""
     329#| "Automatic: Generates automatic invoices, this depends on whether the data "
     330#| "has been filled out correctly."
     331msgid ""
     332"Generates automatic invoices, this depends on whether the data has been "
     333"filled out correctly."
     334msgstr ""
     335"Genera facturas automáticas, esto depende de si los datos se han rellenado "
     336"correctamente."
     337
     338#: content/information.php:76 content/information.php:112
     339#: content/information.php:166 content/information.php:260
     340#: content/information.php:294
    230341msgid "Go to"
    231342msgstr "Ir a"
    232343
    233 #: content/information.php:92
     344#: content/information.php:194
    234345msgid "How to generate an invoice?"
    235346msgstr "Cómo generar una factura?"
     
    243354msgstr "https://mireunion.com/yabi"
    244355
    245 #: content/settings.php:103 content/information.php:28
     356#: content/information.php:43 content/settings.php:62
    246357msgid "I agree to modify the checkout"
    247358msgstr "Acepto modificar el checkout"
    248359
    249 #: includes/woo.php:72 content/product-invoice-old.php:32
    250 #: content/product-invoice.php:67 content/product.php:178
     360#: content/product-invoice-old.php:32 content/product-invoice.php:67
     361#: content/product.php:178 includes/woo.php:72
    251362msgid "Identifier"
    252363msgstr "Identificación"
     
    266377msgstr "¡El identificador es un campo obligatorio!"
    267378
    268 #: content/settings.php:88
     379#: content/information.php:202
     380msgid "Important"
     381msgstr "Importante"
     382
     383#: content/settings.php:48
    269384msgid "In cash"
    270385msgstr "En efectivo"
    271386
    272 #: content/information.php:25
    273 msgid ""
    274 "In Credit: The payment is credited and you can select the number of days of "
    275 "the credit, generally it is 30 days"
    276 msgstr ""
    277 "En Crédito: Se acredita el pago y puedes seleccionar el número de días del "
    278 "crédito, generalmente son 30 días"
    279 
    280 #: content/information.php:4 content/admin.php:18
     387#: content/information.php:37
     388msgid "In Credit"
     389msgstr "En crédito"
     390
     391#: content/admin.php:52
    281392msgid "Information"
    282393msgstr "Información"
    283394
    284 #: content/information.php:67
     395#: content/information.php:140
    285396msgid "Instructions for client"
    286397msgstr "Instrucciones para el cliente"
    287398
    288 #: content/information.php:47
     399#: content/information.php:104
     400msgid "Instructions for credit note"
     401msgstr "Instrucciones para la nota de crédito"
     402
     403#: content/information.php:68
    289404msgid "Instructions for invoice"
    290405msgstr "Instrucciones para la facturación"
    291406
    292 #: content/information.php:17
     407#: content/information.php:25
    293408msgid "Instructions for settings"
    294409msgstr "Instrucciones para la configuración"
    295410
    296 #. Name of the plugin
    297 msgid "Integrate Yabi for WooCommerce"
    298 msgstr "Integración Yabi para WooCommerce"
    299 
    300 #: content/settings.php:124
     411#: includes/ajax.php:47
     412msgid "Invalid tab"
     413msgstr "Pestaña no válida"
     414
     415#: content/settings.php:86
    301416msgid "Invoice"
    302417msgstr "Factura"
    303418
    304 #: content/settings.php:130
     419#: includes/transaction.php:51
     420msgid "Invoice cancelled successfully!"
     421msgstr "¡Factura cancelada exitosamente!"
     422
     423#: content/settings.php:91
    305424msgid "Invoice Name"
    306425msgstr "Nombre de factura"
    307426
    308 #: content/product-invoice-old.php:88 content/settings.php:137
    309 #: content/product-invoice.php:128
     427#: includes/ajax.php:122
     428msgid "Invoice not found"
     429msgstr "Factura no encontrada"
     430
     431#: content/product-invoice-old.php:88 content/product-invoice.php:128
     432#: content/settings.php:98
    310433msgid "Invoice Number"
    311434msgstr "Número de factura"
    312435
    313 #: includes/transaction.php:1138
     436#: includes/transaction.php:1461
    314437msgid "Invoice resent!"
    315438msgstr "¡Factura reenviada!"
     
    319442msgstr "Serie de la factura"
    320443
    321 #: content/settings.php:113 content/information.php:34
     444#: content/information.php:48 content/settings.php:70
    322445msgid "Invoice type"
    323446msgstr "Tipo de factura"
    324447
    325 #: content/information.php:21
     448#: content/information.php:28
    326449msgid "Invoices can be defined in Cash or In Credit"
    327450msgstr "Las facturas se pueden definir en efectivo o en crédito."
     
    336459msgstr "Persona jurídica"
    337460
    338 #: content/settings.php:116
     461#: wc-yabi.php:108 content/admin.php:90 content/settings.php:93
     462#: content/settings.php:125
     463msgid "Loading..."
     464msgstr "Cargando..."
     465
     466#: content/information.php:56 content/settings.php:72
    339467msgid "Manual"
    340468msgstr "Manual"
    341 
    342 #: content/information.php:38
    343 msgid "Manual: Generate invoices manually in order administration"
    344 msgstr "Manual: Genera facturas manualmente en la administración de pedidos."
    345469
    346470#. Author of the plugin
     
    349473
    350474#: content/product-invoice-old.php:13 content/product-invoice.php:26
    351 #: content/product-invoice.php:149 content/product.php:135
     475#: content/product-invoice.php:150 content/product.php:135
    352476msgid "Name"
    353477msgstr "Nombre"
     
    357481msgstr "Persona natural"
    358482
    359 #: content/settings.php:106
     483#: content/settings.php:64
    360484msgid "No"
    361485msgstr "No"
     486
     487#: wc-yabi.php:110
     488msgid "No active prefixes"
     489msgstr "No hay prefijos activos"
     490
     491#: wc-yabi.php:114
     492msgid "No credit note found"
     493msgstr "No se encontró ninguna nota de crédito"
     494
     495#: includes/ajax.php:404
     496msgid "No credit notes found"
     497msgstr "No se encontraron notas de crédito"
     498
     499#: includes/ajax.php:100
     500msgid "No data to save"
     501msgstr "No hay datos para guardar"
     502
     503#: wc-yabi.php:112
     504msgid "No invoice found"
     505msgstr "No se encontró ninguna factura"
     506
     507#: includes/ajax.php:367
     508msgid "No invoices found"
     509msgstr "No se encontraron facturas"
     510
     511#: content/dian.php:28
     512msgid "Note"
     513msgstr "Nota"
    362514
    363515#: content/product-invoice-old.php:81 content/product-invoice.php:119
     
    371523msgstr "Nombre de la nota"
    372524
     525#: content/cancel-invoice.php:34
     526msgid "Numbering range"
     527msgstr "Rango de numeración"
     528
    373529#: content/product-invoice-old.php:67 content/product-invoice.php:97
    374530#: content/product.php:229
     
    376532msgstr "Observaciones"
    377533
    378 #: content/information.php:78
    379 msgid ""
    380 "Paste the previously copied code in the text field &quot;Business Unit "
    381 "Uuid&quot;."
    382 msgstr ""
    383 "Pegue el código previamente copiado en la caja de texto \"Unidad de negocio "
     534#: content/information.php:170
     535#| msgid ""
     536#| "Paste the previously copied code in the text field &quot;Business Unit "
     537#| "Uuid&quot;."
     538msgid ""
     539"Paste the previously copied code in the text field \"Business Unit Uuid\"."
     540msgstr ""
     541"Pegue el código previamente copiado en el campo de texto \"Unidad de negocio "
    384542"Uuid\"."
    385543
    386 #: content/settings.php:85
     544#: content/settings.php:41
     545msgid "Payment Settings"
     546msgstr "Configuración de pago"
     547
     548#: content/settings.php:46
    387549msgid "Payment type"
    388550msgstr "Tipo de pago"
    389551
    390 #: content/settings.php:155
     552#: includes/ajax.php:40 includes/ajax.php:91
     553msgid "Permission denied"
     554msgstr "Permiso denegado"
     555
     556#: content/settings.php:158
    391557msgid "Person"
    392558msgstr "Persona natural"
    393559
    394 #: wc-yabi.php:220
     560#: includes/ajax.php:52
     561msgid "Please configure settings first"
     562msgstr "Por favor, configure los ajustes primero"
     563
     564#: wc-yabi.php:278
    395565msgid ""
    396566"Please enter the Yabi plugin configuration, as you need to enter new data "
     
    399569"Ingrese a la configuración del complemento Yabi, ya que necesita ingresar "
    400570"nuevos datos para que funcione correctamente"
     571
     572#: wc-yabi.php:121
     573msgid "Please select a prefix"
     574msgstr "Por favor seleccione un prefijo"
    401575
    402576#: content/product.php:222
     
    404578msgstr "Código postal"
    405579
    406 #: content/dian.php:245 content/dian.php:270
     580#: content/cancel-invoice.php:27 content/cancel-invoice.php:89
     581#: content/cancel-invoice.php:118 content/dian.php:74 content/dian.php:103
    407582msgid "Prefix"
    408583msgstr "Prefijo"
    409584
    410 #: content/dian.php:244
     585#: content/cancel-invoice.php:88 content/dian.php:73
    411586msgid "Prefix ID"
    412587msgstr "Prefijo ID"
     
    416591msgstr "Reenviar factura"
    417592
    418 #: content/dian.php:243
     593#: content/cancel-invoice.php:87 content/dian.php:72
    419594msgid "Resolution Number"
    420595msgstr "Número de resolución"
    421596
    422 #: content/settings.php:186 content/product.php:252 content/dian.php:276
     597#: content/cancel-invoice.php:128 content/dian.php:113 content/product.php:252
    423598msgid "Save"
    424599msgstr "Guardar"
     
    428603msgstr "Guardar y generar"
    429604
    430 #: content/product-invoice.php:224 content/product.php:71
     605#: content/settings.php:187
     606msgid "Save Settings"
     607msgstr "Guardar configuración"
     608
     609#: content/product-invoice.php:286 content/product.php:71
    431610msgid "Saved data!. Unexpected error on invoice, try again later.!"
    432611msgstr ""
     
    434613"tarde!"
    435614
    436 #: includes/woo.php:49 content/product-invoice.php:53 content/product.php:156
     615#: content/product-invoice.php:53 content/product.php:156 includes/woo.php:49
    437616msgid "Second Last Name"
    438617msgstr "Segundo apellido"
    439618
    440 #: includes/woo.php:38 content/product-invoice.php:35 content/product.php:142
     619#: content/product-invoice.php:35 content/product.php:142 includes/woo.php:38
    441620msgid "Second Name"
    442621msgstr "Segundo nombre"
     622
     623#: includes/ajax.php:35 includes/ajax.php:86
     624msgid "Security check failed"
     625msgstr "Comprobación de seguridad fallida"
     626
     627#: content/information.php:116
     628msgid ""
     629"Select \"Credit Note Prefix\" with the credit note name. Example: \"CNS-\", "
     630"\"CN\""
     631msgstr ""
     632"Seleccione \"Prefijo de nota de crédito\" con el nombre de la nota. Ejemplo: "
     633"\"CNS-\", \"CN\""
     634
     635#: content/information.php:80
     636#| msgid ""
     637#| "Fill the text field \"Invoice Name\" with the invoice name. Example: "
     638#| "\"SETT-\", \"SE\""
     639msgid ""
     640"Select \"Invoice Name\" with the invoice name. Example: \"SETT-\", \"SE\""
     641msgstr ""
     642"Seleccione \"Nombre de la factura\" con el nombre de la factura. Ejemplo: "
     643"\"SETT-\", \"SE\""
     644
     645#: content/cancel-invoice.php:120 content/dian.php:105
     646msgid "Select a prefix"
     647msgstr "Seleccione un prefijo"
     648
     649#: wc-yabi.php:109
     650msgid "Select prefix"
     651msgstr "Seleccionar prefijo"
     652
     653#: content/information.php:276 content/information.php:306
     654msgid "Select the prefix you want to associate and click the \"Save\" button."
     655msgstr ""
     656"Seleccione el prefijo que desea asociar y haga clic en el botón \"Guardar\"."
     657
     658#: content/cancel-invoice.php:114 content/dian.php:99
     659msgid ""
     660"Select the prefix you want to associate and click the \"Save\" button. First,"
     661" click \"Check\" to load available prefixes."
     662msgstr ""
     663"Seleccione el prefijo que desea asociar y haga clic en el botón \"Guardar\". "
     664"Primero, haga clic en \"Comprobar\" para cargar los prefijos disponibles."
    443665
    444666#: includes/woo.php:23
     
    446668msgstr "Selecciona el tipo de persona"
    447669
    448 #: content/product-invoice.php:165
     670#: content/product-invoice.php:166
    449671msgid "Send"
    450672msgstr "Enviar"
    451673
    452 #: content/admin.php:4
    453 msgid "Setting saved!"
    454 msgstr "Configuración guardada!"
    455 
    456 #: content/settings.php:73 content/settings.php:79 content/admin.php:19
     674#: content/admin.php:61
    457675msgid "Settings"
    458676msgstr "Configuración"
    459677
    460 #: content/information.php:54 content/information.php:77
     678#: content/information.php:76 content/information.php:112
     679#: content/information.php:166
    461680msgid "settings page"
    462681msgstr "pagina de configuración"
    463682
    464 #: content/dian.php:242
     683#: wc-yabi.php:116 content/admin.php:25 includes/ajax.php:97
     684msgid "Settings saved successfully!"
     685msgstr "¡Configuración guardada exitosamente!"
     686
     687#: content/cancel-invoice.php:86 content/dian.php:71
    465688msgid "Start Date"
    466689msgstr "Fecha de inicio"
    467690
    468 #: content/dian.php:80 content/dian.php:110
     691#: wc-yabi.php:120
    469692msgid "Success"
    470693msgstr "Éxito"
    471694
    472 #: includes/transaction.php:157
     695#: includes/transaction.php:310
    473696msgid "Success!. Invoice generate: "
    474697msgstr "¡Éxito!. Generación de factura: "
    475698
    476 #: content/information.php:135
     699#: content/information.php:324
    477700msgid "Support this plugin"
    478701msgstr "Colabora con este plugin"
     
    483706msgstr "Teléfono"
    484707
    485 #: content/information.php:51
     708#: content/information.php:71 content/information.php:107
    486709msgid ""
    487710"The fields of the invoice are the name and the consecutive number of the "
     
    493716"complete los datos correspondientes. Ejemplo: SETT-26."
    494717
    495 #: includes/transaction.php:1072
     718#: includes/transaction.php:1333
    496719msgid "The new DIAN resolutions are synchronized with Yabi.co"
    497720msgstr "Las nuevas resoluciones de la DIAN se sincronizan con Yabi.co"
    498721
    499 #: content/information.php:96
     722#: content/information.php:37
     723#| msgid ""
     724#| "In Credit: The payment is credited and you can select the number of days "
     725#| "of the credit, generally it is 30 days"
     726msgid ""
     727"The payment is credited and you can select the number of days of the credit, "
     728"generally it is 30 days"
     729msgstr ""
     730"El pago se acredita y puedes seleccionar el número de días del crédito, "
     731"generalmente son 30 días"
     732
     733#: content/information.php:33
     734#| msgid "Cash: The payment is made immediately."
     735msgid "The payment is made immediately."
     736msgstr "El pago se realiza de inmediato."
     737
     738#: content/information.php:197
    500739msgid "The process to generate an invoice."
    501740msgstr "El proceso para generar una factura."
    502741
    503 #: content/information.php:98
     742#: content/product-invoice.php:191 includes/ajax.php:114
     743msgid "The reason is required"
     744msgstr "Se requiere el motivo"
     745
     746#: content/information.php:203
    504747#| msgid ""
    505748#| "The WooCommerce purchase must be in a completed state, in order to "
     
    512755"la factura electrónica. (Automático o Manual)"
    513756
    514 #: content/information.php:31
     757#: content/information.php:44
    515758msgid ""
    516759"This option allows you to modify the default Woocommerce form to allow the "
     
    526769"puedan generar la dirección necesaria para la DIAN."
    527770
    528 #: content/information.php:109
     771#: content/cancel-invoice.php:43
     772msgid "To"
     773msgstr "A"
     774
     775#: content/information.php:242
    529776msgid "To download the invoice you have to enter the Yabi platform"
    530777msgstr "Para descargar la factura tiene que ingresar a la plataforma de Yabi"
    531778
    532 #: content/information.php:72
     779#: content/information.php:146
    533780msgid ""
    534781"To get started, contact Yabi to send you the personalized Token of your "
     
    538785"de su cuenta por correo electrónico."
    539786
    540 #: content/settings.php:169
     787#: content/settings.php:170
    541788msgid "Token"
    542789msgstr "Token"
    543790
    544 #: includes/woo.php:60 content/product-invoice-old.php:27
    545 #: content/product-invoice.php:62 content/product.php:163
     791#: content/product-invoice-old.php:27 content/product-invoice.php:62
     792#: content/product.php:163 includes/woo.php:60
    546793msgid "Type of document"
    547794msgstr "Tipo de documento"
     
    551798msgstr "¡El tipo de documento es un campo obligatorio!"
    552799
    553 #: content/settings.php:151
     800#: content/settings.php:155
    554801msgid "Type of Owner"
    555802msgstr "Tipo de dueño"
     
    563810msgstr "¡El tipo de persona es un campo obligatorio!"
    564811
    565 #: includes/transaction.php:165 includes/transaction.php:877
    566 #: includes/transaction.php:1014 includes/transaction.php:1045
    567 #: includes/transaction.php:1076
     812#: content/product-invoice.php:322 content/product-invoice.php:348
     813#: includes/transaction.php:55 includes/transaction.php:318
     814#: includes/transaction.php:1027 includes/transaction.php:1121
     815#: includes/transaction.php:1258 includes/transaction.php:1306
     816#: includes/transaction.php:1337
    568817msgid "Unexpected error, try again later or contact support."
    569818msgstr ""
     
    571820"soporte técnico."
    572821
    573 #: content/product.php:93 content/dian.php:68 content/dian.php:98
    574 #: content/dian.php:154
     822#: wc-yabi.php:118
     823msgid "Unexpected error, try again later!"
     824msgstr "Error inesperado, ¡inténtalo de nuevo más tarde!"
     825
     826#: content/product.php:93
    575827msgid "Unexpected error, try again later.!"
    576828msgstr "Error inesperado, ¡inténtalo de nuevo más tarde!"
    577829
    578 #: content/dian.php:219
     830#: content/dian.php:36
    579831msgid "Update"
    580832msgstr "Actualizar"
    581833
    582 #: content/dian.php:213
     834#: content/dian.php:20 content/information.php:254
    583835msgid "Update resolution in yabi.co"
    584836msgstr "Actualizar resolución en yabi.co"
    585837
    586 #: content/settings.php:177
     838#: content/settings.php:176
    587839msgid "URL client"
    588840msgstr "Cliente URL"
    589841
    590 #: content/information.php:104
     842#: content/settings.php:103 content/settings.php:135
     843msgid "View Last"
     844msgstr "Ver último"
     845
     846#: content/information.php:222
    591847msgid ""
    592848"When displaying the order information, the Yabi module will be displayed at "
     
    596852"el módulo de Yabi"
    597853
    598 #: content/information.php:73
     854#: content/information.php:150
    599855msgid "with your username and password."
    600856msgstr "con su nombre de usuario y contraseña."
    601857
    602 #: wc-yabi.php:94
     858#: wc-yabi.php:148
    603859msgid "Yabi - Invoice Data"
    604860msgstr "Yabi - Información de facturación"
    605861
    606 #: content/admin.php:15
     862#. Name of the plugin
     863msgid "Yabi einvoice for WooCommerce"
     864msgstr "Factura electrónica Yabi para WooCommerce"
     865
     866#: content/admin.php:37
    607867msgid "Yabi for WooCommerce"
    608868msgstr "Yabi para WooCommerce"
    609869
    610 #: content/settings.php:107
     870#: content/settings.php:65
    611871msgid "Yes"
    612872msgstr "Si"
    613873
    614 #: content/information.php:105
     874#: content/information.php:124
     875msgid ""
     876"You can check the numbering by clicking the \"View Last Credit Note\" button"
     877msgstr ""
     878"Puede consultar la numeración haciendo clic en el botón \"Ver última nota de "
     879"crédito\""
     880
     881#: content/information.php:88
     882msgid ""
     883"You can check the numbering by clicking the \"View Last Invoice\" button"
     884msgstr ""
     885"Puede comprobar la numeración haciendo clic en el botón \"Ver última "
     886"factura\""
     887
     888#: content/information.php:226
    615889msgid "You must select the type of person"
    616890msgstr "Debe seleccionar el tipo de persona"
  • wc-yabi/trunk/languages/yabi-wc-es_ES.l10n.php

    r3218446 r3422044  
    11<?php
    2 return ['project-id-version'=>'Yabi for WooCommerce','report-msgid-bugs-to'=>'','pot-creation-date'=>'2020-12-02 23:02+0000','po-revision-date'=>'2025-01-07 15:43+0000','last-translator'=>'','language-team'=>'Spanish (Spain)','language'=>'es_ES','mime-version'=>'1.0','content-type'=>'text/plain; charset=UTF-8','content-transfer-encoding'=>'8bit','plural-forms'=>'nplurals=2; plural=n != 1;','x-generator'=>'Loco https://localise.biz/','x-loco-version'=>'2.6.11; wp-6.6','x-loco-fallback'=>'es_CO','x-loco-template'=>'languages/yabi-wc-es_CO.po','x-loco-template-mode'=>'PO,JSON','messages'=>['About the plugin'=>'Acerca del plugin','Address'=>'Dirección','After the DIAN has created the resolutions, please click on the "Update" button'=>'Luego de que la DIAN haya creado las resoluciones, por favor haga clic en el botón “Actualizar”','Associates a prefix with an organizational unit on Yabi'=>'Asocia un prefijo con una unidad organizativa en Yabi','Automatic'=>'Automático','Automatic: Generates automatic invoices, this depends on whether the data has been filled out correctly.'=>'Automático: Genera facturas automáticas, esto depende de si los datos se han completado correctamente.','Business Unit Uuid'=>'Unidad de negocio Uuid','Cash: The payment is made immediately.'=>'Efectivo: El pago se realiza de forma inmediata.','Check'=>'Verificar','Checking resolution prefixes in the Yabi system'=>'Comprobación de prefijos de resolución en el sistema Yabi','City'=>'Ciudad','City Code'=>'Código de ciudad','Click in button &quot;Save&quot;.'=>'Clic en el botón &quot;Guardar&quot;','Click on &quot;Business Units&quot;.'=>'Clic en &quot;Unidad de negocio&quot;','Click on a business unit, this displays the information of the business unit.'=>'Clic en unidad de negocio, este despliega la información de la unidad de negocio','Click on the "Save" button to save the information of the fields'=>'Clic en el botón "Guardar" para guardar la información de los campos','Click on the button "Save and generate" for when you are sure to generate the invoice, after the invoice is generated you will not be able to edit the fields again.'=>'Clic en el botón &quot;Guardar y generar&quot; para cuando este seguro de generar la facturación, luego de que la factura se genera no podrá volver a editar los campos. ','Click on the order to open the details'=>'Clic en el pedido para abrir los detalles','Click on WooCommerce orders'=>'Clic en pedidos de WooCommerce','Click the "Check" button to generate a table with the latest resolutions available in Yabi'=>'Haga clic en el botón "Verificar" para generar una tabla con las últimas resoluciones disponibles en Yabi','Client'=>'Cliente','Code QR'=>'Código QR','Commercial Name'=>'Nombre comercial','Company'=>'Empresa','Copy and paste  the personalized Token in the text field &quot;Token&quot;.'=>'Copia y pega el Token personalizado en la caja de texto &quot;Token&quot;','Copy the code of the business unit.'=>'Copia el codigo de la unidad de negocio.','Copy the example URL client in the text field &quot;URL client&quot;.'=>'Copia el ejemplo del cliente URL en la caja de texto &quot;Cliente URL&quot;','Create the resolution in the DIAN Muisca system and assign it in the DIAN “Electronic Billing” portal to Neia / Yabi.co.'=>'Crear la resolución en el sistema DIAN Muisca y asignarla en el portal “Facturación Electrónica” de la DIAN a Neia / Yabi.co.','Create your electronic invoices of purchases made in woocommerce with Yabi'=>'Crea facturas electrónicas de tus compras de Woocommerce en Yabi','Credit'=>'Crédito','Credit days'=>'Días de crédito','Depending on the type of person, you must complete the additional information'=>'Según el tipo de persona debe completar la información adicional','DIAN'=>'DIAN','DIAN resolutions were updated on Yabi.co'=>'Resoluciones de la DIAN fueron actualizadas en Yabi.co','Document Type'=>'Tipo de documento','Email'=>'Correo electrónico','End Date'=>'Fecha de finalización','Enter the Yabi system'=>'Ingrese al sistema de Yabi','Environment'=>'Ambiente','Fill the text field "Invoice Name" with the invoice name. Example: "SETT-", "SE"'=>'Llene el campo de texto "Nombre de factura" con las siglas de la factura. Ejemplo: "SETT-", "SE".','Fill the text field with the consecutive invoice. Example: if the consecutive number is 25, please fill the text field with 26.'=>'Llene el campo de texto con el consecutivo de la factura. Ejemplo: Si el consecutivo actual es 25, favor colocar en la caja de texto el número 26.','Find the order in the completed state for which you want to generate an invoice'=>'Buscar el pedido en estado completado al cual se desea generar una factura','Go to'=>'Ir a','How to generate an invoice?'=>'Cómo generar una factura?','https://datakun.com/'=>'https://datakun.com/','https://mireunion.com/yabi'=>'https://mireunion.com/yabi','I agree to modify the checkout'=>'Acepto modificar el checkout','Identifier'=>'Identificación','Identifier digit'=>'Dígito identificación','Identifier field must contain a positive number of at least 5 digits.'=>'El campo identificación debe contener un número positivo de al menos 5 dígitos.','Identifier is a required Field!'=>'¡El identificador es un campo obligatorio!','In cash'=>'En efectivo','In Credit: The payment is credited and you can select the number of days of the credit, generally it is 30 days'=>'En Crédito: Se acredita el pago y puedes seleccionar el número de días del crédito, generalmente son 30 días','Information'=>'Información','Instructions for client'=>'Instrucciones para el cliente','Instructions for invoice'=>'Instrucciones para la facturación','Instructions for settings'=>'Instrucciones para la configuración','Integrate Yabi for WooCommerce'=>'Integración Yabi para WooCommerce','Invoice'=>'Factura','Invoice Name'=>'Nombre de factura','Invoice Number'=>'Número de factura','Invoice resent!'=>'¡Factura reenviada!','Invoice Serial'=>'Serie de la factura','Invoice type'=>'Tipo de factura','Invoices can be defined in Cash or In Credit'=>'Las facturas se pueden definir en efectivo o en crédito.','Last Name'=>'Apellido','Legal Entity'=>'Persona jurídica','Manual'=>'Manual','Manual: Generate invoices manually in order administration'=>'Manual: Genera facturas manualmente en la administración de pedidos.','Mex Avila'=>'Mex Avila','Name'=>'Nombre','Natural Person'=>'Persona natural','No'=>'No','Note Description'=>'Descripción de la nota','Note Name'=>'Nombre de la nota','Observations'=>'Observaciones','Paste the previously copied code in the text field &quot;Business Unit Uuid&quot;.'=>'Pegue el código previamente copiado en la caja de texto "Unidad de negocio Uuid".','Payment type'=>'Tipo de pago','Person'=>'Persona natural','Please enter the Yabi plugin configuration, as you need to enter new data for it to work correctly'=>'Ingrese a la configuración del complemento Yabi, ya que necesita ingresar nuevos datos para que funcione correctamente','Postcode'=>'Código postal','Prefix'=>'Prefijo','Prefix ID'=>'Prefijo ID','Resend invoice'=>'Reenviar factura','Resolution Number'=>'Número de resolución','Save'=>'Guardar','Save & Generate'=>'Guardar y generar','Saved data!. Unexpected error on invoice, try again later.!'=>'Datos guardados!. Error inesperado en la factura, ¡inténtalo de nuevo más tarde!','Second Last Name'=>'Segundo apellido','Second Name'=>'Segundo nombre','Select the type of person'=>'Selecciona el tipo de persona','Send'=>'Enviar','Setting saved!'=>'Configuración guardada!','Settings'=>'Configuración','settings page'=>'pagina de configuración','Start Date'=>'Fecha de inicio','Success'=>'Éxito','Success!. Invoice generate: '=>'¡Éxito!. Generación de factura: ','Support this plugin'=>'Colabora con este plugin','Telephone'=>'Teléfono','The fields of the invoice are the name and the consecutive number of the invoice, before the DIAN the requirement for the numbering had to be passed. Please fill in the corresponding data. Example: SETT-26.'=>'Los campos de la factura son el nombre y el número consecutivo de la factura, en la DIAN tuvo que pasar el requisito para la numeración. Por favor complete los datos correspondientes. Ejemplo: SETT-26.','The new DIAN resolutions are synchronized with Yabi.co'=>'Las nuevas resoluciones de la DIAN se sincronizan con Yabi.co','The process to generate an invoice.'=>'El proceso para generar una factura.','The WooCommerce purchase must be in a completed state, in order to generate the electronic invoice. (Automatic or Manual)'=>'La compra de WooCommerce debe estar en estado completado, para poder generar la factura electrónica. (Automático o Manual)','This option allows you to modify the default Woocommerce form to allow the custom fields that Yabi uses, such as IDs or NIT. It also displays the departments and municipalities of Colombia with their respective DIAN codes. It also generates a link so that people can generate the address as necessary for the DIAN.'=>'Esta opción le permite modificar el formulario predeterminado de Woocommerce para permitir los campos personalizados que utiliza Yabi, como cédula o NIT. También muestra los departamentos y municipios de Colombia con sus respectivos códigos DIAN. También genera un enlace para que las personas puedan generar la dirección necesaria para la DIAN.','To download the invoice you have to enter the Yabi platform'=>'Para descargar la factura tiene que ingresar a la plataforma de Yabi','To get started, contact Yabi to send you the personalized Token of your account by email.'=>'Para comenzar, comuníquese con Yabi para que le envíe el Token personalizado de su cuenta por correo electrónico.','Token'=>'Token','Type of document'=>'Tipo de documento','Type of document is a required Field!'=>'¡El tipo de documento es un campo obligatorio!','Type of Owner'=>'Tipo de dueño','Type of person'=>'Tipo de persona','Type of person is a required Field!'=>'¡El tipo de persona es un campo obligatorio!','Unexpected error, try again later or contact support.'=>'Error inesperado, inténtelo de nuevo más tarde o póngase en contacto con el soporte técnico.','Unexpected error, try again later.!'=>'Error inesperado, ¡inténtalo de nuevo más tarde!','Update'=>'Actualizar','Update resolution in yabi.co'=>'Actualizar resolución en yabi.co','URL client'=>'Cliente URL','When displaying the order information, the Yabi module will be displayed at the bottom'=>'Al desplegar la información del pedido, en la parte inferior se desplegara el módulo de Yabi','with your username and password.'=>'con su nombre de usuario y contraseña.','Yabi - Invoice Data'=>'Yabi - Información de facturación','Yabi for WooCommerce'=>'Yabi para WooCommerce','Yes'=>'Si','You must select the type of person'=>'Debe seleccionar el tipo de persona']];
     2return ['project-id-version'=>'Yabi for WooCommerce','report-msgid-bugs-to'=>'','pot-creation-date'=>'2020-12-02 23:02+0000','po-revision-date'=>'2025-12-03 20:48+0000','last-translator'=>'','language-team'=>'Español','language'=>'es_ES','mime-version'=>'1.0','content-type'=>'text/plain; charset=UTF-8','content-transfer-encoding'=>'8bit','plural-forms'=>'nplurals=2; plural=n != 1;','x-generator'=>'Loco https://localise.biz/','x-loco-version'=>'2.6.11; wp-6.6','x-loco-fallback'=>'es_CO','x-loco-template'=>'languages/yabi-wc-es_CO.po','x-loco-template-mode'=>'PO,JSON','messages'=>['About the plugin'=>'Acerca del plugin','Address'=>'Dirección','After the DIAN has created the resolutions, please click on the "Update" button'=>'Luego de que la DIAN haya creado las resoluciones, por favor haga clic en el botón “Actualizar”','Are you sure you want to cancel this invoice? This action cannot be undone.'=>'¿Está seguro de que desea cancelar esta factura? Esta acción no se puede deshacer.','Associates a prefix with an organizational unit on Yabi'=>'Asocia un prefijo con una unidad organizativa en Yabi','Automatic'=>'Automático','Business Unit Uuid'=>'Unidad de negocio Uuid','Cancel'=>'Cancelar','Cancel Invoice'=>'Cancelar Factura','Cancel invoice'=>'Cancelar factura','Cancellation reason'=>'Motivo de cancelación','Cash'=>'Dinero','Check'=>'Verificar','Checking resolution prefixes in the Yabi system'=>'Comprobación de prefijos de resolución en el sistema Yabi','City'=>'Ciudad','City Code'=>'Código de ciudad','Click in button "Save".'=>'Haga clic en el botón "Guardar".','Click on "Business Units".'=>'Haga clic en “Unidades de Negocio”.','Click on a business unit, this displays the information of the business unit.'=>'Clic en unidad de negocio, este despliega la información de la unidad de negocio','Click on the "Save" button to save the information of the fields'=>'Clic en el botón "Guardar" para guardar la información de los campos','Click on the button "Save and generate" for when you are sure to generate the invoice, after the invoice is generated you will not be able to edit the fields again.'=>'Clic en el botón &quot;Guardar y generar&quot; para cuando este seguro de generar la facturación, luego de que la factura se genera no podrá volver a editar los campos. ','Click on the order to open the details'=>'Clic en el pedido para abrir los detalles','Click on WooCommerce orders'=>'Clic en pedidos de WooCommerce','Click the "Check" button to generate a table with the latest resolutions available in Yabi'=>'Haga clic en el botón "Verificar" para generar una tabla con las últimas resoluciones disponibles en Yabi','Client'=>'Cliente','Code QR'=>'Código QR','Commercial Name'=>'Nombre comercial','Company'=>'Empresa','Confirm Cancellation'=>'Confirmar cancelación','Connection error'=>'Error de conexión','Copy and paste the personalized Token in the text field "Token".'=>'Copia y pega el Token personalizado en la caja de texto "Token"','Copy the code of the business unit.'=>'Copia el codigo de la unidad de negocio.','Copy the example URL client in the text field "URL client".'=>'Copia el ejemplo del cliente URL en la caja de texto "Cliente URL"','Create'=>'Crear','Create a credit note in yabi.co'=>'Crear una nota de crédito en yabi.co','Create the resolution in the DIAN Muisca system and assign it in the DIAN "Electronic Billing" portal to Neia / Yabi.co.'=>'Crear la resolución en el sistema DIAN Muisca y asignarla en el portal “Facturación Electrónica” de la DIAN a Neia / Yabi.co.','Create your electronic invoices of purchases made in woocommerce with Yabi'=>'Crea facturas electrónicas de tus compras de Woocommerce en Yabi','Credit'=>'Crédito','Credit days'=>'Días de crédito','Credit Note'=>'Nota de crédito','Credit Note Number'=>'Número de nota de crédito','Credit Note Prefix'=>'Prefijo de nota de crédito','Default: 30 days'=>'Predeterminado: 30 días','Depending on the type of person, you must complete the additional information'=>'Según el tipo de persona debe completar la información adicional','DIAN'=>'DIAN','DIAN prefix were created on Yabi.co'=>'El prefijo DIAN se creó en Yabi.co','DIAN resolutions were updated on Yabi.co'=>'Resoluciones de la DIAN fueron actualizadas en Yabi.co','Document Type'=>'Tipo de documento','Document type is not CREDIT_NOTE'=>'El tipo de documento no es CREDIT_NOTE','Document type is not SALES_INVOICE'=>'El tipo de documento no es SALES_INVOICE','Electronic invoicing for Colombia'=>'Facturación electrónica para Colombia','Electronic invoicing integration for Colombia'=>'Integración de facturación electrónica para Colombia','Email'=>'Correo electrónico','End Date'=>'Fecha de finalización','Enter the prefix and numbering range for the credit note you want to create and click the "Create" button.'=>'Ingrese el prefijo y el rango de numeración de la nota de crédito que desea crear y haga clic en el botón "Crear".','Enter the Yabi system'=>'Ingrese al sistema de Yabi','Environment'=>'Ambiente','Error loading credit note'=>'Error al cargar la nota de crédito','Error loading invoice'=>'Error al cargar la factura','Error loading prefixes'=>'Error al cargar prefijos','Error saving settings'=>'Error al guardar la configuración','Fill the text field with the consecutive invoice. Example: if the consecutive number is 25, please fill the text field with 26.'=>'Llene el campo de texto con el consecutivo de la factura. Ejemplo: Si el consecutivo actual es 25, favor colocar en la caja de texto el número 26.','Find the order in the completed state for which you want to generate an invoice'=>'Buscar el pedido en estado completado al cual se desea generar una factura','From'=>'De','Generate invoices manually in order administration'=>'Generar facturas manualmente en la administración de pedidos','Generates automatic invoices, this depends on whether the data has been filled out correctly.'=>'Genera facturas automáticas, esto depende de si los datos se han rellenado correctamente.','Go to'=>'Ir a','How to generate an invoice?'=>'Cómo generar una factura?','https://datakun.com/'=>'https://datakun.com/','https://mireunion.com/yabi'=>'https://mireunion.com/yabi','I agree to modify the checkout'=>'Acepto modificar el checkout','Identifier'=>'Identificación','Identifier digit'=>'Dígito identificación','Identifier field must contain a positive number of at least 5 digits.'=>'El campo identificación debe contener un número positivo de al menos 5 dígitos.','Identifier is a required Field!'=>'¡El identificador es un campo obligatorio!','Important'=>'Importante','In cash'=>'En efectivo','In Credit'=>'En crédito','Information'=>'Información','Instructions for client'=>'Instrucciones para el cliente','Instructions for credit note'=>'Instrucciones para la nota de crédito','Instructions for invoice'=>'Instrucciones para la facturación','Instructions for settings'=>'Instrucciones para la configuración','Invalid tab'=>'Pestaña no válida','Invoice'=>'Factura','Invoice cancelled successfully!'=>'¡Factura cancelada exitosamente!','Invoice Name'=>'Nombre de factura','Invoice not found'=>'Factura no encontrada','Invoice Number'=>'Número de factura','Invoice resent!'=>'¡Factura reenviada!','Invoice Serial'=>'Serie de la factura','Invoice type'=>'Tipo de factura','Invoices can be defined in Cash or In Credit'=>'Las facturas se pueden definir en efectivo o en crédito.','Last Name'=>'Apellido','Legal Entity'=>'Persona jurídica','Loading...'=>'Cargando...','Manual'=>'Manual','Mex Avila'=>'Mex Avila','Name'=>'Nombre','Natural Person'=>'Persona natural','No'=>'No','No active prefixes'=>'No hay prefijos activos','No credit note found'=>'No se encontró ninguna nota de crédito','No credit notes found'=>'No se encontraron notas de crédito','No data to save'=>'No hay datos para guardar','No invoice found'=>'No se encontró ninguna factura','No invoices found'=>'No se encontraron facturas','Note'=>'Nota','Note Description'=>'Descripción de la nota','Note Name'=>'Nombre de la nota','Numbering range'=>'Rango de numeración','Observations'=>'Observaciones','Paste the previously copied code in the text field "Business Unit Uuid".'=>'Pegue el código previamente copiado en la caja de texto "Unidad de negocio Uuid".','Payment Settings'=>'Configuración de pago','Payment type'=>'Tipo de pago','Permission denied'=>'Permiso denegado','Person'=>'Persona natural','Please configure settings first'=>'Por favor, configure los ajustes primero','Please enter the Yabi plugin configuration, as you need to enter new data for it to work correctly'=>'Ingrese a la configuración del complemento Yabi, ya que necesita ingresar nuevos datos para que funcione correctamente','Please select a prefix'=>'Por favor seleccione un prefijo','Postcode'=>'Código postal','Prefix'=>'Prefijo','Prefix ID'=>'Prefijo ID','Resend invoice'=>'Reenviar factura','Resolution Number'=>'Número de resolución','Save'=>'Guardar','Save & Generate'=>'Guardar y generar','Save Settings'=>'Guardar configuración','Saved data!. Unexpected error on invoice, try again later.!'=>'Datos guardados!. Error inesperado en la factura, ¡inténtalo de nuevo más tarde!','Second Last Name'=>'Segundo apellido','Second Name'=>'Segundo nombre','Security check failed'=>'Comprobación de seguridad fallida','Select "Credit Note Prefix" with the credit note name. Example: "CNS-", "CN"'=>'Seleccione "Prefijo de nota de crédito" con el nombre de la nota. Ejemplo: "CNS-", "CN"','Select "Invoice Name" with the invoice name. Example: "SETT-", "SE"'=>'Seleccione "Nombre de la factura" con el nombre de la factura. Ejemplo: "SETT-", "SE"','Select a prefix'=>'Seleccione un prefijo','Select prefix'=>'Seleccionar prefijo','Select the prefix you want to associate and click the "Save" button.'=>'Seleccione el prefijo que desea asociar y haga clic en el botón "Guardar".','Select the prefix you want to associate and click the "Save" button. First, click "Check" to load available prefixes.'=>'Seleccione el prefijo que desea asociar y haga clic en el botón "Guardar". Primero, haga clic en "Comprobar" para cargar los prefijos disponibles.','Select the type of person'=>'Selecciona el tipo de persona','Send'=>'Enviar','Settings'=>'Configuración','settings page'=>'pagina de configuración','Settings saved successfully!'=>'¡Configuración guardada exitosamente!','Start Date'=>'Fecha de inicio','Success'=>'Éxito','Success!. Invoice generate: '=>'¡Éxito!. Generación de factura: ','Support this plugin'=>'Colabora con este plugin','Telephone'=>'Teléfono','The fields of the invoice are the name and the consecutive number of the invoice, before the DIAN the requirement for the numbering had to be passed. Please fill in the corresponding data. Example: SETT-26.'=>'Los campos de la factura son el nombre y el número consecutivo de la factura, en la DIAN tuvo que pasar el requisito para la numeración. Por favor complete los datos correspondientes. Ejemplo: SETT-26.','The new DIAN resolutions are synchronized with Yabi.co'=>'Las nuevas resoluciones de la DIAN se sincronizan con Yabi.co','The payment is credited and you can select the number of days of the credit, generally it is 30 days'=>'El pago se acredita y puedes seleccionar el número de días del crédito, generalmente son 30 días','The payment is made immediately.'=>'El pago se realiza de inmediato.','The process to generate an invoice.'=>'El proceso para generar una factura.','The reason is required'=>'Se requiere el motivo','The WooCommerce purchase must be in a completed state, in order to generate the electronic invoice. (Automatic or Manual)'=>'La compra de WooCommerce debe estar en estado completado, para poder generar la factura electrónica. (Automático o Manual)','This option allows you to modify the default Woocommerce form to allow the custom fields that Yabi uses, such as IDs or NIT. It also displays the departments and municipalities of Colombia with their respective DIAN codes. It also generates a link so that people can generate the address as necessary for the DIAN.'=>'Esta opción le permite modificar el formulario predeterminado de Woocommerce para permitir los campos personalizados que utiliza Yabi, como cédula o NIT. También muestra los departamentos y municipios de Colombia con sus respectivos códigos DIAN. También genera un enlace para que las personas puedan generar la dirección necesaria para la DIAN.','To'=>'A','To download the invoice you have to enter the Yabi platform'=>'Para descargar la factura tiene que ingresar a la plataforma de Yabi','To get started, contact Yabi to send you the personalized Token of your account by email.'=>'Para comenzar, comuníquese con Yabi para que le envíe el Token personalizado de su cuenta por correo electrónico.','Token'=>'Token','Type of document'=>'Tipo de documento','Type of document is a required Field!'=>'¡El tipo de documento es un campo obligatorio!','Type of Owner'=>'Tipo de dueño','Type of person'=>'Tipo de persona','Type of person is a required Field!'=>'¡El tipo de persona es un campo obligatorio!','Unexpected error, try again later or contact support.'=>'Error inesperado, inténtelo de nuevo más tarde o póngase en contacto con el soporte técnico.','Unexpected error, try again later!'=>'Error inesperado, ¡inténtalo de nuevo más tarde!','Unexpected error, try again later.!'=>'Error inesperado, ¡inténtalo de nuevo más tarde!','Update'=>'Actualizar','Update resolution in yabi.co'=>'Actualizar resolución en yabi.co','URL client'=>'Cliente URL','View Last'=>'Ver último','When displaying the order information, the Yabi module will be displayed at the bottom'=>'Al desplegar la información del pedido, en la parte inferior se desplegara el módulo de Yabi','with your username and password.'=>'con su nombre de usuario y contraseña.','Yabi - Invoice Data'=>'Yabi - Información de facturación','Yabi einvoice for WooCommerce'=>'Factura electrónica Yabi para WooCommerce','Yabi for WooCommerce'=>'Yabi para WooCommerce','Yes'=>'Si','You can check the numbering by clicking the "View Last Credit Note" button'=>'Puede consultar la numeración haciendo clic en el botón "Ver última nota de crédito"','You can check the numbering by clicking the "View Last Invoice" button'=>'Puede comprobar la numeración haciendo clic en el botón "Ver última factura"','You must select the type of person'=>'Debe seleccionar el tipo de persona']];
  • wc-yabi/trunk/languages/yabi-wc-es_ES.po

    r3218446 r3422044  
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2020-12-02 23:02+0000\n"
    6 "PO-Revision-Date: 2025-01-07 15:43+0000\n"
     6"PO-Revision-Date: 2025-12-03 20:48+0000\n"
    77"Last-Translator: \n"
    8 "Language-Team: Spanish (Spain)\n"
     8"Language-Team: Español\n"
    99"Language: es_ES\n"
    1010"MIME-Version: 1.0\n"
     
    1818"X-Loco-Template-Mode: PO,JSON"
    1919
    20 #: content/information.php:130
     20#: content/information.php:321
    2121msgid "About the plugin"
    2222msgstr "Acerca del plugin"
     
    2727msgstr "Dirección"
    2828
    29 #: content/dian.php:217
     29#: content/dian.php:29 content/information.php:268
    3030msgid ""
    3131"After the DIAN has created the resolutions, please click on the \"Update\" "
     
    3535"botón “Actualizar”"
    3636
    37 #: content/dian.php:264
     37#: content/product-invoice.php:186
     38msgid ""
     39"Are you sure you want to cancel this invoice? This action cannot be undone."
     40msgstr ""
     41"¿Está seguro de que desea cancelar esta factura? Esta acción no se puede "
     42"deshacer."
     43
     44#: content/cancel-invoice.php:111 content/dian.php:96
    3845msgid "Associates a prefix with an organizational unit on Yabi"
    3946msgstr "Asocia un prefijo con una unidad organizativa en Yabi"
    4047
    41 #: content/settings.php:117
     48#: content/information.php:52 content/settings.php:73
    4249msgid "Automatic"
    4350msgstr "Automático"
    4451
    45 #: content/information.php:37
    46 msgid ""
    47 "Automatic: Generates automatic invoices, this depends on whether the data "
    48 "has been filled out correctly."
    49 msgstr ""
    50 "Automático: Genera facturas automáticas, esto depende de si los datos se han "
    51 "completado correctamente."
    52 
    53 #: content/settings.php:161
     52#: content/cancel-invoice.php:93 content/dian.php:78 content/settings.php:164
    5453msgid "Business Unit Uuid"
    5554msgstr "Unidad de negocio Uuid"
    5655
    57 #: content/information.php:24
    58 msgid "Cash: The payment is made immediately."
    59 msgstr "Efectivo: El pago se realiza de forma inmediata."
    60 
    61 #: content/dian.php:233
     56#: content/product-invoice.php:195
     57msgid "Cancel"
     58msgstr "Cancelar"
     59
     60#: content/admin.php:80 content/information.php:288 content/information.php:294
     61#: content/product-invoice.php:185
     62msgid "Cancel Invoice"
     63msgstr "Cancelar Factura"
     64
     65#: content/product-invoice.php:145
     66msgid "Cancel invoice"
     67msgstr "Cancelar factura"
     68
     69#: content/product-invoice.php:189
     70msgid "Cancellation reason"
     71msgstr "Motivo de cancelación"
     72
     73#: content/information.php:33
     74msgid "Cash"
     75msgstr "Dinero"
     76
     77#: content/cancel-invoice.php:74 content/dian.php:59
    6278msgid "Check"
    6379msgstr "Verificar"
    6480
    65 #: content/dian.php:229
     81#: content/cancel-invoice.php:66 content/dian.php:51
    6682msgid "Checking resolution prefixes in the Yabi system"
    6783msgstr "Comprobación de prefijos de resolución en el sistema Yabi"
     
    7591msgstr "Código de ciudad"
    7692
    77 #: content/information.php:57 content/information.php:81
    78 #, fuzzy
    79 msgid "Click in button &quot;Save&quot;."
    80 msgstr "Clic en el botón &quot;Guardar&quot;"
    81 
    82 #: content/information.php:74
    83 msgid "Click on &quot;Business Units&quot;."
    84 msgstr "Clic en &quot;Unidad de negocio&quot;"
    85 
    86 #: content/information.php:75
     93#: content/information.php:92 content/information.php:128
     94#: content/information.php:182
     95msgid "Click in button \"Save\"."
     96msgstr "Haga clic en el botón \"Guardar\"."
     97
     98#: content/information.php:154
     99msgid "Click on \"Business Units\"."
     100msgstr "Haga clic en “Unidades de Negocio”."
     101
     102#: content/information.php:158
    87103msgid ""
    88104"Click on a business unit, this displays the information of the business unit."
     
    91107"negocio"
    92108
    93 #: content/information.php:107
     109#: content/information.php:234
    94110msgid "Click on the \"Save\" button to save the information of the fields"
    95111msgstr "Clic en el botón \"Guardar\" para guardar la información de los campos"
    96112
    97 #: content/information.php:108
     113#: content/information.php:238
    98114msgid ""
    99115"Click on the button \"Save and generate\" for when you are sure to generate "
     
    105121"editar los campos. "
    106122
    107 #: content/information.php:103
     123#: content/information.php:218
    108124msgid "Click on the order to open the details"
    109125msgstr "Clic en el pedido para abrir los detalles"
    110126
    111 #: content/information.php:101
     127#: content/information.php:210
    112128msgid "Click on WooCommerce orders"
    113129msgstr "Clic en pedidos de WooCommerce"
    114130
    115 #: content/dian.php:231
     131#: content/cancel-invoice.php:69 content/dian.php:54
     132#: content/information.php:272 content/information.php:302
    116133msgid ""
    117134"Click the \"Check\" button to generate a table with the latest resolutions "
     
    121138"resoluciones disponibles en Yabi"
    122139
    123 #: content/settings.php:145
     140#: content/settings.php:150
    124141msgid "Client"
    125142msgstr "Cliente"
    126143
    127 #: content/information.php:146
     144#: content/information.php:333
    128145msgid "Code QR"
    129146msgstr "Código QR"
     
    133150msgstr "Nombre comercial"
    134151
    135 #: content/settings.php:154
     152#: content/settings.php:157
    136153msgid "Company"
    137154msgstr "Empresa"
    138155
    139 #: content/information.php:79
    140 msgid ""
    141 "Copy and paste  the personalized Token in the text field &quot;Token&quot;."
    142 msgstr ""
    143 "Copia y pega el Token personalizado en la caja de texto &quot;Token&quot;"
    144 
    145 #: content/information.php:76
     156#: content/product-invoice.php:196
     157msgid "Confirm Cancellation"
     158msgstr "Confirmar cancelación"
     159
     160#: wc-yabi.php:119
     161msgid "Connection error"
     162msgstr "Error de conexión"
     163
     164#: content/information.php:174
     165#| msgid "Copy and paste  the personalized Token in the text field \"Token\"."
     166msgid "Copy and paste the personalized Token in the text field \"Token\"."
     167msgstr "Copia y pega el Token personalizado en la caja de texto \"Token\""
     168
     169#: content/information.php:162
    146170msgid "Copy the code of the business unit."
    147171msgstr "Copia el codigo de la unidad de negocio."
    148172
    149 #: content/information.php:80
    150 msgid "Copy the example URL client in the text field &quot;URL client&quot;."
    151 msgstr ""
    152 "Copia el ejemplo del cliente URL en la caja de texto &quot;Cliente URL&quot;"
    153 
    154 #: content/dian.php:215
     173#: content/information.php:178
     174#| msgid ""
     175#| "Copy the example URL client in the text field &quot;URL client&quot;."
     176msgid "Copy the example URL client in the text field \"URL client\"."
     177msgstr "Copia el ejemplo del cliente URL en la caja de texto \"Cliente URL\""
     178
     179#: content/cancel-invoice.php:51
     180msgid "Create"
     181msgstr "Crear"
     182
     183#: content/cancel-invoice.php:20
     184msgid "Create a credit note in yabi.co"
     185msgstr "Crear una nota de crédito en yabi.co"
     186
     187#: content/dian.php:23 content/information.php:264
     188#| msgid ""
     189#| "Create the resolution in the DIAN Muisca system and assign it in the DIAN "
     190#| "“Electronic Billing” portal to Neia / Yabi.co."
    155191msgid ""
    156192"Create the resolution in the DIAN Muisca system and assign it in the DIAN "
    157 "“Electronic Billing” portal to Neia / Yabi.co."
     193"\"Electronic Billing\" portal to Neia / Yabi.co."
    158194msgstr ""
    159195"Crear la resolución en el sistema DIAN Muisca y asignarla en el portal "
     
    165201msgstr "Crea facturas electrónicas de tus compras de Woocommerce en Yabi"
    166202
    167 #: content/settings.php:89
     203#: content/settings.php:49
    168204msgid "Credit"
    169205msgstr "Crédito"
    170206
    171 #: content/settings.php:95
     207#: content/settings.php:54
    172208msgid "Credit days"
    173209msgstr "Días de crédito"
    174210
    175 #: content/information.php:106
     211#: content/settings.php:118
     212msgid "Credit Note"
     213msgstr "Nota de crédito"
     214
     215#: content/settings.php:130
     216msgid "Credit Note Number"
     217msgstr "Número de nota de crédito"
     218
     219#: content/settings.php:123
     220msgid "Credit Note Prefix"
     221msgstr "Prefijo de nota de crédito"
     222
     223#: content/settings.php:56
     224msgid "Default: 30 days"
     225msgstr "Predeterminado: 30 días"
     226
     227#: content/information.php:230
    176228msgid ""
    177229"Depending on the type of person, you must complete the additional information"
    178230msgstr "Según el tipo de persona debe completar la información adicional"
    179231
    180 #: content/admin.php:23 content/dian.php:209
     232#: content/admin.php:71 content/information.php:260
    181233msgid "DIAN"
    182234msgstr "DIAN"
    183235
    184 #: includes/transaction.php:873
     236#: includes/transaction.php:1023
     237msgid "DIAN prefix were created on Yabi.co"
     238msgstr "El prefijo DIAN se creó en Yabi.co"
     239
     240#: includes/transaction.php:1117
    185241msgid "DIAN resolutions were updated on Yabi.co"
    186242msgstr "Resoluciones de la DIAN fueron actualizadas en Yabi.co"
    187243
    188 #: content/dian.php:248
     244#: content/cancel-invoice.php:92 content/dian.php:77
    189245msgid "Document Type"
    190246msgstr "Tipo de documento"
    191247
     248#: includes/ajax.php:399
     249msgid "Document type is not CREDIT_NOTE"
     250msgstr "El tipo de documento no es CREDIT_NOTE"
     251
     252#: includes/ajax.php:362
     253msgid "Document type is not SALES_INVOICE"
     254msgstr "El tipo de documento no es SALES_INVOICE"
     255
     256#: content/information.php:342
     257msgid "Electronic invoicing for Colombia"
     258msgstr "Facturación electrónica para Colombia"
     259
     260#: content/admin.php:38
     261msgid "Electronic invoicing integration for Colombia"
     262msgstr "Integración de facturación electrónica para Colombia"
     263
    192264#: content/product-invoice-old.php:39 content/product-invoice.php:74
    193 #: content/product-invoice.php:156 content/product.php:186
     265#: content/product-invoice.php:157 content/product.php:186
    194266msgid "Email"
    195267msgstr "Correo electrónico"
    196268
    197 #: content/dian.php:247
     269#: content/cancel-invoice.php:91 content/dian.php:76
    198270msgid "End Date"
    199271msgstr "Fecha de finalización"
    200272
    201 #: content/information.php:73
     273#: content/cancel-invoice.php:23 content/information.php:298
     274msgid ""
     275"Enter the prefix and numbering range for the credit note you want to create "
     276"and click the \"Create\" button."
     277msgstr ""
     278"Ingrese el prefijo y el rango de numeración de la nota de crédito que desea "
     279"crear y haga clic en el botón \"Crear\"."
     280
     281#: content/information.php:150
    202282msgid "Enter the Yabi system"
    203283msgstr "Ingrese al sistema de Yabi"
    204284
    205 #: content/dian.php:246
     285#: content/cancel-invoice.php:90 content/dian.php:75
    206286msgid "Environment"
    207287msgstr "Ambiente"
    208288
    209 #: content/information.php:55
    210 msgid ""
    211 "Fill the text field \"Invoice Name\" with the invoice name. Example: \"SETT-"
    212 "\", \"SE\""
    213 msgstr ""
    214 "Llene el campo de texto \"Nombre de factura\" con las siglas de la factura. "
    215 "Ejemplo: \"SETT-\", \"SE\"."
    216 
    217 #: content/information.php:56
     289#: wc-yabi.php:115
     290msgid "Error loading credit note"
     291msgstr "Error al cargar la nota de crédito"
     292
     293#: wc-yabi.php:113
     294msgid "Error loading invoice"
     295msgstr "Error al cargar la factura"
     296
     297#: wc-yabi.php:111
     298msgid "Error loading prefixes"
     299msgstr "Error al cargar prefijos"
     300
     301#: wc-yabi.php:117
     302msgid "Error saving settings"
     303msgstr "Error al guardar la configuración"
     304
     305#: content/information.php:84 content/information.php:120
    218306msgid ""
    219307"Fill the text field with the consecutive invoice. Example: if the "
     
    223311"consecutivo actual es 25, favor colocar en la caja de texto el número 26."
    224312
    225 #: content/information.php:102
     313#: content/information.php:214
    226314msgid ""
    227315"Find the order in the completed state for which you want to generate an "
     
    230318"Buscar el pedido en estado completado al cual se desea generar una factura"
    231319
    232 #: content/information.php:54 content/information.php:77
     320#: content/cancel-invoice.php:38
     321msgid "From"
     322msgstr "De"
     323
     324#: content/information.php:56
     325#| msgid "Manual: Generate invoices manually in order administration"
     326msgid "Generate invoices manually in order administration"
     327msgstr "Generar facturas manualmente en la administración de pedidos"
     328
     329#: content/information.php:52
     330#| msgid ""
     331#| "Automatic: Generates automatic invoices, this depends on whether the data "
     332#| "has been filled out correctly."
     333msgid ""
     334"Generates automatic invoices, this depends on whether the data has been "
     335"filled out correctly."
     336msgstr ""
     337"Genera facturas automáticas, esto depende de si los datos se han rellenado "
     338"correctamente."
     339
     340#: content/information.php:76 content/information.php:112
     341#: content/information.php:166 content/information.php:260
     342#: content/information.php:294
    233343msgid "Go to"
    234344msgstr "Ir a"
    235345
    236 #: content/information.php:92
     346#: content/information.php:194
    237347msgid "How to generate an invoice?"
    238348msgstr "Cómo generar una factura?"
     
    246356msgstr "https://mireunion.com/yabi"
    247357
    248 #: content/settings.php:103 content/information.php:28
     358#: content/information.php:43 content/settings.php:62
    249359msgid "I agree to modify the checkout"
    250360msgstr "Acepto modificar el checkout"
    251361
    252 #: includes/woo.php:72 content/product-invoice-old.php:32
    253 #: content/product-invoice.php:67 content/product.php:178
     362#: content/product-invoice-old.php:32 content/product-invoice.php:67
     363#: content/product.php:178 includes/woo.php:72
    254364msgid "Identifier"
    255365msgstr "Identificación"
     
    269379msgstr "¡El identificador es un campo obligatorio!"
    270380
    271 #: content/settings.php:88
     381#: content/information.php:202
     382msgid "Important"
     383msgstr "Importante"
     384
     385#: content/settings.php:48
    272386msgid "In cash"
    273387msgstr "En efectivo"
    274388
    275 #: content/information.php:25
    276 msgid ""
    277 "In Credit: The payment is credited and you can select the number of days of "
    278 "the credit, generally it is 30 days"
    279 msgstr ""
    280 "En Crédito: Se acredita el pago y puedes seleccionar el número de días del "
    281 "crédito, generalmente son 30 días"
    282 
    283 #: content/information.php:4 content/admin.php:18
     389#: content/information.php:37
     390msgid "In Credit"
     391msgstr "En crédito"
     392
     393#: content/admin.php:52
    284394msgid "Information"
    285395msgstr "Información"
    286396
    287 #: content/information.php:67
     397#: content/information.php:140
    288398msgid "Instructions for client"
    289399msgstr "Instrucciones para el cliente"
    290400
    291 #: content/information.php:47
     401#: content/information.php:104
     402msgid "Instructions for credit note"
     403msgstr "Instrucciones para la nota de crédito"
     404
     405#: content/information.php:68
    292406msgid "Instructions for invoice"
    293407msgstr "Instrucciones para la facturación"
    294408
    295 #: content/information.php:17
     409#: content/information.php:25
    296410msgid "Instructions for settings"
    297411msgstr "Instrucciones para la configuración"
    298412
    299 #. Name of the plugin
    300 msgid "Integrate Yabi for WooCommerce"
    301 msgstr "Integración Yabi para WooCommerce"
    302 
    303 #: content/settings.php:124
     413#: includes/ajax.php:47
     414msgid "Invalid tab"
     415msgstr "Pestaña no válida"
     416
     417#: content/settings.php:86
    304418msgid "Invoice"
    305419msgstr "Factura"
    306420
    307 #: content/settings.php:130
     421#: includes/transaction.php:51
     422msgid "Invoice cancelled successfully!"
     423msgstr "¡Factura cancelada exitosamente!"
     424
     425#: content/settings.php:91
    308426msgid "Invoice Name"
    309427msgstr "Nombre de factura"
    310428
    311 #: content/product-invoice-old.php:88 content/settings.php:137
    312 #: content/product-invoice.php:128
     429#: includes/ajax.php:122
     430msgid "Invoice not found"
     431msgstr "Factura no encontrada"
     432
     433#: content/product-invoice-old.php:88 content/product-invoice.php:128
     434#: content/settings.php:98
    313435msgid "Invoice Number"
    314436msgstr "Número de factura"
    315437
    316 #: includes/transaction.php:1138
     438#: includes/transaction.php:1461
    317439msgid "Invoice resent!"
    318440msgstr "¡Factura reenviada!"
     
    322444msgstr "Serie de la factura"
    323445
    324 #: content/settings.php:113 content/information.php:34
     446#: content/information.php:48 content/settings.php:70
    325447msgid "Invoice type"
    326448msgstr "Tipo de factura"
    327449
    328 #: content/information.php:21
     450#: content/information.php:28
    329451msgid "Invoices can be defined in Cash or In Credit"
    330452msgstr "Las facturas se pueden definir en efectivo o en crédito."
     
    339461msgstr "Persona jurídica"
    340462
    341 #: content/settings.php:116
     463#: wc-yabi.php:108 content/admin.php:90 content/settings.php:93
     464#: content/settings.php:125
     465msgid "Loading..."
     466msgstr "Cargando..."
     467
     468#: content/information.php:56 content/settings.php:72
    342469msgid "Manual"
    343470msgstr "Manual"
    344 
    345 #: content/information.php:38
    346 msgid "Manual: Generate invoices manually in order administration"
    347 msgstr "Manual: Genera facturas manualmente en la administración de pedidos."
    348471
    349472#. Author of the plugin
     
    352475
    353476#: content/product-invoice-old.php:13 content/product-invoice.php:26
    354 #: content/product-invoice.php:149 content/product.php:135
     477#: content/product-invoice.php:150 content/product.php:135
    355478msgid "Name"
    356479msgstr "Nombre"
     
    360483msgstr "Persona natural"
    361484
    362 #: content/settings.php:106
     485#: content/settings.php:64
    363486msgid "No"
    364487msgstr "No"
     488
     489#: wc-yabi.php:110
     490msgid "No active prefixes"
     491msgstr "No hay prefijos activos"
     492
     493#: wc-yabi.php:114
     494msgid "No credit note found"
     495msgstr "No se encontró ninguna nota de crédito"
     496
     497#: includes/ajax.php:404
     498msgid "No credit notes found"
     499msgstr "No se encontraron notas de crédito"
     500
     501#: includes/ajax.php:100
     502msgid "No data to save"
     503msgstr "No hay datos para guardar"
     504
     505#: wc-yabi.php:112
     506msgid "No invoice found"
     507msgstr "No se encontró ninguna factura"
     508
     509#: includes/ajax.php:367
     510msgid "No invoices found"
     511msgstr "No se encontraron facturas"
     512
     513#: content/dian.php:28
     514msgid "Note"
     515msgstr "Nota"
    365516
    366517#: content/product-invoice-old.php:81 content/product-invoice.php:119
     
    374525msgstr "Nombre de la nota"
    375526
     527#: content/cancel-invoice.php:34
     528msgid "Numbering range"
     529msgstr "Rango de numeración"
     530
    376531#: content/product-invoice-old.php:67 content/product-invoice.php:97
    377532#: content/product.php:229
     
    379534msgstr "Observaciones"
    380535
    381 #: content/information.php:78
    382 msgid ""
    383 "Paste the previously copied code in the text field &quot;Business Unit "
    384 "Uuid&quot;."
     536#: content/information.php:170
     537#| msgid ""
     538#| "Paste the previously copied code in the text field &quot;Business Unit "
     539#| "Uuid&quot;."
     540msgid ""
     541"Paste the previously copied code in the text field \"Business Unit Uuid\"."
    385542msgstr ""
    386543"Pegue el código previamente copiado en la caja de texto \"Unidad de negocio "
    387544"Uuid\"."
    388545
    389 #: content/settings.php:85
     546#: content/settings.php:41
     547msgid "Payment Settings"
     548msgstr "Configuración de pago"
     549
     550#: content/settings.php:46
    390551msgid "Payment type"
    391552msgstr "Tipo de pago"
    392553
    393 #: content/settings.php:155
     554#: includes/ajax.php:40 includes/ajax.php:91
     555msgid "Permission denied"
     556msgstr "Permiso denegado"
     557
     558#: content/settings.php:158
    394559msgid "Person"
    395560msgstr "Persona natural"
    396561
    397 #: wc-yabi.php:220
     562#: includes/ajax.php:52
     563msgid "Please configure settings first"
     564msgstr "Por favor, configure los ajustes primero"
     565
     566#: wc-yabi.php:278
    398567msgid ""
    399568"Please enter the Yabi plugin configuration, as you need to enter new data "
     
    402571"Ingrese a la configuración del complemento Yabi, ya que necesita ingresar "
    403572"nuevos datos para que funcione correctamente"
     573
     574#: wc-yabi.php:121
     575msgid "Please select a prefix"
     576msgstr "Por favor seleccione un prefijo"
    404577
    405578#: content/product.php:222
     
    407580msgstr "Código postal"
    408581
    409 #: content/dian.php:245 content/dian.php:270
     582#: content/cancel-invoice.php:27 content/cancel-invoice.php:89
     583#: content/cancel-invoice.php:118 content/dian.php:74 content/dian.php:103
    410584msgid "Prefix"
    411585msgstr "Prefijo"
    412586
    413 #: content/dian.php:244
     587#: content/cancel-invoice.php:88 content/dian.php:73
    414588msgid "Prefix ID"
    415589msgstr "Prefijo ID"
     
    419593msgstr "Reenviar factura"
    420594
    421 #: content/dian.php:243
     595#: content/cancel-invoice.php:87 content/dian.php:72
    422596msgid "Resolution Number"
    423597msgstr "Número de resolución"
    424598
    425 #: content/settings.php:186 content/product.php:252 content/dian.php:276
     599#: content/cancel-invoice.php:128 content/dian.php:113 content/product.php:252
    426600msgid "Save"
    427601msgstr "Guardar"
     
    431605msgstr "Guardar y generar"
    432606
    433 #: content/product-invoice.php:224 content/product.php:71
     607#: content/settings.php:187
     608msgid "Save Settings"
     609msgstr "Guardar configuración"
     610
     611#: content/product-invoice.php:286 content/product.php:71
    434612msgid "Saved data!. Unexpected error on invoice, try again later.!"
    435613msgstr ""
     
    437615"tarde!"
    438616
    439 #: includes/woo.php:49 content/product-invoice.php:53 content/product.php:156
     617#: content/product-invoice.php:53 content/product.php:156 includes/woo.php:49
    440618msgid "Second Last Name"
    441619msgstr "Segundo apellido"
    442620
    443 #: includes/woo.php:38 content/product-invoice.php:35 content/product.php:142
     621#: content/product-invoice.php:35 content/product.php:142 includes/woo.php:38
    444622msgid "Second Name"
    445623msgstr "Segundo nombre"
     624
     625#: includes/ajax.php:35 includes/ajax.php:86
     626msgid "Security check failed"
     627msgstr "Comprobación de seguridad fallida"
     628
     629#: content/information.php:116
     630msgid ""
     631"Select \"Credit Note Prefix\" with the credit note name. Example: \"CNS-\", "
     632"\"CN\""
     633msgstr ""
     634"Seleccione \"Prefijo de nota de crédito\" con el nombre de la nota. Ejemplo: "
     635"\"CNS-\", \"CN\""
     636
     637#: content/information.php:80
     638#| msgid ""
     639#| "Fill the text field \"Invoice Name\" with the invoice name. Example: "
     640#| "\"SETT-\", \"SE\""
     641msgid ""
     642"Select \"Invoice Name\" with the invoice name. Example: \"SETT-\", \"SE\""
     643msgstr ""
     644"Seleccione \"Nombre de la factura\" con el nombre de la factura. Ejemplo: "
     645"\"SETT-\", \"SE\""
     646
     647#: content/cancel-invoice.php:120 content/dian.php:105
     648msgid "Select a prefix"
     649msgstr "Seleccione un prefijo"
     650
     651#: wc-yabi.php:109
     652msgid "Select prefix"
     653msgstr "Seleccionar prefijo"
     654
     655#: content/information.php:276 content/information.php:306
     656msgid "Select the prefix you want to associate and click the \"Save\" button."
     657msgstr ""
     658"Seleccione el prefijo que desea asociar y haga clic en el botón \"Guardar\"."
     659
     660#: content/cancel-invoice.php:114 content/dian.php:99
     661msgid ""
     662"Select the prefix you want to associate and click the \"Save\" button. First,"
     663" click \"Check\" to load available prefixes."
     664msgstr ""
     665"Seleccione el prefijo que desea asociar y haga clic en el botón \"Guardar\". "
     666"Primero, haga clic en \"Comprobar\" para cargar los prefijos disponibles."
    446667
    447668#: includes/woo.php:23
     
    449670msgstr "Selecciona el tipo de persona"
    450671
    451 #: content/product-invoice.php:165
     672#: content/product-invoice.php:166
    452673msgid "Send"
    453674msgstr "Enviar"
    454675
    455 #: content/admin.php:4
    456 msgid "Setting saved!"
    457 msgstr "Configuración guardada!"
    458 
    459 #: content/settings.php:73 content/settings.php:79 content/admin.php:19
     676#: content/admin.php:61
    460677msgid "Settings"
    461678msgstr "Configuración"
    462679
    463 #: content/information.php:54 content/information.php:77
     680#: content/information.php:76 content/information.php:112
     681#: content/information.php:166
    464682msgid "settings page"
    465683msgstr "pagina de configuración"
    466684
    467 #: content/dian.php:242
     685#: wc-yabi.php:116 content/admin.php:25 includes/ajax.php:97
     686msgid "Settings saved successfully!"
     687msgstr "¡Configuración guardada exitosamente!"
     688
     689#: content/cancel-invoice.php:86 content/dian.php:71
    468690msgid "Start Date"
    469691msgstr "Fecha de inicio"
    470692
    471 #: content/dian.php:80 content/dian.php:110
     693#: wc-yabi.php:120
    472694msgid "Success"
    473695msgstr "Éxito"
    474696
    475 #: includes/transaction.php:157
     697#: includes/transaction.php:310
    476698msgid "Success!. Invoice generate: "
    477699msgstr "¡Éxito!. Generación de factura: "
    478700
    479 #: content/information.php:135
     701#: content/information.php:324
    480702msgid "Support this plugin"
    481703msgstr "Colabora con este plugin"
     
    486708msgstr "Teléfono"
    487709
    488 #: content/information.php:51
     710#: content/information.php:71 content/information.php:107
    489711msgid ""
    490712"The fields of the invoice are the name and the consecutive number of the "
     
    496718"complete los datos correspondientes. Ejemplo: SETT-26."
    497719
    498 #: includes/transaction.php:1072
     720#: includes/transaction.php:1333
    499721msgid "The new DIAN resolutions are synchronized with Yabi.co"
    500722msgstr "Las nuevas resoluciones de la DIAN se sincronizan con Yabi.co"
    501723
    502 #: content/information.php:96
     724#: content/information.php:37
     725#| msgid ""
     726#| "In Credit: The payment is credited and you can select the number of days "
     727#| "of the credit, generally it is 30 days"
     728msgid ""
     729"The payment is credited and you can select the number of days of the credit, "
     730"generally it is 30 days"
     731msgstr ""
     732"El pago se acredita y puedes seleccionar el número de días del crédito, "
     733"generalmente son 30 días"
     734
     735#: content/information.php:33
     736#| msgid "Cash: The payment is made immediately."
     737msgid "The payment is made immediately."
     738msgstr "El pago se realiza de inmediato."
     739
     740#: content/information.php:197
    503741msgid "The process to generate an invoice."
    504742msgstr "El proceso para generar una factura."
    505743
    506 #: content/information.php:98
     744#: content/product-invoice.php:191 includes/ajax.php:114
     745msgid "The reason is required"
     746msgstr "Se requiere el motivo"
     747
     748#: content/information.php:203
    507749#| msgid ""
    508750#| "The WooCommerce purchase must be in a completed state, in order to "
     
    515757"la factura electrónica. (Automático o Manual)"
    516758
    517 #: content/information.php:31
     759#: content/information.php:44
    518760msgid ""
    519761"This option allows you to modify the default Woocommerce form to allow the "
     
    529771"puedan generar la dirección necesaria para la DIAN."
    530772
    531 #: content/information.php:109
     773#: content/cancel-invoice.php:43
     774msgid "To"
     775msgstr "A"
     776
     777#: content/information.php:242
    532778msgid "To download the invoice you have to enter the Yabi platform"
    533779msgstr "Para descargar la factura tiene que ingresar a la plataforma de Yabi"
    534780
    535 #: content/information.php:72
     781#: content/information.php:146
    536782msgid ""
    537783"To get started, contact Yabi to send you the personalized Token of your "
     
    541787"de su cuenta por correo electrónico."
    542788
    543 #: content/settings.php:169
     789#: content/settings.php:170
    544790msgid "Token"
    545791msgstr "Token"
    546792
    547 #: includes/woo.php:60 content/product-invoice-old.php:27
    548 #: content/product-invoice.php:62 content/product.php:163
     793#: content/product-invoice-old.php:27 content/product-invoice.php:62
     794#: content/product.php:163 includes/woo.php:60
    549795msgid "Type of document"
    550796msgstr "Tipo de documento"
     
    554800msgstr "¡El tipo de documento es un campo obligatorio!"
    555801
    556 #: content/settings.php:151
     802#: content/settings.php:155
    557803msgid "Type of Owner"
    558804msgstr "Tipo de dueño"
     
    566812msgstr "¡El tipo de persona es un campo obligatorio!"
    567813
    568 #: includes/transaction.php:165 includes/transaction.php:877
    569 #: includes/transaction.php:1014 includes/transaction.php:1045
    570 #: includes/transaction.php:1076
     814#: content/product-invoice.php:322 content/product-invoice.php:348
     815#: includes/transaction.php:55 includes/transaction.php:318
     816#: includes/transaction.php:1027 includes/transaction.php:1121
     817#: includes/transaction.php:1258 includes/transaction.php:1306
     818#: includes/transaction.php:1337
    571819msgid "Unexpected error, try again later or contact support."
    572820msgstr ""
     
    574822"soporte técnico."
    575823
    576 #: content/product.php:93 content/dian.php:68 content/dian.php:98
    577 #: content/dian.php:154
     824#: wc-yabi.php:118
     825msgid "Unexpected error, try again later!"
     826msgstr "Error inesperado, ¡inténtalo de nuevo más tarde!"
     827
     828#: content/product.php:93
    578829msgid "Unexpected error, try again later.!"
    579830msgstr "Error inesperado, ¡inténtalo de nuevo más tarde!"
    580831
    581 #: content/dian.php:219
     832#: content/dian.php:36
    582833msgid "Update"
    583834msgstr "Actualizar"
    584835
    585 #: content/dian.php:213
     836#: content/dian.php:20 content/information.php:254
    586837msgid "Update resolution in yabi.co"
    587838msgstr "Actualizar resolución en yabi.co"
    588839
    589 #: content/settings.php:177
     840#: content/settings.php:176
    590841msgid "URL client"
    591842msgstr "Cliente URL"
    592843
    593 #: content/information.php:104
     844#: content/settings.php:103 content/settings.php:135
     845msgid "View Last"
     846msgstr "Ver último"
     847
     848#: content/information.php:222
    594849msgid ""
    595850"When displaying the order information, the Yabi module will be displayed at "
     
    599854"el módulo de Yabi"
    600855
    601 #: content/information.php:73
     856#: content/information.php:150
    602857msgid "with your username and password."
    603858msgstr "con su nombre de usuario y contraseña."
    604859
    605 #: wc-yabi.php:94
     860#: wc-yabi.php:148
    606861msgid "Yabi - Invoice Data"
    607862msgstr "Yabi - Información de facturación"
    608863
    609 #: content/admin.php:15
     864#. Name of the plugin
     865msgid "Yabi einvoice for WooCommerce"
     866msgstr "Factura electrónica Yabi para WooCommerce"
     867
     868#: content/admin.php:37
    610869msgid "Yabi for WooCommerce"
    611870msgstr "Yabi para WooCommerce"
    612871
    613 #: content/settings.php:107
     872#: content/settings.php:65
    614873msgid "Yes"
    615874msgstr "Si"
    616875
    617 #: content/information.php:105
     876#: content/information.php:124
     877msgid ""
     878"You can check the numbering by clicking the \"View Last Credit Note\" button"
     879msgstr ""
     880"Puede consultar la numeración haciendo clic en el botón \"Ver última nota de "
     881"crédito\""
     882
     883#: content/information.php:88
     884msgid ""
     885"You can check the numbering by clicking the \"View Last Invoice\" button"
     886msgstr ""
     887"Puede comprobar la numeración haciendo clic en el botón \"Ver última "
     888"factura\""
     889
     890#: content/information.php:226
    618891msgid "You must select the type of person"
    619892msgstr "Debe seleccionar el tipo de persona"
  • wc-yabi/trunk/languages/yabi-wc.pot

    r3218446 r3422044  
    44"Project-Id-Version: Yabi for WooCommerce\n"
    55"Report-Msgid-Bugs-To: \n"
    6 "POT-Creation-Date: 2025-01-07 15:37+0000\n"
     6"POT-Creation-Date: 2025-12-03 20:38+0000\n"
    77"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    88"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1616"X-Loco-Version: 2.4.6; wp-5.5.3"
    1717
    18 #: content/information.php:130
     18#: content/information.php:321
    1919msgid "About the plugin"
    2020msgstr ""
     
    2525msgstr ""
    2626
    27 #: content/dian.php:217
     27#: content/dian.php:29 content/information.php:268
    2828msgid ""
    2929"After the DIAN has created the resolutions, please click on the \"Update\" "
     
    3131msgstr ""
    3232
    33 #: content/dian.php:264
     33#: content/product-invoice.php:186
     34msgid ""
     35"Are you sure you want to cancel this invoice? This action cannot be undone."
     36msgstr ""
     37
     38#: content/cancel-invoice.php:111 content/dian.php:96
    3439msgid "Associates a prefix with an organizational unit on Yabi"
    3540msgstr ""
    3641
    37 #: content/settings.php:117
     42#: content/information.php:52 content/settings.php:73
    3843msgid "Automatic"
    3944msgstr ""
    4045
    41 #: content/information.php:37
    42 msgid ""
    43 "Automatic: Generates automatic invoices, this depends on whether the data "
    44 "has been filled out correctly."
    45 msgstr ""
    46 
    47 #: content/settings.php:161
     46#: content/cancel-invoice.php:93 content/dian.php:78 content/settings.php:164
    4847msgid "Business Unit Uuid"
    4948msgstr ""
    5049
    51 #: content/information.php:24
    52 msgid "Cash: The payment is made immediately."
    53 msgstr ""
    54 
    55 #: content/dian.php:233
     50#: content/product-invoice.php:195
     51msgid "Cancel"
     52msgstr ""
     53
     54#: content/admin.php:80 content/information.php:288 content/information.php:294
     55#: content/product-invoice.php:185
     56msgid "Cancel Invoice"
     57msgstr ""
     58
     59#: content/product-invoice.php:145
     60msgid "Cancel invoice"
     61msgstr ""
     62
     63#: content/product-invoice.php:189
     64msgid "Cancellation reason"
     65msgstr ""
     66
     67#: content/information.php:33
     68msgid "Cash"
     69msgstr ""
     70
     71#: content/cancel-invoice.php:74 content/dian.php:59
    5672msgid "Check"
    5773msgstr ""
    5874
    59 #: content/dian.php:229
     75#: content/cancel-invoice.php:66 content/dian.php:51
    6076msgid "Checking resolution prefixes in the Yabi system"
    6177msgstr ""
     
    6985msgstr ""
    7086
    71 #: content/information.php:57 content/information.php:81
    72 msgid "Click in button &quot;Save&quot;."
    73 msgstr ""
    74 
    75 #: content/information.php:74
    76 msgid "Click on &quot;Business Units&quot;."
    77 msgstr ""
    78 
    79 #: content/information.php:75
     87#: content/information.php:92 content/information.php:128
     88#: content/information.php:182
     89msgid "Click in button \"Save\"."
     90msgstr ""
     91
     92#: content/information.php:154
     93msgid "Click on \"Business Units\"."
     94msgstr ""
     95
     96#: content/information.php:158
    8097msgid ""
    8198"Click on a business unit, this displays the information of the business unit."
    8299msgstr ""
    83100
    84 #: content/information.php:107
     101#: content/information.php:234
    85102msgid "Click on the \"Save\" button to save the information of the fields"
    86103msgstr ""
    87104
    88 #: content/information.php:108
     105#: content/information.php:238
    89106msgid ""
    90107"Click on the button \"Save and generate\" for when you are sure to generate "
     
    93110msgstr ""
    94111
    95 #: content/information.php:103
     112#: content/information.php:218
    96113msgid "Click on the order to open the details"
    97114msgstr ""
    98115
    99 #: content/information.php:101
     116#: content/information.php:210
    100117msgid "Click on WooCommerce orders"
    101118msgstr ""
    102119
    103 #: content/dian.php:231
     120#: content/cancel-invoice.php:69 content/dian.php:54
     121#: content/information.php:272 content/information.php:302
    104122msgid ""
    105123"Click the \"Check\" button to generate a table with the latest resolutions "
     
    107125msgstr ""
    108126
    109 #: content/settings.php:145
     127#: content/settings.php:150
    110128msgid "Client"
    111129msgstr ""
    112130
    113 #: content/information.php:146
     131#: content/information.php:333
    114132msgid "Code QR"
    115133msgstr ""
     
    119137msgstr ""
    120138
    121 #: content/settings.php:154
     139#: content/settings.php:157
    122140msgid "Company"
    123141msgstr ""
    124142
    125 #: content/information.php:79
    126 msgid ""
    127 "Copy and paste  the personalized Token in the text field &quot;Token&quot;."
    128 msgstr ""
    129 
    130 #: content/information.php:76
     143#: content/product-invoice.php:196
     144msgid "Confirm Cancellation"
     145msgstr ""
     146
     147#: wc-yabi.php:119
     148msgid "Connection error"
     149msgstr ""
     150
     151#: content/information.php:174
     152msgid "Copy and paste the personalized Token in the text field \"Token\"."
     153msgstr ""
     154
     155#: content/information.php:162
    131156msgid "Copy the code of the business unit."
    132157msgstr ""
    133158
    134 #: content/information.php:80
    135 msgid "Copy the example URL client in the text field &quot;URL client&quot;."
    136 msgstr ""
    137 
    138 #: content/dian.php:215
     159#: content/information.php:178
     160msgid "Copy the example URL client in the text field \"URL client\"."
     161msgstr ""
     162
     163#: content/cancel-invoice.php:51
     164msgid "Create"
     165msgstr ""
     166
     167#: content/cancel-invoice.php:20
     168msgid "Create a credit note in yabi.co"
     169msgstr ""
     170
     171#: content/dian.php:23 content/information.php:264
    139172msgid ""
    140173"Create the resolution in the DIAN Muisca system and assign it in the DIAN "
    141 "“Electronic Billing” portal to Neia / Yabi.co."
     174"\"Electronic Billing\" portal to Neia / Yabi.co."
    142175msgstr ""
    143176
     
    147180msgstr ""
    148181
    149 #: content/settings.php:89
     182#: content/settings.php:49
    150183msgid "Credit"
    151184msgstr ""
    152185
    153 #: content/settings.php:95
     186#: content/settings.php:54
    154187msgid "Credit days"
    155188msgstr ""
    156189
    157 #: content/information.php:106
     190#: content/settings.php:118
     191msgid "Credit Note"
     192msgstr ""
     193
     194#: content/settings.php:130
     195msgid "Credit Note Number"
     196msgstr ""
     197
     198#: content/settings.php:123
     199msgid "Credit Note Prefix"
     200msgstr ""
     201
     202#: content/settings.php:56
     203msgid "Default: 30 days"
     204msgstr ""
     205
     206#: content/information.php:230
    158207msgid ""
    159208"Depending on the type of person, you must complete the additional information"
    160209msgstr ""
    161210
    162 #: content/admin.php:23 content/dian.php:209
     211#: content/admin.php:71 content/information.php:260
    163212msgid "DIAN"
    164213msgstr ""
    165214
    166 #: includes/transaction.php:873
     215#: includes/transaction.php:1023
     216msgid "DIAN prefix were created on Yabi.co"
     217msgstr ""
     218
     219#: includes/transaction.php:1117
    167220msgid "DIAN resolutions were updated on Yabi.co"
    168221msgstr ""
    169222
    170 #: content/dian.php:248
     223#: content/cancel-invoice.php:92 content/dian.php:77
    171224msgid "Document Type"
    172225msgstr ""
    173226
     227#: includes/ajax.php:399
     228msgid "Document type is not CREDIT_NOTE"
     229msgstr ""
     230
     231#: includes/ajax.php:362
     232msgid "Document type is not SALES_INVOICE"
     233msgstr ""
     234
     235#: content/information.php:342
     236msgid "Electronic invoicing for Colombia"
     237msgstr ""
     238
     239#: content/admin.php:38
     240msgid "Electronic invoicing integration for Colombia"
     241msgstr ""
     242
    174243#: content/product-invoice-old.php:39 content/product-invoice.php:74
    175 #: content/product-invoice.php:156 content/product.php:186
     244#: content/product-invoice.php:157 content/product.php:186
    176245msgid "Email"
    177246msgstr ""
    178247
    179 #: content/dian.php:247
     248#: content/cancel-invoice.php:91 content/dian.php:76
    180249msgid "End Date"
    181250msgstr ""
    182251
    183 #: content/information.php:73
     252#: content/cancel-invoice.php:23 content/information.php:298
     253msgid ""
     254"Enter the prefix and numbering range for the credit note you want to create "
     255"and click the \"Create\" button."
     256msgstr ""
     257
     258#: content/information.php:150
    184259msgid "Enter the Yabi system"
    185260msgstr ""
    186261
    187 #: content/dian.php:246
     262#: content/cancel-invoice.php:90 content/dian.php:75
    188263msgid "Environment"
    189264msgstr ""
    190265
    191 #: content/information.php:55
    192 msgid ""
    193 "Fill the text field \"Invoice Name\" with the invoice name. Example: \"SETT-"
    194 "\", \"SE\""
    195 msgstr ""
    196 
    197 #: content/information.php:56
     266#: wc-yabi.php:115
     267msgid "Error loading credit note"
     268msgstr ""
     269
     270#: wc-yabi.php:113
     271msgid "Error loading invoice"
     272msgstr ""
     273
     274#: wc-yabi.php:111
     275msgid "Error loading prefixes"
     276msgstr ""
     277
     278#: wc-yabi.php:117
     279msgid "Error saving settings"
     280msgstr ""
     281
     282#: content/information.php:84 content/information.php:120
    198283msgid ""
    199284"Fill the text field with the consecutive invoice. Example: if the "
     
    201286msgstr ""
    202287
    203 #: content/information.php:102
     288#: content/information.php:214
    204289msgid ""
    205290"Find the order in the completed state for which you want to generate an "
     
    207292msgstr ""
    208293
    209 #: content/information.php:54 content/information.php:77
     294#: content/cancel-invoice.php:38
     295msgid "From"
     296msgstr ""
     297
     298#: content/information.php:56
     299msgid "Generate invoices manually in order administration"
     300msgstr ""
     301
     302#: content/information.php:52
     303msgid ""
     304"Generates automatic invoices, this depends on whether the data has been "
     305"filled out correctly."
     306msgstr ""
     307
     308#: content/information.php:76 content/information.php:112
     309#: content/information.php:166 content/information.php:260
     310#: content/information.php:294
    210311msgid "Go to"
    211312msgstr ""
    212313
    213 #: content/information.php:92
     314#: content/information.php:194
    214315msgid "How to generate an invoice?"
    215316msgstr ""
     
    223324msgstr ""
    224325
    225 #: content/settings.php:103 content/information.php:28
     326#: content/information.php:43 content/settings.php:62
    226327msgid "I agree to modify the checkout"
    227328msgstr ""
    228329
    229 #: includes/woo.php:72 content/product-invoice-old.php:32
    230 #: content/product-invoice.php:67 content/product.php:178
     330#: content/product-invoice-old.php:32 content/product-invoice.php:67
     331#: content/product.php:178 includes/woo.php:72
    231332msgid "Identifier"
    232333msgstr ""
     
    244345msgstr ""
    245346
    246 #: content/settings.php:88
     347#: content/information.php:202
     348msgid "Important"
     349msgstr ""
     350
     351#: content/settings.php:48
    247352msgid "In cash"
    248353msgstr ""
    249354
     355#: content/information.php:37
     356msgid "In Credit"
     357msgstr ""
     358
     359#: content/admin.php:52
     360msgid "Information"
     361msgstr ""
     362
     363#: content/information.php:140
     364msgid "Instructions for client"
     365msgstr ""
     366
     367#: content/information.php:104
     368msgid "Instructions for credit note"
     369msgstr ""
     370
     371#: content/information.php:68
     372msgid "Instructions for invoice"
     373msgstr ""
     374
    250375#: content/information.php:25
    251 msgid ""
    252 "In Credit: The payment is credited and you can select the number of days of "
    253 "the credit, generally it is 30 days"
    254 msgstr ""
    255 
    256 #: content/information.php:4 content/admin.php:18
    257 msgid "Information"
    258 msgstr ""
    259 
    260 #: content/information.php:67
    261 msgid "Instructions for client"
    262 msgstr ""
    263 
    264 #: content/information.php:47
    265 msgid "Instructions for invoice"
    266 msgstr ""
    267 
    268 #: content/information.php:17
    269376msgid "Instructions for settings"
    270377msgstr ""
    271378
    272 #. Name of the plugin
    273 msgid "Integrate Yabi for WooCommerce"
    274 msgstr ""
    275 
    276 #: content/settings.php:124
     379#: includes/ajax.php:47
     380msgid "Invalid tab"
     381msgstr ""
     382
     383#: content/settings.php:86
    277384msgid "Invoice"
    278385msgstr ""
    279386
    280 #: content/settings.php:130
     387#: includes/transaction.php:51
     388msgid "Invoice cancelled successfully!"
     389msgstr ""
     390
     391#: content/settings.php:91
    281392msgid "Invoice Name"
    282393msgstr ""
    283394
    284 #: content/product-invoice-old.php:88 content/settings.php:137
    285 #: content/product-invoice.php:128
     395#: includes/ajax.php:122
     396msgid "Invoice not found"
     397msgstr ""
     398
     399#: content/product-invoice-old.php:88 content/product-invoice.php:128
     400#: content/settings.php:98
    286401msgid "Invoice Number"
    287402msgstr ""
    288403
    289 #: includes/transaction.php:1138
     404#: includes/transaction.php:1461
    290405msgid "Invoice resent!"
    291406msgstr ""
     
    295410msgstr ""
    296411
    297 #: content/settings.php:113 content/information.php:34
     412#: content/information.php:48 content/settings.php:70
    298413msgid "Invoice type"
    299414msgstr ""
    300415
    301 #: content/information.php:21
     416#: content/information.php:28
    302417msgid "Invoices can be defined in Cash or In Credit"
    303418msgstr ""
     
    312427msgstr ""
    313428
    314 #: content/settings.php:116
     429#: wc-yabi.php:108 content/admin.php:90 content/settings.php:93
     430#: content/settings.php:125
     431msgid "Loading..."
     432msgstr ""
     433
     434#: content/information.php:56 content/settings.php:72
    315435msgid "Manual"
    316 msgstr ""
    317 
    318 #: content/information.php:38
    319 msgid "Manual: Generate invoices manually in order administration"
    320436msgstr ""
    321437
     
    325441
    326442#: content/product-invoice-old.php:13 content/product-invoice.php:26
    327 #: content/product-invoice.php:149 content/product.php:135
     443#: content/product-invoice.php:150 content/product.php:135
    328444msgid "Name"
    329445msgstr ""
     
    333449msgstr ""
    334450
    335 #: content/settings.php:106
     451#: content/settings.php:64
    336452msgid "No"
     453msgstr ""
     454
     455#: wc-yabi.php:110
     456msgid "No active prefixes"
     457msgstr ""
     458
     459#: wc-yabi.php:114
     460msgid "No credit note found"
     461msgstr ""
     462
     463#: includes/ajax.php:404
     464msgid "No credit notes found"
     465msgstr ""
     466
     467#: includes/ajax.php:100
     468msgid "No data to save"
     469msgstr ""
     470
     471#: wc-yabi.php:112
     472msgid "No invoice found"
     473msgstr ""
     474
     475#: includes/ajax.php:367
     476msgid "No invoices found"
     477msgstr ""
     478
     479#: content/dian.php:28
     480msgid "Note"
    337481msgstr ""
    338482
     
    347491msgstr ""
    348492
     493#: content/cancel-invoice.php:34
     494msgid "Numbering range"
     495msgstr ""
     496
    349497#: content/product-invoice-old.php:67 content/product-invoice.php:97
    350498#: content/product.php:229
     
    352500msgstr ""
    353501
    354 #: content/information.php:78
    355 msgid ""
    356 "Paste the previously copied code in the text field &quot;Business Unit "
    357 "Uuid&quot;."
    358 msgstr ""
    359 
    360 #: content/settings.php:85
     502#: content/information.php:170
     503msgid ""
     504"Paste the previously copied code in the text field \"Business Unit Uuid\"."
     505msgstr ""
     506
     507#: content/settings.php:41
     508msgid "Payment Settings"
     509msgstr ""
     510
     511#: content/settings.php:46
    361512msgid "Payment type"
    362513msgstr ""
    363514
    364 #: content/settings.php:155
     515#: includes/ajax.php:40 includes/ajax.php:91
     516msgid "Permission denied"
     517msgstr ""
     518
     519#: content/settings.php:158
    365520msgid "Person"
    366521msgstr ""
    367522
    368 #: wc-yabi.php:220
     523#: includes/ajax.php:52
     524msgid "Please configure settings first"
     525msgstr ""
     526
     527#: wc-yabi.php:278
    369528msgid ""
    370529"Please enter the Yabi plugin configuration, as you need to enter new data "
     
    372531msgstr ""
    373532
     533#: wc-yabi.php:121
     534msgid "Please select a prefix"
     535msgstr ""
     536
    374537#: content/product.php:222
    375538msgid "Postcode"
    376539msgstr ""
    377540
    378 #: content/dian.php:245 content/dian.php:270
     541#: content/cancel-invoice.php:27 content/cancel-invoice.php:89
     542#: content/cancel-invoice.php:118 content/dian.php:74 content/dian.php:103
    379543msgid "Prefix"
    380544msgstr ""
    381545
    382 #: content/dian.php:244
     546#: content/cancel-invoice.php:88 content/dian.php:73
    383547msgid "Prefix ID"
    384548msgstr ""
     
    388552msgstr ""
    389553
    390 #: content/dian.php:243
     554#: content/cancel-invoice.php:87 content/dian.php:72
    391555msgid "Resolution Number"
    392556msgstr ""
    393557
    394 #: content/settings.php:186 content/product.php:252 content/dian.php:276
     558#: content/cancel-invoice.php:128 content/dian.php:113 content/product.php:252
    395559msgid "Save"
    396560msgstr ""
     
    400564msgstr ""
    401565
    402 #: content/product-invoice.php:224 content/product.php:71
     566#: content/settings.php:187
     567msgid "Save Settings"
     568msgstr ""
     569
     570#: content/product-invoice.php:286 content/product.php:71
    403571msgid "Saved data!. Unexpected error on invoice, try again later.!"
    404572msgstr ""
    405573
    406 #: includes/woo.php:49 content/product-invoice.php:53 content/product.php:156
     574#: content/product-invoice.php:53 content/product.php:156 includes/woo.php:49
    407575msgid "Second Last Name"
    408576msgstr ""
    409577
    410 #: includes/woo.php:38 content/product-invoice.php:35 content/product.php:142
     578#: content/product-invoice.php:35 content/product.php:142 includes/woo.php:38
    411579msgid "Second Name"
     580msgstr ""
     581
     582#: includes/ajax.php:35 includes/ajax.php:86
     583msgid "Security check failed"
     584msgstr ""
     585
     586#: content/information.php:116
     587msgid ""
     588"Select \"Credit Note Prefix\" with the credit note name. Example: \"CNS-\", "
     589"\"CN\""
     590msgstr ""
     591
     592#: content/information.php:80
     593msgid ""
     594"Select \"Invoice Name\" with the invoice name. Example: \"SETT-\", \"SE\""
     595msgstr ""
     596
     597#: content/cancel-invoice.php:120 content/dian.php:105
     598msgid "Select a prefix"
     599msgstr ""
     600
     601#: wc-yabi.php:109
     602msgid "Select prefix"
     603msgstr ""
     604
     605#: content/information.php:276 content/information.php:306
     606msgid "Select the prefix you want to associate and click the \"Save\" button."
     607msgstr ""
     608
     609#: content/cancel-invoice.php:114 content/dian.php:99
     610msgid ""
     611"Select the prefix you want to associate and click the \"Save\" button. First,"
     612" click \"Check\" to load available prefixes."
    412613msgstr ""
    413614
     
    416617msgstr ""
    417618
    418 #: content/product-invoice.php:165
     619#: content/product-invoice.php:166
    419620msgid "Send"
    420621msgstr ""
    421622
    422 #: content/admin.php:4
    423 msgid "Setting saved!"
    424 msgstr ""
    425 
    426 #: content/settings.php:73 content/settings.php:79 content/admin.php:19
     623#: content/admin.php:61
    427624msgid "Settings"
    428625msgstr ""
    429626
    430 #: content/information.php:54 content/information.php:77
     627#: content/information.php:76 content/information.php:112
     628#: content/information.php:166
    431629msgid "settings page"
    432630msgstr ""
    433631
    434 #: content/dian.php:242
     632#: wc-yabi.php:116 content/admin.php:25 includes/ajax.php:97
     633msgid "Settings saved successfully!"
     634msgstr ""
     635
     636#: content/cancel-invoice.php:86 content/dian.php:71
    435637msgid "Start Date"
    436638msgstr ""
    437639
    438 #: content/dian.php:80 content/dian.php:110
     640#: wc-yabi.php:120
    439641msgid "Success"
    440642msgstr ""
    441643
    442 #: includes/transaction.php:157
     644#: includes/transaction.php:310
    443645msgid "Success!. Invoice generate: "
    444646msgstr ""
    445647
    446 #: content/information.php:135
     648#: content/information.php:324
    447649msgid "Support this plugin"
    448650msgstr ""
     
    453655msgstr ""
    454656
    455 #: content/information.php:51
     657#: content/information.php:71 content/information.php:107
    456658msgid ""
    457659"The fields of the invoice are the name and the consecutive number of the "
     
    460662msgstr ""
    461663
    462 #: includes/transaction.php:1072
     664#: includes/transaction.php:1333
    463665msgid "The new DIAN resolutions are synchronized with Yabi.co"
    464666msgstr ""
    465667
    466 #: content/information.php:96
     668#: content/information.php:37
     669msgid ""
     670"The payment is credited and you can select the number of days of the credit, "
     671"generally it is 30 days"
     672msgstr ""
     673
     674#: content/information.php:33
     675msgid "The payment is made immediately."
     676msgstr ""
     677
     678#: content/information.php:197
    467679msgid "The process to generate an invoice."
    468680msgstr ""
    469681
    470 #: content/information.php:98
     682#: content/product-invoice.php:191 includes/ajax.php:114
     683msgid "The reason is required"
     684msgstr ""
     685
     686#: content/information.php:203
    471687msgid ""
    472688"The WooCommerce purchase must be in a completed state, in order to generate "
     
    474690msgstr ""
    475691
    476 #: content/information.php:31
     692#: content/information.php:44
    477693msgid ""
    478694"This option allows you to modify the default Woocommerce form to allow the "
     
    483699msgstr ""
    484700
    485 #: content/information.php:109
     701#: content/cancel-invoice.php:43
     702msgid "To"
     703msgstr ""
     704
     705#: content/information.php:242
    486706msgid "To download the invoice you have to enter the Yabi platform"
    487707msgstr ""
    488708
    489 #: content/information.php:72
     709#: content/information.php:146
    490710msgid ""
    491711"To get started, contact Yabi to send you the personalized Token of your "
     
    493713msgstr ""
    494714
    495 #: content/settings.php:169
     715#: content/settings.php:170
    496716msgid "Token"
    497717msgstr ""
    498718
    499 #: includes/woo.php:60 content/product-invoice-old.php:27
    500 #: content/product-invoice.php:62 content/product.php:163
     719#: content/product-invoice-old.php:27 content/product-invoice.php:62
     720#: content/product.php:163 includes/woo.php:60
    501721msgid "Type of document"
    502722msgstr ""
     
    506726msgstr ""
    507727
    508 #: content/settings.php:151
     728#: content/settings.php:155
    509729msgid "Type of Owner"
    510730msgstr ""
     
    518738msgstr ""
    519739
    520 #: includes/transaction.php:165 includes/transaction.php:877
    521 #: includes/transaction.php:1014 includes/transaction.php:1045
    522 #: includes/transaction.php:1076
     740#: content/product-invoice.php:322 content/product-invoice.php:348
     741#: includes/transaction.php:55 includes/transaction.php:318
     742#: includes/transaction.php:1027 includes/transaction.php:1121
     743#: includes/transaction.php:1258 includes/transaction.php:1306
     744#: includes/transaction.php:1337
    523745msgid "Unexpected error, try again later or contact support."
    524746msgstr ""
    525747
    526 #: content/product.php:93 content/dian.php:68 content/dian.php:98
    527 #: content/dian.php:154
     748#: wc-yabi.php:118
     749msgid "Unexpected error, try again later!"
     750msgstr ""
     751
     752#: content/product.php:93
    528753msgid "Unexpected error, try again later.!"
    529754msgstr ""
    530755
    531 #: content/dian.php:219
     756#: content/dian.php:36
    532757msgid "Update"
    533758msgstr ""
    534759
    535 #: content/dian.php:213
     760#: content/dian.php:20 content/information.php:254
    536761msgid "Update resolution in yabi.co"
    537762msgstr ""
    538763
    539 #: content/settings.php:177
     764#: content/settings.php:176
    540765msgid "URL client"
    541766msgstr ""
    542767
    543 #: content/information.php:104
     768#: content/settings.php:103 content/settings.php:135
     769msgid "View Last"
     770msgstr ""
     771
     772#: content/information.php:222
    544773msgid ""
    545774"When displaying the order information, the Yabi module will be displayed at "
     
    547776msgstr ""
    548777
    549 #: content/information.php:73
     778#: content/information.php:150
    550779msgid "with your username and password."
    551780msgstr ""
    552781
    553 #: wc-yabi.php:94
     782#: wc-yabi.php:148
    554783msgid "Yabi - Invoice Data"
    555784msgstr ""
    556785
    557 #: content/admin.php:15
     786#. Name of the plugin
     787msgid "Yabi einvoice for WooCommerce"
     788msgstr ""
     789
     790#: content/admin.php:37
    558791msgid "Yabi for WooCommerce"
    559792msgstr ""
    560793
    561 #: content/settings.php:107
     794#: content/settings.php:65
    562795msgid "Yes"
    563796msgstr ""
    564797
    565 #: content/information.php:105
     798#: content/information.php:124
     799msgid ""
     800"You can check the numbering by clicking the \"View Last Credit Note\" button"
     801msgstr ""
     802
     803#: content/information.php:88
     804msgid ""
     805"You can check the numbering by clicking the \"View Last Invoice\" button"
     806msgstr ""
     807
     808#: content/information.php:226
    566809msgid "You must select the type of person"
    567810msgstr ""
  • wc-yabi/trunk/readme.txt

    r3405216 r3422044  
    1 === Integrate Yabi for WooCommerce ===
     1=== Yabi einvoice for WooCommerce ===
    22Contributors: kakaroto84
    3 Tags: woocommerce, electronic invoice
    4 Donate link: https://www.paypal.me/datakun
     3Tags: woocommerce, electronic invoice, factura electronica, colombia, dian, yabi
     4Donate link: https://www.paypal.com/donate/?hosted_button_id=NY5NTM46C5PS4
    55Requires at least: 6.4
    66Tested up to: 6.9
     
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
    1111
    12 Create your electronic invoices of purchases made in woocommerce with Yabi
     12This plugin integrates WordPress with the Yabi electronic invoicing service, allowing the automatic creation and management of DIAN-compliant invoices in Colombia. Includes support for credit notes, invoice sending, DIAN resolution sync, and more.
    1313
    1414== Description ==
    1515
    16 This plugin helps you integrate WooCommerce with the Yabi platform with which you can generate your electronic invoices from completed orders.
     16Yabi Electronic Invoicing allows your WordPress site to generate DIAN-compliant invoices automatically. 
     17It integrates with external systems and WooCommerce (if present), and adds features such as credit notes, invoice cancellation, DIAN resolution synchronization, personalized invoice data, and extended debugging tools.
    1718
    18 Instructions for invoice
    19 The fields of the invoice are the name and the consecutive number of the invoice, before the DIAN the requirement for the numbering had to be passed. Please fill in the corresponding data. Example: SETT-26.
     19**Main Features:**
    2020
    21 1. Go to settings page.
    22 2. Fill the text field "Invoice Name" with the invoice name. Example: "SETT-", "SE"
    23 3. Fill the text field with the consecutive invoice. Example: if the consecutive number is 25, please fill the text field with 26.
    24 4. Click in button "Save".
    25 
    26 
    27 Instructions for client
    28 1. To get started, contact Yabi to send you the personalized Token of your account by email.
    29 2. Enter the Yabi system https://einvoices.yabi.co/public/login with your username and password.
    30 3. Click on "Business Units".
    31 4. Click on a business unit, this displays the information of the business unit.
    32 5. Copy the code of the business unit.
    33 6. Go to settings page.
    34 7. Paste the previously copied code in the text field "Business Unit Uuid".
    35 8. Copy and paste the personalized Token in the text field "Token".
    36 9. Copy the example URL client in the text field "URL client".
    37 10. Click in button "Save".
     21* Generate DIAN-compliant electronic invoices automatically.
     22* Create and manage credit notes directly from WordPress.
     23* Cancel invoices through the Yabi platform.
     24* Sync DIAN resolutions with Yabi.co.
     25* Configure customer type (natural person or company).
     26* Add invoice notes and shipping fees.
     27* Debugging options and detailed error logs.
     28* Compatible with WooCommerce checkout fields.
     29* Field validation to avoid formatting errors.
     30* Fully supports the latest versions of WordPress and PHP.
    3831
    3932== Installation ==
    4033
    41 Install Integrate Yabi for WooCommerce like you would install any other WordPress plugin.
    42 
    43 Dashboard Method:
    44 
    45 1. Login to your WordPress admin and go to Plugins -> Add New
    46 2. Type \"Integrate Yabi for WooCommerce\" in the search bar and select this plugin
    47 3. Click \"Install\", and then \"Activate Plugin\"
    48 
    49 
    50 Upload Method:
    51 
    52 1. Unzip the plugin and upload the \"wc-yabi\" folder to your \'wp-content/plugins\' directory
    53 2. Activate the plugin through the Plugins menu in WordPress
    54 
     341. Upload the plugin folder to `/wp-content/plugins/` 
     35   OR install it directly from the WordPress dashboard.
     362. Activate the plugin from **Plugins > Installed Plugins**.
     373. Go to **Settings > Yabi Invoicing** to configure:
     38   * API keys
     39   * Company information
     40   * DIAN resolution
     41   * Optional: credit note settings
     424. (Optional) Connect WooCommerce fields for automatic invoice generation.
    5543
    5644== Frequently Asked Questions ==
    5745
    58 = What does this plugin do? =
     46= What is Yabi? =
     47Yabi is an electronic invoicing platform certified by DIAN (Colombia). 
     48This plugin allows WordPress to generate DIAN-compliant invoices using your Yabi account.
    5949
    60 This plugin creates the invoices depending on the Woocommerce information and the information provided by the administrator
     50= Does it work without WooCommerce? =
     51Yes. The plugin can work independently or integrated with WooCommerce.
    6152
    62 = Can invoices be canceled? =
     53= Can I generate credit notes? =
     54Yes. Credit notes can be created, reviewed, and associated with the original invoice.
    6355
    64 No, You have to enter the yabi system to cancel it
     56= Does it create invoices automatically? =
     57If WooCommerce is installed, invoices can be generated automatically after checkout. 
     58You can also create them manually.
    6559
     60= Does it support DIAN resolution updates? =
     61Yes. The plugin synchronizes DIAN resolutions through the Yabi API.
    6662
     63= Is debugging available? =
     64Yes. You can enable extended logging to diagnose communication issues with Yabi.
    6765
    6866== Screenshots ==
    69 1. Where is Yabi deployed?
    70 2. Yabi information
    71 3. Yabi settings
    72 4. Order Details (Status: Completed)
     67
     681. Menu
     692. Main configuration screen
     703. DIAN resolution settings
     714. Invoice creation interface
     725. Credit note management panel
    7373
    7474== Changelog ==
     75
     76= 4.0.0 =
     77* New module to void invoices.
     78* Added tools to obtain data for integration with other systems.
     79* New credit note module: create, review, and link with the company.
     80
    7581= 3.2.2 =
    76 * Tested and confirmed compatibility with WordPress 6.9
    77 * Code review for WP 6.9 compatibility
     82* Tested and confirmed compatible with WordPress 6.9.
     83* Code review for WP 6.9 compatibility.
     84
    7885= 3.2.1 =
    79 * Tested in last WP Version
     86* Tested with latest version of WordPress.
     87
    8088= 3.2.0 =
    81 * Added synchronization of DIAN resolutions for Yabi.co
    82 * Associates a prefix with an organizational unit
     89* Added synchronization of DIAN resolutions for Yabi.co.
     90* Added option to associate a prefix with an organizational unit.
     91
    8392= 3.1.0 =
    84 * Added forward email to registered email or new one of invoice
     93* Added option to resend email to the registered address or the new one entered on the document.
     94
    8595= 3.0.5 =
    86 * Added validation to identifier, the field must contain a positive number of at least 5 digits.
     96* Added validation to the identifier field: it must contain a positive number with at least 5 digits.
     97
    8798= 3.0.4 =
    88 * Fixed old version display
     99* Fixed display of older versions.
     100
    89101= 3.0.3.1 =
    90 * Change required version of PHP
     102* Updated required PHP version.
     103
    91104= 3.0.3 =
    92 * Fixed php warning of undefined array key when first installed
     105* Fixed PHP notice about undefined array key when installing for the first time.
     106
    93107= 3.0.2 =
    94 * Fixed php warning of undefined array key
     108* Fixed undefined array key PHP notice.
     109
    95110= 3.0.1 =
    96 * Fixed display position of fields and names
     111* Fixed field positions and names in the interface.
     112
    97113= 3.0.0 =
    98 * New implementation of plugin, now you have access to credit
     114* Major reimplementation of the plugin; now includes credit note handling and structural improvements.
     115
    99116= 2.0.1 =
    100 * The field to write the URL of the connection to Yabi was enabled
     117* Enabled the field to write the connection URL for Yabi.
     118
    101119= 2.0.0 =
    102 * Update to 2.0 Version of Yabi
    103 * Tested in last WP Version
     120* Updated to Yabi version 2.0.
     121* Tested with the latest version of WordPress.
     122
    104123= 1.8.0 =
    105 * Better error report, database save mutation for debug
    106 * Tested in last WP Version
     124* Improved error reporting and database saving changes for debugging.
     125* Tested with the latest version of WordPress.
     126
    107127= 1.7.0 =
    108 * The shipping price is now taken into account in the invoice
     128* Shipping price is now considered in the invoice.
     129
    109130= 1.6.1 =
    110 * Tested in last WP Version
     131* Tested with the latest version of WordPress.
     132
    111133= 1.6.0 =
    112 * In properties you can configure the account as a natural person or as a company, with the respective change the invoices will be generated depending on the type chosen
     134* Added option to configure the account as a natural person or a company; invoices are generated accordingly.
     135
    113136= 1.5.1 =
    114 * Fixed decimal problem on discount coupon
     137* Fixed decimal handling issue in discount coupons.
     138
    115139= 1.5.0 =
    116 * Include observations to the invoice
     140* Added invoice notes.
     141
    117142= 1.4.0 =
    118 * Discount coupon validation
     143* Discount coupon validation.
     144
    119145= 1.3.1 =
    120 * The taxscheme field was deleted, the field is no longer required
     146* Removed `taxscheme` field; it is no longer required.
     147
    121148= 1.3.0 =
    122 * A selection box was created to be able to select the city code
    123 * Change default tax level code for natural person
     149* Added dropdown to select city code.
     150* Changed default tax level code for natural persons.
     151
    124152= 1.2.0 =
    125 * Update to 1.8 Version of Yabi
    126 * Change numeric variables to strings
     153* Updated to Yabi version 1.8.
     154* Changed numeric variables to strings to avoid formatting issues.
     155
    127156= 1.1.1 =
    128 * Timeout was increased as Yabi servers started experiencing service delays
     157* Increased timeout due to delays on Yabi servers.
     158
    129159= 1.1.0 =
    130 * Fixed problem with decimal numbers in purchases of more than one item
     160* Fixed decimal number issue when purchasing more than one item.
     161
    131162= 1.0.0 =
    132 * Initial release
     163* Initial release.
     164
     165== Upgrade Notice ==
     166
     167= 4.0.0 =
     168This is a major update. Includes credit note module, invoice voiding, and structural improvements. 
     169Please back up your site before upgrading.
     170
  • wc-yabi/trunk/wc-yabi.php

    r3405216 r3422044  
    66 *
    77 * @wordpress-plugin
    8  * Plugin Name:       Integrate Yabi for WooCommerce
     8 * Plugin Name:       Yabi einvoice for WooCommerce
    99 * Plugin URI:        https://mireunion.com/yabi
    1010 * Description:       Create your electronic invoices of purchases made in woocommerce with Yabi
    11  * Version:           3.2.2
     11 * Version:           4.0.0
    1212 * Author:            Mex Avila
    1313 * Author URI:        https://datakun.com/
     
    7070}
    7171add_action( 'admin_menu', 'yabi_admin' );
     72
     73/**
     74 * Encolar scripts y estilos para la página de administración
     75 */
     76function yabi_admin_enqueue_scripts( $hook )
     77{
     78    // Solo cargar en la página del plugin
     79    if ( 'woocommerce_page_yabi' !== $hook ) {
     80        return;
     81    }
     82   
     83    // Estilos de administración
     84    wp_enqueue_style(
     85        'yabi-admin-css',
     86        YABI_PLUGIN_URL . 'scripts/admin.css',
     87        array(),
     88        '4.0.0'
     89    );
     90   
     91    // Dashicons de WordPress
     92    wp_enqueue_style( 'dashicons' );
     93   
     94    // Scripts de administración
     95    wp_enqueue_script(
     96        'yabi-admin-js',
     97        YABI_PLUGIN_URL . 'scripts/admin.js',
     98        array( 'jquery' ),
     99        '4.0.0',
     100        true
     101    );
     102   
     103    // Localización de scripts
     104    wp_localize_script( 'yabi-admin-js', 'yabiAdmin', array(
     105        'ajaxUrl' => admin_url( 'admin-ajax.php' ),
     106        'nonce'   => wp_create_nonce( 'yabi_admin_nonce' ),
     107        'i18n'    => array(
     108            'loading'              => __( 'Loading...', 'yabi-wc' ),
     109            'selectPrefix'         => __( 'Select prefix', 'yabi-wc' ),
     110            'noActivePrefixes'     => __( 'No active prefixes', 'yabi-wc' ),
     111            'errorLoadingPrefixes' => __( 'Error loading prefixes', 'yabi-wc' ),
     112            'noInvoiceFound'       => __( 'No invoice found', 'yabi-wc' ),
     113            'errorLoadingInvoice'  => __( 'Error loading invoice', 'yabi-wc' ),
     114            'noCreditFound'        => __( 'No credit note found', 'yabi-wc' ),
     115            'errorLoadingCredit'   => __( 'Error loading credit note', 'yabi-wc' ),
     116            'settingsSaved'        => __( 'Settings saved successfully!', 'yabi-wc' ),
     117            'errorSaving'          => __( 'Error saving settings', 'yabi-wc' ),
     118            'unexpectedError'      => __( 'Unexpected error, try again later!', 'yabi-wc' ),
     119            'connectionError'      => __( 'Connection error', 'yabi-wc' ),
     120            'success'              => __( 'Success', 'yabi-wc' ),
     121            'selectPrefixRequired' => __( 'Please select a prefix', 'yabi-wc' ),
     122        )
     123    ));
     124}
     125add_action( 'admin_enqueue_scripts', 'yabi_admin_enqueue_scripts' );
    72126
    73127function yabi_page()
     
    179233    $credit_days = sanitize_key( $_POST[ 'credit_days' ] );
    180234    $modified_checkout = sanitize_text_field( $_POST[ 'modified_checkout' ] );
     235    $credit_prefix = sanitize_text_field( $_POST[ 'credit_prefix' ] );
     236    $credit_note_number = sanitize_text_field( $_POST[ 'credit_note_number' ] );
    181237   
    182238    $yabi_settings = array(
     
    190246        'credit_days'           => $credit_days,
    191247        'modified_checkout'     => $modified_checkout,
     248        'credit_prefix'         => $credit_prefix,
    192249    );
    193250   
    194251    update_option( 'yabi_settings', $yabi_settings, 'yes' );   
    195252    update_option( 'yabi_invoice_number', $invoice_number, 'no' );
     253    update_option( 'yabi_credit_note_number', $credit_note_number, 'no' );
    196254}
    197255
Note: See TracChangeset for help on using the changeset viewer.