Form ArticleCCStockCorrectionForm
- Unit name: Dialogs.ArticleCCStockCorrection
- Form name: ArticleStockCCCorrectionForm
- Old form name: Form146 (unit146)
Synopsis
Form to enter CC stock correction data
Functionalities
- Caption: 'Corrections in CUSTOMS stock'
- Article code label.
- Article description label.
- Supplier label.
- Radiobutton: plus correction/minus correction.
- Dropdown for Stock Code. (StockCode)
- Spinedit for Quantity.
- Button for OK action.
- Button for Cancel action.
- Properties for all data.
Actions
OK
- Only enabled if Qty, valid Stockcode, and type are specified
- On Execute, if the correction is a minus correction,
checks that the entered quantity is <= result of StockControl.GetCCStockQty called with article id and entered stock code. if not, an error is raised with message:The entered quantity :Qty is bigger than the availaible stock qunatity :MaxQty.
- Sets form ModalResult to mrCancel.
Cancel
Sets form ModalResult to mrCancel.
Tables/Views
- StockCodes (to fill dropdown)
Needed Service Calls
StockControl.GetCCStockQty
To check that the entered quantity is not too big in case of a minus correction.
Reports
None.