Ga naar inhoud

Reception

ReceptionForm

  • Unit name: Forms.Reception
  • Form name: ReceptionForm
  • Old form name: form2 (unit2)

Synopsis

Form to enter article quantities based on scans

Functionalities

  1. All edits change color when focused.
  2. Form closes on escape key pressed.
  3. When form closes, main form is displayed again.
  4. Edit to enter invoice number.
  5. When invoice number was entered, execute ShowScanDetails
  6. Dropdown/edit to select location (filled with locations)
  7. Edit to enter article code (scan barcode).
  8. Button to check entered article code. When clicked, displays the locations and quantities where this article can be found.
  9. When article code edit is exited, execute CheckArticle action,
  10. When the lotno edit is exited, execute CheckLotNo action.
  11. When the expiry date edit is exited, the existence of the lot no is checked.
  12. When the quantity is entered and saved (enter key or button) the quantity is added in stock using the stockControl.RegisterReceivedQuantity call.
  13. After this, the form is reset. (all edits empty, optional edits invisible)
  14. Button to execute DeleteScanRecord action.
  15. Button to execute ShowDifferences action.

Actions

ShowDifferences

  1. Enabled as soon as there is an invoice.
  2. Shows the ReceptionDifferences form.

CheckLotNo

  1. Enabled as soon as there is a lot no.
  2. the existence of the lot no is checked. (focus is set on expiry date edit if visible, or quantity edit)

ShowScanDetails

  1. Enabled as soon as an invoice number is shown.
  2. Show ScanIn table contents, in reverse order.
  3. Condition is siInvoiceFK=:InvoiceID
  4. Add siArticleFK=:ArticleID to invoice condition if there is an article

CheckArticle

  1. Only enabled if there is an invoice and article.
  2. existence of the article is checked using the StockControl.GetInvArticleReceptionData call.
  3. If the article does not exist, an error message is shown, and further processing is aborted.
  4. if a pop-up message is defined for the article, it is shown.
  5. The article description and count are shown.
  6. The details for the article in the invoice are displayed. (see below)
  7. If the article line count is zero, a warning is displayed:
    This article does not exist in the invoice.
    
  8. If HasLotNo=true, a lotno edit box for entering a lot no is displayed.
  9. If HasExpiryDate=True, an expirydate date edit is is displayed.
  10. Stockcode for the article is shown in a dropdown.
  11. The expected article quantity is shown in a label.

DeleteScanRecord

  1. Only active if there is a record, and the date of the current record is the current day.
  2. When executed, ask for confirmation, and delete the current record.

Showdetails

StockControl.GetInvArticleReceptionData

StockControl.RegisterReceivedQuantity

Tables/Views

  • ScanIn

Needed Service Calls

Call 1

Call 2

Reports