I’m trying to implement a new requirement within the Product Receipt form (PurchEditLines) where users should be blocked from posting ReceiveNow quantities less than 1. Some users have been able to post receipts with values like 0.5 or 0.005, which later causes issues with the purchase order. If another packing slip is entered after a small quantity like 0.5 or 0.005, it results in an error.
Currently, the system prevents posting when the quantity is zero, and I want to extend this functionality to block any values less than 1.
I’ve been trying to locate this logic but haven’t had success. I used the debugger to track the messages:
“Posting Purchase order: XXXX No lines for posting or quantity = 0.”
“Posting - Purchase order: XXXX - Posting has been canceled.”
However, none of the references to these messages seem to be tied to the ReceiveNow logic in the product receipt process. I’ve also debugged parts of the standard code but haven’t been able to find where the validation occurs.
Has anyone dealt with something similar or knows where this logic might be handled?