I've tried to create a time period in my invoice processing process.
The goal is to set a deadline for the expiry of the cash discount:
this is my drawing sheet:
So the time period should normally start immediately or am I wrong?
Also this is my script to change the time period to the real time or stop
it if there is no cash discount. Is this the right way to do something like this or is there a better way? :)