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

Do some basic validation of uploaded CSV. #5

Open
hleumas opened this issue Feb 16, 2018 · 0 comments
Open

Do some basic validation of uploaded CSV. #5

hleumas opened this issue Feb 16, 2018 · 0 comments

Comments

@hleumas
Copy link
Contributor

hleumas commented Feb 16, 2018

First of all, validate whether it is a valid CSV file.

Secondly, there are some rules:

– all fields are mandatory with the exception of user, slackID, and VATID
VATID is mandatory if VATPayer is true.
– invoice number must be numeric
– all dates have to be in yyyy-mm-dd format
preTaxCost and VATLevel are in .toFixed(2) format
– If for one item at least one of serviceName, preTaxCost, VATLevel is filled, all other for the same item have to be filled too.

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

1 participant