invoice2data icon indicating copy to clipboard operation
invoice2data copied to clipboard

support more formatting with --filename-format option

Open rmilecki opened this issue 3 years ago • 1 comments

Before this change --filename-format accepted string with up to three
variables only ("date", "invoice_number" and "desc"). It also couldn't
deal with "date" being a list of dates.

This change allows using any parsed field. It supports date in any
field. It also deals with list of dates by picking the first one.

Example usage:
--filename-format "{date} {issuer} {invoice_number} {currency}.pdf"

rmilecki avatar Sep 24 '22 17:09 rmilecki

I'd like to propose this change as an alternative solution to both: https://github.com/invoice-x/invoice2data/pull/375 https://github.com/invoice-x/invoice2data/pull/384

This also fixes https://github.com/invoice-x/invoice2data/issues/374

rmilecki avatar Sep 24 '22 17:09 rmilecki