- creates payment term and payment term template based on credit_days setting - sets payment term template for records that had credit_days