Ga naar inhoud

Form DeliveryDetails

  • Unit name: Forms.Grids.DeliveryDetails
  • Form name: DeliveryDetailsForm
  • Old form name: uni3 (Form3)

Synopsis

Shows the details of a delivery order, and allows to change it.

Functionalities

  1. Gets passed an IOUT business interface.
  2. Show client, order and date in labels.
  3. Show a grid with order lines. (OutDetails, filtered on OrderID)
  4. Show a label with asked quantity (sum of Qty)
  5. Show a label with delivered quantity (sum of QtyDel)
  6. Show a label with status (Waiting, Printed, Client Confirmed)
  7. Client Confirmed: EDIDATE is non-empty.
  8. Printed: PLPrintingDate non-empty
  9. Picked: There is a detail line with non-empty PickedBy.
  10. Waiting: if none of the above is true.
  11. Button to execute DeleteOrder action.
  12. Button to execute AddArticle action.
  13. Button to execute DeleteArticle action.
  14. Button to print DeliveryDetails report.

Actions

DeleteOrder

Deletes the currently selected order. 1. Only available if an order is not in 'picked' state. 2. Asks for confirmation to delete the order delivery. 3. If the user confirms, deletes the order by executing DeliveryControl.DeleteDelivery service call. 4. Close the form.

AddArticle

  1. Enabled if status is waiting or printed.
  2. Adds a new record, and opens AddOrderArticle form with it. Applies the values that were entered the previous "add article" call.
  3. When user closed dialog, entered values are kept for the next call.
  4. After dialog was closed, refresh details.

DeleteArticle

  1. Enabled if status is waiting or printed and there is a current line in the order details.
  2. Asks for confirmation to delete the article.
  3. If the user confirms, delete the article with the DeliveryControl.DeleteDeliveryArticle service call.
  4. Refresh the details.

Tables/Views

  1. OUT filter based on search criteria.
  2. OUTDETAILS filter based OUT record (AVIZNO)

Needed Service Calls

DeliveryControl.DeleteDeliveryArticle

To delete a line from the delivery order.

DeliveryControl.DeleteDelivery

To delete the delivery order completely.

Reports