banco-alimentar / alimentestaideia.pt

Site doações alimente esta ideia
http://alimentestaideia.pt
Other
10 stars 0 forks source link

743 fix invoice date #744

Closed tiagonmas closed 1 year ago

tiagonmas commented 1 year ago

Description

Not letting users create invoices for past years, if after Jan 15th.

guerrerotook commented 1 year ago

I made small changes in the code to avoid throwing an exception. They expensive from the performance perspective and that is a known case and not something exceptional. What I did is created a InvalidInvoice object that will be returned instead and the caller will handle this invalid invoice showing the page that you created.