created function check_issuance_status in issuance.rb to check if all line_items are returned