Skip to content

Instantly share code, notes, and snippets.

@asgeo1
Forked from chanakasan/pricing-table-conversion.md
Last active August 9, 2016 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asgeo1/f60a5d5e3335ca925712747c54778adf to your computer and use it in GitHub Desktop.
Save asgeo1/f60a5d5e3335ca925712747c54778adf to your computer and use it in GitHub Desktop.

Stored format

Qty over Unit price
1** 30
5 20
8 10

Display format

Quantity Unit price (each)
1-4 $30
5-7 $20
8+ $10

** Currently the app is '0-based', and is using 0 for the initial row. Need to change this to be the greater of 1 or varient.minimumQuantity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment