Can’t set or refresh value when remove one item

any idea about this how to update Total Amount which is in parent doctype when item is deleted from child table.