Commit Graph
2906 Commits
Author SHA1 Message Date
Yağızhan a0b34dbb29 Fix invoice filtering (#2898)
* Fix invoice filtering

* Update status radio value

* Removed individual CSRF fields
2025-09-13 22:41:28 +01:00
Yağızhan 12d42e5bb3 "New client" form overhaul (#2905) 2025-09-13 01:16:24 +01:00
Yağızhan d9c7fc7053 tomselect: Automatically grab the CSRF token from the API wrapper (#2899)
* Automatically grab the CSRF token from the API wrapper

* Removed data-csrf fields
2025-09-13 01:08:20 +01:00
Yağızhan b3d2caa106 Fix missing client name in the activity list (#2901)
Make the SQL query use CONCAT_WS for client name
2025-09-13 02:36:34 +03:00
Yağızhan 5fe5c727f1 Fixed negative invoice radio not being checked (#2897) 2025-09-12 16:23:48 -07:00
c4a19916fd Fix payment / PayPal problems (#2889)
* Fix payment / PayPal problems

* Update Guest.php

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

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-06 13:03:58 -07:00
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
FOSSBilling BotandFOSSBilling Bot 8cebdbf5af Apply PHP Code Styling & Quality Changes (#2878)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2025-08-26 14:26:40 -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
Belle Aerni 1fa0417711 Update SentryHelper.php (#2869) 2025-08-21 20:15:17 -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] 96a020a4fb fix(deps): update dependency apexcharts to v5 (#2818)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-11 19:23:05 -07: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 d01fe9ec3f Fix the PHP req mismatch (#2809)
I forgot to update it in all the different locations
2025-07-02 10:39:15 -07:00
Belle Aerni 31ce61d619 Fix oversight in protocol handling (#2808)
* Fix oversight in protocol handling

* Ran the CS fixer
2025-07-02 10:25:51 -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
Jayden ef64a4b013 Fixing Direct Server Login from Orders Tab (#2796)
Update Whm.php
2025-06-18 06:53:24 +01: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
Adam Daley 23c01e3c3d Fix admin theme locale picker flags (#2785)
Update `admin_default` theme `_flags.scss` to use `@use` and fix display issue due to changes in `flag-icons` (lipis/flag-icons#1356).
2025-06-10 06:55:07 +01:00
Belle Aerni 28e8b641fa Fix the message for the dangerous functions check (#2784) 2025-06-10 06:20:17 +01:00
John P e81eac5a30 Fix installer 500 errror (that I caused) (#2782)
* Fix installer 500 errror (that I caused)

Translations aren't available in the installer... oops. Reverted two changes made in the typos/translatables PR.

* Update install.html.twig
2025-06-09 12:35:01 -07: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
FOSSBilling BotandFOSSBilling Bot 5972700077 Apply PHP Code Styling & Quality Changes (#2777)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2025-06-05 20:45:20 +01: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
renovate[bot] ae29e5ac47 fix(deps): update dependency @melloware/coloris to ^0.25.0 (#2769)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-03 21:31:56 +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
John PandCopilot 872fd1768d Hide nav for guests option in huraga (#2766)
* Hide nav for guests in huraga

* Update src/themes/huraga/html/layout_default.html.twig

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

* Update settings_data.json.example

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-02 19:42:17 +03: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
Adam DaleyandCopilot 6eb9c15a69 Fix DirectAdmin package matching and reseller account creation (#2765)
* Fix DirectAdmin package matching

* Fix DirectAdmin Reseller Creation

Closes #2306.

* Update src/library/Server/Manager/Directadmin.php

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-31 03:05:30 +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
13dd9f972b Apply PHP Code Styling & Quality Changes (#2761)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2025-05-30 06:54:13 +01:00
renovate[bot]andAdam Daley ad202a81e8 fix(deps): update dependency gabordemooij/redbean to v5.7.5 (#2764)
* fix(deps): update dependency gabordemooij/redbean to v5.7.5

* Remove unnecessary PHPStan ignore

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2025-05-30 06:47:22 +01:00
YağızhanandCopilot a1406f8d4f Display permission errors on API endpoints (#2757)
* Display permission errors on API endpoints

* Update src/library/Api/Handler.php

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-28 20:13:55 +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
John P 4648c359ae Add body class to layout_public (#2747) 2025-05-22 09:24:40 +01:00
John P 1e1aaa3be9 Make news/tos/privacy-policy visible to guests (#2744)
* Make news/tos/privacy-policy visible to guests

* slight change

* Remove evil ))
2025-05-21 21:17:29 -07: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