strzibny / invoice_printer

Super simple PDF invoicing
MIT License
876 stars 71 forks source link

Give more flexibility to purchaser_lines. #77

Closed voxik closed 1 year ago

voxik commented 1 year ago

This avoids overlapped text when purchase address is extremely long and therefore provides more options to format the address.

Before:

Snímek obrazovky z 2022-10-14 23-54-13

After:

Snímek obrazovky z 2022-10-14 23-54-40

Actually, I'd be even happier if the purchaser_name could contain the "John Doe, Nemocnice Nové Město na Moravě, příspěvková organizace" probably broken to multiple lines. But that would need more text flowing. I tried but failed :/

BTW I have not tried to execute the test suite, so I'm sorry if something gets broken ;)

voxik commented 1 year ago

And of course, I have adjusted just the "purchaser", maybe the "provider" would deserve the same treatment. But .... :stuck_out_tongue_winking_eye:

strzibny commented 1 year ago

Thanks for the PR, I'll check. Time to setup automated tests I think:)

strzibny commented 1 year ago

It looks good, I''ll update the provider and regenerate the examples.