Question & Answer
Question
When the YFSOrderRepriceUE is invoked as part of createOrder, the input does not have the correct TotalAmount and TotalCredits values.
Answer
SSCAP version 8.0
As per the current product logic, the TotalAmount field is calculated after the YFSOrderRepriceUE is invoked. Here is the sequence of execution:
createOrder – Begin
YFSOrderRepricingUE – Begin
YFSOrderRepricingUE – End
Calculate and update OrderHeader table with Total_Amount.
createOrder – End.
Due to this sequence of execution, the Total Amount attribute will be 0 in the input to YFSOrderRepricingUE.
Solution:
The input to YFSOrderRepriceUE will always show the earlier TotalAmount and not the updated value since the TotalAmount calculation occurs after the UE is invoked. To get the updated values, the ON_SUCCESS event of createOrder API can be used instead.
Historical Number
FAQ2846
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21518131