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 inclusive store tax #14

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

Product CSV inclusive store tax #14

jtrotsky opened this issue Mar 4, 2015 · 2 comments

Comments

@jtrotsky
Copy link

jtrotsky commented Mar 4, 2015

If you check the differences here:
http://support.vendhq.com/hc/en-us/articles/201379310-How-do-I-import-my-products-into-Vend-using-a-CSV-

A tax inclusive store needs a header called tax_name, which is filled out for each product with either Default tax or an explicitly set tax name.

An exclusive store has outlet_tax_X for each outlet, which is filled out in the same way.

Again a bool would come in handy for isTaxInclusive.

if isTaxInclusive {
    headerLine = append(headerLine, "tax_name")
} else {
    // Writes outlet tax headerlines for all outlets.
    for _, outlet := range outletKeys {
        outletName = fmt.Sprintf("%v", *outletMap[outlet].Name)
        outletName = strings.Replace(outletName, " ", "_", -1)
        headerLine = append(headerLine, "outlet_tax_"+outletName)
    }
}
@pulkitsinghal
Copy link
Contributor

@jtrotsky - remind me:

  1. Is tax exclusive/inclusive outlet-wide setting or per outlet?
  2. Meaning can the same vend account have one outlet-tax-inclusive and another outlet-tax-exclusive?
  3. Should they must both be either inclusive or they must both be exclusive?

@jtrotsky
Copy link
Author

jtrotsky commented Mar 6, 2015

@pulkitsinghal
1.
Tax inclusive or exclusive is store wide.
If you choose the former, then you can set a store wide tax.
If you choose the latter, then you explicitly set default taxes by each outlet.

  1. Nope.
  2. They must be all one type, as the toggle defines how product pricing shows in the Vend store. But you can have some outlets with no tax, or varying taxes.

The setting is in Vend Store -> Setup -> General

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