[Order] Fill in Payment Term based on customer

Dear All,

I would like to add an extra attribute to the Customer, a default Payment Term. The usage is that the payment term could be auto-filled in based on this extra attribute during Customer Order Creation. Does anyone advise me how it could be done? My initial thought is as follows:
1.) Define an extra field for Customer Entity - that should be easy
2.) Need to modify the Order Creation page to fill in the payment term based on the selected customer. - Not very sure how to do this. Any pointer would be appreciated. Thanks.

Best Regards,

Woodas

Dear All,

I solved the issue. I found that the feature was built in for Dolibarr. All I need is to add a constant to table llx_const: RELOAD_PAGE_ON_CUSTOMER_CHANGE in order to trigger the Customer Reload (to load the default payment term defined for the Customer) during Order Creation. Thanks so much.

Woodas