* Fix the batch connect logic for hooks
Closes#2729 by fixing the logic for hook connections and added a solution to remove anything that was registered when it wasn't really a hook
* Slight optimization. Also probably fixed the tests
* We can continue early here as a tiny optimization
* Update ServiceTest.php
* Update ServiceTest.php
* Prevent duplicate nav registration
* Fix the security module not being accessible
Corrects the security permissions accidentally being hidden and fixes flawed logic which caused hiding the permissions for a module to then report no permission being given (which is why the security module was being hidden)
* Greatly simplified some of the permissions logic
---------
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
* Replace Twig `include` tag with function
* Replace Twig `attribute` function with dot operator
* Fix spelling issues in mod_order_manage.html.twig
---------
Co-authored-by: John P <64874788+j-a-pope@users.noreply.github.com>
Co-authored-by: Yağızhan <yagizhan49@protonmail.com>
* Make static messages translatable
* Typo
* Second batch
* Make static messages translatable
* Typo
* Second batch
* Applying suggested fixes
* Applying suggested fixes
* Missed this one
* Make documentation section titles untranslatable
* Use double quotes instead of escaping single quotes
* Introduce the new Paginator class
* Rename it back to Pagination
* Move #2756 here
* Use HttpFoundation\Request
* Restore Box_Paginator
* Tests
* Replace the deprecated methods wherever used
* No need
* Tests
* Tests again
* tests
* Tests hopefully for the last time
* Use a subquery instead
* Found a faulty query
`m.*` already includes `client_id`. was getting a duplicated column error.
* New pagination logic in Huraga & a couple of improvements
* Type safety
* Accessibility and other improvements
* Fixed tests
* Make aria tags translatable
* Update partial_pagination.html.twig
* Dot operator and little docblock improvement
---------
Fix: Invoice Tax and Balance Logic
This commit provides a comprehensive fix for invoice tax calculations and client balance deductions when handling discounted invoices.
Modifications in `src/modules/Invoice/Service.php`:
1. `getTax()`: Overhauled to calculate tax based on the sum of all taxable invoice item amounts (price * quantity) *before* applying the invoice's tax rate and rounding. This ensures a single, accurate tax value for the entire invoice.
2. `toApiArray()`: The internal tax calculation for display purposes was previously updated to use this same "tax on total taxable subtotal" method, ensuring consistency between displayed tax and actual tax.
3. `getTotalWithTax()`: Now correctly uses the reformed `getTax()` method, ensuring it reflects the accurate total invoice amount.
4. `tryPayWithCredits()`: When an invoice is paid using client credits, this method now:
a. Uses the accurate amount from `getTotalWithTax()` for the deduction.
b. Creates a single `ClientBalance` transaction for this precise amount.
c. Calls `markAsPaid($invoice, false, true)` to prevent per-item balance transactions (which caused rounding issues) while still marking items as paid and executing service activations.
These changes collectively ensure that invoice tax is calculated and displayed consistently, and that client balance deductions for paying discounted invoices are accurate and reflect the true invoice total.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Yağızhan <yagizhan49@protonmail.com>
Co-authored-by: John P <64874788+j-a-pope@users.noreply.github.com>
* +toHostingAccountApiArray
* +getAccountsSearchQuery
* +accounts_get_list & pagination fix for server_get_list
* Update AdminTest.php
* +tests for the account_get_list
* Update Admin.php
* Also return linked order and client data
* Update AdminTest.php
* Removed duplicated field
* Adam's suggestions
* Wording improvements (part 1)
Replacing things that are badly worded as I notice them.
* more
* .
* Update mod_email_template.html.twig
* Update mod_servicedomain_index.html.twig
---------
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
* Fix the learn more modal during the installer
Closes#2596
* Hide the quantity option
It doesn't seem to actually be implemented by the back-end logic.
Relates to #2573
* Update Guest.php
* Added a red, scary message
* Added word 'WARNING!'
---------
Co-authored-by: John P <64874788+John-S4@users.noreply.github.com>
* Periodically update the IP address databases
* Ignore false positive PHPStan error in `Config.php`
Co-Authored-By: Adam Daley <admdly@users.noreply.github.com>
* Limit 1 DB update per execution
This way these are hogging less time from the cron job & it slightly spreads out the load on Github's release servers.
---------
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
Deleting a product with a domain name from cart now only removes related addons for that domain name, rather than all addons of the same type from the cart.
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
Found via `codespell -q 3 -S "./tests-legacy,./package-lock.json,./cspell.json" -L filp,ridiculus,serie`
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
* Started implimenting a security dashboard and checks
* Wrote two functional checks
* Fix typos
* Update webserver.php
* + a new check
* Slight cleanup, made translatable
* Added some general checks
* Update cspell.json
* Typo
* Slight tweaks, add a permission to run checks
* Add space after language, before language code
* Add space in locale.title instead of editing layout
* Consistency & improvements regarding Knowledge Base
* Improve ticket dashboard (at least in my opinion)
* More consistency
* Improve footer copyright in admin panel
* Fix a little display issue - copyright notice should now look great.
* Save some bytes - because why not?
* GitHub is a brand name and does not have to be translated - even more space saved!
* Another improvement
* Sign up -> Register
* Remove hidden useless space after footer
* Improve wording
* Improve wording in ticket dashboard for clarity
* Fix little mistake in the copyright notice
---------
Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>