Ga naar inhoud

Form TransferArticlesForm

  • Unit name: Dialogs.TransferArticles
  • Form name: TTransferArticlesForm
  • Old form name: unit132 (form132).

Synopsis

Form to enter data a article transfer operation.

Functionalities

  1. Caption 'Tranfer stock from one article to another'
  2. Group 'From'
  3. Label for article code.
  4. Label for article location.
  5. Label for stock code.
  6. Label for lot no.
  7. Label for Expiry date.
  8. Label for current Quantity.
  9. Label for Max 99 stock Quantity.
  10. Group 'To'
  11. Edit for Quantity
  12. Edit for article code.
  13. Button to execute OK action.
  14. Button to execute Cancel action.
  15. Properties to get/set all labels and edits.
  16. Property to get/set 'From' article ID.
  17. Property to get 'To' article ID.
  18. On Show the max 99 stock quantity is calculated using StockControl.GetCCStockQty (code 99) and displayed. Needs the article ID.
  19. ToQuantity is set to lowest of quanity or max quantity.

Actions

OK

  1. Only active if a nonzero quantity is entered, less than or equal to max quantity.
  2. Only active if an article code (min 2 chars) is entered, which differs from the original article code.
  3. When executed, checks if the article exists. If it does not exist, an error is shown:
    Article :Article does not exist.
    
    the action is aborted.
  4. The TO article ID is set to the found value.
  5. Form Modalresult is set to mrOK.

Cancel

Sets form modal result to mrCancel;

Tables/Views

  • Article to check for existence of target article.

Needed Service Calls

StockControl.GetCCStockQty

To calculate max CC stock quantity

Reports

None.