added get_supplier_details and commonified invoice functions