weDevsOfficial / wepos

WooCommerce Point of Sale ( POS ) WordPress Plugin
https://wordpress.org/plugins/wepos/
112 stars 74 forks source link

Tax calculation issue with discounts #136

Closed CatalystDirections96 closed 11 months ago

CatalystDirections96 commented 1 year ago

What we can see happening, if we add a discount to an order in WePOS it shows a subtotal with included Tax. But then the discount is added after that to give a final total.

However, that same order when viewed in WooCommerce Orders, show the discount BEFORE the subtotal and tax is calculated and the final total is then different to the final total shown in WePOS.

See screenshots for example.

In the example, the order in WePOS has a subtotal of $127 and shows that $11.54 in tax is included in that sub total. It then shows a discount of $7 and a final "Pay Now" total of $120.

If we view the same order in WooCommerce Orders we see the discount is shown first, and then a subtotal of $115.46 with $10.84 tax included. And the final order total is $119.30.

WePOS: WePOS Screenshot

WooCommerce: WooCommerce Screeshot

Mohaiminulislam1989 commented 1 year ago

@devAsadNur please have a look at this

CatalystDirections96 commented 1 year ago

@Mohaiminulislam1989 @devAsadNur

How is this progressing?

devAsadNur commented 1 year ago

@Mohaiminulislam1989 @devAsadNur

How is this progressing?

Bhai, I'll check and give feedback ASAP.

Mohaiminulislam1989 commented 1 year ago

@devAsadNur any update on this?

devAsadNur commented 1 year ago

@Mohaiminulislam1989 Bhai, a PR has been submitted after solving the issue. We'll release a new version shortly.