Form MovePartialQuantityForm
- Unit name: Dialogs.MovePartialQuantity
- Form name: TMovePartialQuantityForm
- Old form name: unit43.
Synopsis
Dialog to collect data for partial move of articles.
Functionalities
- "Partial move" form caption.
- Label for article description
- Label for article code
- Groupbox with 'From' data
- Location label.
- STOCKCODE label.
- Quantity spinedit.
- Label for max Qty.
- Groupbox with 'To' data
- Location dropdown. (view Location)
- STOCKCODE dropdown. (view Stockcode)
- Quantity label.
- Label for max Qty.
- Edit box for comment.
- Article ID, code & description are settable through form property. When set, they are displayed in labels (see above).
- Source location is settable through form property.
- Source stockcode is settable through form property. When set, the stockcode is set in TO data stockcode as well.
- Dest location is readable through form property.
- Dest stockcode is readable through form property.
- Default max quantity is settable through form property. It is displayed in both max quantity labels.
- When destination stockcode changes, then the max quantity is recalculated:
- If Source stockcode = 75, and target stockcode<>75, then the max is calculated from service call StockControl.GetCCStockQty. (code 99)
- In the other case, the max is the default max quantity. The quantity is displayed in both labels.
- If destination stockcode 25 or 99 is selected, an error is shown:
Stockcode :code cannot be used, select 75 instead.
Actions
OK
- Not active unless the quantity is less than the max quantity.
- Not active unless the destination stock code is different from 25 or 99.
- Sets modalresult to mrOK.
Cancel
Set ModalResult to mrCancel.
Tables/Views
- LOCATION for destination location dropdown (global lookup)
- STOCKCODE for destination stockcode dropdown (global lookup)
Needed Service Calls
StockControl.GetCCStockQty
Needed to call stock quantity. Needs Article ID and code 99.
Reports
None.