Commit Graph

274 Commits

Author SHA1 Message Date
David Bomba 69786492e0 Minor update 2023-07-31 18:22:34 +10:00
David Bomba 1127f3ea5f Additional payment logic 2023-07-14 17:09:23 +10:00
David Bomba 3f610d68eb Refactor for subdomain validations: 2023-06-07 11:21:26 +10:00
David Bomba cc100de1bd Fixes for static analysis 2023-04-27 10:19:55 +10:00
David Bomba 48c2d36830 Fixes for linking multiple invoices 2023-04-26 07:56:47 +10:00
David Bomba 1aa5368e31 Update blacklist rules 2023-04-25 14:38:43 +10:00
David Bomba e410741665 Minor fixes for quotas 2023-04-22 09:18:52 +10:00
David Bomba c90d930f89 Fixes for Product Sales Reports 2023-04-14 10:27:00 +10:00
David Bomba 5a42b89d55 cs fixer 2023-03-18 18:24:56 +11:00
David Bomba 8bddb49e6c Fixes for payment tests 2023-03-11 14:26:13 +11:00
David Bomba d919134bb9 Fixes for payment tests 2023-03-11 14:25:18 +11:00
David Bomba eeb87dc5cb Fixes for deleting partial payment payments on a single invoice 2023-03-11 12:26:56 +11:00
David Bomba 30f85d8e23 Add logging around webhooks 2023-03-03 09:09:04 +11:00
David Bomba cfdaa1517c php-cs-fixer 2023-02-22 17:37:16 +11:00
David Bomba 718551f59d Fixes for tests 2023-02-21 08:11:01 +11:00
David Bomba 2662638974 Return false if no excluded permissions are encountered 2023-02-20 20:00:10 +11:00
David Bomba 4babfbb651 php-cs-fixer 2023-02-16 12:36:09 +11:00
David Bomba 6c86d7151a Update copyright year 2023-01-29 09:21:40 +11:00
David Bomba 1b1fc71d0d Validation rules for clients in scheduler 2023-01-17 22:40:40 +11:00
David Bomba 2e24fc34c7 domain rules 2023-01-11 20:41:09 +11:00
David Bomba d0bb55f0c2 Refactor remaining entities to attach using data rather than paths 2022-11-28 14:16:46 +11:00
David Bomba 20810bd7fe Minor fixes for company count 2022-11-24 20:33:52 +11:00
David Bomba 637c2cc954 Fixes for bank transaction imports 2022-11-15 23:04:14 +11:00
David Bomba 98e920a518 update lists 2022-11-15 07:40:32 +11:00
David Bomba 18a038a34d Fixes for 2FA 2022-11-09 22:22:52 +11:00
David Bomba f1682ca122 Adjustments for has phone class 2022-11-07 07:44:19 +11:00
David Bomba b3e02c8a70 Override phone number with international format 2022-11-03 17:31:46 +11:00
David Bomba e06563c00f Override phone number with international format 2022-11-03 17:26:52 +11:00
David Bomba 1e249e87fe Override phone number with international format 2022-11-03 17:22:41 +11:00
David Bomba 7c6e5843d3 Override phone number with international format 2022-11-03 17:20:57 +11:00
David Bomba 27954d1ee2 Override phone number with international format 2022-11-03 17:16:06 +11:00
David Bomba 1368da0c90 Override phone number with international format 2022-11-03 17:14:02 +11:00
David Bomba e59cd01996 Override phone number with international format 2022-11-03 17:12:13 +11:00
David Bomba c0870afded Fixes for verifyphone 2022-11-03 16:45:56 +11:00
David Bomba 65a5f0d348 minor fixes 2022-11-03 09:06:14 +11:00
David Bomba aa206cb406 Fixes for verifyphone 2022-11-02 21:36:57 +11:00
David Bomba 270b0106fc Validate phone numbers 2022-11-02 21:30:25 +11:00
David Bomba 25a298f754 Minor fixes for refunds 2022-11-01 08:07:24 +11:00
David Bomba 3613a0e2d5 Improve client imports 2022-09-10 09:44:43 +10:00
David Bomba 496da291d8 Prevent negative credits from being applied as payments to a invoice 2022-08-24 16:08:30 +10:00
= 16a1c65354 valid credits rules 2022-08-22 15:05:02 +10:00
= 4e3f52a1ee Refactor for payments to improve query efficiency 2022-08-22 13:24:33 +10:00
David Bomba e716bb5a02 Fixes for showing fees in both the product and tax tables 2022-08-19 08:41:50 +10:00
David Bomba 24b37e2789 Minor fixes for PDF generation 2022-08-04 12:40:14 +10:00
David Bomba cef753bbd0 Update lists 2022-07-27 16:45:58 +10:00
David Bomba 071f2ee102 Post Merge v5-develop 2022-07-15 17:41:30 +10:00
David Bomba 09d5b7c38f Wrap paid to date in transaction 2022-07-11 18:24:49 +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 e071c3aae7 Ensure freshness of models 2022-05-27 09:51:54 +10:00
David Bomba f604e463c2 Throttle payment methods to prevent spam: 2022-05-11 15:25:33 +10:00
David Bomba ffbfc11407 Add domains to blacklist 2022-05-11 12:23:40 +10:00
David Bomba 25aadf9202 Email blacklists 2022-04-30 11:55:39 +10:00
David Bomba 8cfdbbe3ed Add blacklist rules 2022-04-29 08:47:19 +10:00
David Bomba 6f491dfb92 Update Copyright text 2022-04-27 13:20:41 +10:00
David Bomba 6ac34ac5a1 fixes for invoice requests 2022-04-08 14:47:10 +10:00
David Bomba 17b1119466 Allow draft credits to be used in payments 2022-04-07 09:06:02 +10:00
David Bomba e4fc7fa55a Fixes for tests 2022-03-29 20:06:35 +11:00
David Bomba c65948d10c Fixes for client limits on hosted 2022-03-06 14:41:08 +11:00
David Bomba ae60acd770 minor fixes for calculations 2022-02-24 09:35:05 +11:00
David Bomba cea49c43fc Minor fixes 2022-02-01 10:03:51 +11:00
David Bomba 548510d686 Improvements for credits 2022-01-28 16:30:40 +11:00
David Bomba 3d14f24f49 Validation rules for converting expired quotes to invoices 2022-01-27 12:36:42 +11:00
David Bomba 0b2a8eac1a Minor fixes for checking payment values 2022-01-26 17:30:43 +11:00
David Bomba 7fd1446f43 Additional logic for updating a payment in form request 2022-01-15 10:54:36 +11:00
David Bomba 77b85f123a Minor fixes for playful design 2022-01-12 17:47:10 +11:00
David Bomba 5bd0b043e0 Minor fixes for playful design 2022-01-12 17:34:47 +11:00
David Bomba 0c7271524c Merge branch 'v5-develop' of https://github.com/turbo124/invoiceninja into v5-develop 2022-01-12 17:29:33 +11:00
David Bomba 99db919d60 Logging for balances 2022-01-12 17:29:28 +11:00
David Bomba 5f51ea9002 Fixes for payment request 2022-01-12 14:40:05 +11:00
David Bomba f66c3076f1 fixes for adding users into the production system 2022-01-11 19:08:08 +11:00
David Bomba 1d8e5a33bf Fixes for checking valid project 2021-12-17 09:56:09 +11:00
David Bomba aa145243c6 Minor fixes for project resolution 2021-11-09 09:08:27 +11:00
David Bomba 64aa4fe00f Fixes for adding users to hosted 2021-11-08 20:53:11 +11:00
David Bomba 2a7bdc8d59 Fixes for User Add rules in hosted 2021-11-07 22:12:54 +11:00
David Bomba 27db04515a Change logic for adding user 2021-11-06 10:40:38 +11:00
David Bomba 88dfa3601b Fixes for adding and restoring users 2021-11-06 10:28:48 +11:00
David Bomba 5f4e40162b working on users 2021-11-05 20:43:25 +11:00
David Bomba 916e20d902 fixes for add user count logic 2021-11-05 15:29:16 +11:00
David Bomba 50119240b9 Minor fixes for client country code rules 2021-11-01 16:12:10 +11:00
David Bomba c57422617f Custom validation rules for client countries 2021-11-01 14:09:41 +11:00
David Bomba 7e23de8e5a fixes for refunding unapplied payments 2021-10-27 05:01:10 +11:00
David Bomba ebc58a18bb Minor fixes 2021-10-24 15:14:36 +11:00
David Bomba 8dcdccb9c7 Tests for custom validation rules 2021-10-23 12:07:54 +11:00
David Bomba f270fbe2d6 Throw exception on paytrace failure 2021-10-23 11:45:22 +11:00
David Bomba 7a267b4406 Custom validation rule for amount 2021-10-23 10:16:43 +11:00
David Bomba f05fb9938e Fixes for adding users 2021-10-20 14:35:28 +11:00
= c7b9c582a2 Merge branch 'recurring_expenses' into v5-develop 2021-09-17 17:34:01 +10:00
= 5066fbdac7 fixes for Invoice Balance Sanity 2021-09-16 08:43:14 +10:00
David Bomba ee855824db Recurring Quotes 2021-08-24 12:57:46 +10:00
David Bomba 11ae85732b Fixes for queries 2021-07-20 19:45:54 +10:00
David Bomba 36f6cbbcc9 Update license in codebase 2021-06-16 16:58:16 +10:00
David Bomba 817f7c685f Import company 2021-05-28 18:37:08 +10:00
David Bomba b82cdb6b77 Fixes for DB::rollBack 2021-05-26 17:04:29 +10:00
David Bomba ba672f6fdd Fixes for test 2021-05-26 11:32:01 +10:00
David Bomba 3c99c65033 FIxes for multidb 2021-05-24 14:24:16 +10:00
David Bomba c43d122e91 Fixes for importing Ninja clients/contacts 2021-05-20 14:13:54 +10:00
David Bomba 73bcaae3f6 Allow invoice balances to change - but do no allow them to go negative 2021-04-28 11:18:27 +10:00
David Bomba 5c1eb7f7eb Update texts 2021-04-14 07:40:07 +10:00
David Bomba bfbde2ba51 Fixes 2021-03-03 21:04:10 +11:00
David Bomba c37c441d92 Associate a user with multiple companies 2021-03-02 09:18:19 +11:00
David Bomba cc883f0926 Fixes for archived invoice not emailing 2021-02-26 22:20:17 +11:00
= 04d1a43dfe Remove strings and replace with translations 2021-01-24 22:48:09 +11:00
David Bomba f06fc9f720 Minor fix for payment validations' 2021-01-21 10:58:54 +11:00
David Bomba db9e8ff830 Add rules preventing overpayment on invoices 2021-01-21 10:53:02 +11:00
David Bomba 934610a01c Update copyright + version bump + set canadian dollar symbol to $ 2021-01-04 08:54:54 +11:00
= 7a058c9ae6 Move logging to nlog 2020-12-30 08:10:03 +11:00
Benjamin Beganović ae88d5e08e php-cs-fixer format 2020-11-25 15:19:52 +01:00
David Bomba 28cbd75fcb Fixes for credit PDF 2020-11-11 11:13:39 +11:00
David Bomba 30bfd0b808 Validation rules for credits and payments 2020-11-02 12:11:49 +11:00
David Bomba 9aeb2d7a5b Psalm cleanup 2020-10-28 21:10:49 +11:00
David Bomba 0a02323792 Quote email engine 2020-10-28 10:02:32 +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 8ddc14c4d0 Working on check data script 2020-10-21 15:12:54 +11:00
David Bomba 3d59717776 Fixes for credit payments 2020-10-21 15:03:22 +11:00
David Bomba 8b49c83a67 Fixes for required expense fields 2020-10-20 08:31:19 +11:00
David Bomba 93ea785131 Fix for incorrect company country being displayed 2020-10-19 08:21:14 +11:00
David Bomba c7d7e71e78 Validation for project clients 2020-10-16 16:17:36 +11:00
David Bomba d5ccb17624 Validation rules for Recurring 2020-10-16 08:17:50 +11:00
David Bomba 70a575386c Fixes for designs in migration: 2020-10-07 10:16:57 +11:00
David Bomba 81ef541d2e Expense API Endpoints 2020-09-23 10:46:35 +10:00
David Bomba 8dd8b83fd3 Fixes for passing settings object into all mail templates 2020-09-19 15:02:34 +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 0d9df1f290 Fixes for incorrect name spacing of validation rules 2020-08-24 08:20:57 +10:00
David Bomba 2ee7c429bd Minor change to checking valid invoice number rule 2020-08-12 13:52:21 +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 e67c7995d9 fixes for invitations 2020-07-23 16:13:12 +10:00
David Bomba 059f1a3fea Working on credit payments 2020-07-22 21:35:44 +10:00
David Bomba 8688625931 Validation for locked invoices 2020-07-22 09:54:39 +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 4bee89263a Fixes for credit payments 2020-07-21 20:35:43 +10:00
David Bomba 8420a4bac1 Remove redundant properties from account table and transformer 2020-07-21 09:00:59 +10:00
David Bomba ffa3550e4a
Hosted version - add user rules. (#3653)
* Add users in hosted platform

* Increment num_users when adding a user on enterprised hosted plan

* Fixes for user repo
2020-04-23 08:54:10 +10:00
David Bomba 280e42d366
Hosted platform rules (#3650)
* Filter properties which can be saved on free accounts

* Self Updater

* Fixes for tests

* Refactor for settings

* Working on feature permissions - Settings Saver

* Fixes for events on self-updater

* Working on Self Updater

* Working on free /pro settings saver

* Implement free/pro/enterprise saving for settings

* Update company request

* Implement settings saver for hosted platform for clients and group level settings

* Implement quotas for hosted version

* Validation rules for hosted platform"
2020-04-21 15:16:45 +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 2fd3229efd
Implementation of Invoice Reversal (#3602)
* Version bump 0.0.2

* code cleanup

* Working on reversing an invoice

* Working on reversing an invoice

* Working on refunding invoice

* Reversing invoices

* Test for invoice reversals

* Invoice Reversal
2020-04-08 20:48:31 +10: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 70a560c474
Fixes for invoice status with partial payment (#3472)
* Fixes for UserPolicy

* Improve notifications

* Company quantities

* Fixes for invoice status with partial payments
2020-03-11 09:20:09 +11:00
David Bomba f0176b6e37
Fixes for quote transformer (#3434)
* remove jobs table

* Working on notifications

* Working on notifications

* Fix for pdf_variables

* Fixes for notification

* Fixes for viewing invoice with NO company custom_fields

* Fixes for company settings object creation

* Working on group settings

* Fixes for storing the correct currency_id on client creation

* Fix for invoicetransformer

* fix for store client

* Update PaymentAppliedValidAmount.php (#38)

* update company schema descriptions

* Update PaymentAppliedValidAmount.php

Co-authored-by: David Bomba <turbo124@gmail.com>

* Cast invoice designs to the Hashes

* Fixes for setting invoice/credit/design_ids to hashed

* Fixes for quote transformer

Co-authored-by: michael-hampton <michaelhamptondesign@yahoo.com>
2020-03-06 22:10:59 +11:00
David Bomba abe3376c48
Validate invoices in a payment (#3397)
* Payment Scenarios:

* Fixes for duplicate invoice-ids in a payment
2020-02-28 19:18:34 +11:00
David Bomba 08ce375fbc
Fixes for payments with invoices from different clients (#3396) 2020-02-28 12:58:49 +11:00
David Bomba 797c3fb3f6
Fixes for refunds (#3288)
* Working on invoice designs

* Fix unusual form request issue in tests vs production

* Fixes for form requests

* Fixes for refunds
2020-02-06 08:54:20 +11:00
David Bomba 11960e25e7
Fixes for refunds (#3285)
* Working self-updater package

* Fixes for travis

* Working on invoice designs

* Working on invoice builder

* Tests for invoice design

* Working on invoice designs

* Minor fixes

* Working on Invoice Design Engine

* Working on invoice designs

* Fixes for refunds
2020-02-05 21:28:56 +11:00
David Bomba 79c57aa8da
Fixes for payments (#3276)
* More tests for refunds

* Tests for refunds

* Improve test speeds

* Fixes for tests

* Adjust the way we update products

* Adjustments for payments

* Fixes for payments
2020-02-02 07:45:23 +11:00
David Bomba a3b9dd67a8
Fixes for payment validations (#3272)
* Minor fixes

* fixes for tests
2020-01-31 08:15:13 +11:00
David Bomba cdf22f6a1f
Fixes for payments (#3271)
* Fixes + tests for unapplied amounts not adjusting when updating a payment

* fixes for payment amounts check
2020-01-31 07:53:14 +11:00
David Bomba c3da9c80b3
Refunds implementation v1 (#3270)
* Minor fixes for tests

* Refunds implementation v1
2020-01-30 22:19:51 +11:00
David Bomba 63f514f3bc
Working on payments (#3269)
* Add PHP 7.4 to Travis Tests

* Fixes for tests

* fixes for tests

* Fixes for tests

* More tests for Refunds

* Remove dusk tests

* Refactor refund variables

* Working on refunds

* Working on refunds

* working on refundS

* working on refunds
2020-01-30 15:50:45 +11:00