Plugin Directory

Changeset 3005596


Ignore:
Timestamp:
12/05/2023 11:02:35 AM (2 years ago)
Author:
eligmaltd
Message:

Items price tax fix

Location:
ellypos-pay/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ellypos-pay/trunk/ellypos-pay.php

    r2900193 r3005596  
    33 * Plugin Name: Elly POS Pay
    44 * Description: Pay fast and secure with cards, crypto and other digital payments.
    5  * Version: 1.1.0
     5 * Version: 1.1.1
    66 * Author: Eligma Ltd.
    77 * Author URI: https://gocrypto.com
     
    202202                    // get all items
    203203                    foreach ($order->get_items() as $itemID => $item) {
     204                        $priceIncludingTax = wc_get_price_including_tax(wc_get_product($item->get_product_id()));
    204205                        $itemData = [
    205206                            'name' => $item->get_name(),
    206207                            'quantity' => $item->get_quantity(),
    207                             'price' => round($item->get_total() * 100),
    208                             'tax' => round($item->get_subtotal_tax() * 100)
     208                            'price' => round($priceIncludingTax * 100),
     209                            'tax' => round($item->get_total_tax() * 100)
    209210                        ];
    210 
    211211                        $chargeData['items'][] = $itemData;
    212212                    }
  • ellypos-pay/trunk/readme.txt

    r2900193 r3005596  
    22Plugin Name: Elly POS Pay
    33Description: Pay fast and secure with cards, crypto and other digital payments.
    4 Stable tag: 1.1.0
     4Stable tag: 1.1.1
    55Author: Eligma Ltd.
    66Author URI: https://gocrypto.com
     
    5151== Changelog ==
    5252
     53= 1.1.1 =
     54Items price tax fix
     55
    5356= 1.1.0 =
    5457Adding skin support
Note: See TracChangeset for help on using the changeset viewer.