Ga naar inhoud

Form MovePartialQuantityForm

  • Unit name: Dialogs.MovePartialQuantity
  • Form name: TMovePartialQuantityForm
  • Old form name: unit43.

Synopsis

Dialog to collect data for partial move of articles.

Functionalities

  1. "Partial move" form caption.
  2. Label for article description
  3. Label for article code
  4. Groupbox with 'From' data
  5. Location label.
  6. STOCKCODE label.
  7. Quantity spinedit.
  8. Label for max Qty.
  9. Groupbox with 'To' data
  10. Location dropdown. (view Location)
  11. STOCKCODE dropdown. (view Stockcode)
  12. Quantity label.
  13. Label for max Qty.
  14. Edit box for comment.
  15. Article ID, code & description are settable through form property. When set, they are displayed in labels (see above).
  16. Source location is settable through form property.
  17. Source stockcode is settable through form property. When set, the stockcode is set in TO data stockcode as well.
  18. Dest location is readable through form property.
  19. Dest stockcode is readable through form property.
  20. Default max quantity is settable through form property. It is displayed in both max quantity labels.
  21. When destination stockcode changes, then the max quantity is recalculated:
  22. If Source stockcode = 75, and target stockcode<>75, then the max is calculated from service call StockControl.GetCCStockQty. (code 99)
  23. In the other case, the max is the default max quantity. The quantity is displayed in both labels.
  24. 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.