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

Support "priority" and add 2 templates for InsERT-software-generated invoices #416

Merged
merged 3 commits into from
Feb 25, 2023

Commits on Feb 25, 2023

  1. Add "priority" support for templates

    In case of multiple templates matching given invoice - choose the one
    with the highest "priority" value. To provide proper support for
    prioritizing AND existing templates (backward compatibility) the default
    value 5 is assumed in case "priority" property is missing.
    
    This feature can be used for writing more generic as well as more
    specific templates. So far all templates were assumed to be
    company-specific. With this change we can have:
    1. Invoice-generating software specific templates
    2. In-company varying templates
    
    This feature may be very useful for:
    1. Countries with just few very popular accounting software applications
    2. Big companies with multiple departments adding some invoice details
    
    Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
    Rafał Miłecki authored and bosd committed Feb 25, 2023
    Configuration menu
    Copy the full SHA
    e29ab3e View commit details
    Browse the repository at this point in the history
  2. Regex: support more grouping functions

    In case of multiple matches we only had an option to return a sum of
    numeric values. Add more functions.
    
    Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
    Rafał Miłecki authored and bosd committed Feb 25, 2023
    Configuration menu
    Copy the full SHA
    c9155b6 View commit details
    Browse the repository at this point in the history
  3. templates: pl: add templates for InsERT's software issued invoices

    InsERT is one of the most popular Polish accounting software company.
    They have two very common softwares:
    1. Subiekt nexo
    2. Subiekt GT
    
    Add 2 templates to parse invoices generated by above softwares. Those
    templates are software-specific so they have priority set to 3.
    
    This allows parsing a lot invoices issued in Poland.
    
    Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
    Rafał Miłecki authored and bosd committed Feb 25, 2023
    Configuration menu
    Copy the full SHA
    7ffe2ac View commit details
    Browse the repository at this point in the history