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 Daley and Copilot
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] and Adam 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ğızhan and Copilot
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 P and Belle 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
renovate[bot]
5b28c526c5
fix(deps): update dependency stripe/stripe-php to v17.2.1
2025-05-20 02:45:23 +00:00
renovate[bot]
69bfa9e1b8
chore(deps): lock file maintenance
2025-05-19 03:46:50 +00:00
John P and Copilot
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
renovate[bot]
33f1a077a9
fix(deps): update dependency prinsfrank/standards to v3.12.3
2025-05-17 06:48:50 +00:00
renovate[bot]
e95651bcb4
chore(deps): update dependency phpstan/phpstan to v2.1.16
2025-05-17 01:55:52 +00:00
renovate[bot]
0649ccec20
chore(deps): update dependency ckeditor5 to v45.1.0 ( #2731 )
2025-05-16 16:58:23 +01:00
renovate[bot]
e51ef528b1
chore(deps): update dependency sass-embedded to v1.89.0 ( #2733 )
2025-05-16 16:51:38 +01:00
renovate[bot]
f4b571a227
fix(deps): update dependency sortable-tablesort to v4.0.2
2025-05-15 10:44:25 +00:00
renovate[bot]
25a1a968a3
fix(deps): update dependency php-debugbar/php-debugbar to v2.2.2
2025-05-15 08:04:19 +00:00
renovate[bot]
25a02de924
chore(deps): update phpstan packages to v2.1.15
2025-05-15 02:31:54 +00:00
FOSSBilling Bot and FOSSBilling 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 P and Adam 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
renovate[bot]
045930390c
chore(deps): update dependency rector/rector to v2.0.16
2025-05-13 03:33:43 +00:00
renovate[bot]
94d336d400
chore(deps): lock file maintenance
2025-05-12 12:33:23 +00:00
renovate[bot]
bb6ca81d2a
chore(deps): update dependency phpunit/phpunit to v11.5.20
2025-05-12 03:43:43 +00:00
renovate[bot]
c8d99fca39
chore(deps): update dependency sass-embedded to v1.88.0 ( #2724 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-11 17:04:22 +01:00
renovate[bot]
0746d2fe3b
fix(deps): update dependency php-debugbar/php-debugbar to v2.2.1 ( #2720 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-10 11:46:31 +01:00
renovate[bot]
071638e2fa
chore(deps): update streetsidesoftware/cspell-action action to v7 ( #2721 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-10 11:39:56 +01:00
Yağızhan
66ccb922d5
Fix company bank information not displaying on page footers ( #2723 )
2025-05-09 14:53:16 +03:00
Yağızhan and Belle 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
renovate[bot]
5a872a656d
fix(deps): update dependency @babel/plugin-transform-object-rest-spread to v7.27.2
2025-05-07 15:56:53 +00:00
3612985b72
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:55:41 +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
renovate[bot]
ea612aab5d
fix(deps): update dependency league/commonmark to v2.7.0 [security] ( #2714 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-07 08:15:04 -07:00