Item A costs $100 each.
On the sc_req_item record in Fuji:
- quantity: 5
- price: $100 (this value is consistent with Eureka - the value represents Unit Price)
On the sc_request record:
- price: $100 (this value is wrong - it should record as $500 because of the quantity specified)
Steps to Reproduce
- Navigate to Service Catalog > Catalog Definitions > Maintain Items.
- Select Access.
- Select Try It.
Each item is about $133.99 currently.
- Add 5 quantity of the Access item into the cart.
The Subtotal should be $699.95.
- Click Order Now.
The Total for the request should be $699.95.
- Note the Request Number.
- In the Application Navigator filter, type sc_request.list.
- Personalize the list to show Price.
- Search for the Request Number record and look at the Price column. It is showing 133.99.
Expected behavior: The price on the sc_request record should show $699.95 (this is the behavior on Eureka).
Actual behavior: The price on the sc_request record is showing 133.99.
The business rule named Update Request Price is missing the quantity value of the individual item when it is summing up the value.
On line 10 of the script, change:
total += parseFloat(gr.price);
total += parseFloat(gr.price * gr.quantity);
Related Problem: PRB626481