If you have no main module (module which the customer has always to buy) and the customer could buy one of the following combinations

 

module A
module B
module A or module B
module A and module B

 

Use the implementation: Activate each module with a Serial Number