When I call Record.transform() on a Sales Order, to transform it to an Invoice, the Due Date doesn't automatically update based on the Terms field as it does when Terms are selected in the UI. What is the proper way to get Due Date to initialize in this scenario?