Coupon code addon tax calculation problem

Sorry, now I found the REAL culprit:
It is the Coupon Code addon!!!
If the Coupon Code addon is NOT active - everything is fine (tax is computed, but tax is included in the price of article)
If the Coupon Code addon is ACTIVE - the tax is computed AND added to the price (instead of being included)
(You can see it already in the cart - no printing of invoice is needed to see the problem.)
This happens even, when no Coupon is used.
If a Coupon is used, then amount to pay is reduced according to the coupon, the tax is computed from the reduced amount, and then the tax is ADDED to that (which is wrong also).
WP 4.8.1 and MP 3.2.5

Here is the solution.
Problem: The Coupon Code Addon does not take into account the setting tax->tax_inclusive
Where: in includes>addons>mp-coupons>class-mp-coupons-addon.php
1. in function cart_total change:

//		$total = ( $total + (float) $cart->tax_total() + (float) $cart->shipping_total() );	// ema original
// ema changed because setting "Tax inclusive" not correctly handled
		if ( !mp_get_setting( 'tax->tax_inclusive' ) ) {		// ema changed
			$total = ( $total + (float) $cart->tax_total()  );	// ema changed
		}														// ema changed
		$total = ( $total + (float) $cart->shipping_total());	// ema changed

2. in function tax_total change:

//		$cart_price = $total_pre * ( 1 + $tax_rate );		// ema original
// ema changed because setting "Tax inclusive" not correctly handled
		if ( mp_get_setting( 'tax->tax_inclusive' ) ) {		// ema changed
			$cart_price = $total_pre;						// ema changed
			$total_pre = $total_pre / (1 + $tax_rate);		// ema changed
		} else {											// ema changed
			$cart_price = $total_pre * ( 1 + $tax_rate );	// ema changed
		}													// ema changed

These changes make the cart correct, in case the setting tax->tax_inclusive is set.
DISCLAIMER: I cannot guarantee that it works for all other combinations of tax settings. It seems to work for me for now (country Germany).