Form ArticleStockCorrectionForm
- Unit name: Dialogs.ArticleStockCorrection
- Form name: ArticleStockCorrectionForm
- Old form name: Form24 (unit24)
Synopsis
Form to enter stock correction data.
Functionalities
- Caption: Stock correction
- Radiobutton: plus correction/minus correction.
- Supplier dropdown. (Supplier view). Disabled for minus correction.
- Stockcode dropdown. (StockCode view)
- For plus correction, stock codes 25 and 99 cannot be chosen. A message should be displayed:
Stock code :StockCode is not allowed, use 75 instead.
- Quantity spinedit. On change, the max limits must be checked:
- Quantity must be less than Max. quantity
- Quantity must be less than Max. CC quantity if stockcode is 75. The spinedit must be cleared if one of the conditions is not fulfilled.
- Label for "Max. qty.". Only visible for - correcion.
- Label for "Duty cleared qty." Only visible for - correcion.
- Location dropdown.
- Comments edit.
- "Lot No" edit. Only visible for + correcion.
- "ExpiryDate" date edit. Only visible for + correcion.
- "Reception Date" date edit. Only visible for + correcion.
- Properties to get/set for all edits/labels.
- If the 'Minus' correction is selected, StockControl.GetCCStockQty is called with code 99 to calculate 'Max Duty cleared' value. (should be done only once)
Actions
OK
- Active only if quantity, location, stockcode, comment and supplier are not empty.
- For plus corrections, stock codes must differ from 25 and 99.
- For plus corrections, reception date must be filled.
- For minus corrections, the quantity must be less than the available quantity. (max qty)
- For minus corrections and stockcode code 75, the quantity must be less than the CC quantity. (Duty cleared qty)
- When executed, the user is presented with a confirmation
The stock will (de/in)crease with %d pieces. Do you want to continue?
- When the user confirms, the form's modalresult is set to mrOK
Cancel
The form's modalresult is set to mrCancel.
Tables/Views
- Supplier For supplier dropdown (global lookup)
- Lcocation For location dropdown (global lookup)
- StockCode for stockcode dropdown (global lookup)
Needed Service Calls
StockControl.GetCCStockQty
Needed to call stock quantity. Needs Article ID and code 99.
Reports
- ArticleMoves When asked, the ArticleMovesParameters dialog is shown toget the parameters.