HelperStable

Create return credit note drafts

Creates draft-status credit notes corresponding to selected return quantities, distributed against the relevant source invoices.

Business object
Create return credit note drafts
Business lifecycle
Updated state

Vue d’ensemble

Creates draft-status credit notes corresponding to selected return quantities, distributed against the relevant source invoices.

Exemple

After inspecting a return, prepare credit notes for accepted quantities before issuing them.

Parameters 2

returnRequisReturn
Platform Return whose lifecycle or quantities must be updated.
quantity_basisRequisenum
Return quantity stage used as the calculation basis: requested, authorized, received, or accepted quantity according to the node contract.

Outputs 1

credit_notesInvoice[]
Draft-status credit notes created against source invoices from the selected return quantities.

Behavior

The node uses the selected quantity basis and order-to-invoice relationships to create the appropriate preparatory accounting documents.

Key point The node applies a canonical business operation: it does not bypass the object's lifecycle and fails when the requested transition is incompatible with the current state.

Limits and responsibilities

  • The created credit notes are real resources in draft status, not non-persisted process drafts.
  • Creating them does not issue them or automatically trigger associated refunds.