Plugin Directory

Changeset 3459050


Ignore:
Timestamp:
02/11/2026 02:48:38 PM (8 days ago)
Author:
facturaone
Message:

v3.42

Location:
wp-ticketbai/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-ticketbai/trunk/FTBAI_procesos.php

    r3453827 r3459050  
    11501150    //$requ=trim(get_post_meta($postid, '_billing_recargo_de_equivalencia', true));
    11511151    $FTBAI_clientesRE=get_option('FTBAI_clientesRE');
    1152    
     1152
     1153    $exentaiva='';
     1154    $FTBAI_causaexentaiva=get_option('FTBAI_causaexentaiva');
     1155    if($FTBAI_causaexentaiva==1){$exentaiva='E1';}
     1156   
    11531157    // Initializing variables tipo iva
    11541158    $tax_rate_items = array(); // The tax labels by $rate Ids
     
    11741178                    if ($rate_tax==5.2){$rate_tax=21;$requ=1;}
    11751179                }
    1176                 //añade itemlinea
    1177                 array_push($detalles,array( "nombre"                =>  $item['name'],
    1178                                             "precio_unidad"         =>  $item['total']/$item['quantity'], //$item['subtotal']/$item['quantity'],
    1179                                             "cantidad"              =>  ($item['quantity']*-1),
    1180                                             "descuento_porcentual"  =>  0,
    1181                                             "iva"                   =>  $rate_tax,
    1182                                             "re"                    =>  $requ)
    1183                 );     
     1180                if($exentaiva==''){
     1181                    //añade itemlinea
     1182                    array_push($detalles,array( "nombre"                =>  $item['name'],
     1183                                                "precio_unidad"         =>  $item['total']/$item['quantity'], //$item['subtotal']/$item['quantity'],
     1184                                                "cantidad"              =>  ($item['quantity']*-1),
     1185                                                "descuento_porcentual"  =>  0,
     1186                                                "iva"                   =>  $rate_tax,
     1187                                                "re"                    =>  $requ)
     1188                    );     
     1189                }else{
     1190                    //añade itemlinea
     1191                    array_push($detalles,array( "nombre"                =>  $item['name'],
     1192                                                "precio_unidad"         =>  $item['total']/$item['quantity'], //$item['subtotal']/$item['quantity'],
     1193                                                "cantidad"              =>  ($item['quantity']*-1),
     1194                                                "descuento_porcentual"  =>  0,
     1195                                                "exenta"                =>  1,
     1196                                                "causa_exenta"          =>  $exentaiva,
     1197                                                "tipo_operacion_extranjero" =>  "Entrega",
     1198                                                "iva"                   =>  $rate_tax,
     1199                                                "re"                    =>  $requ)
     1200                    );     
     1201                }
    11841202            }
    11851203        }       
  • wp-ticketbai/trunk/wp-ticketbai.php

    r3453827 r3459050  
    44* Plugin URI: https://wp-tbai.com
    55* Description: Emite Facturas desde tu WooCommerce a TicketBAI con el código QR desde WordPress, gestiona fácilmente Anulaciones, Rectificatvas, Facturas PDF Tbai. Cumple con la normativa de facturación Batuz TicketBAI.
    6 * Version: 3.41
     6* Version: 3.42
    77* Author: FacturaOne
    88* Author URI: https://www.facturaone.com
Note: See TracChangeset for help on using the changeset viewer.