Form TransferArticlesForm
- Unit name: Dialogs.TransferArticles
- Form name: TTransferArticlesForm
- Old form name: unit132 (form132).
Synopsis
Form to enter data a article transfer operation.
Functionalities
- Caption 'Tranfer stock from one article to another'
- Group 'From'
- Label for article code.
- Label for article location.
- Label for stock code.
- Label for lot no.
- Label for Expiry date.
- Label for current Quantity.
- Label for Max 99 stock Quantity.
- Group 'To'
- Edit for Quantity
- Edit for article code.
- Button to execute OK action.
- Button to execute Cancel action.
- Properties to get/set all labels and edits.
- Property to get/set 'From' article ID.
- Property to get 'To' article ID.
- On Show the max 99 stock quantity is calculated using StockControl.GetCCStockQty (code 99) and displayed. Needs the article ID.
- ToQuantity is set to lowest of quanity or max quantity.
Actions
OK
- Only active if a nonzero quantity is entered, less than or equal to max quantity.
- Only active if an article code (min 2 chars) is entered, which differs from the original article code.
- When executed, checks if the article exists. If it does not exist, an error is shown:
the action is aborted.
Article :Article does not exist.
- The TO article ID is set to the found value.
- 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.