Plugin Directory

Changeset 3147478


Ignore:
Timestamp:
09/06/2024 09:32:00 AM (18 months ago)
Author:
primersoftware
Message:

Update

Location:
primer-mydata
Files:
2156 added
7 edited

Legend:

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

    r3122050 r3147478  
    11=== Primer MyData for Woocommerce ===
    2 Contributors: primersoftware
    3 Tags: MyData, receipts, Greece, invoices, Primer MyData
     2Contributors: Primer Software
     3Tags: MyData, Primer, receipts, Greece, invoices, Primer MyData
    44Requires at least: 5.3
    5 Tested up to: 6.6
     5Tested up to: 6.6.1
    66Requires PHP: 7.4
    7 Stable tag: 4.1.7
     7Stable tag: 4.1.8
    88License: GPLv2
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • primer-mydata/trunk/admin/class-primer-admin.php

    r3122050 r3147478  
    751751        $invoice_type_primer = get_post_meta( $order->get_id(), '_billing_invoice_type', true );
    752752        if($invoice_type_primer == 'primer_invoice'){
    753             $get_invoice_type = 'invoice';
     753            $get_invoice_type = 'primer_invoice';
    754754        }else{
    755755            $get_invoice_type = get_post_meta( $order->get_id(), '_billing_invoice_type', true );
    756756        }
    757757        ?>
    758         <div class="address">
    759             <p><strong>Order Type: </strong><?php echo esc_html($get_invoice_type); ?></p>
    760         </div>
     758
    761759        <div class="edit_address">
    762760            <?php
    763761            if(function_exists('woocommerce_wp_radio')) {
    764762                woocommerce_wp_radio(array(
    765                     'id' => 'get_invoice_type',
    766                     'label' => 'Check invoice type',
    767                     'value' => $get_invoice_type ? $get_invoice_type : 'receipt',
     763                    'id' => '_billing_invoice_type',
     764                    'label' => 'Invoice Type',
    768765                    'options' => array(
    769766                        'receipt' => 'Receipt',
    770767                        'primer_invoice' => 'Invoice'
    771768                    ),
    772                     'style' => 'width:16px', // required for checkboxes and radio buttons
    773                     'wrapper_class' => 'form-field-wide' // always add this class
     769                    'style' => 'width:16px',
     770                    'wrapper_class' => 'form-field-wide'
    774771                ));
    775772            }
     
    779776
    780777    public function primer_save_general_details( $order_id ) {
    781         update_post_meta($order_id, '_billing_invoice_type', wc_clean( $_POST['get_invoice_type'] ));
     778        update_post_meta($order_id, '_billing_invoice_type', wc_clean( $_POST['_billing_invoice_type'] ));
    782779    }
    783780
  • primer-mydata/trunk/admin/includes/primer-admin-table.php

    r3122050 r3147478  
    747747                break ;
    748748            }
    749             if ( get_post_meta($id_of_order, 'receipt_status', true) == 'issued' ) {
     749            if ( get_post_meta($id_of_order, 'receipt_status', true) == 'issued' && get_post_meta($id_of_order, 'transmission_failure_check', true) == null ) {
    750750                $response_data .= '<div class="primer_popup popup_error"><div><h3>'.__('This order has already been issued. Please refresh the page.', 'primer') .'</h3><br><br><br><br><br></div>';
    751751                $response_data .= '<button class="popup_ok button button-primary">OK</button></div>';
  • primer-mydata/trunk/includes/class-primer-cron.php

    r3122050 r3147478  
    180180            $receipt_log_value = '';
    181181            $receipt_log_value_array = array();
    182             $order_item_tax = array();
    183182            $activation_automation = $automation_options['activation_automation'];
    184183            $limit_automation_orders = $automation_options['automation_limit'];
     
    763762        $log_ids = array();
    764763        $emails = array();
    765         $send_to_admin = '';
    766764        $mydata_options = get_option('primer_mydata');
    767765        $callingFunction = "convert_order_to_invoice_failed";
     
    813811            $receipt_log_value = '';
    814812            $receipt_log_value_array = array();
    815             $order_item_tax = array();
    816             $check_gr_tax = true;
    817813            $order_args = array(
    818814                'return' => 'ids',
     
    13471343            $receipt_log_value = '';
    13481344            $receipt_log_value_array = array();
    1349             $order_item_tax = array();
    1350             $check_gr_tax = true;
    13511345            $orders = array();
    13521346            if (!empty($receipt_ids)) {
     
    19801974                array(
    19811975                    'key' => 'send_to_api_type',
    1982                     'value' => 'production'
     1976                    'value' => 'test'
    19831977                ),
    19841978                array(
  • primer-mydata/trunk/includes/template-tags/primer-tags-display-modules.php

    r3122050 r3147478  
    135135                }
    136136            } else {
    137                 $issuer_container .= '<p><span class="issuer_address skin">ΑΦΜ: 800434990</span></p>';
     137                $issuer_container .= '<p><span class="issuer_address skin">ΑΦΜ: </span></p>';
    138138            }
    139139
     
    223223                }
    224224            } else {
    225                 $issuer_container .= '<p><span class="issuer_address skin">ΑΦΜ: 800434990</span></p>';
     225                $issuer_container .= '<p><span class="issuer_address skin">ΑΦΜ: </span></p>';
    226226            }
    227227            if ( $branchID != null && $branchID != "0") {
  • primer-mydata/trunk/primer.php

    r3122050 r3147478  
    1818 * Plugin URI:        primer.gr/plugin/
    1919 * Description:       Issue receipts and invoices with woocommerce.
    20  * Version:           4.1.7
     20 * Version:           4.1.8
    2121 * Author:            Primer Software
    2222 * Author URI:        primer.gr
     
    3434 * Rename this for your plugin and update it as you release new versions.
    3535 */
    36 define( 'PRIMER_VERSION', '4.1.7');
     36define( 'PRIMER_VERSION', '4.1.8');
    3737define( 'PRIMER_NAME', 'Primer MyData' );
    3838
  • primer-mydata/trunk/public/js/primer-public.js

    r3122050 r3147478  
    231231
    232232                            if (response.doy) {
    233                                 document.getElementById("billing_doy").value = response.doy;
     233                                $('#billing_doy').val(response.doy);
    234234                                $('#billing_doy').trigger('change');
    235                                 console.log($('#billing_doy').val());
    236235                            }
    237236
Note: See TracChangeset for help on using the changeset viewer.