Ga naar inhoud

Form ArticleCCStockCorrectionForm

  • Unit name: Dialogs.ArticleCCStockCorrection
  • Form name: ArticleStockCCCorrectionForm
  • Old form name: Form146 (unit146)

Synopsis

Form to enter CC stock correction data

Functionalities

  1. Caption: 'Corrections in CUSTOMS stock'
  2. Article code label.
  3. Article description label.
  4. Supplier label.
  5. Radiobutton: plus correction/minus correction.
  6. Dropdown for Stock Code. (StockCode)
  7. Spinedit for Quantity.
  8. Button for OK action.
  9. Button for Cancel action.
  10. Properties for all data.

Actions

OK

  1. Only enabled if Qty, valid Stockcode, and type are specified
  2. 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.
    
  3. 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.