trigger settlement script function done