Ga naar inhoud

Form NewReturnDialog

  • Unit name: Dialogs.NewReturn
  • Form name: TNewReturnDialog
  • Old form name: unit57, form57 (scanner)

Synopsis

Dialog to collect parameters for new return.

Functionalities

  1. Dropdown for supplier list (view Suppliers). When a supplier is selected, execute CheckSupplierReason action.
  2. Checkbox "Damaged".
  3. Dropdown for return reason. (view ReturnReasons)
  4. Edit for original invoice number.
  5. Button for Cancel action.
  6. Button for OK action.
  7. Boolean Property "Damaged"
  8. Integer Property "OrderID"
  9. Integer Property "SupplierID"

Actions

ChekcSupplierReason

  1. Enabled when a supplier is selected.
  2. When executed, checks the following:
  3. When the returnReasonType field is set, the return reasons dropdown is filled with the corresponding records. The dropdown is disabled if there is no such value.
  4. Save the value of the returnNeedsInvoice field.

Cancel

  1. Always enabled.
  2. Closes the form with the mrCancel modal result.

OK

  1. Enabled when there is
  2. A supplier
  3. If the supplier requires a return reason, a return reason.
  4. if the supplier requires an invoice, an invoice must have been entered.
  5. If an invoice was entered, the existence of the invoice is checked in table OUT. If it does not exist, an error is shown, and the action is aborted.

  6. Closes the form with the mrOK modal result.

Tables/Views

  • Suppliers Filtered on 'AllowReturns=1'

  • Remark: the tables ReturnReason and ReturnReasonList will be merged into 1 table.

  • ReturnReasons from table ReturnReasonList, filtered on ReturnReasonType if the ReturnReasonType is set for the selected supplier.

  • Suppliers Filtered on 'AllowReturns=1'

Needed Service Calls

Call 1

Call 2

Reports