Files
integreat/resources/cloud-migration-schema.edn
Bryce ececdc8f5f test(invoice): add integration tests for invoice behaviors
- Fix schema ordering: move :journal-entry-line/running-balance to schema.edn
- Add invoice_behaviors_test.clj covering:
  - Permission gates (26.5, 26.6, 26.8)
  - Lock date blocking (27.1, 27.3)
  - New invoice validation (8.1, 8.5)
  - Edit invoice (11.1, 11.3)
  - Bulk edit (15.4)
  - Single/bulk void (16.3, 16.4, 17.1)
  - Unvoid restoring from history (18.1)
  - Undo autopay (19.1)
  - Invoice list filtering (2.6, 2.8, 2.10, 2.14)
  - Invoice list sorting (3.5, 3.7, 3.10)
  - Invoice list pagination (4.1, 4.3)
  - Legacy route redirects (28.1)
- Mock Solr in wrap-setup fixture to prevent Connection refused
- Fix setup-test-data to merge user-provided entities with defaults
- Fix InMemSolrClient.index_documents to handle entity IDs
- Fix ezcater_xls test to use dynamic entity IDs
- Update invoice.md behavior checklist with completed items
2026-05-04 23:10:46 -07:00

49 lines
1.6 KiB
Clojure

[{:db/valueType :db.type/boolean,
:db/cardinality :db.cardinality/one,
:db/noHistory true
:db/doc "Whether or not this journal entry line is dirty and needs to recalculate balances",
:db/ident :journal-entry-line/dirty,
}
{:db/valueType :db.type/tuple
:db/tupleTypes [:db.type/ref :db.type/ref :db.type/string :db.type/instant]
:db/index true
:db/cardinality :db.cardinality/one,
:db/ident :journal-entry-line/client+account+location+date
:db/doc "Used to find accounts and locations quickly",
:db/noHistory true
}
{:db/valueType :db.type/tuple
:db/tupleAttrs [:sales-order/client :sales-order/date]
:db/index true
:db/cardinality :db.cardinality/one,
:db/ident :sales-order/client+date
:db/doc "Used to find sales orders quickly",
:db/noHistory true
}
{:db/valueType :db.type/ref
:db/cardinality :db.cardinality/one
:db/ident :transaction/recommended-account
:db/doc "The recommended account from the ML alogorithm"
:db/noHistory true}
{:db/valueType :db.type/ref
:db/cardinality :db.cardinality/one
:db/ident :transaction/recommended-vendor
:db/doc "The recommended vendor from the ML alogorithm"
:db/noHistory true}
{:db/valueType :db.type/double
:db/cardinality :db.cardinality/one
:db/ident :transaction/vendor-confidence
:db/doc "The confidence from the ML alogorithm"
:db/noHistory true}
{:db/valueType :db.type/double
:db/cardinality :db.cardinality/one
:db/ident :transaction/account-confidence
:db/doc "The confidence from the ML alogorithm"
:db/noHistory true}
]