Commit Graph

275 Commits

Author SHA1 Message Date
David Bomba f29dfb8f0f Add gates for lists 2022-09-03 10:48:22 +10:00
David Bomba a963fe1aee Fixes for canvaskit path 2022-09-02 20:53:32 +10:00
David Bomba b7c8e197e9 Improve query efficiency 2022-08-27 19:43:01 +10:00
David Bomba 9b629c80d9 Refactor to nested queries to improve query planner 2022-08-27 18:49:34 +10:00
David Bomba 071f2ee102 Post Merge v5-develop 2022-07-15 17:41:30 +10:00
David Bomba d46f55ed6d Add purchase orders to first load 2022-06-24 15:54:34 +10:00
David Bomba c0e3d2e677 add signup checks to flutter routes 2022-06-23 18:47:44 +10:00
Shift 19080933b6
Apply Laravel coding style
Shift automatically applies the Laravel coding style - which uses the PSR-2 coding style as a base with some minor additions.

You may customize the code style applied by adding a [PHP CS Fixer][1] or [PHP CodeSniffer][2] ruleset to your project root. Feel free to use [Shift's Laravel ruleset][3] to help you get started.

For more information on customizing the code style applied by Shift, [watch this short video][4].

[1]: https://github.com/FriendsOfPHP/PHP-CS-Fixer
[2]: https://github.com/squizlabs/PHP_CodeSniffer
[3]: https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200
[4]: https://laravelshift.com/videos/shift-code-style
2022-06-21 09:57:17 +00:00
David Bomba 5ce95010d5 Add switch to force react as front end 2022-06-16 13:04:05 +10:00
David Bomba 1e30bf4bdc Accept a purchase order 2022-06-15 15:20:00 +10:00
David Bomba 063d600bbd Vendor Portal - Purchase Orders 2022-06-14 22:18:20 +10:00
David Bomba 13a1447b79 Padding out react application 2022-05-27 13:10:32 +10:00
David Bomba 6f491dfb92 Update Copyright text 2022-04-27 13:20:41 +10:00
David Bomba fabf8e0bae Query lazy loading imrpovements 2022-04-11 17:45:37 +10:00
David Bomba da47f1bf32 Documentation for listResponse end point 2022-03-28 13:06:46 +11:00
David Bomba 4363f092be cleanup 2022-03-13 20:36:39 +11:00
David Bomba e2cd1e5c71 Cache company, company_user and user in container 2022-03-13 20:18:15 +11:00
David Bomba bf74e92130 Fixes for permissions on list response 2022-03-13 15:44:36 +11:00
David Bomba f9ebeaad9f set x-frame-origin 2022-03-10 16:02:12 +11:00
David Bomba 3e3b4e40e5 Fixes for permissions on list response 2022-01-10 19:48:18 +11:00
David Bomba 6c7e150bec Fixes for default quote/credit/invoice messages 2021-11-30 20:06:05 +11:00
David Bomba 07fdf3bc53 Content images 2021-11-25 11:16:47 +11:00
David Bomba 2db0ea41fc Slow down hosted attachments 2021-11-15 08:52:04 +11:00
David Bomba dc0efd2d91 Allow groups to be seen by all users 2021-11-07 09:01:19 +11:00
David Bomba 26f0bcede2 Prettify URL 2021-10-19 20:35:06 +11:00
David Bomba 5f8b03cc58 minor fixes 2021-10-18 21:46:26 +11:00
David Bomba a7a76e806c Minor fixes 2021-09-30 08:13:48 +10:00
David Bomba 0f001bb056 Adjust injection of flutter build 2021-09-26 18:44:41 +10:00
David Bomba dc790559e9 Merge branch 'v5-develop' into recurring_expenses 2021-09-15 10:16:24 +10:00
David Bomba bc473439fe Add user agent into meta tags 2021-09-15 10:15:14 +10:00
David Bomba 02de2607e0 Fixes for recurring expenses 2021-09-14 18:52:54 +10:00
= c9121f6b22 Force .foss for OSS release 2021-09-12 14:55:52 +10:00
= da9aebd642 Minor fixes for queries 2021-09-10 22:56:23 +10:00
= c9f940e914 Fixes for initial queries 2021-09-10 22:49:57 +10:00
= 707fe1dfdc Minor fixes 2021-09-10 22:14:38 +10:00
= 6e86a14634 Minor fixes 2021-09-10 22:07:08 +10:00
David Bomba ddc85d6f08 Minor fixes for hosted migrations 2021-09-07 17:36:57 +10:00
David Bomba 1ebff701fd Fixes for eager loading 2021-09-07 17:27:23 +10:00
David Bomba 25d8b8b079 Fixes for eager loading 2021-09-05 14:03:21 +10:00
David Bomba 268e4540b9 Add company gateways to mini load 2021-09-05 07:39:16 +10:00
David Bomba 32dc4554c2 Fixes for eager loading with multiple groups 2021-09-04 17:28:08 +10:00
= ddd93a2a66 fixes for failed payments 2021-09-02 21:33:44 +10:00
David Bomba a17227f2ca Recurring Invoices query 2021-08-29 20:34:53 +10:00
David Bomba 41faffb09f Add field on company table 2021-08-25 19:41:03 +10:00
= 36d5d505ba Fixes for wasm 2021-08-20 19:25:07 +10:00
= 1f360ed6d3 minor fixes 2021-08-20 19:14:27 +10:00
= 6027b98ba7 Fixes for custom flutter binary 2021-08-20 19:04:16 +10:00
David Bomba 5e9e28c146 Revert service worker changes 2021-08-18 08:04:31 +10:00
David Bomba 0c39ec65e0 Adjust updated_at for /refresh routes for is_large accounts 2021-08-17 20:49:31 +10:00
David Bomba bea7072f22 Clean up ifs 2021-08-09 08:59:28 +10:00
David Bomba acfb3ac3af Minor fixes 2021-08-09 08:44:51 +10:00
David Bomba d43984385a Fixes for migration email 2021-06-21 07:09:42 +10:00
David Bomba 36f6cbbcc9 Update license in codebase 2021-06-16 16:58:16 +10:00
David Bomba 5e33eb9130 Generate temp email address for direct client portal viewing. 2021-05-25 08:32:08 +10:00
David Bomba 0e61a6f491 Fixes for random subdomain generator 2021-05-24 19:39:21 +10:00
David Bomba f7a4588371 Fixes for refresh route - firstload/mini_loader 2021-05-19 18:38:51 +10:00
David Bomba 0dac08eaa6 Fixes for large account loading 2021-05-14 17:38:16 +10:00
= 2510fe9df8 Allow all users to see the task statuses 2021-05-09 19:03:47 +10:00
David Bomba 3c670592b9 Add default include for mini_load 2021-05-06 13:29:59 +10:00
David Bomba eaeb47090a Load designs for mini load 2021-05-06 08:42:18 +10:00
David Bomba 5510993d13 Fixes for gateway fees 2021-05-03 21:51:00 +10:00
David Bomba deb55dd6c8 Add in constrained queries 2021-04-29 11:31:04 +10:00
David Bomba 61828d412a Customize the login return request 2021-04-29 08:44:40 +10:00
David Bomba 32fd16dfb7
Merge pull request #5284 from turbo124/v5-develop
Subscriptions
2021-03-30 20:37:28 +11:00
David Bomba 96c191daf0 Add system logs to first load 2021-03-30 09:32:33 +11:00
Benjamin Beganović d37d727d2c - Fix typo in BaseController.php
- Add labels on top of billing page (one-time, or/and subscription)
- Show products
- Pull the price from the service
2021-03-29 12:58:03 +02:00
David Bomba db7df69db7 Recurring services - trial phase' 2021-03-29 14:49:29 +11:00
David Bomba d7bf927549 Set exchange rates on invoices 2021-03-29 13:14:55 +11:00
= f4d1917f32 Hosted feature implementation 2021-03-07 21:14:53 +11:00
David Bomba af472b21c1 Working on filtering responses based on user permissions 2021-01-29 23:05:03 +11:00
David Bomba 9b72acf506 Payment notifications for autobilling 2021-01-27 21:56:50 +11:00
David Bomba b4bf6cc760 Add document list view 2021-01-27 21:38:28 +11:00
David Bomba a0d0c77630 translations 2021-01-25 09:24:13 +11:00
David Bomba cfc144b6ec Group Document defaults 2021-01-20 07:22:14 +11:00
David Bomba 934610a01c Update copyright + version bump + set canadian dollar symbol to $ 2021-01-04 08:54:54 +11:00
= 53ff009d74 fix for company.users.company_user 2020-12-26 19:03:24 +11:00
David Bomba 23f07a901b Version bump to 5.0.35 2020-12-11 23:20:46 +11:00
David Bomba d07dedf264 Add tax_rates relation to company_user 2020-11-27 08:05:30 +11:00
Benjamin Beganović ae88d5e08e php-cs-fixer format 2020-11-25 15:19:52 +01:00
David Bomba b1591632d8 Refactor defaults for invoice PDF 2020-11-13 22:52:11 +11:00
David Bomba fe5218fd2c Fixes for resolving company_user from user object 2020-11-13 21:42:06 +11:00
David Bomba 3bec5a4044 Refactor login routes 2020-11-13 20:09:20 +11:00
David Bomba ddaba5a953 Fix for refresh query 2020-11-11 19:55:53 +11:00
David Bomba 9aeb2d7a5b Psalm cleanup 2020-10-28 21:10:49 +11:00
David Bomba 1b2922b57c credit payment type 2020-10-26 11:58:08 +11:00
David Bomba 8b3fafa19c Fixes for first_load 2020-10-26 08:16:07 +11:00
David Bomba b00e0b5a04 Fixes for first_load includes 2020-10-26 07:56:02 +11:00
David Bomba c8e2d94b3f Fixes for tests + remove swoole 2020-10-22 21:14:14 +11:00
David Bomba 3d59717776 Fixes for credit payments 2020-10-21 15:03:22 +11:00
David Bomba bc2b0f4aae Fix for recurring number collisions - use dispatchNow() 2020-10-20 11:53:54 +11:00
David Bomba a3afa8ede9 Remove project name unique constraint 2020-10-19 21:59:58 +11:00
David Bomba 708db5a991 Improve eager loading - first load 2020-10-18 18:46:10 +11:00
David Bomba 44d31ce326 Move cache clearance to base controller 2020-10-09 17:55:03 +11:00
David Bomba 4b00d3a82a Improve eager loading 2020-09-19 20:05:29 +10:00
= 20e4c4b1ad Improve eager loading 2020-09-19 12:05:54 +10:00
David Bomba 0c015cb4bc Fixes for recurring invoices 2020-09-10 11:05:42 +10:00
David Bomba ba75a44eb8
Laravel 7.x Shift (#40)
* Adopt Laravel coding style

The Laravel framework adopts the PSR-2 coding style with some additions.
Laravel apps *should* adopt this coding style as well.

However, Shift allows you to customize the adopted coding style by
adding your own [PHP CS Fixer][1] `.php_cs` config to your project.

You may use [Shift's .php_cs][2] file as a base.

[1]: https://github.com/FriendsOfPHP/PHP-CS-Fixer
[2]: https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200

* Shift bindings

PHP 5.5.9+ adds the new static `class` property which provides the fully qualified class name. This is preferred over using class name strings as these references are checked by the parser.

* Shift core files

* Shift to Throwable

* Add laravel/ui dependency

* Unindent vendor mail templates

* Shift config files

* Default config files

In an effort to make upgrading the constantly changing config files
easier, Shift defaulted them so you can review the commit diff for
changes. Moving forward, you should use ENV variables or create a
separate config file to allow the core config files to remain
automatically upgradeable.

* Shift Laravel dependencies

* Shift cleanup

* Upgrade to Laravel 7

Co-authored-by: Laravel Shift <shift@laravelshift.com>
2020-09-06 19:38:10 +10:00
David Bomba 713d967e8e fixes for payment drivers 2020-08-17 08:58:52 +10:00
David Bomba cb508e1daa Add client gateways to first-load array 2020-08-12 09:04:39 +10:00
David Bomba b780be3995 Ensure group settings can be archived + tests! 2020-08-02 16:31:55 +10:00
David Bomba 2b9610ea02 clean up for basecontroller 2020-07-28 22:06:47 +10:00
David Bomba caad3661d5 Refactor to user company_key instead of company_token 2020-07-28 21:58:15 +10:00
David Bomba 04ed1d4fe3 formatting 2020-07-26 20:21:55 +10:00
David Bomba 0a93e6ea5c Fixes for refresh route 2020-07-26 18:30:55 +10:00
David Bomba 3c38fd2cf6 Fixes for refresh route 2020-07-26 15:12:40 +10:00
David Bomba 34575554af Working on handling refresh route 2020-07-26 08:27:49 +10:00
David Bomba d36fdb4025 Fixes for refresh query 2020-07-25 09:02:32 +10:00
David Bomba 643f709248 Fixes for refresh route 2020-07-24 19:39:43 +10:00
David Bomba 40b8ecf7c5 Fixes for refresh route 2020-07-24 19:05:52 +10:00
David Bomba c6e4889d6d fix for gateway refresh route 2020-07-23 21:39:03 +10:00
David Bomba 8e02662fd0 Fix for refresh route 2020-07-23 21:36:50 +10:00
David Bomba 2f07a36d76 Fixes for unique invoice number rule 2020-07-23 21:30:51 +10:00
David Bomba 41fdbd7978 Add client ids to activities 2020-07-23 21:20:05 +10:00
David Bomba ce3696257f Fixes for base repo invitations 2020-07-23 13:55:11 +10:00
David Bomba 91c40b0517 Update enabled_modules value 2020-07-21 21:26:58 +10:00
David Bomba 0d8d793a4c Fix for including ALL relations on the refresh route if updated_at is provided 2020-07-21 21:19:21 +10:00
David Bomba d2cc1e4d65 Fix for company not returning on refresh route 2020-07-17 07:13:32 +10:00
David Bomba 708422dd9b Add hashed transformer for company tokens 2020-07-13 12:54:56 +10:00
David Bomba b4f669ad59 Update refresh route to filter all subqueries by updated_at 2020-07-10 09:28:09 +10:00
David Bomba b9c860bfc3 Add task to check company size 2020-07-05 18:59:28 +10:00
David Bomba 29fcca26f8 Nest HTTP requirements inside a working installation - allows non secure routes to be used to setup the application 2020-06-28 13:47:13 +10:00
David Bomba 2fadadf5d4 Change document->path to ->url 2020-06-22 15:52:20 +10:00
David Bomba dbff1ab6ab remove x-api-version and replace with x-minimum-client-version 2020-06-22 07:30:25 +10:00
David Bomba a669e9342f Require HTTPS configurable 2020-06-18 09:49:05 +10:00
David Bomba fc40159d36 Fixes for currency precision 2020-06-15 21:42:46 +10:00
David Bomba 1dd73e3a06 Add expose headers 2020-06-13 07:37:36 +10:00
David Bomba 4dca7da070 Fixes for payment side of ledger 2020-06-06 11:07:31 +10:00
David Bomba dea5543c06 Fixes for setup page flow 2020-05-28 19:40:35 +10:00
David Bomba fe3242a095 Adjustments for setup page 2020-05-28 18:54:13 +10:00
David Bomba 8129a5b49d
Add payment terms to transformers (#3738) 2020-05-23 13:33:44 +10:00
David Bomba ac0d63b0b2
Fixes for Readme (#3721)
* Skip preview tests

* Fixes for product test

* Fixes for tests

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Fixes for incorrect payment types

* Refactor class nameS

* Entity Notification refactor

* Entity Notifications

* Add oauth_provider to User transformer

* Invoices can only be deleted in the balance in zero
2020-05-19 22:54:22 +10:00
David Bomba a0eecdd755
Fixes for tests (#3701)
* Update Exchange rate Data once a day

* Tests for currency conversions

* Fixes for tests

* Fix for adding blank product keys

* Class for logging emails sent

* Fixes for tests

* Fixes for testS

* Include credits in first_load=true

* Fixes for tests

* fixes for tests

* Fixes for tests:

* Fixes for tests

* Fixes for tests
2020-05-14 19:08:49 +10:00
David Bomba aa690578e3
Implement Currency Conversion library. (#3643)
* Fixes for testS

* Fixes for migration

* Fixes for migratin

* Query performance improvements

* Check Data Script

* Currency Conversion API

* Implement currency conversion

* Currency Conversions
2020-04-19 20:29:58 +10:00
David Bomba 6d7b7ca9a3
Invoice Deletion - Ledger (#3590)
* Fixes when implementing

* php_cs

* Clean up

* Clean up

* Working on adjusting ledger when an invoice is deleted
2020-04-04 21:32:42 +11:00
David Bomba cfafd65be0
Performance improvements for eager loading (#3584)
* Fixes for Sentry

* performance improvements for eager loading
2020-04-02 20:02:39 +11:00
David Bomba ceb82ad275
Fixes for permissions (#3575) 2020-04-01 23:34:50 +11:00
David Bomba 7a13f688e7
Setup Workflow (#3565)
* Fixes for setup
2020-03-30 17:40:21 +11:00
David Bomba 6a7079b0be
Implement Github actions (#3547)
* Update phpunit.yml

* Update phpunit.yml

* Update .env.ci

* Update phpunit.yml

* Update .env.ci

* Update phpunit.yml

* Update phpunit.yml

* Update phpunit.yml

* Update phpunit.yml

* Update .env.ci

* Update phpunit.yml

* Update phpunit.yml

* Update phpunit.yml

* Update phpunit.yml

* Force /setup if system requirements are not met

* Update .env.ci

* Update phpunit.yml

* Minor changes for github actions"

* Fixes for github actions

* Fixes for github actions

* Fixes for github actions

* Fixes for github actions

* Fixes for github actions

* Fixes for github actions

* Fixes for github actions

* Fixes for github actions

* cs-fixer

* cs-fixer

* Fixes for github actions

* db ports github actions

* Refactor the template engine
2020-03-26 14:23:57 +11:00
David Bomba 1d11358215
Ping route (#3541)
* minor fixes

* minor fixes

* Fixes for self update

* fixes for template previews

* Add report_errors variable

* Ping route
2020-03-25 19:36:47 +11:00
David Bomba 43e57d0117
Fixes for self-update (#3514)
* minor fix for payment notifications

* styleci

* Limit Self updating to self hosters only
:

* Fixes for designs

* Minor fixes for self-update
2020-03-21 16:37:30 +11:00
David Bomba 4c23d43138
Working on Setup workflow (#3509)
* Refactor designs to remove whitespace

* enable dummy data for templating

* Insert faker data into templates

* Fixes for user deletion

* Documentation on User controller:

* Working on app setup

* Files for app setup

* Working on Setup

* Final fixes for setup controller

* Fixes for setup

* Fixes for first install

* Minor fixes
2020-03-18 20:40:15 +11:00
David Bomba b157ee3917
Fixes for Credit PDF generation (#3417)
* Fix for design GET route

* Fixes for Credit PDF creation
2020-03-04 10:51:50 +11:00
David Bomba 1393179160
Multiple fixes and features (#3411)
* Performance improvements for seeding

* Differentiating between system notification and user notifications

* Remove hard coded webhook url

* Working on system and user notifications

* notifications

* Set the currency on client if blank

* Refactor for inserting invoice defaults

* Refactor Default Invoice/Quote/Credit objects

* working on credits

* Implement mark_sent for quotes and credits
2020-03-03 20:44:26 +11:00
David Bomba 0061da2600
Update Company User Route (#3398)
* Working on CompanyUser route

* CompanyUser update route

* tests for updating a company user
2020-02-28 23:11:56 +11:00
David Bomba a79c7bf60d
Code Cleanup
* Working on emailing invoices

* Working on emailing and displaying email

* Working on emailing and displaying email

* Email invoices

* Fixes for html emails

* Ensure valid client prior to store

* Ensure client exists when storing an entity

* refactor for emails

* Design Transformer

* Include designs in first_load response

* Code cleanup
2020-02-15 20:06:30 +11:00
David Bomba 4a3d37a42b
Flutter Client ! (#3325)
* Working on emailing invoices

* Working on emailing and displaying email

* Working on emailing and displaying email

* Email invoices

* Fixes for html emails

* Restart queue after self-update

* Email Invoices

* Push Flutter Web Clientgit statusgit status!
2020-02-13 22:27:42 +11:00
David Bomba 9a19f7fd4c Fixes for invoice update and invoice designs (#3302)
* BaseController cleanup

* Working on invoice designs

* Working on invoice designs

* working on invoice designs

* working on invoice designs

* invoice designs

* Working on Invoice Designs

* Fixes for user settings object

* Working on invoice designs

* Fixes for encoded user settings

* Working on contact localized invoice pdfs

* working on invoice designs

* Fix for invoice update 500 error
2020-02-10 20:53:02 +11:00
David Bomba e8f19f9b63
Fixes for invoice save (#3295)
* Working on Invoice Designs

* Fixes for invoice save

* Threshold changes for sending large accounts on ?first_load=true
2020-02-07 08:09:15 +11:00
David Bomba f519fc765b
Improvements for eager loading (#3290)
* Working on invoice designs

* Working on Invoice Designs

* Improve eager loads

* Improvements for eager loading
2020-02-06 23:00:22 +11:00
David Bomba a1ae991684
Working on projects and tasks (#3232) 2020-01-21 11:32:34 +11:00