Skip to content

Instantly share code, notes, and snippets.

@remy
Last active September 14, 2015 14:15
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remy/0182411213d283622112 to your computer and use it in GitHub Desktop.
Save remy/0182411213d283622112 to your computer and use it in GitHub Desktop.
Testing logic for when VAT is applied

VAT Rules

Capture:

  • COUNTRY
  • VAT (optional and validated)
IF country IS "GB"
  ADD_VAT
IF country IS IN (eu) AND vat IS EMPTY
  ADD_VAT
IF country IS IN (eu) AND vat IS NOT EMPTY
  DO_NOT_ADD_VAT
ELSE
  DO_NOT_ADD_VAT
@remy
Copy link
Author

remy commented Jun 19, 2014

Countries that the VAT in EU applies (note that this isn't strictly all the EU, but it is where VAT applies):

  • Austria
  • Belgium
  • Bulgaria
  • Croatia
  • Cyprus
  • Czech Republic
  • Denmark
  • Estonia
  • Finland
  • France
  • Germany
  • Greece
  • Hungary
  • Ireland
  • Italy
  • Latvia
  • Lithuania
  • Luxembourg
  • Malta
  • Poland
  • Portugal
  • Romania
  • Slovak
  • Slovenia
  • Spain
  • Sweden
  • The Netherlands
  • United Kingdom

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