How to create payment terms and add them to an invoice