Movehighstart
Form MoveHighStart
- Unit name: Forms.MoveHighStart
- Form name: MoveHighStartForm
- Old form name: Form3/Form38 (unit3/unit38)
Synopsis
Form to move articles from high to low locations.
Functionalities
- Grid to show MoveCandidates view. Filled on form show.
- Button to execute OK action.
- On show check if there any active import jobs. If there any, show a message:
Close the form, show Move Menu form.
An import is in progress.
- Button to execute Cancel action.
Actions
OK
- Enabled if a record is selected.
- Show the MoveHighLocation form.
Cancel
- Enabled if a record is selected.
- On execute, close the form, show Move Menu form.
Action2
Tables/Views
- MoveCandidates
SELECT DISTINCT A.BlockNo AS Block, A.Country AS Ct, A.Data AS ImpDate, A.AVIZ AS OrderNo, isnull(D.SQ, 99) AS MySQ, F.SQPK FROM OUT A LEFT OUTER JOIN COUNTRYORDER C ON (DATEPART(WeekDay, A.DATA) = C.DayOfWeek) AND (A.COUNTRY = C.COUNTRY) LEFT OUTER JOIN SUPPLIERS F ON A.CLIENT = F.NAME, INNER JOIN OUTDETAILS B ON A.AVIZ = B.AVIZNO INNER JOIN INVDETAILS D (B.INVOICENO = D.ID) WHERE ((D.LOCATION, 1) <> 'A') AND (A.CLIENT <> 'JAMBERRY') AND (DATA >= dateadd(DAY, - 1, getdate())) AND B.TRANSACTIONTYPE IN ('ORD', 'KIT') ORDER BY F.SQPK ASC, MYSQ ASC, A.BLOCKNO DESC