For the payment term field in the order:
1: get from the sales agreement
2: if there is no value above, get from ship-to site use level
3: if there is no value above, get from bill-to site use level
4: if there is no value above, get from account level
5: if there is no value above, get from price list