Closed ssolovey closed 8 years ago
I made a deep investigation of the Warranty requirenments and as a result I prepared a detailed decription of a Warranty logic in the project WIKI - https://github.com/ssolovey/ecp/wiki/Warranty-Logic
Warranty logic works as expected. The order page warranty drop down could have maximum 3 values.
I changed the settings for Company SKYTEST and a product in a such way that shows all possible values according to requirenments.
So Please check the following product: T293001
SKYTEST Company Warranty = 36 MONTH/100,000 MILE (id = 10 , weight = 24 ); Company GSW value - 87238 = "24 Months/24,000 Miles" (id = 6, weight = 19); Part - T293001 Original Warranty = 36 Months/50,000 Miles (id = 8 and weight = 22); Part - T293001 Commercial Warranty = 12 MONTH/UNL MILE (id = 4 and weight = 16);
Logic: Part - T293001 Original W < Company W, Base Warranty = Part - T293001 Original W; Part - T293001 Commercial Warranty < Base Warranty = add to list; Company GSW Warranty <= Base Warranty = add to list
So the list should consist of: 12 Months/Unlimited Miles - Commercial Warranty; 24 Months/24,000 Miles - Additional Warranty; 36 Months/50,000 Miles - Base Warranty;
If you check the Com Warranty checkbox only 12 Months/Unlimited Miles should be in a list
It looks good! I've sent our response to customer.
it seems to be ok with customer.
When choosing the warranty type, only one selection is present
I was trying different option by updating company and product over admin page and it is always just 1 item in the list.