mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-06-16 03:19:34 -04:00
When searching in the Takings view, entering a plain Sale ID (like '123') did not return any results. The search only worked with customer names or with the 'POS 123' format. The issue was that is_valid_receipt() only recognized 'POS ####' format or invoice numbers, so plain numeric Sale IDs fell through to the customer name search branch which doesn't search sale_id. This fix adds sale_id to the search conditions when the search term is numeric (ctype_digit check), allowing direct Sale ID searches. Fixes #4567 Co-authored-by: Ollama <ollama@steganos.dev>
61 KiB
61 KiB