Plugin Directory

Changeset 2851146


Ignore:
Timestamp:
01/19/2023 03:12:37 PM (3 years ago)
Author:
primersoftware
Message:

Update

Location:
primer-mydata
Files:
2156 added
3 edited

Legend:

Unmodified
Added
Removed
  • primer-mydata/trunk/README.txt

    r2850334 r2851146  
    55Tested up to: 6.1.1
    66Requires PHP: 7.4
    7 Stable tag: 2.1.0
     7Stable tag: 2.2.0
    88License: GPLv2
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    127127= 2.0.6 - 2022-11-23 =
    128128* Minor Bug Fixes
    129 = 2.0.8 - 2022-11-23 =
     129= 2.0.8 - 2022-12-16 =
    130130* Minor Bug Fixes for php 8.0 version
    131131* Now you can search with order Id or document Number in Receipts Page
    132132* Now you can issue receipts/invcoices even if the products are deleted completely
    133133* From now on new receipts/invoices can also be filter by document type (Receipt, Invoice, Credit Receipt, Credit Invoice)
    134 = 2.0.9 - 2022-11-23 =
     134= 2.0.9 - 2022-12-23 =
    135135* Minor Bug Fixes for php 8.0 version
    136136* Now you can search with order Id or document Number in Receipts Page
    137137* Now you can issue receipts/invcoices even if the products are deleted completely
    138138* From now on new receipts/invoices can also be filter by document type (Receipt, Invoice, Credit Receipt, Credit Invoice)
     139= 2.1.0 - 2023-01-17 =
     140* Minor Bug Fixes
     141= 2.2.0 - 2023-01-19 =
     142* Minor Bug Fixes
  • primer-mydata/trunk/includes/class-primer-cron.php

    r2850334 r2851146  
    278278                            $id_of_order = $order->get_id();
    279279                            $issued_order = get_post_meta($id_of_order, 'receipt_status', true);
    280                             if ($issued_order != 'issued') {
     280                            $transmission_failure = get_post_meta($id_of_order, 'transmission_failure_check',true);
     281                            if (!empty($last_exist_request)) {
     282                                $order_exist_status = get_post_meta($last_exist_request[0], 'receipt_status', true);
     283                                $send_exist_receipt_json = get_post_meta($last_exist_request[0], 'order_id_from_receipt', true);
     284                                $headers = array('Content-Type: text/html; charset=UTF-8');
     285                                wp_mail(get_bloginfo('admin_email'),'Primer MyData Plugin: Αδυναμία Έκδοσης Παραστατικών','Υπηρξε καποιο προβλημα κατα την αυτοματη αποστολη παραστατικων. Παρακαλώ μεταβείτε στις Ρυθμίσεις MyData και πατήστε το κουμπί "Επαναποστολή τελευταίου HTML" για να διορθωθεί το πρόβλημα και να ξεκινήσει επιτυχώς η αυτόματη αποστολή των παραστατικών σας.',$headers);
     286                                if ($order_exist_status == 'not_issued' && $send_exist_receipt_json !== '') {
     287                                    $response_data .= '<div class="notice notice-error"><p>' . __("'Go to 'MyData settings' and click on button 'Resend last HTML'", 'primer') . '</p></div>';
     288                                    $receipt_log_value_array[] = __("'Go to 'MyData settings' and click on button 'Resend last HTML'", 'primer');
     289                                    break;
     290                                }
     291                            }
     292                            if ($issued_order != 'issued' && $transmission_failure != 1 && $transmission_failure != 4) {
    281293                                $order_ids[] = strval($id_of_order);
    282                                 $check_timeout = get_post_meta($id_of_order, 'failed_48',true);
    283                                 $check_transmission_failure_48 = get_post_meta($id_of_order, 'transmission_failure_check',true);
     294                              //  $check_timeout = get_post_meta($id_of_order, 'failed_48',true);
    284295                              /*  if(($mydata_options['timeout_check_48'] == 1 && $check_timeout != 'yes') || ($mydata_options['timeout_check_48'] == 1 && $check_transmission_failure_48 != 1)){
    285296                                    $receipt_log_value .= __('Could not connect to aade for 48 hours. Please check your settings or contact primer software.', 'primer');
     
    11391150                                    }
    11401151
    1141 
    1142                                 if (!empty($last_exist_request)) {
    1143                                     $order_exist_status = get_post_meta($last_exist_request[0], 'receipt_status', true);
    1144                                     $send_exist_receipt_json = get_post_meta($last_exist_request[0], 'order_id_from_receipt', true);
    1145                                     $headers = array('Content-Type: text/html; charset=UTF-8');
    1146                                     wp_mail(get_bloginfo('admin_email'),'Primer MyData Plugin: Αδυναμία Έκδοσης Παραστατικών','Υπηρξε καποιο προβλημα κατα την αυτοματη αποστολη παραστατικων. Παρακαλώ μεταβείτε στις Ρυθμίσεις MyData και πατήστε το κουμπί "Επαναποστολή τελευταίου HTML" για να διορθωθεί το πρόβλημα και να ξεκινήσει επιτυχώς η αυτόματη αποστολή των παραστατικών σας.',$headers);
    1147                                     if ($order_exist_status == 'not_issued' && $send_exist_receipt_json !== '') {
    1148                                         $response_data .= '<div class="notice notice-error"><p>' . __("'Go to 'MyData settings' and click on button 'Resend last HTML'", 'primer') . '</p></div>';
    1149                                         $receipt_log_value_array[] = __("'Go to 'MyData settings' and click on button 'Resend last HTML'", 'primer');
    1150                                         break;
    1151                                     }
    1152                                 }
    11531152                                update_post_meta($receipt_log_id, 'receipt_log_automation_error', $receipt_log_value);
    11541153                                update_post_meta($receipt_log_id, 'json_send_to_api', json_encode($invoice_data));
     
    16001599                                                            update_option('primer_mydata', $mydata_options);
    16011600                                                            update_post_meta($id_of_order, 'receipt_status', 'not_issued');
     1601                                                            update_post_meta($id_of_order, 'transmission_failure_check', 4);
    16021602                                                            $receipt_log_value_array[] = $response_with_html;
    16031603                                                            $response_data .= '<div class="notice notice-error is-dismissible"> <p><strong>' . $response_with_html . '</strong></p></div>';
  • primer-mydata/trunk/primer.php

    r2850334 r2851146  
    1818 * Plugin URI:        primer.gr/plugin/
    1919 * Description:      Issue receipts and invoices with woocommerce.
    20  * Version:           2.1.0
     20 * Version:           2.2.0
    2121 * Author:            Primer Software
    2222 * Author URI:        primer.gr
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'PRIMER_VERSION', '2.1.0' );
     38define( 'PRIMER_VERSION', '2.2.0' );
    3939define( 'PRIMER_NAME', 'Primer MyData' );
    4040
Note: See TracChangeset for help on using the changeset viewer.