Plugin Directory

Changeset 3423940


Ignore:
Timestamp:
12/19/2025 06:54:26 PM (4 weeks ago)
Author:
streamlinestar
Message:
  • Added discount information to invoices and credit notes
Location:
invoiceboo-invoices-for-woocommerce
Files:
100 added
3 edited

Legend:

Unmodified
Added
Removed
  • invoiceboo-invoices-for-woocommerce/trunk/admin/class-invoiceboo-admin.php

    r3262625 r3423940  
    1212 * @author     InvoiceBoo <hello@invoiceboo.com>
    1313 */
    14 class InvoiceBoo_Admin {
     14class InvoiceBoo_Admin{
    1515
    1616    /**
     
    11591159            $shipping_refunded = $order->get_total_shipping_refunded();
    11601160            $subtotal_refunded = $total_refunded - $tax_refunded - $shipping_refunded;
     1161            $discount = wc_price( $order->get_total_discount(), array( 'currency' => $currency ) );
    11611162
    11621163            if( $total_refunded && $type == 'refunded' ){
     
    11781179                    'label' => __( 'Subtotal:', 'invoiceboo-invoices-for-woocommerce' ),
    11791180                    'value' => $subtotal
     1181                ),
     1182                'discount' => array(
     1183                    'label' => __( 'Discount:', 'invoiceboo-invoices-for-woocommerce' ),
     1184                    'value' => '-' . $discount
    11801185                ),
    11811186                'shipping' => array(
  • invoiceboo-invoices-for-woocommerce/trunk/invoiceboo.php

    r3275444 r3423940  
    99 * Plugin Name:       InvoiceBoo - Invoices for WooCommerce
    1010 * Description:       A simple solution for offering an easy, quick, and user-friendly way of providing WooCommerce customers with Invoices
    11  * Version:           1.3
     11 * Version:           1.4
    1212 * Author:            Streamline.lv
    1313 * Author URI:        http://www.majas-lapu-izstrade.lv/en
     
    2626}
    2727
    28 if ( !defined( 'INVOICEBOO_VERSION' ) )     define( 'INVOICEBOO_VERSION', '1.3' );
     28if ( !defined( 'INVOICEBOO_VERSION' ) )     define( 'INVOICEBOO_VERSION', '1.4' );
    2929if ( !defined( 'INVOICEBOO_NAME' ) )        define( 'INVOICEBOO_NAME', 'InvoiceBoo' );
    3030if ( !defined( 'INVOICEBOO_SLUG' ) )        define( 'INVOICEBOO_SLUG', 'invoiceboo' );
  • invoiceboo-invoices-for-woocommerce/trunk/readme.txt

    r3275444 r3423940  
    66Tested up to: 6.8
    77Requires PHP: 7.0
    8 Stable tag: 1.3
     8Stable tag: 1.4
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    118118== Changelog ==
    119119
     120= 1.4 =
     121* Added discount information to invoices and credit notes
     122
    120123= 1.3 =
    121124* Added automatic Credit Note generation for refunded orders
Note: See TracChangeset for help on using the changeset viewer.