xavier / european_vat Goto Github PK
View Code? Open in Web Editor NEWEuropean Union VAT utilities for Elixir
License: Apache License 2.0
European Union VAT utilities for Elixir
License: Apache License 2.0
Hi there,
it seems like there is a mix-up with the way must_charge_vat? works (or at least the way itβs described in your Readme):
You write:
# Buyer and seller in different EU countries, VAT number present
EuropeanVat.must_charge_vat?("NL", "BE", "BE0829071668")
# true
# Buyer and seller in different EU countries, no VAT number
EuropeanVat.must_charge_vat?("NL", "BE", nil)
# false
Actually the opposite is true. If buyer and seller are in different EU countries and they are both businesses (i.e. have a VAT number), no VAT has to be charged. EuropeanVat.must_charge_vat?("NL", "BE", "BE0829071668")
should thus return false
.
If, on the other hand, the buyer is an end-customer (i.e. with no VAT number) from another country, their local VAT rate has to be applied; EuropeanVat.must_charge_vat?("NL", "BE", nil)
should return true
.
To quote from the EU website:
If you sell goods to another business and these goods are sent to another EU country, you do not charge VAT - if the customer has a valid VAT number.
Thanks for sharing this code!
I wondered: are you still actively using this code in production for VAT calculations? Is the code mostly up-to-date?
Many thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.