Plugin Directory

Changeset 2587125


Ignore:
Timestamp:
08/23/2021 01:11:55 PM (5 years ago)
Author:
kakaroto84
Message:

1.3

  • A selection box was created to be able to select the city code
  • Change default tax level code for natural person
Location:
wc-yabi/trunk
Files:
1 added
3 edited

Legend:

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

    r2586168 r2587125  
    208208        <th><?php echo __('City Code','yabi-wc'); ?>:</th>
    209209        <td>
    210             <input class="regular-text" type="text" id="citycode" name="citycode" value="<?php echo esc_attr( $person['citycode'] ); ?>"  />
     210            <select name="citycode" id="citycode">
     211               
     212                <?php foreach( $diancodes as $id => $name ): ?>
     213               
     214                    <option <?php if( $person['citycode'] == $id ): ?>selected="selected"<?php endif; ?> value="<?php echo esc_attr( $id ); ?>"><?php echo esc_html( $name ); ?></option>
     215               
     216                <?php endforeach; ?>
     217               
     218            </select>
    211219        </td>
    212220    </tr>
  • wc-yabi/trunk/readme.txt

    r2586168 r2587125  
    8585* Update to 1.8 Version of Yabi
    8686* Change numeric variables to strings
     87= 1.3 =
     88* A selection box was created to be able to select the city code
     89* Change default tax level code for natural person
  • wc-yabi/trunk/wc-yabi.php

    r2586168 r2587125  
    99 * Plugin URI:        https://mireunion.com/yabi
    1010 * Description:       Create your electronic invoices of purchases made in woocommerce with Yabi
    11  * Version:           1.2
     11 * Version:           1.3
    1212 * Author:            Mex Avila
    1313 * Author URI:        https://datakun.com/
     
    4646
    4747require_once( YABI_PLUGIN_PATH . 'includes/ajax.php' );
     48require_once( YABI_PLUGIN_PATH . 'includes/dian.php' );
    4849require_once( YABI_PLUGIN_PATH . 'includes/transaction.php' );
    4950
     
    102103        'NATURAL'   => 'Persona Natural'
    103104    );
     105    $diancodes = yabi_generate_Codes();
    104106    $person = get_post_meta( $post->ID, 'yabi_person', true );
    105107   
     
    125127            $accountid = 'NATURAL';
    126128            $commercialname = '';
    127             $taxlevelcode = 'O-48';
     129            $taxlevelcode = 'O-49';
    128130            $taxscheme = 0;
    129131           
Note: See TracChangeset for help on using the changeset viewer.