Plugin Directory

Changeset 2906869


Ignore:
Timestamp:
05/02/2023 07:50:26 AM (3 years ago)
Author:
primersoftware
Message:

Update

Location:
primer-mydata
Files:
2156 added
3 edited

Legend:

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

    r2904986 r2906869  
    33Tags: MyData, Primer, receipts, Greece, invoices, Primer MyData
    44Requires at least: 5.3
    5 Tested up to: 6.1.1
     5Tested up to: 6.2
    66Requires PHP: 7.4
    7 Stable tag: 3.1.0
     7Stable tag: 3.2.0
    88License: GPLv2
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    159159= 3.1.0 - 2023-04-27 =
    160160* Minor Fixes
     161= 3.1.0 - 2023-04-27 =
     162* Fixed a bug on checkout where doy field stays hidden on invoice type
  • primer-mydata/trunk/primer.php

    r2904986 r2906869  
    1818 * Plugin URI:        primer.gr/plugin/
    1919 * Description:      Issue receipts and invoices with woocommerce.
    20  * Version:           3.1.0
     20 * Version:           3.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', '3.1.0' );
     38define( 'PRIMER_VERSION', '3.2.0' );
    3939define( 'PRIMER_NAME', 'Primer MyData' );
    4040
  • primer-mydata/trunk/public/js/primer-public.js

    r2884889 r2906869  
    4444            var required = '<abbr class="required" title="required">*</abbr>';
    4545            var invoice_type = radio_val === 'primer_invoice';
    46             var optional_element = '<span class="optional">(optional)</span>';
    4746            if (invoice_type) {
    4847                my_callback()
     
    6968                    $('#billing_doy_field'+' label').append(required);
    7069                }
    71                 console.log($('#billing_country').val());
    72                 console.log(radio_val);
    7370            } else {
    7471                my_callback()
    7572                $('.invoice_type-hide').slideUp('fast');
    7673                $('#billing_company_field').find('abbr').remove();
    77                 console.log(radio_val);
    7874            }
    7975        }
     
    8379        })
    8480        $('#billing_country').on('change', function () {
    85             console.log($('#billing_country').val());
    86             console.log($invoice_type.val());
     81            const check_if_invoice = document.getElementById('billing_invoice_type_primer_invoice');
     82            var required = '<abbr class="required" title="required">*</abbr>';
    8783            if($('#billing_country').val() !== 'GR'){
    8884                $('#billing_doy_field').hide();
     
    9187                $('#billing_doy_field').removeClass('woocommerce-invalid woocommerce-invalid-required-field');
    9288            }else{
    93                 if($invoice_type.val() === 'primer_invoice') {
     89                if($invoice_type.val() === 'primer_invoice' || check_if_invoice.checked) {
    9490                    $('#billing_doy_field').show();
    9591                    $('#billing_doy_field'+' label').append(required);
Note: See TracChangeset for help on using the changeset viewer.