Hello all.
In Accounts Receivable module you can group customers together for different purposes. In my case I'm developing a module who charge the customer to Free Text Invoice and/or Sales Invoice.
In this module a users can choose customer group for the customer, but I want that to be a different group than original group in the Accounts Receiveable module.
Example:
In Account Receivable module the Customer Group who is registered with the customer can include Terms of Payment like 10 days for example.
But in my module a user can assign another Customer Group to the customer with different Terms of Payment method, like 20 days for example.
So when invoice is made to the customer through my module the payment terms will be 20 days. But if customer is having a different business with the company and the invoice is maded by Account Receiveable module the Terms of Payment in that module will be used.
And also if you change the Customer Group in one module, it will not affect the Customer Group for the same customer in the another module.
Question:
What is the best practise approach to do that. I want all Customer Groups to be stored in the same table of course and have it as simple as possible.