Form OneByOneCheckingForm
- Unit name: Forms.OneByOneChecking
- Form name: OneByOneCheckingForm
- Old form name: unit204 (form204)
Synopsis
The form searches for an outgoing order, and allows to investigate the status of the order.
Functionalities
- An edit allows to enter an order number (aOrderID).
- A click on a button or pressing enter in the edit fetches the order.
SELECT * from OUT where AVIZ=aOrderID
- If no order was found, a message
is shown. Focus is returned to the edit box.
Order :aOrderID was not found.
- If the order is found, the order data are displayed:
- BlockNo The batch number for the order.
- Country The destination country.
- AVIZ The order number.
- DClient Destination client.
- DClientTown The destination town.
- DClientCountry The destination country.
- If the order is found, the order count summary details are displayed:
- Total: QT1
- Scanned: QT2
- Not Scanned: QT3 (=QT1-QT2)
- If the order is found, the order article count summary details are displayed in a grid. (result of OUTDetailsArticleCountSummary) Records where QT1 equals QTY2 are displayed green, others are displayed red.
- A button 'Refresh list' executes the refresh action.
- An edit box 'Check article' allows to enter an EAN code (aEAN). (bar code). Pressing enter executes the CheckArticle action.
- A button allows to execute CheckArticle action.
Actions
Refresh
- Active if summary counts are active.
- Refreshes both summary counts.
CheckArticle
Checks an article and updates counts.
1. Active only if an article EAN code is entered.
2. When executed, the article corresponding to the aEAN code is located in the global article lookup.
(check EANCODE,EANCODE1,EANCODE2,EANCODE3,EANCODE4).
3. If the article is not found, then a message is displayed:
EAN barcode :aEAN was not found in the article list.
There is no such article in the job: :Name
Article is already scanned: :Name
Tables/Views
- OUT (filter on order)
- Article (filter on EAN)
- OUTDetailsCountSummary
SELECT outdetails.artcode, sum(outdetails.qty) as QTY1,
SELECT sum(qty) as QTY1, sum(isnull(checkedqty,0)) as QTY2 FROM OUTDETAILS WHERE (AVIZ=AVIZNO=:aOrderID) ``` * **OUTDetailsArticleCountSummary**
sum(checkedqty) as QTY2 max(PickedBy) as PKB, Max(CheckedBy) as CKB, NAME2 FROM OUTDETAILS INNER JOIN ARTICLE ON (artcode=name ) WHERE (AVIZ=:AOrderID) GROUP BY outdetails.artcode, NAME2 ORDER BY outdetails.artcodeSELECT outdetails.ID, outdetails.qty, outdetails.QtyCF, outdetails.CheckedQty, outdetails.ID, PickedBy, outdetails.qty-isnull(outdetails.CheckedQty, 0) as RESTQTY from Out inner join Outdetails on aviz=avizno WHERE blockno=+'+label10.caption+' and AVIZ=+'+Label12.Caption+' AND ARTCODE=+'+Edit1.Text+' and outdetails.qty>isnull(outdetails.CheckedQty, 0) order by outdetails.ID asc* **ArticleStockCount**
```