- Add optional sections
annexesandothersto quotes and invoices
- Removed warning for CLI arg
--verbose - Better log on parse date failure for CSV export
- Manage discounts on quotes, specified with the property
discount, whhich can be a numerical (currency) amount or a percentage (passed as a string like"5%") or a complete discount spec dict (eg.{ "mode": "percent", "value": 15, "title": "Discount" }, mode can bepercentoramount)
- Change the default pattern for invoice to
invoice*.yml
- Loads documents with glob pattern (default
invoices*.ymlandquote*.yml) for CSV stats
- Allows Hy 1.0.0
- Remove a debug print
- Do not use Hy version
1.0aX
- Fix bug with CSV stat export when no VAT on an invoice
- Fix bug with
price_formulaand empty string prices
- Migrate to Hy
>= 0.26
- Add decimal number format arguments (
--decimals-csv-localeand--decimals-csv-format) to statistics CSV ouput command
- Add a parser option
options.price_formula.enabledin definition to be set toTruefor allowing to set price as formula. The formula starts with=and follow with valid Python code. For eg.prestations.0.price: =1000*0.7will yield a price of 700 on the first prestation.
- Add a
rounding-decimalskwarg toparse_invoicesandparse_quote, which default to2
- Fix
setup.pyto includetqwgp_parser.filesmodule files
- Missing
__init__.pyfor moduletqwgp_parser.files(wrong fix)
- Fix missing dependencies
- Introduce statistics feature, allowing to parse a directory of invoices and generating revenue statistics (experimental)
- To use it, run
tqwgp stats <project(s)_dir>,tqwgp show <project(s)_dir>ortqwgp csv --extract=invoices <project(s)_dir>
- To use it, run
- Migrate to Hy 1.0a4 and support Python 3.10
- Fix counts optional prestations inside sections for
optional_prestations
- Fix inverted
priceandoptional_priceindocument.sections)
- Each section (
document.sections) return now both apriceandoptional_priceproperties, which decompose VAT:total_vat_excl,total_vat_inclandvat
- Requires Hy
>=1.0a1
- Works with Hy
0.20.0