Commit Graph

19 Commits

Author SHA1 Message Date
1a48abdd7c test(invoice): implement integration tests for invoice behaviors
Adds comprehensive integration tests covering:
- Invoice list filtering (vendor, account, date range, due date, amount, import status, scheduled payments, unresolved, location)
- Invoice list sorting (date, invoice number, due date, total, outstanding balance, vendor, client, location)
- Invoice list pagination (default 25, custom per-page)
- Selection behaviors (select all filtered)
- Permission gates (GraphQL layer behavior)
- Lock date behaviors (edit, void, unvoid, undo autopay, bulk operations)
- Single/Bulk void with payment exclusions
- Bulk edit with lock date exclusions
- Credit payment (net zero, multiple vendors blocked, positive balance blocked)
- Import validation (missing fields, unmatchable vendors, no client access)
- Import approve/disapprove
- Legacy route redirects

Updates docs/testing/behaviors/invoice.md with 76 completed behavior markers.

57 tests, 99 assertions, all passing.
2026-05-05 05:00:51 -07:00
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
f2025c2e65 made cloud tests work again. 2023-05-01 20:21:58 -07:00
611af7f9bb making tests work again. 2023-05-01 09:42:06 -07:00
b2ad7790cf Migrates back to datomic on-prem 2023-04-29 07:12:51 -07:00
68e809d8fb (cloud) experimental approach to ensure the ledgers do not get out of sync 2023-04-02 07:45:12 -07:00
3a126e0b23 Merged vendor tests, got them working 2023-03-27 16:59:15 -07:00
24366058cf merged vendor test 2023-03-27 16:17:51 -07:00
17841934a5 makes all invoice operations work again 2023-03-27 14:11:20 -07:00
ca45795b11 More test coverage, also found a bug where bulk voided invoices were not unvoidable 2023-03-27 13:25:43 -07:00
e3fbc50e6a merged 2023-03-27 07:51:53 -07:00
8d6832e1fe added more tests. 2023-03-27 07:51:14 -07:00
bcd9698eb6 merged. 2023-03-26 20:43:46 -07:00
4fccb47082 Adds tests for transactions 2023-03-26 20:32:44 -07:00
bfa04ef83f got accounts working 2023-03-24 15:34:14 -07:00
21f4dee7b2 account tests. 2023-03-24 15:25:26 -07:00
4f94602716 fixes issues with a neverending search. Also fixes client saving to match normal test. 2023-03-24 13:01:33 -07:00
1497549d64 All tests pass again. 2023-03-24 11:00:02 -07:00
58b9dcf272 Added test for client graphql 2023-03-24 10:54:19 -07:00