Plugin Directory

Changeset 3096890


Ignore:
Timestamp:
06/03/2024 05:06:11 PM (21 months ago)
Author:
perseosoftware
Message:

Actualizar campo fecha_sync

Location:
perseo-software/trunk
Files:
3 edited

Legend:

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

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

    r3096844 r3096890  
    55Tags: auto publish, content marketing
    66Requires at least: 1.1
    7 Tested up to: 27.0
     7Tested up to: 28.0
    88Requires PHP: 7.4
    9 Stable tag: 27.0
     9Stable tag: 28.0
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    48481. perseo-1.jpg
    49492. == Changelog ==
     50= 28.0 =
     51* Actualizar campo fecha_sync
     52 
     53== Changelog ==
    5054= 27.0 =
    5155* Actualizacion iva y parametros.
  • perseo-software/trunk/includes/PluginPerseo_cron.php

    r3096844 r3096890  
    796796                                            array(
    797797                                                'post_author' => '1',
    798                                                 'post_date' =>  $producto['fechamodificacion'],
     798                                                'post_date' =>  $producto['fecha_sync'],
    799799                                                'post_date_gmt' => '0000-00-00 00:00:00',
    800800                                                'post_content' => $producto['fichatecnica'],
     
    808808                                                'to_ping' => '',
    809809                                                'pinged' => '',
    810                                                 'post_modified' => $producto['fechamodificacion'],
    811                                                 'post_modified_gmt' => $producto['fechamodificacion'],
     810                                                'post_modified' => $producto['fecha_sync'],
     811                                                'post_modified_gmt' => $producto['fecha_sync'],
    812812                                                'post_content_filtered' => '',
    813813                                                'post_parent' => '0',
     
    10731073                                                                    array(
    10741074                                                                        'post_author' => '1',
    1075                                                                         'post_date' =>  $producto['fechamodificacion'],
     1075                                                                        'post_date' =>  $producto['fecha_sync'],
    10761076                                                                        'post_date_gmt' => '0000-00-00 00:00:00',
    10771077                                                                        'post_content' => '',
     
    10851085                                                                        'to_ping' => '',
    10861086                                                                        'pinged' => '',
    1087                                                                         'post_modified' => $producto['fechamodificacion'],
    1088                                                                         'post_modified_gmt' => $producto['fechamodificacion'],
     1087                                                                        'post_modified' => $producto['fecha_sync'],
     1088                                                                        'post_modified_gmt' => $producto['fecha_sync'],
    10891089                                                                        'post_content_filtered' => '',
    10901090                                                                        'post_parent' => $idPost, //dato del registro padre
     
    12071207                                        ///Fecha de modificacion es igual a la fecha de ingreso
    12081208                                        $ConsultaProductofecha = $wpdb->get_var("SELECT posts.post_modified FROM {$table_prefix}posts posts where  posts.post_type='product' and posts.ID='" . $ConsultaProductoUpd . "'");
    1209                                         $perseo_fechaprod =  date_format(date_create($producto['fechamodificacion']), 'Y-m-d H:i:s');
     1209                                        $perseo_fechaprod =  date_format(date_create($producto['fecha_sync']), 'Y-m-d H:i:s');
    12101210                                        //echo $perseo_fechaprod ." > ".$ConsultaProductofecha;
    12111211                                        //echo "<br>";                   
     
    12171217                                                'post_title'        =>  $producto['descripcion'],
    12181218                                                'post_excerpt'      =>  $producto['descripcion'],
    1219                                                 'post_modified'     =>  $producto['fechamodificacion'],
    1220                                                 'post_modified_gmt' => $producto['fechamodificacion']
     1219                                                'post_modified'     =>  $producto['fecha_sync'],
     1220                                                'post_modified_gmt' => $producto['fecha_sync']
    12211221                                            );
    12221222
     
    14071407                                                                array(
    14081408                                                                    'post_author' => '1',
    1409                                                                     'post_date' =>  $producto['fechamodificacion'],
     1409                                                                    'post_date' =>  $producto['fecha_sync'],
    14101410                                                                    'post_date_gmt' => '0000-00-00 00:00:00',
    14111411                                                                    'post_content' => '',
     
    14191419                                                                    'to_ping' => '',
    14201420                                                                    'pinged' => '',
    1421                                                                     'post_modified' => $producto['fechamodificacion'],
     1421                                                                    'post_modified' => $producto['fecha_sync'],
    14221422                                                                    'post_modified_gmt' => '0000-00-00 00:00:00',
    14231423                                                                    'post_content_filtered' => '',
Note: See TracChangeset for help on using the changeset viewer.