Commit Graph

25289 Commits

Author SHA1 Message Date
David Bomba
a3a835f61f Merge pull request #11468 from turbo124/v5-develop
v5.12.38
v5.12.38
2025-12-04 14:48:58 +11:00
David Bomba
42b203c321 v5.12.38 2025-12-04 14:46:50 +11:00
David Bomba
8fbdda80ed credit numbering for peppol 2025-12-04 07:15:00 +11:00
David Bomba
ab8d515229 Inject payment adjustment when reversed invoice / credit is deleted 2025-12-03 16:55:26 +11:00
David Bomba
af87609e23 Merge branch 'bug/livewire-state-hydration' into v5-develop 2025-12-03 14:13:56 +11:00
David Bomba
f8653f5dcd Improved livewire state management 2025-12-03 14:13:48 +11:00
David Bomba
9b5e7f7c88 Fixes for AEAT activity consts 2025-12-03 13:50:55 +11:00
David Bomba
4cdc2c6b05 Add draft invoices into dashboard amounts if required 2025-12-03 13:01:18 +11:00
David Bomba
b736153a54 Ensure location data flattens correctly for use in templates 2025-12-03 08:41:29 +11:00
David Bomba
69764f4c78 Ensure location data flattens correctly for use in templates 2025-12-03 08:40:56 +11:00
David Bomba
453e636d7f Refactor away from session id's as key cache 2025-12-02 20:58:09 +11:00
David Bomba
0e559413f7 Fixes for tests 2025-12-02 16:50:06 +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
0b5f2c9e1b Set isprimary on new contact 2025-12-02 15:55:08 +11:00
David Bomba
0283a5a649 Fixes fo nmo entity being false 2025-12-02 15:30:53 +11:00
David Bomba
e261cabc43 Fixes for tests 2025-12-02 15:24:58 +11:00
David Bomba
2e92e72ffc Updated domains 2025-12-02 15:05:44 +11:00
David Bomba
e11774c599 Checks for payment notifications, catch edge case where we receive a pre payment 2025-12-02 14:48:34 +11:00
David Bomba
c56662cd80 Ensure users cannot add pdf_variables to group or client settings 2025-12-02 14:30:32 +11:00
TechNoNerd87
ffaf8d03b3 Remove webhook_secret from StripePaymentDriver
Removed webhook_secret property and its assignment.

Signed-off-by: TechNoNerd87 <113461509+TechNoNerd87@users.noreply.github.com>
2025-12-01 21:22:20 -06:00
David Bomba
2f2d2020dc Fixes for payment tests 2025-12-02 09:41:05 +11:00
David Bomba
613e8f989a Minor validation rule fixes 2025-12-02 09:32:16 +11:00
David Bomba
8d5fe32a22 Merge pull request #11458 from turbo124/v5-develop
v5.12.37
v5.12.37
2025-12-02 09:24:26 +11:00
David Bomba
5240ed3f43 v5.12.37 2025-12-02 09:23:02 +11:00
David Bomba
15a3311fc9 Allow locked invoices to be marked as paid 2025-12-02 09:22:37 +11:00
David Bomba
1cd21b57f7 Catch for PDf preview 2025-12-02 08:42:31 +11:00
David Bomba
d08074a10a Minor fixes for generating verifactu xml 2025-12-01 20:48:19 +11:00
David Bomba
99ee29743b Refactor for store payment request 2025-12-01 20:35:56 +11:00
TechNoNerd87
b30dbf633a Fix webhook signature verification handling
Signed-off-by: TechNoNerd87 <113461509+TechNoNerd87@users.noreply.github.com>
2025-11-30 21:43:17 -06:00
TechNoNerd87
90b135e211 Fix webhook signature verification logic
Signed-off-by: TechNoNerd87 <113461509+TechNoNerd87@users.noreply.github.com>
2025-11-30 21:31:21 -06:00
David Bomba
b46bc40942 Add notifications for e-invoice received 2025-12-01 13:59:27 +11:00
David Bomba
8acca3a184 Fixes for validation 2025-12-01 13:13:56 +11:00
David Bomba
ccb8ff566c Fixes for validation 2025-11-30 17:57:29 +11:00
David Bomba
d8b979be9e Fixes for export reports and start / end dates 2025-11-30 17:04:00 +11:00
TechNoNerd87
8a6bfcd0a3 Refactor StripePaymentDriver webhook handling
Removed assignment of webhook_secret and fixed syntax error in webhook event construction.

Signed-off-by: TechNoNerd87 <113461509+TechNoNerd87@users.noreply.github.com>
2025-11-29 16:24:11 -06:00
TechNoNerd87
359abcfb5c Fix Stripe webhook signature verification handling
Signed-off-by: TechNoNerd87 <113461509+TechNoNerd87@users.noreply.github.com>
2025-11-29 16:07:52 -06:00
TechNoNerd87
e9b5781fe9 Refactor Stripe webhook request processing
Refactor webhook processing to simplify signature verification and log request data.

Signed-off-by: TechNoNerd87 <113461509+TechNoNerd87@users.noreply.github.com>
2025-11-29 12:59:50 -06:00
David Bomba
249f4bb5c4 Adjustments for validating payments, preventing a negative amount being applied to a positive invoice 2025-11-28 17:34:39 +11:00
David Bomba
5b27febf29 Fixes for displaying correct user ID for archive/restore/delete events 2025-11-28 11:07:22 +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
3bef863bb7 remove hosted logic 2025-11-27 01:25:45 +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
e432c46235 Refactor for atomic redis operations 2025-11-27 12:16:52 +11:00
David Bomba
c2fe17a959 Refactor for atomic redis operations 2025-11-27 12:12:39 +11:00
David Bomba
668d4dc0ba Fixes for tests: 2025-11-27 10:54:46 +11:00
David Bomba
9e17c85f1b Merge pull request #11452 from turbo124/v5-develop
v5.12.36
v5.12.36
2025-11-27 10:49:45 +11:00
David Bomba
64b6b203a4 v5.12.36 2025-11-27 10:47:26 +11:00
David Bomba
b80a95003f Updated client balance 2025-11-27 10:47:08 +11:00