def doc_is_pos(doc):
	"""
	Checks if the Sales Invoice doctype object - `doc` was generated from the
	POS.

	>>> doc_is_pos(frappe._dict(is_pos=1))
	True

	>>> doc_is_pos(frappe._dict(is_pos=0))
	False

	:param doc: `Document` - Sales Invoice doctype object
	:return: bool
	"""
	return bool(doc.get('is_pos'))