Commit Graph
5265 Commits
Author SHA1 Message Date
Adam Daley c8dee1b3d7 Update PHPStan to ignore erroneous error (#2789)
* Update PHPStan to ignore erroneous error

* Fix PHPStan ignore regex escaping

* Fix PHPStan baseline spacing
2025-06-11 18:20:52 +01:00
renovate[bot] e6b37db1b4 chore(deps): update dependency core-js to v3.43.0 (#2783)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-09 23:59:16 -07: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
renovate[bot] 464e883623 chore(deps): lock file maintenance 2025-06-09 00:57:40 +00:00
renovate[bot] b09e122a51 fix(deps): update dependency sentry/sentry to v4.12.0 (#2781)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-07 18:43:04 +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
renovate[bot] 728d17cb4f chore(deps): update dependency phpunit/phpunit to v11.5.22 2025-06-07 02:12:09 +00: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
Adam Daley 312a66873b Add filp to cspell ignore list (#2776) 2025-06-05 12:47:16 +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
renovate[bot] 45d91de971 chore(deps): update dependency ckeditor5 to v45.2.0 (#2775)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-04 21:56:15 +01:00
renovate[bot] db60405427 fix(deps): update dependency filp/whoops to v2.18.1 2025-06-04 12:22:16 +00: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] 6a100879c6 chore(deps): update dependency cypress to v14.4.1 2025-06-04 02:13:24 +00: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
renovate[bot] 9b8fbc73e7 chore(deps): lock file maintenance 2025-06-02 01:43:00 +00:00
renovate[bot] 7c5cf8f8d3 chore(deps): update dependency sass-embedded to v1.89.1 2025-05-31 04:39:49 +00:00
renovate[bot] 281edb23e0 chore(deps): update dependency rector/rector to v2.0.17 2025-05-31 02:36:11 +00:00
renovate[bot] ddeb3220f1 fix(deps): update dependency stripe/stripe-php to v17.3.0 (#2760)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-31 03:35:12 +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
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
renovate[bot] 5212cbf47a fix(deps): update dependency flag-icons to v7.5.0 (#2762)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-31 03:01:18 +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
renovate[bot] 703a9a9670 chore(deps): update dependency postcss to v8.5.4 2025-05-30 05:10:23 +00:00
renovate[bot] ba2a2a8c1a fix(deps): update symfony packages to v7.3.0 (minor) (#2763)
fix(deps): update symfony packages to v7.3.0

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-30 06:09:18 +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
renovate[bot] 0b57755ca9 fix(deps): update dependency @babel/plugin-transform-object-rest-spread to v7.27.3 2025-05-28 03:38:05 +00:00
renovate[bot] cc2510272f chore(deps): lock file maintenance 2025-05-26 03:08:54 +00: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
renovate[bot] 654b524419 chore(deps): update dependency phpunit/phpunit to v11.5.21 2025-05-23 05:50:26 +00:00
renovate[bot] c528dffa6e chore(deps): update dependency phpstan/phpstan to v2.1.17 2025-05-23 03:45:11 +00: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
Albatroz Jeremias 59489d502d add cron to docker image (#2739)
* add cron

* make cronjob assigned to www-data instead of root
2025-05-21 20:39:06 +01:00
Adam Daley f378c248f2 Update live-tests workflow triggers (#2745) 2025-05-21 20:33:04 +01:00
Yağızhan 28d3304975 Fixed broken company logo in the staff login page (#2743) 2025-05-21 18:42:29 +01:00
renovate[bot] a69b7a2d98 chore(deps): update dependency cypress to v14.4.0 (#2742)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-21 17:41:31 +01:00
renovate[bot] c0d71fe34c chore(deps): update dependency webpack to v5.99.9 2025-05-21 02:36:13 +00:00
Yağızhan c9cd8e5679 Adding #chevron-down (#2741)
Add files via upload
2025-05-20 15:33:35 -07:00
renovate[bot] 136e154408 fix(deps): update dependency @tabler/core to v1.3.2 (#2740)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-20 04:34:26 +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