dapper-invoice icon indicating copy to clipboard operation
dapper-invoice copied to clipboard

Fixed invoice dates

Open QuLogic opened this issue 3 years ago • 1 comments

The date on the invoice appears to always use \today, but once I've made the invoice, I'd like to set a date that can't change. Then even if I accidentally re-latex the file, it'll still be correct.

QuLogic avatar May 05 '22 08:05 QuLogic

What I was doing was committing the pdf to a git repo after creation (and after an update), so I could always go back and get the exact copy that I had sent. Another workaround idea: I wonder if it is possible to \redefinedcommand on \today in the invoice .tex file to hardcode the date you want.

But anyway, it seems reasonable to offer a way to override the invoice date. I imagine it would involve replacing the \today here:

https://github.com/mkropat/dapper-invoice/blob/b83b1e77e42731cfb007353694adf74ed039a3e4/dapper-invoice.cls#L96

Perhaps a global setting? Or perhaps an optional parameter passed to \makeheader? In either case it could still be defaulted to today's date.

I don't do any work in Latex these days, so I'm not going to make the change myself. But if someone puts up a PR I'll make an effort to merge it.

mkropat avatar Sep 05 '22 12:09 mkropat