Kitpickingstart
Form KitPickingStart
- Unit name: Forms.KitPickingStart
- Form name: KitPickingStartForm
- Old form name: form10 (unit10)
Synopsis
Form to start a picking operation for kits.
Functionalities
- Grid with kit orders for which picking is still needed (view KitOrdersForPick). When a row is selected, set the location dropdown to the item with index equal to the row ID. (so the kits are distributed over available locations)
- Dropdown for production locations which are empty. (view KitProductionLocation)
- Button to execute StartPicking action.
- Button to execute Cancel action.
Actions
StartPicking
- Enabled when a row is selected in the grid, and a valid location.
- When executed, shows form PickItemsForm and passes the selected order number and location.
- Close form.
Cancel
- Always enabled.
- when executed, closes the form and shows the main form.
Tables/Views
-
KitProductionLocation
SELECT A.LOCATION FROM Location A LEFT OUTER JOIN STOCTOTAL_KIT B ON A.LOCATION = B.LOCATION WHERE A.LOCATION LIKE 'P%' GROUP BY A.location HAVING (SUM(QTYIN - QTYOUT) <= 0) OR (A.Location='P.00.00.A') ORDER BY A.LOCATION;
-
KitOrdersForPick
SELECT
BlockNo AS Block,
DATA AS ImpDate,
AVIZ AS OrderNo
FROM
OUT A
WHERE
(A.AVIZ LIKE 'KG%')
AND (A.DATA >= dateadd(DAY, - 100, getdate()))
AND EXISTS (SELECT 1 FROM OUTDETAILS B WHERE (A.AVIZ = B.AVIZNO) AND (B.TRANSACTIONTYPE = 'KIT') AND (PICKEDBY=''))
ORDER BY
BLOCKNO DESC
Needed Service Calls
None.
Reports
None.