Commit Graph
87 Commits
Author SHA1 Message Date
Belle Aerni 464771215a Improvements to the Extension Directory integration (#1696)
* Added the ability to view extension readmes

* Move them to a new tab as well
2023-10-06 08:04:14 +03:00
FOSSBilling BotandFOSSBilling Bot 76d89eb410 Apply PHP Code Styling & Quality Changes (#1649)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-09-28 05:29:52 -07:00
f2f9701359 Mark as paid now adds funds if the Payment Provider is "Custom". (#1487)
* When you press the "Mark as paid" Button on the invoice, you can now enter a transaction id.
If the Payment gateway of the Invoice is "Custom" and it's enabled, the transaction ID will be used to add transactions that add funds in the amount of the invoice to the customer. Then, it will be marked as paid, just like with any other payment provider.

* Added processTransaction method to the Custom Payment Gateway.
* Fixed tests by removing unnecessary tests for Payment Adapters that don't have the processTransaction method.


---------

Co-authored-by: Christoph Schläpfer <chris+github@cleverly.ch>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
2023-09-28 13:14:06 +02:00
Belle Aerni 1881ff7bfb Bump PHPStan analysis level (#1641)
* Bump PHPStan to level 2
2023-09-28 09:06:58 +02:00
Christoph Schläpfer 95cdf9d329 Replaced Bank Clearing Code with BIC / SWIFT Code 2023-09-27 22:10:54 +02:00
Christoph Schläpfer bc5c5657f3 Cleanup & Spelling 2023-09-27 12:41:04 +02:00
Christoph Schläpfer e96828b52a Cleanup & Spelling 2023-09-27 12:32:48 +02:00
Christoph Schläpfer fbc303a42a If accessing invoices via hash is disabled, logged in clients will be redirected to their invoice page if they are not the buyer on the invoice they are trying to view. 2023-09-27 12:25:38 +02:00
Christoph Schläpfer a36695365d Made invoice to be checked against client as well. 2023-09-27 11:23:07 +02:00
Christoph Schläpfer 9be239612a Removed debugging statements 2023-09-27 10:58:24 +02:00
Christoph Schläpfer 0a9b4954eb Spelling 2023-09-27 10:38:07 +02:00
Christoph Schläpfer 971be2a345 Merge branch 'main' into improve_pdf_invoice 2023-09-27 10:26:59 +02:00
Christoph Schläpfer 6781d70137 Added functionality to choose if invoice is accessible via Hash. 2023-09-27 10:25:32 +02:00
FOSSBilling BotandFOSSBilling Bot f37753d4a7 Apply PHP Code Styling & Quality Changes (#1638)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-09-26 17:10:30 -07:00
Christoph Schläpfer 46b8057948 Reworked How Invoices look, added Bank Clearing Code & Account Number to Company settings. 2023-09-26 20:25:10 +02:00
YağızhanandBelle Aerni dbcf9a3ad4 Rewritten bin/prepare & +FOSSBilling_Environment (#1622)
* Rewritten bin/prepare & +FOSSBilling_Environment

* -redundancy

* - unnecessary bits

* nothing much

* Fix inverted logic, use new function in missed location

---------

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-09-22 18:19:02 -07:00
FOSSBilling BotandFOSSBilling Bot a35aa05b9b Apply PHP Code Styling & Quality Changes (#1540)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-08-15 14:30:28 +02:00
Belle AerniandJaap Marcus d2a18581c4 Fix / change invoice incrementation logic (#1474)
* Fix invoice incrementation logic

Co-Authored-By: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>

* Oh I hate these tests

* Remove duplicated semicolon

---------

Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
2023-08-12 02:19:01 +01:00
fefbcd21b0 Apply PHP Code Styling & Quality Changes (#1498)
* Apply PHP Code Styling & Quality Changes

* Delete these

* Update .gitignore

* Fixes for PHPStan

* Ignore spelling in the gitnore

* Allow null for that type

Honestly doing so makes ZERO sense, but it matches the current behavior.

---------

Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-07-30 08:57:44 -07:00
Yağızhanandfossbilling-bot fd872ac941 Implement PHP-CS-Fixer as an automated workflow (#1240)
* Implement PHP-CS-Fixer as an automated workflow

* Apply PHP-CS-Fixer changes

---------

Co-authored-by: fossbilling-bot <121974958+fossbilling-bot@users.noreply.github.com>
2023-07-30 06:49:11 -07:00
Christoph SchlaepferandAnuril 23c343c33b Invoices now get generated for all orders at order time. (#1494)
Co-authored-by: Anuril <ta@TAPC01.localdomain>
2023-07-30 15:20:51 +02:00
Jelmer Visser ad94a9f325 1485: Fixed tax support checkbox (#1486) 2023-07-29 17:47:19 +02:00
YanickandBelle Aerni 74406627f1 Make invoice customizable (#1461)
* impl invoice customizing

* use invoice object instead of variables

* impl fossbilling native functions

* rename some variables

* update twig template

* impl support for custom file

* remove comment

* use di twig

* remove var

* use native format_datetime from twig

* remove dependency to old html code

* fix logoSource not being defined

Commited from my iPhone

* Minor fixes and misc changes

---------

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-07-27 07:19:17 -07:00
Belle Aerni 5d862a7f18 Make tables sortable in the admin panel (#1406) 2023-07-04 14:35:44 +02:00
Belle AerniandJohn @ S4 20e38a162f Exception messages cleanup (#1376)
* Misc exception messages improvements

* Cleanup / improve server manager exceptions

* Tests :)

* Some registrar exception cleanup

* Clean up payment gateway exceptions

* Some other misc improvements

* Update Resellerclub.php

* Fix typo in Namecheap error message

---------

Co-authored-by: John @ S4 <64874788+John-S4@users.noreply.github.com>
2023-07-03 14:54:23 -07:00
Belle Aerni 3dccf978ad Fix some malformed search statements (#1400)
* Fix some malformed search statements

* Fix these stupidly written tests
2023-07-02 22:55:56 +03:00
Belle Aerni 52a53efa48 Cleanup the PDF generator code a bit (#1402)
* Cleanup the PDF generator code a bit

* Fixed a few var names I missed
2023-07-02 08:17:54 +02:00
Belle Aerni 3752db5096 Beef up invoice & ticket hash generation (#1309)
* Beef up invoice & ticket hash generation

* Update test for the new length
2023-06-22 09:51:27 +03:00
Belle Aerni c49beb0eb8 Replace default email templates with HTML ones (#1302)
* Start replacing email templates with HTML ones

* Updated some more

* Spelling

* Completed some more email templates

* Completed the rest of them

* Fix spelling

* Some minor fixes + improvements
2023-06-19 11:46:56 +03:00
Belle Aerni cde0f219f1 Fix order popup breaking Huraga layout (#1339) 2023-06-19 10:30:41 +03:00
Belle Aerni 64d60e254a Apply discount credits to account balance (#1312) 2023-06-12 06:29:09 +02:00
Yağızhan d909d77f7e -Unnecessary whitespace in the class headers (#1219) 2023-05-07 13:24:29 -07:00
Yağızhan 412e4a9fbd Standardized the class headers (#1212) 2023-05-06 13:06:17 +01:00
Adam Daley e54569d2cd Introduce namespaces and strict typing for FOSSBilling library classes (#1206) 2023-05-04 01:02:06 +01:00
Yağızhan 950e4dccef Type hinting the DI methods and variables (#1201) 2023-05-01 21:01:35 +03:00
Yağızhan 884e66aa4b Removed getSettingsRoutes & hasSettingsRoutes (#1196) 2023-05-01 13:27:39 +03:00
Adam Daley 053f22a8bb Remove Box DI class in favour of native dependencies (#1193) 2023-04-30 08:47:52 +01:00
Belle AerniandAdam Daley e3d6bc9ad9 Introduce a cspell workflow (#1192)
* Introduce a cspell workflow

* Update cspell.yml

* Update cspell.yml

* Why is it seemingly ignoring the config?

* Waiit a min

* Fixed a bunch of spelling mistakes

* And set it back to incremental mode

* That is actually supposed to be spelled wrong..

Because BoxBilling :)

* Capitalization

* I swear I fixed this as well

* Update cspell.json

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2023-04-30 00:05:25 -07:00
Belle Aerni d2e1a6434e A few small fixes (#1185) 2023-04-29 10:43:29 +02:00
Adam Daley e01c601d6b Fix SQL error on cancelling invoice (#1162)
* Fix SQL error on cancelling invoice

Update Invoice service to check for empty string when setting `gateway_id` to fix SQL error.

* Update Invoice `gateway_id` check

Update Invoice `gateway_id` check to simplify by just checking for `empty()`.
2023-04-25 11:29:51 -07:00
Yağızhan a406876cb7 Minor PHPDoc update (#1145)
* Dropped Box_FileCacheException

* Minor PHPDoc update
2023-04-22 17:40:11 +01:00
Belle Aerni 0c822244d7 Ensure the next invoice # is interpreted as an int (#1139) 2023-04-22 09:31:39 -07:00
Adam Daley ca67aeb44f Refactor request handling to use native functionality (#1122)
Refactor request handling to remove custom library/Box/Request class where possible and instead use native PHP functionality.
2023-04-21 15:07:59 +02:00
Belle Aerni 628b6f559a Minor admin_default improvements (#1080) 2023-04-07 00:04:27 -07:00
Belle Aerni 50fc50163f Clean up deprecated CSS (#1063)
* Clean up deprecated CSS

* Fix a few old button classes

* Port Servicelicense pages to tabler

* Remove a bunch of old icons

* Run Huraga and Installer CSS through autoprefixer
2023-04-06 15:05:28 -07:00
Shamshid 185466f374 Major and minor design improvements to modules (#999) 2023-03-28 07:46:59 +01:00
Belle Aerni 9faa981c58 Replace usage of array_get (#989)
* Replace usage of array_get

* Fixes

* And a few more

* Remove remaining references

* Update Service.php

* Few more fixes

* Fix.. I think?

* Fix Client / Invoice updates

* Fix stats

* Fix issues noticed during code review

* More fixes

* And some more fixes :)
2023-03-27 23:44:30 -07:00
Adam Daley 9fb19e02d7 Improve date/datetime format handling and customisability (#948)
* Replace custom Twig bb_date/bb_datetime filters

Replace bb_date and bb_datetime Twig filters with format_date / format_datetime to better support i18n and customisability.

* Update templates to use format_date/format_datetime

Update all templates to use format_date/format_datetime (where appropriate and where not already used).

* Update locale configuration options

Update configuration options to include new locale settings, and ensure new options are used throughout.

* Add reset button to admin theme date picker

Add a reset button to the admin_default theme date picker to allow dates to be cleared, and fix an issue with Order module not allow blank dates. Resolves #938.
2023-03-24 23:16:07 +00:00
Belle Aerni 740f9e1371 Cleanup some more admin_default inconsistencies (#972) 2023-03-19 00:10:48 +00:00
Belle Aerni 94966a6908 Clean up some admin panel inconsistencies (#960) 2023-03-16 08:31:15 -07:00