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

Update templates #472

Merged
merged 1 commit into from
Mar 30, 2023
Merged

Update templates #472

merged 1 commit into from
Mar 30, 2023

Conversation

bosd
Copy link
Collaborator

@bosd bosd commented Feb 13, 2023

Just an update on some templates

fields:
amount:
parser: regex
regex: Total to pay EUR\s+(\d?.?\d{1,4}[,]\d{2})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 .? was probably meant to be \.?
2. [,] can be simplified to ,

type: float
amount_tax:
parser: regex
regex: \d{2}[%]\s+\w\s+\d{1,4}[,]\d{2}\s+(\d{1,4}[,]\d{2})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can probably just use % instead of [%] (same applies to [,] and other regexes below)

src/invoice2data/extract/templates/nl/nl.praxis.yml Outdated Show resolved Hide resolved
@rmilecki
Copy link
Collaborator

I know it's still a draft, but I took a quick look at it anyway, I hope you don't mind

@bosd
Copy link
Collaborator Author

bosd commented Feb 18, 2023

uick look at it anyway, I

No you're welcome. Last period, I start using this lib a lot. Learned so much more about regexes.
Also about the behavior of this lib.
Marked it as draft because propably more changes are coming.

@bosd bosd force-pushed the template-update branch 2 times, most recently from 141df51 to 67b2940 Compare March 18, 2023 23:45
@bosd bosd marked this pull request as ready for review March 18, 2023 23:46
@bosd bosd merged commit f1139cb into invoice-x:master Mar 30, 2023
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

Successfully merging this pull request may close these issues.

2 participants