Ormuz Credit ManagementHelperStable

Reverse credit consumption (Ormuz Credit Management)

Explicitly reverses all or part of an earlier `credit_consumed` movement without deleting ledger history.

Overview

Explicitly reverses all or part of an earlier credit_consumed movement without deleting ledger history.

Example

After a credit note or cancellation, reduce net consumption corresponding to the corrected invoice.

Parameters 8

companyRequiredCompany
Buyer company whose credit limit or exposure is read or modified.
currencyRequiredcurrency code
ISO 4217 currency of the relevant limit or exposure.
amount_excluding_taxOptionalamount
Amount excluding tax of the credit movement, in minor monetary units.
amount_including_taxOptionalamount
Amount including tax of the credit movement, in minor monetary units.
sourceOptionalInvoice
Business object — invoice, order, or checkout — materializing credit consumption when available.
reasonOptionalstring
Business reason explaining why this credit movement is recorded.
metadataOptionalmetadata
Free-form metadata associated with the limit or movement according to the common.metadata contract.
consumption_movementRequiredcommon.credit_exposure_movement
Original credit_consumed movement to reverse. Cumulative reversals cannot exceed the amounts of this movement.

Outputs 1

credit_exposureCredit exposure
Current credit exposure after reading or applying the requested movement.

Behavior

The node adds a credit_consumption_reversed movement referring to the original consumed movement and decreases net exposure consumption.

Key point The credit ledger retains facts as movements. A correction produces a new explicit movement instead of silently rewriting a historical fact.

Limits and responsibilities

  • The supplied movement must be a credit_consumed movement from the same exposure.
  • Partial reversals are allowed, but their cumulative amount cannot exceed the original movement.
  • The operation preserves the original movement; it does not rewrite history.