Plugin Directory

Changeset 2394849


Ignore:
Timestamp:
10/06/2020 09:21:21 PM (5 years ago)
Author:
perseosoftware
Message:

Actualizacion y limpieza de variables

Location:
perseo-software
Files:
13 added
3 edited

Legend:

Unmodified
Added
Removed
  • perseo-software/trunk/PluginPerseo.php

    r2393793 r2394849  
    44Plugin URI: http://perseo.ec/
    55Description: Este Plugins integra el Sistema Contable Perseo Web y PC con la tienda Woocommerce
    6 Version: 11.0
     6Version: 12.0
    77Author: Pegasus Soft S.A. - Ecuador
    88Author URI: https://perseo.ec
  • perseo-software/trunk/README.md

    r2393793 r2394849  
    4949
    5050== Changelog ==
     51= 12.0 =
     52* Actualizacion .
    5153
    5254= 11.0 =
  • perseo-software/trunk/includes/PluginPerseo_cron.php

    r2394830 r2394849  
    595595                                                if ($producto['porcentajeiva']=='12'){                                                   
    596596                                                    $wpdb->insert($table_prefix.'postmeta', array('post_id'=> $idPost, 'meta_key'  => '_tax_status', 'meta_value'=> 'taxable') );
     597                                                    $wpdb->insert($table_prefix.'postmeta', array('post_id'=> $idPost, 'meta_key'  => '_tax_class', 'meta_value'=> '') );
    597598                                                } else {                                                   
    598599                                                    $wpdb->insert($table_prefix.'postmeta', array('post_id'=> $idPost, 'meta_key'  => '_tax_status', 'meta_value'=> 'none') );
    599                                                 };
    600                                                
    601                                                 $wpdb->insert($table_prefix.'postmeta', array('post_id'=> $idPost, 'meta_key'  => '_tax_class', 'meta_value'=> '') );
     600                                                    $wpdb->insert($table_prefix.'postmeta', array('post_id'=> $idPost, 'meta_key'  => '_tax_class', 'meta_value'=> 'tasa-cero') );
     601                                                };                                                                                               
    602602                                                $wpdb->insert($table_prefix.'postmeta', array('post_id'=> $idPost, 'meta_key'  => '_manage_stock', 'meta_value'=> 'yes') );
    603603                                                $wpdb->insert($table_prefix.'postmeta', array('post_id'=> $idPost, 'meta_key'  => '_backorders', 'meta_value'=> 'no') );
     
    942942                                //Eliminamos impuestos
    943943                                $wpdb->query("Delete from {$table_prefix}postmeta where meta_key  = '_tax_status'  and  post_id=".$ConsultaProductoUpd);
     944                                $wpdb->query("Delete from {$table_prefix}postmeta where meta_key  = '_tax_class'  and  post_id=".$ConsultaProductoUpd);
    944945                                /////////////////////////////////////////
    945946                                ///saber si tiene IVA 12 % o 0%
    946947                                if ($producto['porcentajeiva']=='12'){                                                   
    947948                                    $wpdb->insert($table_prefix.'postmeta', array('post_id'=> $ConsultaProductoUpd, 'meta_key'  => '_tax_status', 'meta_value'=> 'taxable') );
     949                                    $wpdb->insert($table_prefix.'postmeta', array('post_id'=> $ConsultaProductoUpd, 'meta_key'  => '_tax_class', 'meta_value'=> '') );
    948950                                } else {                                                   
    949951                                    $wpdb->insert($table_prefix.'postmeta', array('post_id'=> $ConsultaProductoUpd, 'meta_key'  => '_tax_status', 'meta_value'=> 'none') );
     952                                    $wpdb->insert($table_prefix.'postmeta', array('post_id'=> $ConsultaProductoUpd, 'meta_key'  => '_tax_class', 'meta_value'=> 'tasa-cero') );
    950953                                };
    951954
Note: See TracChangeset for help on using the changeset viewer.