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.

 

Environment

None

Attachments

1

Activity

Show:

Beth Blok 
13 September 2021 at 23:15

Passed testing as per example in 7.02.01 SR5

Scott Pearce 
21 August 2020 at 02:05

Patch for SR4 attached.

Scott Pearce 
21 August 2020 at 01:29

Fixed.

Had to add check for _BOMType <> SalesOrder.SalesOrderBOMTypes.e_SalesOrderKitTemplate before calling ReWorkComponentPriceFromKitPrice at the end of the QuantityOrdered SET-er.

Done

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created 21 August 2020 at 01:05
Updated 13 March 2025 at 02:14
Resolved 21 August 2020 at 01:31