Array ( [0] => early-payment-discount ) 2 % discount for 7 day payment
Array
(
    [23347] => WC_Order_Item_Product Object
        (
            [extra_data:protected] => Array
                (
                    [product_id] => 0
                    [variation_id] => 0
                    [quantity] => 1
                    [tax_class] => 
                    [subtotal] => 0
                    [subtotal_tax] => 0
                    [total] => 0
                    [total_tax] => 0
                    [taxes] => Array
                        (
                            [subtotal] => Array
                                (
                                )

                            [total] => Array
                                (
                                )

                        )

                )

            [data:protected] => Array
                (
                    [order_id] => 12528
                    [name] => Wall Mounted Heat Shield
                    [product_id] => 12469
                    [variation_id] => 0
                    [quantity] => 1
                    [tax_class] => 
                    [subtotal] => 266.666667
                    [subtotal_tax] => 53.33
                    [total] => 261.333333
                    [total_tax] => 52.27
                    [taxes] => Array
                        (
                            [total] => Array
                                (
                                    [1] => 52.27
                                )

                            [subtotal] => Array
                                (
                                    [1] => 53.33
                                )

                        )

                )

            [cache_group:protected] => order-items
            [meta_type:protected] => order_item
            [object_type:protected] => order_item
            [id:protected] => 23347
            [changes:protected] => Array
                (
                )

            [object_read:protected] => 1
            [default_data:protected] => Array
                (
                    [order_id] => 0
                    [name] => 
                    [product_id] => 0
                    [variation_id] => 0
                    [quantity] => 1
                    [tax_class] => 
                    [subtotal] => 0
                    [subtotal_tax] => 0
                    [total] => 0
                    [total_tax] => 0
                    [taxes] => Array
                        (
                            [subtotal] => Array
                                (
                                )

                            [total] => Array
                                (
                                )

                        )

                )

            [data_store:protected] => WC_Data_Store Object
                (
                    [instance:WC_Data_Store:private] => WC_Order_Item_Product_Data_Store Object
                        (
                            [internal_meta_keys:protected] => Array
                                (
                                    [0] => _order_id
                                    [1] => _name
                                    [2] => _product_id
                                    [3] => _variation_id
                                    [4] => _quantity
                                    [5] => _tax_class
                                    [6] => _subtotal
                                    [7] => _subtotal_tax
                                    [8] => _total
                                    [9] => _total_tax
                                    [10] => _taxes
                                    [11] => _product_id
                                    [12] => _variation_id
                                    [13] => _qty
                                    [14] => _tax_class
                                    [15] => _line_subtotal
                                    [16] => _line_subtotal_tax
                                    [17] => _line_total
                                    [18] => _line_tax
                                    [19] => _line_tax_data
                                )

                            [meta_type:protected] => order_item
                            [object_id_field_for_meta:protected] => order_item_id
                            [must_exist_meta_keys:protected] => Array
                                (
                                )

                        )

                    [stores:WC_Data_Store:private] => Array
                        (
                            [coupon] => WC_Coupon_Data_Store_CPT
                            [customer] => WC_Customer_Data_Store
                            [customer-download] => WC_Customer_Download_Data_Store
                            [customer-download-log] => WC_Customer_Download_Log_Data_Store
                            [customer-session] => WC_Customer_Data_Store_Session
                            [order] => WC_Order_Data_Store_CPT
                            [order-refund] => WC_Order_Refund_Data_Store_CPT
                            [order-item] => WC_Order_Item_Data_Store
                            [order-item-coupon] => WC_Order_Item_Coupon_Data_Store
                            [order-item-fee] => WC_Order_Item_Fee_Data_Store
                            [order-item-product] => WC_Order_Item_Product_Data_Store
                            [order-item-shipping] => WC_Order_Item_Shipping_Data_Store
                            [order-item-tax] => WC_Order_Item_Tax_Data_Store
                            [payment-token] => WC_Payment_Token_Data_Store
                            [product] => WC_Product_Data_Store_CPT
                            [product-grouped] => WC_Product_Grouped_Data_Store_CPT
                            [product-variable] => WC_Product_Variable_Data_Store_CPT
                            [product-variation] => WC_Product_Variation_Data_Store_CPT
                            [shipping-zone] => WC_Shipping_Zone_Data_Store
                            [webhook] => WC_Webhook_Data_Store
                            [product-composite] => WC_Product_Composite_Data_Store_CPT
                            [report-revenue-stats] => Automattic\WooCommerce\Admin\API\Reports\Orders\Stats\DataStore
                            [report-orders] => Automattic\WooCommerce\Admin\API\Reports\Orders\DataStore
                            [report-orders-stats] => Automattic\WooCommerce\Admin\API\Reports\Orders\Stats\DataStore
                            [report-products] => Automattic\WooCommerce\Admin\API\Reports\Products\DataStore
                            [report-variations] => Automattic\WooCommerce\Admin\API\Reports\Variations\DataStore
                            [report-products-stats] => Automattic\WooCommerce\Admin\API\Reports\Products\Stats\DataStore
                            [report-variations-stats] => Automattic\WooCommerce\Admin\API\Reports\Variations\Stats\DataStore
                            [report-categories] => Automattic\WooCommerce\Admin\API\Reports\Categories\DataStore
                            [report-taxes] => Automattic\WooCommerce\Admin\API\Reports\Taxes\DataStore
                            [report-taxes-stats] => Automattic\WooCommerce\Admin\API\Reports\Taxes\Stats\DataStore
                            [report-coupons] => Automattic\WooCommerce\Admin\API\Reports\Coupons\DataStore
                            [report-coupons-stats] => Automattic\WooCommerce\Admin\API\Reports\Coupons\Stats\DataStore
                            [report-downloads] => Automattic\WooCommerce\Admin\API\Reports\Downloads\DataStore
                            [report-downloads-stats] => Automattic\WooCommerce\Admin\API\Reports\Downloads\Stats\DataStore
                            [admin-note] => Automattic\WooCommerce\Admin\Notes\DataStore
                            [report-customers] => Automattic\WooCommerce\Admin\API\Reports\Customers\DataStore
                            [report-customers-stats] => Automattic\WooCommerce\Admin\API\Reports\Customers\Stats\DataStore
                            [report-stock-stats] => Automattic\WooCommerce\Admin\API\Reports\Stock\Stats\DataStore
                        )

                    [current_class_name:WC_Data_Store:private] => WC_Order_Item_Product_Data_Store
                    [object_type:WC_Data_Store:private] => order-item-product
                )

            [meta_data:protected] => Array
                (
                    [0] => WC_Meta_Data Object
                        (
                            [current_data:protected] => Array
                                (
                                    [id] => 271158
                                    [key] => _rp_wcdpd_product_pricing_data
                                    [value] => Array
                                        (
                                            [prices] => Array
                                                (
                                                    [pointers] => Array
                                                        (
                                                            [rp_wcdpd] => 1
                                                        )

                                                    [ranges] => Array
                                                        (
                                                            [to_1] => Array
                                                                (
                                                                    [from] => 1
                                                                    [to] => 1
                                                                    [price] => 320
                                                                    [base_price] => 320
                                                                    [highest_price] => 320
                                                                    [new_changes] => Array
                                                                        (
                                                                            [rp_wcdpd] => Array
                                                                                (
                                                                                    [0] => Array
                                                                                        (
                                                                                            [rule] => Array
                                                                                                (
                                                                                                    [uid] => rp_wcdpd_32647d30
                                                                                                    [exclusivity] => this
                                                                                                    [note] => No discounts auto applied
                                                                                                    [public_note] => Direct Sales
                                                                                                    [pricing_method] => discount__percentage
                                                                                                    [pricing_value] => 0
                                                                                                    [method] => simple
                                                                                                    [conditions] => Array
                                                                                                        (
                                                                                                            [0] => Array
                                                                                                                (
                                                                                                                    [uid] => rp_wcdpd_9956d2a6
                                                                                                                    [type] => customer__role
                                                                                                                    [method_option] => in_list
                                                                                                                    [roles] => Array
                                                                                                                        (
                                                                                                                            [0] => direct-sales
                                                                                                                            [1] => chilli-promo
                                                                                                                        )

                                                                                                                )

                                                                                                        )

                                                                                                )

                                                                                            [reference_amount] => 
                                                                                        )

                                                                                )

                                                                        )

                                                                    [all_changes] => Array
                                                                        (
                                                                            [rp_wcdpd] => Array
                                                                                (
                                                                                    [0] => Array
                                                                                        (
                                                                                            [rule] => Array
                                                                                                (
                                                                                                    [uid] => rp_wcdpd_32647d30
                                                                                                    [exclusivity] => this
                                                                                                    [note] => No discounts auto applied
                                                                                                    [public_note] => Direct Sales
                                                                                                    [pricing_method] => discount__percentage
                                                                                                    [pricing_value] => 0
                                                                                                    [method] => simple
                                                                                                    [conditions] => Array
                                                                                                        (
                                                                                                            [0] => Array
                                                                                                                (
                                                                                                                    [uid] => rp_wcdpd_9956d2a6
                                                                                                                    [type] => customer__role
                                                                                                                    [method_option] => in_list
                                                                                                                    [roles] => Array
                                                                                                                        (
                                                                                                                            [0] => direct-sales
                                                                                                                            [1] => chilli-promo
                                                                                                                        )

                                                                                                                )

                                                                                                        )

                                                                                                )

                                                                                            [reference_amount] => 
                                                                                        )

                                                                                )

                                                                        )

                                                                )

                                                        )

                                                )

                                            [price] => 320
                                            [base_price] => 320
                                            [original_price] => 320
                                            [new_changes] => Array
                                                (
                                                    [rp_wcdpd] => Array
                                                        (
                                                            [0] => Array
                                                                (
                                                                    [rule] => Array
                                                                        (
                                                                            [uid] => rp_wcdpd_32647d30
                                                                            [exclusivity] => this
                                                                            [note] => No discounts auto applied
                                                                            [public_note] => Direct Sales
                                                                            [pricing_method] => discount__percentage
                                                                            [pricing_value] => 0
                                                                            [method] => simple
                                                                            [conditions] => Array
                                                                                (
                                                                                    [0] => Array
                                                                                        (
                                                                                            [uid] => rp_wcdpd_9956d2a6
                                                                                            [type] => customer__role
                                                                                            [method_option] => in_list
                                                                                            [roles] => Array
                                                                                                (
                                                                                                    [0] => direct-sales
                                                                                                    [1] => chilli-promo
                                                                                                )

                                                                                        )

                                                                                )

                                                                        )

                                                                    [reference_amount] => 
                                                                )

                                                        )

                                                )

                                            [all_changes] => Array
                                                (
                                                    [rp_wcdpd] => Array
                                                        (
                                                            [0] => Array
                                                                (
                                                                    [rule] => Array
                                                                        (
                                                                            [uid] => rp_wcdpd_32647d30
                                                                            [exclusivity] => this
                                                                            [note] => No discounts auto applied
                                                                            [public_note] => Direct Sales
                                                                            [pricing_method] => discount__percentage
                                                                            [pricing_value] => 0
                                                                            [method] => simple
                                                                            [conditions] => Array
                                                                                (
                                                                                    [0] => Array
                                                                                        (
                                                                                            [uid] => rp_wcdpd_9956d2a6
                                                                                            [type] => customer__role
                                                                                            [method_option] => in_list
                                                                                            [roles] => Array
                                                                                                (
                                                                                                    [0] => direct-sales
                                                                                                    [1] => chilli-promo
                                                                                                )

                                                                                        )

                                                                                )

                                                                        )

                                                                    [reference_amount] => 
                                                                )

                                                        )

                                                )

                                        )

                                )

                            [data:protected] => Array
                                (
                                    [id] => 271158
                                    [key] => _rp_wcdpd_product_pricing_data
                                    [value] => Array
                                        (
                                            [prices] => Array
                                                (
                                                    [pointers] => Array
                                                        (
                                                            [rp_wcdpd] => 1
                                                        )

                                                    [ranges] => Array
                                                        (
                                                            [to_1] => Array
                                                                (
                                                                    [from] => 1
                                                                    [to] => 1
                                                                    [price] => 320
                                                                    [base_price] => 320
                                                                    [highest_price] => 320
                                                                    [new_changes] => Array
                                                                        (
                                                                            [rp_wcdpd] => Array
                                                                                (
                                                                                    [0] => Array
                                                                                        (
                                                                                            [rule] => Array
                                                                                                (
                                                                                                    [uid] => rp_wcdpd_32647d30
                                                                                                    [exclusivity] => this
                                                                                                    [note] => No discounts auto applied
                                                                                                    [public_note] => Direct Sales
                                                                                                    [pricing_method] => discount__percentage
                                                                                                    [pricing_value] => 0
                                                                                                    [method] => simple
                                                                                                    [conditions] => Array
                                                                                                        (
                                                                                                            [0] => Array
                                                                                                                (
                                                                                                                    [uid] => rp_wcdpd_9956d2a6
                                                                                                                    [type] => customer__role
                                                                                                                    [method_option] => in_list
                                                                                                                    [roles] => Array
                                                                                                                        (
                                                                                                                            [0] => direct-sales
                                                                                                                            [1] => chilli-promo
                                                                                                                        )

                                                                                                                )

                                                                                                        )

                                                                                                )

                                                                                            [reference_amount] => 
                                                                                        )

                                                                                )

                                                                        )

                                                                    [all_changes] => Array
                                                                        (
                                                                            [rp_wcdpd] => Array
                                                                                (
                                                                                    [0] => Array
                                                                                        (
                                                                                            [rule] => Array
                                                                                                (
                                                                                                    [uid] => rp_wcdpd_32647d30
                                                                                                    [exclusivity] => this
                                                                                                    [note] => No discounts auto applied
                                                                                                    [public_note] => Direct Sales
                                                                                                    [pricing_method] => discount__percentage
                                                                                                    [pricing_value] => 0
                                                                                                    [method] => simple
                                                                                                    [conditions] => Array
                                                                                                        (
                                                                                                            [0] => Array
                                                                                                                (
                                                                                                                    [uid] => rp_wcdpd_9956d2a6
                                                                                                                    [type] => customer__role
                                                                                                                    [method_option] => in_list
                                                                                                                    [roles] => Array
                                                                                                                        (
                                                                                                                            [0] => direct-sales
                                                                                                                            [1] => chilli-promo
                                                                                                                        )

                                                                                                                )

                                                                                                        )

                                                                                                )

                                                                                            [reference_amount] => 
                                                                                        )

                                                                                )

                                                                        )

                                                                )

                                                        )

                                                )

                                            [price] => 320
                                            [base_price] => 320
                                            [original_price] => 320
                                            [new_changes] => Array
                                                (
                                                    [rp_wcdpd] => Array
                                                        (
                                                            [0] => Array
                                                                (
                                                                    [rule] => Array
                                                                        (
                                                                            [uid] => rp_wcdpd_32647d30
                                                                            [exclusivity] => this
                                                                            [note] => No discounts auto applied
                                                                            [public_note] => Direct Sales
                                                                            [pricing_method] => discount__percentage
                                                                            [pricing_value] => 0
                                                                            [method] => simple
                                                                            [conditions] => Array
                                                                                (
                                                                                    [0] => Array
                                                                                        (
                                                                                            [uid] => rp_wcdpd_9956d2a6
                                                                                            [type] => customer__role
                                                                                            [method_option] => in_list
                                                                                            [roles] => Array
                                                                                                (
                                                                                                    [0] => direct-sales
                                                                                                    [1] => chilli-promo
                                                                                                )

                                                                                        )

                                                                                )

                                                                        )

                                                                    [reference_amount] => 
                                                                )

                                                        )

                                                )

                                            [all_changes] => Array
                                                (
                                                    [rp_wcdpd] => Array
                                                        (
                                                            [0] => Array
                                                                (
                                                                    [rule] => Array
                                                                        (
                                                                            [uid] => rp_wcdpd_32647d30
                                                                            [exclusivity] => this
                                                                            [note] => No discounts auto applied
                                                                            [public_note] => Direct Sales
                                                                            [pricing_method] => discount__percentage
                                                                            [pricing_value] => 0
                                                                            [method] => simple
                                                                            [conditions] => Array
                                                                                (
                                                                                    [0] => Array
                                                                                        (
                                                                                            [uid] => rp_wcdpd_9956d2a6
                                                                                            [type] => customer__role
                                                                                            [method_option] => in_list
                                                                                            [roles] => Array
                                                                                                (
                                                                                                    [0] => direct-sales
                                                                                                    [1] => chilli-promo
                                                                                                )

                                                                                        )

                                                                                )

                                                                        )

                                                                    [reference_amount] => 
                                                                )

                                                        )

                                                )

                                        )

                                )

                        )

                    [1] => WC_Meta_Data Object
                        (
                            [current_data:protected] => Array
                                (
                                    [id] => 271159
                                    [key] => Size (£40.00)
                                    [value] => 1200x900mm
                                )

                            [data:protected] => Array
                                (
                                    [id] => 271159
                                    [key] => Size (£40.00)
                                    [value] => 1200x900mm
                                )

                        )

                    [2] => WC_Meta_Data Object
                        (
                            [current_data:protected] => Array
                                (
                                    [id] => 271160
                                    [key] => Colour/Finish (£100.00)
                                    [value] => Powder Coat
                                )

                            [data:protected] => Array
                                (
                                    [id] => 271160
                                    [key] => Colour/Finish (£100.00)
                                    [value] => Powder Coat
                                )

                        )

                )

        )

)
product 12469

Correct266.666667
Mine
No tax me120
final with dis 261.333333
line subtotal 266.666667
line teax 52.27
Array
(
    [1] => Array
        (
            [rate] => 20
            [label] => VAT
            [shipping] => yes
            [compound] => no
        )

)