Changeset 3459050
- Timestamp:
- 02/11/2026 02:48:38 PM (8 days ago)
- Location:
- wp-ticketbai/trunk
- Files:
-
- 2 edited
-
FTBAI_procesos.php (modified) (2 diffs)
-
wp-ticketbai.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-ticketbai/trunk/FTBAI_procesos.php
r3453827 r3459050 1150 1150 //$requ=trim(get_post_meta($postid, '_billing_recargo_de_equivalencia', true)); 1151 1151 $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 1153 1157 // Initializing variables tipo iva 1154 1158 $tax_rate_items = array(); // The tax labels by $rate Ids … … 1174 1178 if ($rate_tax==5.2){$rate_tax=21;$requ=1;} 1175 1179 } 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 } 1184 1202 } 1185 1203 } -
wp-ticketbai/trunk/wp-ticketbai.php
r3453827 r3459050 4 4 * Plugin URI: https://wp-tbai.com 5 5 * 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.4 16 * Version: 3.42 7 7 * Author: FacturaOne 8 8 * Author URI: https://www.facturaone.com
Note: See TracChangeset
for help on using the changeset viewer.