Remove discount after 10 days

Is there a built in feature to remove a set discount after set number of days?

For example I want to give a 2% discount if the client pays within 10 days. After 10 days the 2% discount is removed. I can’t seem to find this feature anywhere in InvoiceNinja. Short of writing a cron script to check and edit the database I’m not sure how else I would do it.

Any suggestions would be great.

Sorry, it isn’t currently supported.

I wouldn’t advise creating a cron job, if you update the discount in the database the client’s balance won’t be updated. We plan to supported editing invoices through the API in a future release which you should be able to use to accomplish this.