Commit Graph

56 Commits

Author SHA1 Message Date
David Bomba 971b989e57 Change order of rounding taxes in line items 2024-12-05 20:26:37 +11:00
David Bomba a1278e783d tests for invoice rounding 2024-12-05 16:10:50 +11:00
David Bomba aaaa031831 Fixes for delete payment when invoice has been cancelled 2024-10-21 17:16:26 +11:00
David Bomba 446773ae7f Fixes for tests 2024-10-17 11:41:57 +11:00
David Bomba 6786a0cfb1 Minor fixes for tests 2024-10-17 11:35:18 +11:00
David Bomba 8f386b1dd3 Minor fixes 2024-10-17 11:02:46 +11:00
David Bomba 1a438ecd64 Remove annotations from tests 2024-09-16 21:13:55 +10:00
David Bomba 8160af4ef4 PHP CS Fixer 2024-08-22 16:57:52 +10:00
David Bomba fe7356cc89 Fixes for surcharge tax calculations 2024-04-28 10:56:06 +10:00
David Bomba c0ffaca0eb Rappen Rounding 2024-03-21 19:26:11 +11:00
David Bomba 3de8df8066 Create auth routes for gateways 2024-03-16 12:36:40 +11:00
David Bomba 0c7c82bc87 Fixes for tests 2024-01-21 13:15:44 +11:00
David Bomba 51903f2f69 transition partial_due_dates to casts 2024-01-14 16:19:00 +11:00
David Bomba acefad27b6 transition partial_due_dates to casts 2024-01-14 16:17:49 +11:00
David Bomba f7340d6114 PHP CS Fixer 2023-11-26 18:41:42 +11:00
David Bomba 1f1ce3431d Fixes for calculations 2023-10-28 13:57:16 +11:00
David Bomba d86c3ca5fe Ensure partials are removed when marked as paid 2023-09-27 07:30:35 +10:00
David Bomba 161e2aeec8 Tests for gross line totals 2023-09-12 19:37:28 +10:00
David Bomba 08f3ba06a4 Adjustments for invoice calculations to support higher precision 2023-08-31 12:55:37 +10:00
David Bomba 3d0c1fa017 Minor fixes for tests 2023-06-19 22:41:08 +10:00
David Bomba 31bfb83875 Minor fixes 2023-06-19 22:13:34 +10:00
David Bomba 0a49bd4afa tests for invocies 2023-04-13 11:09:24 +10:00
David Bomba 4babfbb651 php-cs-fixer 2023-02-16 12:36:09 +11:00
David Bomba e716bb5a02 Fixes for showing fees in both the product and tax tables 2022-08-19 08:41:50 +10:00
Shift 4f7a8f9752
Set return type of base TestCase methods
From the [PHPUnit 8 release notes][1], the `TestCase` methods below now declare a `void` return type:

- `setUpBeforeClass()`
- `setUp()`
- `assertPreConditions()`
- `assertPostConditions()`
- `tearDown()`
- `tearDownAfterClass()`
- `onNotSuccessfulTest()`

[1]: https://phpunit.de/announcements/phpunit-8.html
2022-06-21 10:00:57 +00: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 e153a0a06a Update license 2022-06-08 14:25:44 +10:00
David Bomba 9cb26120ec Disable autocomplete on expiry date of wepay credit cards 2022-02-12 07:35:08 +11:00
David Bomba 618027dcd8 Add gross line and subtotals 2021-09-15 10:00:29 +10:00
David Bomba 7cef74350d Fix for accounting error when deleting a refunded payment 2021-04-22 09:35:31 +10:00
= fc223e3432 Fixes for invoice status 2021-04-21 22:27:08 +10:00
David Bomba 934610a01c Update copyright + version bump + set canadian dollar symbol to $ 2021-01-04 08:54:54 +11:00
Benjamin Beganović ae88d5e08e php-cs-fixer format 2020-11-25 15:19:52 +01:00
David Bomba bae82b56c1 Add license 2020-09-14 21:11:46 +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 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 37a826374b
Remove settings from invoice table (#3051)
* Implement client/group/company level counters clientCounter, groupCounter and counter

* Implement functionalityfor customising the timing of invoice_number creation

* Add Jobs

* adjustments

* clean line items at the request layer

* Clean line items at the request layer

* minor formatting for notification

* Schema Fixes

* schema changes, cast country_id to stirng

* Fixes for tests

* force line item ids to string

* Map company gateway fees and limits

* Schema changes

* Remove id from invoice item stdClass

* Remove settings object from invoice table
2019-11-10 23:06:30 +11:00
David Bomba fbc03aa9f7 Update setting fields 2019-10-17 19:26:46 +11:00
David Bomba b6d6d3928b
Eager loading (#2995)
* Fixes for tests

* Eager load payment types
2019-10-16 21:24:33 +11:00
David Bomba 7eb0f8d44b
Invoice calculations (#2994)
* Add traits for invoice calculations

* V2 of invoice calculator

* Tests for invoice item calculator

* Test for Invoice Item Calculations

* Invoice Calculation Tests

* fix for tests

* Fixes for invoice calculations
2019-10-16 20:28:52 +11:00
David Bomba 1c21b6dc7c
Invoice Calculations (#2985)
* Fixes for invoice item line totals

* Refactoring invoice calculations

* Update api-docs

* Fixes for invoice calculations

* remove tests

* fixes for config files
2019-10-13 21:59:55 +11:00
David Bomba a8b70ee25c fixes for tests 2019-10-07 20:56:10 +11:00
David Bomba c46ebb2778 Fixes for tets 2019-10-07 20:39:22 +11:00
David Bomba cc7ee120d5 Fixes for test
s
2019-09-19 16:22:32 +10:00
David Bomba 86a099587d Refactor for settings to force types 2019-09-19 15:50:05 +10:00
David Bomba 43dc9158f6 Cleaning up Tests 2019-09-04 22:01:19 +10:00
David Bomba d8f5d10b58 Fixes for tests 2019-04-24 20:01:40 +10:00
David Bomba e37c6912b1 Refactor for invoice calculations, implementing testing for Invoice Invitation creation 2019-04-24 15:18:48 +10:00
David Bomba cb7eea0e7b Refactor invoice calculations class, use FormRequests on destroy() 2019-04-16 13:28:05 +10:00
David Bomba 5e86fa33c1 Fixes for tests. Fixes for invoice calculations 2019-04-15 09:51:43 +10:00