You are trying to change the purchase UoM on which the purchase prices are based. You cannot erase party "%(party)s" while they have pending purchases with company "%(company)s". To get a quote for the purchase "%(purchase)s" you must enter a warehouse. To delete purchase "%(purchase)s" you must cancel it. To process purchase "%(purchase)s" you must set a supplier location on party "%(party)s". To invoice purchase "%(purchase)s" you must define an account expense for product "%(product)s". To invoice purchase "%(purchase)s" you must configure a default account expense. To delete line "%(line)s" you must cancel or reset to draft purchase "%(purchase)s". To modify the header of purchase "%(purchase)s", it must be in draft state. You cannot reset invoice "%(invoice)s" to draft because it was generated by a purchase. You cannot reset move "%(move)s" to draft because it was generated by a purchase.