Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product CSV retail_price for tax inclusive #13

Open
jtrotsky opened this issue Mar 4, 2015 · 0 comments
Open

Product CSV retail_price for tax inclusive #13

jtrotsky opened this issue Mar 4, 2015 · 0 comments

Comments

@jtrotsky
Copy link

jtrotsky commented Mar 4, 2015

For a tax inclusive store, the retail_price as shown in the CSV needs to be the retail_price + retail_tax.

This is important because if you import a CSV file to an inclusive store and do not include the tax, then it will lower the prices of the products!

So in this case, my products cost $1, but my store has 15% GST, so the retail_price needs to include 15cents of tax.

screenshot 2015-03-04 10 23 01

I have a bool called isTaxInclusive.
You can figure out easily if a store is tax inclusive as every entry in /api/products has display_retail_price_tax_inclusive.

retailPrice := *product.Price
if isTaxInclusive {
    retailPrice = (retailPrice + *product.RetailTax)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants