Commit Graph
666 Commits
Author SHA1 Message Date
Yağızhan 7e2cf65edd Bug: Servicehosting API returning wrong order data (#2885)
Update database query to filter by service type
2025-09-05 00:17:06 -07:00
Belle Aerni 996ff15a3e Partial revert of added strict types (#2881) 2025-08-29 15:06:49 -07:00
Belle Aerni 239d63b276 Fix/checkout before login (#2875)
* Prevent checkout before being logged in

* Improve
2025-08-24 23:52:43 +01:00
Belle Aerni b8c052e93c Fix cron crashing when sending due reminders (#2874) 2025-08-24 12:39:44 -07:00
moshekv 4713a23d53 Fix missing directory separator in _loadTheme (#2862)
fix missing directory separator in _loadTheme
2025-08-16 14:35:46 +01:00
Adam Daley 4a67be638e Fix module icon loading (#2858) 2025-08-12 02:57:22 +01:00
Adam DaleyandCopilot 315f9f3944 Refactor Filesystem and Path handling (#2836)
* Removed legacy files

* Refactor Filesystem and Path handling

* Removed `FOSSBilling\Tools` legacy functions

* Update live-tests to include file check for `php_error.log`

* Update Extension module tables to fix wrapping issue

* Apply suggestions from @Copilot

Co-Authored-By: Copilot <175728472+Copilot@users.noreply.github.com>

* Update Extension module icon URL handling

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-09 21:50:11 +01:00
Belle Aerni 1c7b15e700 Fix a bunch of exception logging (#2850) 2025-08-07 13:06:56 -07:00
Yağızhan 2cef53ca0a Add an "Enabled modules" accordion to the "About" tab (#2842)
* +Enabled modules accordion

* Removed empty style tag

* Translatable modules
2025-08-05 00:59:58 +03:00
Belle Aerni 1e449e20eb Handful of small fixes (#2838) 2025-08-01 13:41:38 +01:00
Adam Daley 1a4ece96f8 Update Server_Client to include first and last name (#2826)
Closes #2825.
2025-07-21 22:10:03 +01:00
renovate[bot] f22eb58534 chore(deps): update dependency ckeditor5 to v46 (#2817)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-10 11:45:18 -07:00
Belle Aerni d00da48af1 WYSIWYG fixes for client area (#2805) 2025-06-28 02:37:21 -07:00
1f085c4efc Apply PHP Code Styling & Quality Changes (#2798)
* Apply PHP Code Styling & Quality Changes

* Ran the steps

---------

Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2025-06-24 15:53:49 -07:00
Belle Aerni 99d6820c11 Fix the batch connect logic for hooks (#2790)
* 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
2025-06-24 15:47:50 -07:00
Belle AerniandAdam Daley fa57b285e8 Fix permission & navigation bugs (#2786)
* 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>
2025-06-12 09:04:36 +01:00
Belle Aerni 28e8b641fa Fix the message for the dangerous functions check (#2784) 2025-06-10 06:20:17 +01:00
b772526ae3 Replace outdated Twig features with recommended equivalents (#2780)
* 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>
2025-06-07 11:40:06 +03:00
Yağızhan 00b3b97f66 Make more messages translatable (#2778)
* 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
2025-06-07 11:34:24 +03:00
d2ad579466 Typos and some untranslatable text (#2773)
* Fix typos and add translatable strings 1

* Fix typos and add translatable strings 2

* Fix typos and add translatable strings 3

* correction

* Load theme settings HTML as Twig template

* Make huraga theme settings translatable

* Update CONTRIBUTING.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/Cookieconsent/html_admin/mod_cookieconsent_index.html.twig

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update cspell.json

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-05 12:32:15 +01:00
Yağızhan f2bb4179d2 Reworked the Pagination class (#2759)
* 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

---------
2025-06-04 15:21:09 +03:00
Adam DaleyandCopilot 4e79273580 Require Client on Admin New Order Page (#2771)
* Require Client field on Admin New Order Page

* Add `aria-required` attribute to Admin New Order Page Client field

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-04 09:48:03 +01:00
FOSSBilling BotandFOSSBilling Bot 30798dd7ff Apply PHP Code Styling & Quality Changes (#2770)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2025-06-03 21:07:39 +01:00
5da80c043a Fix renewal date extension issue when marking first invoice as paid. (#2750)
* Incorrect renewal date extension

* Update src/modules/Order/Service.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix Order Service Test

* Add PHPDoc for `findPaidInvoicesForOrder`

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2025-05-31 03:08:36 +01:00
fa41e154a9 Fix invoice tax and balance logic (#2751)
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>
2025-05-30 21:19:09 +03:00
23d5f8ab2e Apply PHP Code Styling & Quality Changes (#2748)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2025-05-23 19:33:58 +01:00
Yağızhan 3fda0795e1 New endpoint to list the accounts of a hosting server & Fixes (#2728)
* +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
2025-05-22 00:33:11 +03:00
Yağızhan 28d3304975 Fixed broken company logo in the staff login page (#2743) 2025-05-21 18:42:29 +01:00
John PandBelle Aerni 0ff53768af Change of heading level for semantic improvement in client themes (#2730)
* Heading level change in card headers

* login, signup, forgotten pass pages

* Update huraga.scss

* Fix and slightly optimize the tests

---------

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2025-05-19 20:23:17 -07:00
FOSSBilling BotandFOSSBilling Bot a3f51f1080 Apply PHP Code Styling & Quality Changes (#2727)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2025-05-14 14:51:35 +01:00
John PandAdam Daley 2a1561fa5d Wording improvements (#2726)
* 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>
2025-05-13 20:35:25 +03:00
Yağızhan 66ccb922d5 Fix company bank information not displaying on page footers (#2723) 2025-05-09 14:53:16 +03:00
YağızhanandBelle Aerni 8bf9a1bdec 2 new tools and & fix for additional IP address processing logic (#2717)
* Update Service.php

* wording

* +ipInSubnet & +humanReadableBytes

* Make PHP 8.4 happier

* Add terabytes

* remove ipInSubnet in favor of the Symfony component

* Update TwigExtensions.php

---------

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2025-05-08 11:30:08 -07:00
302a50674d Apply PHP Code Styling & Quality Changes (#2716)
* Apply PHP Code Styling & Quality Changes

* Remove PHPStan false positive ignore

---------

Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2025-05-07 16:54:06 +01:00
Yağızhan 8b63625de2 Some visual improvements (#2704)
* Cleaner message for the dangerousFunctions check

* Added hyphens before the messages

* Update mod_index_dashboard.html.twig

* Drop Verdana

* Moved the "Run all checks" button to the header

* Create partial_search_action.html.twig

* Use the new search action

* Update mod_security_index.html.twig

* Update mod_activity_settings.html.twig

* Update dangerousFunctions.php

* Update mod_cron_settings.html.twig

* Update -> Update FOSSBilling

* Update -> Update FOSSBilling

* Update mod_staff_manage.html.twig

Fully rewritten except the "permissions" tab.

* Update mod_servicehosting_index.html.twig

* Also add tooltips

* Update mod_product_index.html.twig

* Update mod_product_promos.html.twig

* Update partial_search_action.html.twig

* Restore Verdana

* Update dangerousFunctions.php

* Update mod_staff_manage.html.twig

* Update mod_security_index.html.twig

* The library already handles this

* +calendar.svg

* Move the datepicker

* Update mod_staff_manage.html.twig

* Update mod_cron_settings.html.twig
2025-05-03 08:00:35 +01:00
Yağızhan 25c4ca7ae4 Added a link to the documentation for the instance ID (#2701) 2025-04-30 12:55:01 -07:00
Adam Daley d107c02ad5 Fix client area missing Invoice and Support ticket pagination (#2683)
* Update Invoice client HTML to include pagination

* Update Support client HTML to include pagination
2025-04-25 09:28:13 +01:00
Belle AerniandJohn P 04548f56a2 Tiny little fixes (#2679)
* 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>
2025-04-24 01:32:18 -07:00
Belle AerniandAdam Daley 6478746dc6 Automatically update the IP address DBs (#2680)
* 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>
2025-04-24 01:20:00 -07:00
FOSSBilling BotandFOSSBilling Bot 5b51ba0d24 Apply PHP Code Styling & Quality Changes (#2668)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2025-04-17 17:46:34 +01:00
Adam Daley bc4dd1d459 Replace FOSSBilling\Request with Symfony\HttpFoundation (#2645)
Replace `FOSSBilling\Request` with `Symfony\HttpFoundation` functionality.
2025-04-17 07:43:38 +01:00
John PandBelle Aerni 93a5947ea5 Fixes cookie consent banner to bottom of window (#2666)
Fixes cookie consent message to bottom of window

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2025-04-16 03:04:24 -07:00
renovate[bot] 9072201f4b chore(deps): update dependency ckeditor5 to v45 (#2660)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-16 02:37:40 -07:00
olobinandBelle Aerni c59f60abe0 Fixed bug: now removing only related to item addons (#2663)
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>
2025-04-16 02:30:39 -07:00
luzpaz 674ec83b31 fix: misc. typos (#2632)
Found via codespell
2025-03-07 13:05:52 +00:00
luzpazandAdam Daley c7700d1e1d fix: various typos (#2593)
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>
2025-03-06 00:28:41 +00:00
Adam Daley 25ad0842b5 Move serialize-javascript override to root package.json (#2608) 2025-02-20 00:22:06 +00:00
Adam Daley bdb473ba74 Add serialize-javascript override to bump to v6.0.2 (#2604) 2025-02-19 22:55:29 +00:00
Yağızhan bb85d517f5 Fixed the background color of the support tickets (#2597)
* A simple bg-transparent should do the trick

* Update mod_support_ticket.html.twig
2025-02-09 22:37:26 -08:00
Belle Aerni 368f8cd6ad Bump the year (#2581) 2025-01-23 15:11:53 -08:00