@opencxh/domain 1.293.0 → 1.294.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,8 +27,14 @@ export declare const BOOKKEEPING_ROUTES: {
27
27
  export interface BookingDocument {
28
28
  sourceApp: string;
29
29
  documentId: string;
30
- direction: "sale" | "purchase";
31
- kind: "invoice" | "credit_note" | "receipt";
30
+ /** `none` for a journal: a memorial entry has no buyer or seller side. */
31
+ direction: "sale" | "purchase" | "none";
32
+ /**
33
+ * `journal`: a memorial entry from another app (a payroll journal from HRM or Nmbrs): signed
34
+ * lines on categories, no VAT, `counterparty.name` names it ("Loonjournaal september 2026").
35
+ * Only books that declare the `journal` capability take one; the rest refuse it visibly.
36
+ */
37
+ kind: "invoice" | "credit_note" | "receipt" | "journal";
32
38
  businessEntityId: string;
33
39
  /** Empty for a receipt without a number, and for an invoice the books will number themselves. */
34
40
  number?: string;
@@ -66,9 +72,16 @@ export interface BookingDocument {
66
72
  fileId: string;
67
73
  };
68
74
  externalIds?: string[];
75
+ /**
76
+ * The source's own page for this document, as a shell path (`/apps/sales/<administration>/
77
+ * invoices/<id>`): the books link back to it ("Naar de factuur") without knowing the source.
78
+ */
79
+ path?: string;
69
80
  }
70
81
  export interface BookingLine {
71
82
  description: string;
83
+ /** A journal's line: signed, debit positive. `netCents` and `taxCents` are 0 there. */
84
+ amountCents?: Cents;
72
85
  netCents: Cents;
73
86
  taxCents: Cents;
74
87
  /** `TaxCode.key`. The books map it onto their own box and account. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencxh/domain",
3
- "version": "1.293.0",
3
+ "version": "1.294.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",