Commit Graph
2878 Commits
Author SHA1 Message Date
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
Yağızhan 28d3304975 Fixed broken company logo in the staff login page (#2743) 2025-05-21 18:42:29 +01:00
Yağızhan c9cd8e5679 Adding #chevron-down (#2741)
Add files via upload
2025-05-20 15:33:35 -07: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
John PandCopilot 4e7c1f3dd0 Update canned responses and categories (#2732)
* Update canned responses and categories

* typo

* Update src/install/sql/content.sql

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

* Update content.sql

* Update src/install/sql/content.sql

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

* Update src/install/sql/content.sql

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-17 15:09:16 +01: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
Adam Daley e85d3e6f5b Fix admin theme switcher issue (#2719) 2025-05-08 10:14:40 +01: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 b25d0ba844 Update dependency @tabler/core to v1.2.0 (#2699) 2025-04-30 14:43:07 +03:00
John P 4a6f030e46 Fixes low contrast admin nav bar in dark mode (#2696) 2025-04-30 10:20:48 +01:00
Belle Aerni 362e3b3c7e Revert "Update dependency @tabler/core to v1.2.0" (#2695)
Revert "Update dependency @tabler/core to v1.2.0 (#2694)"

This reverts commit c55b370863.
2025-04-29 01:52:19 -07:00
Adam Daley c55b370863 Update dependency @tabler/core to v1.2.0 (#2694) 2025-04-29 02:13:41 +01:00
John P 96751c2284 Fix meta title suffix (and add prefix) fields in Huraga options (#2692)
* Update layout_public.html.twig

* Update layout_default.html.twig

* Update settings.html
2025-04-29 01:23:02 +01:00
John P 6cc6473bca Use z-index to fix nav overflow issue (#2687)
See my comment on #2676
2025-04-25 01:31:53 -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
FOSSBilling BotandFOSSBilling Bot 4e8b87edf6 Apply PHP Code Styling & Quality Changes (#2682)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2025-04-24 16:45:11 +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
John P df333e32b9 Adds keywords meta tag to huraga pages (#2678)
* Update layout_default.html.twig

* Update layout_public.html.twig
2025-04-24 07:03:37 +01:00
Adam Daley aea6cc3939 Fix navigation bar overflow (#2676)
Fix overflow bug on navigation bar introduced in #2670.
2025-04-23 01:08:36 -07:00
John P ab5497867f Admin theme - sticky top nav (#2670)
* Update layout_default.html.twig

* Update fossbilling.scss
2025-04-18 09:40:28 +01:00
imgbot[bot]andImgBotApp 605ce208e1 [ImgBot] Optimize images (#2669)
/src/themes/huraga/screenshot.jpg -- 136.46kb -> 108.55kb (20.45%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2025-04-17 12:33:05 -07:00
John PandBelle Aerni c6aaf205ac Replace screenshot in Huraga directory (#2667)
Add files via upload

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2025-04-17 21:55:37 +03: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