add: check total availability of the order and extract total amount.