C1-MPRIUPDPA

This algorithm is invoked when the status of the mass pricing update request is changed to Updating Price Assignments. If a price assignment is referred in past, this algorithm ends the existing price assignment and creates a new price assignment. However, if a price assignment is not yet referred in the system, this algorithm updates the existing price assignment. Once the price assignment is newly created or updated, the status of the record in the mass pricing update request is changed to Processed. However, if a price assignment is referred for a future date, the status of the record in the mass pricing update request is changed to Error. In addition, if any error occurs while updating an existing price assignment or creating a new price assignment, the status of the record in the mass pricing update request is changed to Error. Note that if a price assignment is included multiple times in a mass pricing update request, the system will update the price assignment only once.