Register unexpected Quantity (overDeliveryValidation / underDeliveryValidation)
Description
During line registration, the user can be warned or blocked when registering more or fewer than the "Quantity" element sent during Order Lines Response. This parameter allows for underpicking or overpicking.
Mobile WMS can respond with:
Warning the user: "You cannot register more than x for this item."
Blocking the user: There are order lines (n) with an unexpected quantity. Do you want to proceed anyway?
Parameters
Modify the following elements in Order Lines Response;
overDeliveryValidation
underDeliveryValidation
With these options :
None: User is allowed to register a higher/lower value
Warn: Warn the user if a value higher or lower than the suggested value is entered. The user must accept the prompt.
Block: The user is not allowed to register a value over or under the expected. An error message is displayed
Determines the behavior when the maximum value is exceeded.
Using the overDeliveryValidation options that will allow over-delivery will affect the mobile device only. The BC backend will need to allow over-delivery as well, i.e., you must be able to process overdelivery from the backend when no mobile devices are used to process the posting. Only recent BC versions support this. For older versions, backend customization is needed.
These are defined in the OrderLines response from the backend.
How to modify
Business Central
Use the "OnAfterSetFrom"...-events, i.e.:
OnGetReceiveOrderLines_OnAfterSetFromAnyLine
And the relevant functions, i.e.:
Set_UnderDeliveryValidation
Set_OverDeliveryValidation
NAV
Modify Codeunits:
MOB WMS Toolbox
Or the respective functional area Codeunit, i.e., Count, Pick, etc.