Editing the line after posting should be a special case where the terms are re-negotiated afterward.
I still think we need to allow definition of custom terms manually.
Of course, I do not say that this manual edition is a good solution when the term rules are perfectly known. But it will help for one time special case.
I’m still in favor of improving the current payment term design to filter out some lines with the current computed date.