AlmondTill/G3N API

CashEntry

object type

ONE posted cash-drawer ledger fact: the SIGN is the direction (positive = cash INTO the drawer). sysId-LESS (the class); IMMUTABLE — NO update or doom op exists (corrections are NEW compensating entries); posted ONLY by openTillSession (float_in), recordCashEntry (the manual subset), closeTillSession (count_adjust), and the tender writers (cash_sale/cash_refund/change_given) — each in ONE transaction with the drawerTotals cache stamp.

Fields

FieldTypeNotes
idID ID!No further notes.
typeString String!No further notes.
captionString String!The derived display caption — entryType + currency + signed minor; never editable.
statusString String!The FSM state: active | doomed (doomed = VOIDED, reserved for a future void-family flow).
parentIdID ID!The parent TillSession.
rootIdID ID!No further notes.
entryTypeCashEntryType CashEntryType!The canned entry type (SPEC_REGISTRY — the sign law rides it).
currencyString String!The entry currency (the per-currency drawer; FX capture fields arrive with the writers).
amountMinorInt Int!The SIGNED minor-unit amount — the sign IS the drawer direction.
reasonStringThe reason — REQUIRED on the manual ops; auto-generated on float_in/count_adjust.
glCategoryStringThe GL expense/income category — rides paid_in/paid_out only.
refsString [String!]Provenance document refs (bounded free strings — typed refs land with their writers).
fxCashEntryFxThe FX capture (foreign cash_sale entries only).
overdrawnBooleanPresent (true) EXACTLY when this entry drove its currency's drawer total negative.
createdAtString String!No further notes.
updatedAtString String!No further notes.
revisionID ID!No further notes.
revisionNumInt Int!No further notes.

Used by