-
Notifications
You must be signed in to change notification settings - Fork 478
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
Add posibility to parse multiple line definitions #378
Closed
Commits on May 25, 2022
-
Add posibility to parse multiple line definitions
bosd refactored code to allow multiple lines to be parsed. Restructuring was needed. As we want to output the lines in the order of the invoice file. Independent of the order of the template file. Example yaml input lines: - start: Barcode end: Netto totaal line: (?P<line_note>(FOOD)) - start: Barcode end: Netto totaal line: (?P<description>(.+))\s+(?P<price>\d+\d+) it is also possible to contentate multi line tags. alternative example sammymaystone. lines: - start: Item\s+Quantity\s+Rate\s+Amount end: Subtotal first_line: 'Service (?P<item>\w)\s+(?P<qty>\S+)\s+.(?P<unitprice>\d+.\d{2})\s+.?(?P<linetotal>\d+.\d{2})' line: '(?P<item>.*)' skip_line: ['Pino \w'] # 'Description:', Notes:, last_line: '(?P<desc>Parts:.*)' types: qty: int unitprice: float linetotal: float input: Service A 12 0.00 20.00 Description: Repair Notes: Replaced capacitor Parts: 1 x cap_a Tax: 0.2% output: {'item': 'A\nDescription: Repair\nNotes: Replaced capacitor', 'qty': 12, 'unitprice': 10.0, 'linetotal': 120.0, 'desc': 'Parts: 1 x cap_a'}
Configuration menu - View commit details
-
Copy full SHA for aa2bff4 - Browse repository at this point
Copy the full SHA aa2bff4View commit details
Commits on May 29, 2022
-
Configuration menu - View commit details
-
Copy full SHA for daec273 - Browse repository at this point
Copy the full SHA daec273View commit details
Commits on May 30, 2022
-
Configuration menu - View commit details
-
Copy full SHA for fbf63cc - Browse repository at this point
Copy the full SHA fbf63ccView commit details
Commits on Jun 24, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3036565 - Browse repository at this point
Copy the full SHA 3036565View commit details
Commits on Jun 28, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 0faae0a - Browse repository at this point
Copy the full SHA 0faae0aView commit details
Commits on Sep 24, 2022
-
Add posibility to parse multiple line definitions
bosd refactored code to allow multiple lines to be parsed. Restructuring was needed. As we want to output the lines in the order of the invoice file. Independent of the order of the template file. Example yaml input lines: - start: Barcode end: Netto totaal line: (?P<line_note>(FOOD)) - start: Barcode end: Netto totaal line: (?P<description>(.+))\s+(?P<price>\d+\d+) it is also possible to contentate multi line tags. alternative example sammymaystone. lines: - start: Item\s+Quantity\s+Rate\s+Amount end: Subtotal first_line: 'Service (?P<item>\w)\s+(?P<qty>\S+)\s+.(?P<unitprice>\d+.\d{2})\s+.?(?P<linetotal>\d+.\d{2})' line: '(?P<item>.*)' skip_line: ['Pino \w'] # 'Description:', Notes:, last_line: '(?P<desc>Parts:.*)' types: qty: int unitprice: float linetotal: float input: Service A 12 0.00 20.00 Description: Repair Notes: Replaced capacitor Parts: 1 x cap_a Tax: 0.2% output: {'item': 'A\nDescription: Repair\nNotes: Replaced capacitor', 'qty': 12, 'unitprice': 10.0, 'linetotal': 120.0, 'desc': 'Parts: 1 x cap_a'}
Configuration menu - View commit details
-
Copy full SHA for 1455833 - Browse repository at this point
Copy the full SHA 1455833View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a0d473 - Browse repository at this point
Copy the full SHA 1a0d473View commit details -
Configuration menu - View commit details
-
Copy full SHA for bfb0410 - Browse repository at this point
Copy the full SHA bfb0410View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ba4cab - Browse repository at this point
Copy the full SHA 1ba4cabView commit details -
Configuration menu - View commit details
-
Copy full SHA for fde98ed - Browse repository at this point
Copy the full SHA fde98edView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d93234 - Browse repository at this point
Copy the full SHA 2d93234View commit details -
Configuration menu - View commit details
-
Copy full SHA for 41caefc - Browse repository at this point
Copy the full SHA 41caefcView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad6ee6d - Browse repository at this point
Copy the full SHA ad6ee6dView commit details
Commits on Sep 25, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 436ade8 - Browse repository at this point
Copy the full SHA 436ade8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f29118 - Browse repository at this point
Copy the full SHA 3f29118View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.