Changing quantity on a kit template header is changing the component prices
Description
Changing quantity on a kit template header is changing the component prices. The idea of "kit template" is that prices stay as edited by the user when the quantity of the header is changed
Steps:
Create part MyKitHeader, kit template, sell price 20
Create part MyComponent1, sell price 10
Create part MyComponent2, sell price 10
Make MyComponent1 and MyComponent2 components of MyKitHeader
Receive in 99 of MyComponent1 and MyComponent2
Set debtor 1001 discounts to 0 (Statement Discounts)
New SO for 1001, add MyKitHeader. Note price is 20, components are 10 each. Each component makes up 50% of the header price
Change MyComponent1 ex price to be 5, and MyComponent2 to be 15. This means MyComponent1 now makes up 25% of the kit header price, and MyComponent2 makes up 75%.
Change MyKitHeader Quantity to 2. See that MyComponent1 and MyComponent2 prices change such that they are back to 50% each of the header price. This should not happen with kit templates. The prices should remain as edited by the user for kit template type.
Had to add check for _BOMType <> SalesOrder.SalesOrderBOMTypes.e_SalesOrderKitTemplate before calling ReWorkComponentPriceFromKitPrice at the end of the QuantityOrdered SET-er.
Changing quantity on a kit template header is changing the component prices. The idea of "kit template" is that prices stay as edited by the user when the quantity of the header is changed
Steps:
Create part MyKitHeader, kit template, sell price 20
Create part MyComponent1, sell price 10
Create part MyComponent2, sell price 10
Make MyComponent1 and MyComponent2 components of MyKitHeader
Receive in 99 of MyComponent1 and MyComponent2
Set debtor 1001 discounts to 0 (Statement Discounts)
New SO for 1001, add MyKitHeader. Note price is 20, components are 10 each. Each component makes up 50% of the header price
Change MyComponent1 ex price to be 5, and MyComponent2 to be 15. This means MyComponent1 now makes up 25% of the kit header price, and MyComponent2 makes up 75%.
Change MyKitHeader Quantity to 2. See that MyComponent1 and MyComponent2 prices change such that they are back to 50% each of the header price. This should not happen with kit templates. The prices should remain as edited by the user for kit template type.