Trolleypickarticles
Form TrolleyPickArticles
- Unit name: Forms.TrolleyPickArticles
- Form name: TrolleyPickArticlesForm
- Old form name: unit trolley_m_pick
Synopsis
Form to accompany putting articles in trolley locations.
Functionalities
- Edit box to enter trolley location. When enter key is hit, Scanlocation is executed.
- Listbox to list locations and quantities of the article, as provided by view TrolleyLocationPickArticles. Items are shown read until scanned, then they are shown green.
- Close button to execute OK action.
- Properties to set article, invoice, location, lotno and pickedby.
Actions
ScanLocation
- Enabled when a location is entered in edit box.
- When executed, checks that the location is identical to the selected location in the listbox.
- If not, an error message is shown.
- If yes, the trolley location edit is emptied. If there is a next line in the listbox, it is selected. If not, the form is closed with modal result
- mrYes if all listbox items were scanned
- mrNo if all some listbox items were not scanned.
OK
- Always enabled.
- the form is closed with modal result
- mrYes if all listbox items were scanned
- mrNo if all some listbox items were not scanned.
Tables/Views
TrolleyLocationPickArticles
SELECT
isnull(TLOCATION, ''),
isnull(sum(B.QTY), 0) aS QTY
from
OUT A
INNER JOIN OUTDETAILS B ON (A.AVIZ = B.AVIZNO)
INNER JOIN INVDETAILS C ON (B.INVOICENO = C.ID) and (C.ARTCODE = B.ArtCode)
WHERE
(A.AVIZ IN :Invoice)
AND (B.ARTCODE = :Article)
AND (C.LOCATION = :Location) AND
AND (C.LOTNO = :LOTNO) AND
(B.PICKEDBY = :PickedBy)
GROUP BY
isnull(TLOCATION, '')
Needed Service Calls
None.
Reports
None.