Support » Plugin: Sliced Invoices - WordPress Invoice Plugin » Undefined index on line 276 – Sliced Invoices v3.6.1

  • Resolved Francesco Taurino

    (@francescotaurino)


    Notice: Undefined index: discount in sliced-invoices/includes/template-tags/sliced-tags-display-modules.php on line 276

    You should change ‘discount’ with ‘discounts’

    
    - if ( $totals['payments'] || $totals['discount'] ) {
    + if ( $totals['payments'] || $totals['discounts'] ) {
    

    As defined in sliced-invoices/includes/class-sliced-shared.php

    
    $totals = array(
    'sub_total'         => 0,
    'sub_total_taxable' => 0,
    'tax'               => 0,
    'discounts'         => 0,
    'payments'          => 0,
    'total'             => 0,
    'total_due'         => 0,
    );
    

    Grazie,.
    Francesco

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author SlicedInvoices

    (@slicedinvoices)

    Hi Francesco,

    I have fixed this in the latest update of Sliced Invoices (3.6.2). Thanks for letting us know.

    Cheers,
    David

Viewing 1 replies (of 1 total)
  • The topic ‘Undefined index on line 276 – Sliced Invoices v3.6.1’ is closed to new replies.