-->
Welcome, Guest
Username: Password: Remember me

TOPIC: [Order] Fill in Payment Term based on customer

[Order] Fill in Payment Term based on customer 5 months 1 week ago #33472

  • woodas
  • woodas's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 4
  • Karma: 0
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
The administrator has disabled public write access.

[Order] Fill in Payment Term based on customer 5 months 1 day ago #33536

  • woodas
  • woodas's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 4
  • Karma: 0
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
The administrator has disabled public write access.
Time to create page: 0.076 seconds