A return means you give your customer their money back for a product and receive the product back for your inventory. That is Square's definition word for word, and the phrase "receive the product back for your inventory" is the part that changes your workflow.
A return is two transactions stacked. The credit to the customer is one. If you process the credit but never log the part back in, your inventory count is wrong the next time someone looks up that part number. Wrong counts cause double-orders, backorder confusion, and angry phone calls three weeks later.
Here is where the decision gets specific. OpenStax's worked example describes a seller who returns printers back to inventory because they determined the merchandise is in sellable condition at its original cost. That sentence contains the test you need to apply to every part that comes back: is it in sellable condition, and is its cost unchanged?
A returned alternator that was never installed, still in the box, with the part number legible — sellable condition, original cost. It goes back to stock and your inventory count goes up.
A returned head gasket with the packaging opened and a crease across the face — you may still stock it, but you need to look at it before you log it in. If it goes on the shelf as new and a customer gets a bad gasket, you own that failure.
A returned hydraulic hose cut to length — not sellable to anyone else. It does not go back to stock. The customer still gets credit, but your inventory does not recover. The customer still gets credit, but your inventory does not recover — a credit with no stock recovery and a part sitting in your receiving bay.
OpenStax's example explicitly ties the inventory entry to the determination of sellable condition at original cost. That is the gate. The dispatcher or parts manager making the call is the one applying it.
The timing matters too. If the credit goes out before anyone inspects the part, you have committed to a return and then discovered it is really a refund. If your counter staff notes condition at the moment the part is handed back — before it leaves the customer's hands — you avoid the argument later.