Commit Graph

1668 Commits

Author SHA1 Message Date
David Bomba
eb28b38534 Refactor for quickbooks settings map 2026-01-28 15:40:46 +11:00
David Bomba
1d941f3298 fixes for tests 2026-01-28 00:20:58 +11:00
David Bomba
bc441ec580 Fixes for tests 2026-01-27 22:08:13 +11:00
David Bomba
5814079ae9 Fixes for tests 2026-01-26 16:24:45 +11:00
David Bomba
bd629f2eeb Fixes for tests 2026-01-26 15:13:17 +11:00
David Bomba
6d2c242973 Quickbooks validation tests 2026-01-26 15:03:42 +11:00
David Bomba
fa4d184009 Fixes for PEPPOL tests 2026-01-24 14:46:02 +11:00
David Bomba
b74e24382c Fixes for peppol 2026-01-24 12:06:28 +11:00
David Bomba
7d4ac5f475 Fixes for tests 2026-01-20 18:09:48 +11:00
David Bomba
d2f07bfd10 Escape peppol tests if no Saxon lib is present 2026-01-19 15:11:12 +11:00
David Bomba
25ea5c3d8c Working on dedicated credit implementation for credit notes with PEPPOL 2026-01-19 14:09:05 +11:00
David Bomba
3a9b514ee8 Rollback to svg for qr codes 2026-01-19 12:10:34 +11:00
David Bomba
9e21590ee9 Validation for credits 2026-01-18 14:09:26 +11:00
David Bomba
f6f888decc Working on additional helper to debug bad imports 2026-01-14 18:31:50 +11:00
David Bomba
48b07f4af7 Improvements for Gateways that are preferentially sorted 2026-01-13 17:55:39 +11:00
David Bomba
250549f78d Purge user functionality 2026-01-12 17:01:11 +11:00
David Bomba
3bd5d04316 Fixes for Invoice Period Test 2026-01-12 09:07:09 +11:00
David Bomba
c1555211e9 Skip json parsing in CI 2025-12-15 16:37:12 +11:00
David Bomba
eaa929e55c tests for cloning a design 2025-12-15 16:34:04 +11:00
David Bomba
1467d668e8 Stubs for Json Invoice Designer 2025-12-11 13:01:50 +11:00
David Bomba
1859428391 Fixes for payment types 2025-12-11 08:13:25 +11:00
David Bomba
f358765661 Updated tests 2025-12-10 13:03:33 +11:00
David Bomba
003a5b3c4f Invoice designer v2 2025-12-10 12:32:28 +11:00
David Bomba
ab8d515229 Inject payment adjustment when reversed invoice / credit is deleted 2025-12-03 16:55:26 +11:00
David Bomba
d178a2f80f Fixes for tests 2025-12-02 16:33:12 +11:00
David Bomba
410ebe249b Adjustments for tests 2025-12-02 16:14:34 +11:00
David Bomba
e261cabc43 Fixes for tests 2025-12-02 15:24:58 +11:00
David Bomba
c56662cd80 Ensure users cannot add pdf_variables to group or client settings 2025-12-02 14:30:32 +11:00
David Bomba
99ee29743b Refactor for store payment request 2025-12-01 20:35:56 +11:00
David Bomba
b46bc40942 Add notifications for e-invoice received 2025-12-01 13:59:27 +11:00
David Bomba
7ed11b756c Refactor for atomic redis operations 2025-11-27 20:59:37 +11:00
David Bomba
24a7682d53 Refactor StorePaymentRequest to use Atomic cache locks
- Replace Cache::has() + Cache::put() with Atomic::set() for atomic duplicate detection
- Eliminates race condition in self-hosted environments
- Update PaymentController to use Atomic::del() for lock cleanup
- Add 3 comprehensive tests for payment duplicate detection

Tests: 8/8 passing (19 assertions)
Performance: Same as BulkInvoiceRequest refactor
2025-11-27 01:47:37 +00:00
David Bomba
f3a8b84757 Refactor bulk invoice request to use Atomic cache locks
- Replace manual Redis/Cache handling with Atomic helper class
- Atomic::set() provides atomic lock creation for both hosted and self-hosted
- Atomic::del() replaces Cache::forget() for consistent cleanup
- Simplifies code: 24 lines reduced to 10 in BulkInvoiceRequest
- Updated InvoiceController: 14 instances of Cache::forget() -> Atomic::del()
- Add comprehensive test suite (5 tests, 11 assertions, all passing)

Benefits:
- Eliminates race condition in self-hosted environments (Cache::has + Cache::put)
- Consistent atomic behavior across all deployment types
- Cleaner, more maintainable code
- Proper fallback handling built-in

Tests cover:
- Duplicate lock prevention
- Lock deletion and re-acquisition
- TTL expiration
- True atomicity (race condition simulation)
- Cache fallback when Redis unavailable
2025-11-27 01:24:59 +00:00
David Bomba
ae4bee9e2c Fixes for task validation 2025-11-26 16:56:50 +11:00
David Bomba
32b1ca8cb8 Handle edge cases 2025-11-26 16:03:22 +11:00
David Bomba
04722bae9f Fixes for payment token storage 2025-11-26 13:27:04 +11:00
David Bomba
74b2b4c14b Fixes for tests 2025-11-21 22:08:07 +11:00
David Bomba
c6527b08f3 refactor tests 2025-11-21 08:52:04 +00:00
David Bomba
ba25555a27 Cleanup 2025-11-21 09:42:31 +11:00
David Bomba
56b1abcf54 Improvements for tax reporting 2025-11-21 09:30:08 +11:00
David Bomba
694f1476de Improvements for tax reporting 2025-11-21 09:08:09 +11:00
David Bomba
6c09ed8a47 Improvements for tax reporting 2025-11-20 13:08:08 +11:00
David Bomba
2f8cf977b0 tests for tax period report 2025-11-20 07:24:35 +11:00
David Bomba
92106c0637 Working on deleted invoices and tax reporting 2025-11-19 16:30:37 +11:00
David Bomba
2907752732 Working on tax reports, delta changes and adjustments 2025-11-19 13:02:07 +11:00
David Bomba
a0745200d8 Working on tax reports, delta changes and adjustments 2025-11-19 12:53:27 +11:00
David Bomba
f3263b9ce5 Working on tax reports, delta changes and adjustments 2025-11-19 12:51:43 +11:00
David Bomba
00e93582ea Tax Period Tests 2025-11-18 15:50:29 +11:00
David Bomba
64036b9b6b Tax Period Tests 2025-11-18 14:53:01 +11:00
David Bomba
cd3cf81f65 Fixes for accessor 2025-11-18 14:41:39 +11:00