Commit Graph

385 Commits

Author SHA1 Message Date
David Bomba cd694869af Fixes for stripe connect 2021-05-10 10:04:30 +10:00
= d3f14887e1 WePay 2021-05-05 20:50:36 +10:00
= b6c538564e Background 2021-05-05 19:06:55 +10:00
David Bomba 8c00bce71b We Pay signup 2021-05-05 14:29:58 +10:00
David Bomba 1bcfa1b19d Add ability to logout all tokens from company 2021-04-27 09:34:35 +10:00
David Bomba 1f87ca6ca2 Delete migration directory after Import 2021-04-25 21:04:48 +10:00
David Bomba a09de38f35 Default mailer middleware 2021-04-25 20:22:24 +10:00
David Bomba d6bd19e6c0 Fixes for stripe connect 2021-04-22 22:56:00 +10:00
David Bomba bbaecb3c06 Fixes for routes file" 2021-04-22 21:53:21 +10:00
David Bomba 067c3cad62 Fixes for Stripe Connect 2021-04-22 21:22:55 +10:00
David Bomba f62518f63b Stripe Connect 2021-04-22 20:38:22 +10:00
Benjamin Beganović bdc564092e wip 2021-04-21 16:36:08 +02:00
David Bomba d879d1080b Fixes for stripe connecT 2021-04-21 08:38:50 +10:00
Benjamin Beganović eef9065f08 wip 2021-04-20 16:08:33 +02:00
David Bomba 68ddc6e7b1 Tests for ClientGatewayToken routes 2021-04-20 16:03:14 +10:00
David Bomba d0b4175442 Add sort route 2021-04-17 08:30:19 +10:00
Benjamin Beganović 84e930e971
Merge pull request #5405 from beganovich/v5-1004-ach-message
(v5) Send ACH notification e-mail after connecting bank account
2021-04-12 11:51:55 +01:00
David Bomba 4ede6bd41e Add subscription delete routes 2021-04-11 13:52:37 +10:00
Benjamin Beganović 7e1cc64247 Send ACH notification e-mail after connecting bank account 2021-04-10 10:44:06 +02:00
David Bomba 62401555cd Working on pro rata refunds 2021-04-10 14:07:08 +10:00
David Bomba 5be620ccde Refactor self updater 2021-04-09 15:53:12 +10:00
David Bomba b6d26fa7c9 Refactor self updater 2021-04-09 15:03:06 +10:00
David Bomba c77faa746d refactor self updating 2021-04-09 11:22:11 +10:00
Benjamin Beganović ec1d4e05c1 - Rename: $target_subscription to $target and all references
- Ability to pay for the upgrade
2021-04-08 16:53:54 +02:00
David Bomba 084c3b78a6 Add update route 2021-04-08 20:01:00 +10:00
Benjamin Beganović 969d9f03dc wip 2021-04-07 18:08:26 +02:00
David Bomba 404ee307fd Magic link maker 2021-03-31 11:07:54 +11:00
Benjamin Beganović 19dbed6765 wip 2021-03-29 16:33:21 +02:00
Benjamin Beganović c4ff24132e wip 2021-03-29 14:35:27 +02:00
Benjamin Beganović ed4fff2385 - Bundle qty without ability to increment/decrement value
- One time & subs 
- A table with all products included in subscription (qty, price, notes) 
- Two tables, one for subscriptions, one for one-time purchases 
- If no products, no table 
- Remove quantity from cached data that is being sent 
- Remove "billing_subscription_id" from data sent 
2021-03-25 16:52:03 +01:00
David Bomba abd3a89bc9
Subscriptions (#5248)
* Fixes for converting quote to invoice

* Fixes for naming PDFs

* Refresh entity prior to sending

* Fixes for subscriptions

* Add in required use

* Fixes for notifications

* Fixes for notifications

* Add with trasheD

* Rename BillingSubscriptions to Subscriptions

* Refactoring subscriptions
2021-03-25 21:55:59 +11:00
David Bomba 3ebe533fc8 include Account clas 2021-03-23 07:09:42 +11:00
David Bomba 32b8575ce1 Connected Gmail Account 2021-03-22 08:06:26 +11:00
Benjamin Beganović 3696b06566 Scaffold landing page for billing, controller & endpoint 2021-03-11 14:05:23 +01:00
David Bomba fdc4b266c0 Minor fix for route name 2021-03-10 20:16:44 +11:00
David Bomba ed8c880750 add reconfirm route 2021-03-10 20:15:24 +11:00
David Bomba 00eefcd781 Client Subscription scaffolding 2021-03-10 11:08:58 +11:00
David Bomba 053c1ca5fa billing_subscriptions cleanup 2021-03-09 08:29:59 +11:00
Benjamin Beganović 2de12ea973 Routes for billing subscriptions 2021-03-08 15:17:40 +01:00
= 616dea2c9d Add webcron support 2021-03-07 17:45:48 +11:00
David Bomba 1780db52bd Invite user route 2021-03-04 09:39:24 +11:00
David Bomba bfbde2ba51 Fixes 2021-03-03 21:04:10 +11:00
= c23b9b147d Fixes for attaching a user to different companies 2021-03-03 18:22:14 +11:00
= aa290172ae One Time Token Requests 2021-03-02 19:03:01 +11:00
= 18fa537791 Add one time token functionality 2021-03-02 18:52:25 +11:00
David Bomba c063aee812 enums for email delivery 2021-02-26 08:06:43 +11:00
David Bomba d1044a861e Bug fix for TwoFactorController 2021-02-24 10:00:51 +11:00
David Bomba 67d0f525af Postmark webhooks 2021-02-22 20:46:01 +11:00
David Bomba 53f79440c0 Connected accounts 2021-02-22 08:27:00 +11:00
= 087129788b Working on 2FA 2021-02-20 11:45:20 +11:00
David Bomba 4612379811 Fixes for file upload on dedicated routes 2021-02-16 20:02:33 +11:00
David Bomba 6edaf5d557 Entity upload routes + reorder api.php routes file 2021-02-16 08:14:30 +11:00
David Bomba 292c7b8068 Invoice upload document route 2021-02-15 22:34:05 +11:00
David Bomba dedc7c2cb3 Expense document uploads 2021-02-15 22:07:47 +11:00
David Bomba afb2306598 Credit upload route 2021-02-15 22:00:02 +11:00
David Bomba 7bf6d7c48a Document route for clients / company 2021-02-15 21:52:50 +11:00
David Bomba 269f83f317 Translations 2021-01-25 11:57:49 +11:00
David Bomba 2f58096872 Fixes for displaying Recurring Invoice PDF 2021-01-15 13:02:55 +11:00
David Bomba e791741efa Fixes for displaying recurring invoices in the client portal 2021-01-03 18:56:42 +11:00
Benjamin Beganović 92d2a514ca Supprot Stripe for webhooks 2020-12-19 13:11:42 +01:00
Benjamin Beganović 6fa90c7060 Change webhook order 2020-12-17 12:47:46 +01:00
Benjamin Beganović 942652b668 Update webhooks to support Checkout.com & apply php-cs-fixer 2020-12-17 12:27:15 +01:00
Benjamin Beganović d3033c902d wip 2020-12-16 15:25:42 +01:00
Benjamin Beganović 9662d9af92 Update webhooks for Checkout:
- Update api.php -> gateway_key => company_gateway_id
- Pass correct reference to url in CreditCard.php
- Update PaymentWebhookController.php to support new company_gateway_id
- Update PaymentWebhookRequest.php to resolve company gateway from correct input
2020-12-16 13:47:10 +01:00
David Bomba 8df553c4cc Working on CSV imports 2020-12-16 11:01:15 +11:00
David Bomba 6f451b8924 Remove redundant info() Change document download route 2020-12-13 20:46:29 +11:00
David Bomba 584bef52fc Working on import 2020-12-12 21:01:53 +11:00
David Bomba aa1a788d6e Public document download route 2020-12-12 19:46:28 +11:00
David Bomba 6a03bcc546
Merge branch 'v5-develop' into v5-develop 2020-12-09 07:25:16 +11:00
David Bomba 634e5cadcc remove redundant code 2020-12-08 21:49:23 +11:00
Benjamin Beganović 4a4a974a8d update matching on payment_webhook route 2020-12-07 14:48:58 +01:00
Benjamin Beganović 4959917b7e fix issue with multiple companies switching 2020-12-03 15:33:18 +01:00
Benjamin Beganović d84f5bc5bb Fixes for Checkout.com refunding 2020-12-03 13:38:57 +01:00
David Bomba 5a3c93bb3c Temp routes" 2020-11-27 20:14:01 +11:00
Benjamin Beganović ae88d5e08e php-cs-fixer format 2020-11-25 15:19:52 +01:00
Benjamin Beganović d503f1ee58 Refactor accepting new migrations:
- Remove {company} parameter from /migration/start
- Refactor logic for startMigration
2020-11-11 18:26:17 +01:00
David Bomba c995ac5f44 Add API Documentation to repo 2020-11-04 12:27:07 +11:00
= 6479b2fd3e Fix for laravel 8 route file regression + psalm cleanup 2020-11-01 16:09:09 +11:00
David Bomba b267353ced Fixes for credits view in portal 2020-10-29 21:19:10 +11:00
David Bomba 2c40adca8d Credit Emailer 2020-10-28 10:21:53 +11:00
David Bomba 6c1b952111
Refactor requests to use generics (#41)
* Validation rules for expenses

* Tests

* Tests
2020-10-22 17:46:02 +11:00
David Bomba f0a08544d6 Fixes for show recurring" 2020-10-21 20:24:33 +11:00
David Bomba 2b839f2ce1 Fixes for password reset route 2020-10-21 08:04:19 +11:00
David Bomba f0e4a94bee Task Statuses 2020-10-20 10:01:59 +11:00
David Bomba 07cbb6a71a Fixes for showing recurring invoices in the client portal 2020-10-16 07:35:15 +11:00
David Bomba 96750d5fdb Refactor for payments via client portal 2020-10-13 21:32:15 +11:00
David Bomba 05caec8aef expense categories 2020-10-13 15:08:56 +11:00
David Bomba 71535c0e41 Add tasks to API 2020-10-13 07:42:02 +11:00
David Bomba dd4d14d128 Implement Projects API 2020-10-08 09:25:39 +11:00
Benjamin Beganović 4e9bc0552d Rename "Downloads" to "Documents":
- Remove Livewire auto-publish from composer.json
- Replace old DocumentController with DownloadsController
- Rename DownloadsTable & downloads-table to DocumentsTable & documents-table
- New ShowDocumentRequest for displaying documents
- Change authorize() with DownloadMultipleDocumentsRequest
- Change route in PortalComposer
- Update Livewire assets
- Remove old documents routes
2020-09-28 12:04:34 +02:00
David Bomba 0e5199e052 Working on contact auth using contact key 2020-09-23 11:45:07 +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 66499a9a31 System Logs 2020-08-24 15:08:49 +10:00
Benjamin Beganović f4698c0108 Support multiple downloads 2020-08-20 03:10:04 +02:00
Benjamin Beganović 9b524f22e6 Download files with original name 2020-08-19 18:06:26 +02:00
Benjamin Beganović 4eb376e830 Enabe client uploads 2020-08-18 16:01:25 +02:00
Benjamin Beganović d55cfc42cf Separate page for download 2020-08-17 16:18:49 +02:00
Benjamin Beganović 4eb5490984 Enable downloads for the client 2020-08-14 17:29:26 +02:00
David Bomba bcd69dadc8 Change invoice -> entity 2020-08-12 10:41:26 +10:00
David Bomba 928a9d46af Download historical invoice 2020-08-12 10:01:27 +10:00
David Bomba c195f5b8a5 Add middleware to destroy document 2020-08-11 13:21:43 +10:00
David Bomba e183238b8e Add Shop Profile Route 2020-08-05 12:12:38 +10:00
David Bomba d7dbde3789 Implement PhantomJS 2020-08-04 21:00:19 +10:00
David Bomba a6967892ea system health route 2020-07-30 10:30:49 +10:00
David Bomba fd97aff3f1 Fixes for routes"
git push
2020-07-28 23:24:01 +10:00
David Bomba caad3661d5 Refactor to user company_key instead of company_token 2020-07-28 21:58:15 +10:00
David Bomba a8a0c7695c Shop routes 2020-07-28 21:30:11 +10:00
David Bomba d5b777206e Shop routes 2020-07-28 21:19:51 +10:00
David Bomba 2e165c11ca Bulk actions for tokens 2020-07-13 09:31:07 +10:00
David Bomba b96e2aa78b Bulk actions for tax rates 2020-07-13 09:29:44 +10:00
David Bomba 4c321d41c3 Change subscriptions to webhooks 2020-07-06 21:22:36 +10:00
Benjamin Beganovic 605069f05b Test PDF abilites in setup 2020-07-02 13:58:39 +02:00
David Bomba d3775fd059 Change PING route response 2020-07-02 20:14:19 +10:00
David Bomba 7a02938bd9 Route to check status of scheduler 2020-07-02 10:26:43 +10:00
David Bomba 302c98e08b Fixes for demo data 2020-07-01 21:33:42 +10:00
Benjamin Beganović 1e4e482801 Merge remote-tracking branch 'upstream/v2' into v2-2606-payment-webhook 2020-06-27 15:53:18 +02:00
Benjamin Beganović 1b06fb99b1 payment webhooks wip 2020-06-27 15:53:12 +02:00
Benjamin Beganović c2904d0c92 Require password update if not set when confirming email 2020-06-26 14:20:45 +02:00
David Bomba f927e08d41 Fixes for tests 2020-06-25 21:52:04 +10:00
David Bomba 06413da090 Document behind route 2020-06-24 22:12:43 +10:00
David Bomba 889ac65f26 Bulk actions on groups 2020-06-24 09:39:49 +10:00
David Bomba ddb246c8b0 Manifest and client routs 2020-06-24 09:18:38 +10:00
David Bomba afc8537a2f Add document routes 2020-06-23 21:05:41 +10:00
Benjamin Beganović 01094a2b5e Merge remote-tracking branch 'upstream/v2' into v2-2805-client-signup 2020-06-22 10:27:35 +02:00
David Bomba 6b7db63e66 Design repository 2020-06-22 08:34:02 +10:00
Benjamin Beganović 22aa182250 Merge remote-tracking branch 'upstream/v2' into v2-2805-client-signup 2020-06-18 15:57:05 +02:00
Benjamin Beganović 19f1750f22 Various portal changes:
- Added 'currencies' variable to portal compoer
- Added verification logic to StripePaymentDriver
- Fixed 'CreditCard' data array with failures
- 'verification' translations
- ACH verification views
- Verification routes
2020-06-09 14:42:23 +02:00
David Bomba 2e15e58f12 Fix for bad rouite 2020-06-09 19:01:10 +10:00
David Bomba 949061a213 Fix for deleting last company in account 2020-06-09 18:59:38 +10:00
David Bomba cd6ea87232 Add bulk actions to company gateway 2020-06-04 08:18:27 +10:00
David Bomba 4e84d83db1 Api routes upate 2020-06-01 09:59:26 +10:00
Benjamin Beganović 41c76e55bc client register wip 2020-05-28 17:39:38 +02:00
David Bomba c339c25d9c
Bulk actions for Payment Terms (#3752)
* Fixes for tests

* payment terms policies and repo

* Bulk actions for payment terms

* Fixes for documentation

* working on payment failure mailer
2020-05-26 18:20:50 +10:00
David Bomba 970c9bb87d
Payment Terms (#3737)
* Fixes for converting a quote to invoice

* Fixes for deleting an invoice

* Payment Terms CRUD

* Payment Terms

* Push PaymentTerms back into the DB

* Payment Terms

* Payment Terms

* Create api docs for payment terms
2020-05-23 13:28:24 +10:00
David Bomba 84a64773a6
Adjustments for OAuth (#3707)
* Fixes for null values in custom values

* Refactor mailing

* Working on send emails from GMail API

* Fixes for tests

* Test for GMail

* Adjustments for storing oauth token
2020-05-16 20:26:16 +10:00
Benjamin Beganović a613cfed7c
Payment refunds (#3687)
* Fix whereClientId when starting payment

* Refunding using Paypal

* Refunding engine

* Cleanup and making refund method work

* Remove "refund" method from BasePaymentController

* Add "refund" to PaypalExpressPaymentDriver

* Extract refunding into own classes

* Apply php-cs-fixer to PaypalExpress

* Refunding with stripe
2020-05-14 11:04:23 +10:00
Benjamin Beganović 14577fdfd0
Remove breadcrumbs (#3699)
* Remove breadcrumbs

* remove config
2020-05-14 11:02:23 +10:00
Benjamin Beganović 7f9abbf96b
Quick login with client contacts (#3680)
- New dropdown in navigation bar
- New switch_company route
- New $multiple_contacts variable in PortalComposer
2020-05-09 08:19:39 +10:00
Benjamin Beganović 2215f40ec3
Password protected invoices (#3635)
* Password protected invoices (wip)

* Add support for invitations

* Update comments & php-cs-fixer

* Add Forgot your password
2020-04-17 07:19:21 +10:00
David Bomba e5a230e0c7
Performance improvements (#3634)
* Adjustments for tests

* Implement handling of temp downloading resources

* Refactor paths

* Refactors for file paths

* Refactor paths

* Add in S3 adapter

* Refactor company Documment URL

* Refactor for entity pdf performance

* Refactors for invoice generation

* Enhancements for emails invoices

* Emails

* Fixes for client portal queries
2020-04-16 18:41:25 +10:00
David Bomba 74a6c4f2ee
Reminders (#3630)
* Performance improvements moving from str_replace to strtr

* Remove legacy docs

* Clean up credit transformer

* Working on invoice emails

* Clean up for invoice designs

* Tests for light and dark theme emails

* Working on reminder scheduling

* Reminder Job Class

* Fixes for github actions

* PHP CS

* Test for reminders

* Test for reminders
2020-04-15 10:30:52 +10:00
David Bomba ba55cc32e1
v5.0.4 (#3620)
* Version bump

* Refactors for refunds / credits

* Working on Company Ledger

* Company Ledger OpenAPI Documentation

* Version Bump

* Fixes for internal composer update
2020-04-11 21:19:05 +10:00
David Bomba 05443d69ec
Implement CompanyToken and Subscriptions CRUD (#3609)
* Working on Tokens CRUD

* Fixes for company filters

* Working on Token CRUD

* Tests for tokens

* Fixes for OPENApi

* Subscriptions

* Subscriptions
2020-04-09 20:48:04 +10:00
Benjamin Beganović 28cc7d5e52
Client portal improvements: (#3595)
-  Hide Create Payment Method if no gateways exist
- Payment Screen, add $amount
- Fix breadcrumbs
2020-04-07 07:23:05 +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 6df62faa82
Fixes for Invoice Designs (#3559)
* fixes for tests

* Working on Invoice Designs

* Update phpunit.yml

* Update phpunit.yml

* Working on sending an individual email

* Update phpunit.yml

* Fixes for designs

* Update phpunit.yml

* Working on sending entity email - individual

* Fixes for account creation

* Remove Laravel Horizon

* remove logging
2020-03-28 22:34:04 +11:00
Benjamin Beganović b8b5245253
Setup page real-time checks (#3551)
* Setup page real-time checks:
- New setup.js inside of webpack.mix.js
- SetupController methods rename from snake case to camel case
- Added Axios module inside of app.js

* Disable Laravel Mix notifications

* Fix naming for request
2020-03-27 08:43:44 +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 cdc3ef12c2
Include Horizon (#3519)
* Fixes for white label

* Include Laravel Horizon

* Add Account ID to user table AND ensure a user cannot create an invoice across companies

* restart horison after an update

* Fixes for app setup

* Minor fixes

* Fixes for client routes

* Fixes for tests

* minor fixes
2020-03-24 20:15:30 +11:00