ores.trading.draft_reason

Table of Contents

A trade that is not live is a draft, and a draft with no stated reason is a deal nobody can pick up: the desk sees a row that has not moved and cannot tell whether it waits on the customer, on a confirmation, or on the rest of a structure.

The lookup states the reason, and the desk that owns it. The reason is a code the booking names, so a draft's reason is reference data rather than free text, and the responsible desk is what a report groups drafts by when it asks who is late.

1. Flags

2. Columns

2.1. code

The reason a draft exists, as the booking names it.

Examples: 'structure_incomplete', 'confirmation_pending', 'credit_review'.

std::string("structure_incomplete")

2.2. description

What the draft waits on, in the words a person reads.

std::string(faker::lorem::sentence())

2.3. responsible_role

The desk that unblocks a draft held for this reason, as the role catalogue names it. A report of drafts groups by this, which is what makes an aged draft somebody's work rather than nobody's.

std::string("trading_middle_office")

3. SQL

3.1. Flags

3.2. Extra drops

drop function if exists ores_trading_validate_draft_reason_fn;

4. C++

4.1. Flags

4.2. Repository

4.3. Domain includes

#include <string>

4.4. Conventions

4.5. Table display

column header
code Code
description Description
responsible_role Responsible desk
modified_by Modified By
version Version

4.6. Custom repository methods

5. See also

Emacs 29.3 (Org mode 9.6.15)