ShoppinPal / vend-tools

A command-line-interface (CLI) which allows you to easily perform custom tasks for your vendhq.com instance
http://shoppinpal.github.io/vend-tools/
GNU General Public License v2.0
3 stars 3 forks source link

Product CSV inclusive store tax #14

Open jtrotsky opened 9 years ago

jtrotsky commented 9 years ago

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 commented 9 years ago

@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 commented 9 years ago

@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