Kitting at the Time of Order
The purpose of this page is to help you prototype a kitting solution where the a user enters a kitted product item number and iDempiere expands the kit into its components on separate sales order lines. Here are the preparation steps:
- Create a new Product representing your kit.
- Set the Product => Bill of Materials field to Yes or Checked
- Set the Product => Stocked field to No or Not Checked
- Add BOM lines to your kitted Product
- Click the 'Verify BOM' button on your product.
Here is the usage scenario:
- Create a new Sales Order
- Add your kitted product to a Sales Order => Line
- Prepare your order
- Notice that you will now have more Sales Order => Lines
- Price is set according to the price list (BTW - make sure these products are on your price list)
- Specifically
- Your original line will have its product and price removed. The description will be updated accordingly. Said another way, your original line will become a comment line.
- The remaining lines will be copied from your kitted product's BOM lines.
- View the source code => MOrder.prepareIt() method for more details
Concerns about this approach
- Since price is set at the kitted line level - there is no way to set the price at the kit level.