Reception
ReceptionForm
- Unit name: Forms.Reception
- Form name: ReceptionForm
- Old form name: form2 (unit2)
Synopsis
Form to enter article quantities based on scans
Functionalities
- All edits change color when focused.
- Form closes on escape key pressed.
- When form closes, main form is displayed again.
- Edit to enter invoice number.
- When invoice number was entered, execute ShowScanDetails
- Dropdown/edit to select location (filled with locations)
- Edit to enter article code (scan barcode).
- Button to check entered article code. When clicked, displays the locations and quantities where this article can be found.
- When article code edit is exited, execute CheckArticle action,
- When the lotno edit is exited, execute CheckLotNo action.
- When the expiry date edit is exited, the existence of the lot no is checked.
- When the quantity is entered and saved (enter key or button) the quantity is added in stock using the stockControl.RegisterReceivedQuantity call.
- After this, the form is reset. (all edits empty, optional edits invisible)
- Button to execute DeleteScanRecord action.
- Button to execute ShowDifferences action.
Actions
ShowDifferences
- Enabled as soon as there is an invoice.
- Shows the ReceptionDifferences form.
CheckLotNo
- Enabled as soon as there is a lot no.
- the existence of the lot no is checked. (focus is set on expiry date edit if visible, or quantity edit)
ShowScanDetails
- Enabled as soon as an invoice number is shown.
- Show ScanIn table contents, in reverse order.
- Condition is
siInvoiceFK=:InvoiceID
- Add
siArticleFK=:ArticleID
to invoice condition if there is an article
CheckArticle
- Only enabled if there is an invoice and article.
- existence of the article is checked using the StockControl.GetInvArticleReceptionData call.
- If the article does not exist, an error message is shown, and further processing is aborted.
- if a pop-up message is defined for the article, it is shown.
- The article description and count are shown.
- The details for the article in the invoice are displayed. (see below)
- If the article line count is zero, a warning is displayed:
This article does not exist in the invoice.
- If
HasLotNo=true
, a lotno edit box for entering a lot no is displayed. - If
HasExpiryDate=True
, an expirydate date edit is is displayed. - Stockcode for the article is shown in a dropdown.
- The expected article quantity is shown in a label.
DeleteScanRecord
- Only active if there is a record, and the date of the current record is the current day.
- When executed, ask for confirmation, and delete the current record.
Showdetails
StockControl.GetInvArticleReceptionData
StockControl.RegisterReceivedQuantity
Tables/Views
- ScanIn