Plugin Directory

Changeset 2774390


Ignore:
Timestamp:
08/23/2022 07:18:18 PM (4 years ago)
Author:
kamilml
Message:

fix formato a4

Location:
apisunat
Files:
31 added
3 edited

Legend:

Unmodified
Added
Removed
  • apisunat/trunk/README.txt

    r2771307 r2774390  
    55Requires at least: 5.8
    66Tested up to: 6.0.1
    7 Stable tag: 1.2.0
     7Stable tag: 1.2.1
    88Requires PHP: 7.4
    99License: GPLv3 or later
     
    7676== Changelog ==
    7777
     78= 1.2.1 =
     79Se agregó la compatibilidad con la elección del formato para el archivo PDF por defecto (A4, A5, ticket58mm o ticket80mm)
     80
    7881= 1.2.0 =
    7982Se agregaron opciones para anular o corregir comprobantes. Se mejoró la compatibilidad con órdenes de compra creadas sin datos como (RUC, DNI, etc) para poder facturar incluso ventas anteriores.
  • apisunat/trunk/admin/class-apisunat-admin.php

    r2771307 r2774390  
    284284                if ( isset( $data['xml'] ) ) {
    285285                    printf(
    286                         "<a href=https://back.apisunat.com/documents/%s/getPDF/A4/%s.pdf target='_blank' class='button'>PDF</a>",
     286                        "<a href=https://back.apisunat.com/documents/%s/getPDF/default/%s.pdf target='_blank' class='button'>PDF</a>",
    287287                        esc_attr( get_post_meta( $post_id, 'apisunat_document_id', true ) ),
    288288                        esc_attr( get_post_meta( $post_id, 'apisunat_document_filename', true ) )
     
    427427
    428428                    $msg = sprintf(
    429                         "Se emitió la Factura <a href=https://back.apisunat.com/documents/%s/getPDF/A4/%s.pdf target='_blank'>%s</a>",
     429                        "Se emitió la Factura <a href=https://back.apisunat.com/documents/%s/getPDF/default/%s.pdf target='_blank'>%s</a>",
    430430                        $apisunat_response['documentId'],
    431431                        $apisunat_response['fileName'],
     
    503503
    504504                    $msg = sprintf(
    505                         "Se anuló la %s <a href=https://back.apisunat.com/documents/%s/getPDF/A4/%s.pdf target='_blank'>%s</a> con la Nota de Crédito <a href=https://back.apisunat.com/documents/%s/getPDF/A4/%s.pdf target='_blank'>%s</a>. Motivo: '%s' ",
     505                        "Se anuló la %s <a href=https://back.apisunat.com/documents/%s/getPDF/default/%s.pdf target='_blank'>%s</a> con la Nota de Crédito <a href=https://back.apisunat.com/documents/%s/getPDF/default/%s.pdf target='_blank'>%s</a>. Motivo: '%s' ",
    506506                        esc_attr( $tipo ),
    507507                        esc_attr( $document_id ),
     
    584584            if ( $order->meta_exists( 'apisunat_document_id' ) ) {
    585585                echo sprintf(
    586                     "<p>Numero %s: <a href=https://back.apisunat.com/documents/%s/getPDF/A4/%s.pdf target='_blank'><strong>%s</strong></a>",
     586                    "<p>Numero %s: <a href=https://back.apisunat.com/documents/%s/getPDF/default/%s.pdf target='_blank'><strong>%s</strong></a>",
    587587                    esc_attr( $tipo ),
    588588                    esc_attr( $order->get_meta( 'apisunat_document_id' ) ),
  • apisunat/trunk/apisunat.php

    r2771307 r2774390  
    1616 * Plugin URI:        https://github.com/kamilml/apisunat-for-woocommerce
    1717 * Description:       Emite tus comprobantes electrónicos para SUNAT-PERU directamente desde tu tienda en WooCommerce.
    18  * Version:           1.2.0
     18 * Version:           1.2.1
    1919 * Author:            APISUNAT
    2020 * Author URI:        https://apisunat.com/
     
    4949 * Currently plugin version.
    5050 */
    51 const APISUNAT_VERSION = '1.2.0';
     51const APISUNAT_VERSION = '1.2.1';
    5252
    5353/**
Note: See TracChangeset for help on using the changeset viewer.