Reverse credit consumption (Ormuz Credit Management)
Explicitly reverses all or part of an earlier `credit_consumed` movement without deleting ledger history.
Vue d’ensemble
Explicitly reverses all or part of an earlier credit_consumed movement without deleting ledger history.
Exemple
After a credit note or cancellation, reduce net consumption corresponding to the corrected invoice.
Parameters 8
company
Buyer company whose credit limit or exposure is read or modified.
currency
ISO 4217 currency of the relevant limit or exposure.
amount_excluding_tax
Amount excluding tax of the credit movement, in minor monetary units.
amount_including_tax
Amount including tax of the credit movement, in minor monetary units.
source
Business object — invoice, order, or checkout — materializing credit consumption when available.
reason
Business reason explaining why this credit movement is recorded.
metadata
Free-form metadata associated with the limit or movement according to the
common.metadata contract.consumption_movement
Original
credit_consumed movement to reverse. Cumulative reversals cannot exceed the amounts of this movement.Outputs 1
credit_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_consumedmovement 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.