Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix redirection after client password reset #2404

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
296 commits
Select commit Hold shift + click to select a range
5c1b6ed
Create migration add fee_cap to account table
guptaanmol184 Jul 2, 2018
f4a8184
Add fee_cap in UI
guptaanmol184 Jul 2, 2018
aa3778b
Enforce fees cap
guptaanmol184 Jul 2, 2018
3936434
Added Bahraini Dinar currency support
divanoli Jul 2, 2018
2889bfa
Merge pull request #2216 from ddevdreamer/currency-bd
hillelcoren Jul 2, 2018
85bd01d
Allow approve expired quote
feldsam Jul 3, 2018
0aac377
Merge pull request #2218 from FELDSAM-INC/feldsam/allow-approve-expir…
hillelcoren Jul 3, 2018
035ac82
Added ability to customize navigation option URL, module translation fix
chrisdicarlo Jun 4, 2018
111963f
Fixed custom module include namespacing
chrisdicarlo Jun 4, 2018
1085568
Allow alternative publicId lookup
chrisdicarlo Jun 4, 2018
6fa715c
Fix for module translations when non-default route used
chrisdicarlo Jun 4, 2018
07da5e6
Refactored module breadcrumb resolution to use base-route, if defined
chrisdicarlo Jul 4, 2018
91db499
Merge pull request #2145 from dicarlosystems/custom-module-fixes
hillelcoren Jul 4, 2018
95314b7
Changes for mobile app
hillelcoren Jul 7, 2018
521a41d
Merge branch 'develop' of github.com:invoiceninja/invoiceninja into d…
hillelcoren Jul 7, 2018
d2dec90
Fixes for the mobile app
hillelcoren Jul 8, 2018
41a3445
Add KB link in app
hillelcoren Jul 8, 2018
89df310
Bug fixes
hillelcoren Jul 8, 2018
738936c
Fix page number variables #2214
hillelcoren Jul 8, 2018
8d44564
/public breaks invoice number check #2207
hillelcoren Jul 8, 2018
8f86cb4
Bug fixes
hillelcoren Jul 8, 2018
7b51417
RFC: Vendor name in profit & loss report #2171
hillelcoren Jul 8, 2018
6285aa4
Bug fixes
hillelcoren Jul 8, 2018
6c0faee
Fixed Proposals PDF generation
feldsam Jul 13, 2018
6a1f4e8
Update docs
hillelcoren Jul 14, 2018
d204944
Added recurring quotes
feldsam Jul 15, 2018
99485b3
Fix for mobile app
hillelcoren Jul 16, 2018
88c6213
Merge pull request #2236 from FELDSAM-INC/feldsam/recurring-quotes
hillelcoren Jul 17, 2018
29b2fef
Merge pull request #2235 from FELDSAM-INC/feldsam/fix-proposals-pdf-g…
hillelcoren Jul 17, 2018
694359e
Check for config:cache
hillelcoren Jul 17, 2018
12cd85d
Fix for client statements
hillelcoren Jul 17, 2018
32bc12b
ERR_TOO_MANY_REDIRECTS #2232
hillelcoren Jul 17, 2018
2f81caa
Double terms and conditions on new install #2229
hillelcoren Jul 17, 2018
e1006fd
Can't add blank database password #2230
hillelcoren Jul 17, 2018
e1e428b
Update version
hillelcoren Jul 17, 2018
5a83542
Totals as sum of all currencies on dashboard
feldsam Jul 17, 2018
df08c75
Move email related fields to dedicated table
feldsam Jul 18, 2018
8549b50
Fix for API permissions (#2247)
turbo124 Jul 21, 2018
a7b71fb
fix for invoice vs quote permissions (#2250)
turbo124 Jul 22, 2018
214afbf
Dashboard totals fixed SQL for clients with undefined currency
feldsam Jul 19, 2018
c7f020c
Implement auth filters for recurring invoices. (#2253)
turbo124 Jul 23, 2018
88bfef7
Merge pull request #2243 from FELDSAM-INC/feature/move-email-related-…
hillelcoren Jul 24, 2018
0b77839
Merge pull request #2242 from FELDSAM-INC/feature/dashboard-totals
hillelcoren Jul 24, 2018
70cb425
Check for divide by zero
hillelcoren Jul 24, 2018
a87c79f
Check for divide by zero
hillelcoren Jul 24, 2018
4b30ef9
Fix for tests
hillelcoren Jul 24, 2018
8b42411
Fix for tests
hillelcoren Jul 24, 2018
67e55f5
Fix for expense transformer
hillelcoren Jul 24, 2018
94a5c87
Improved Product Selection - detail windows larger #2241
hillelcoren Jul 24, 2018
4c4b1c9
Improved Product Selection - detail windows larger
hillelcoren Jul 24, 2018
2b25a7d
Fix for auto-bill failure emails
hillelcoren Jul 24, 2018
86f93d4
Ignore Apple's IP
hillelcoren Jul 24, 2018
db3f12e
Update vendor balance to reflect paid expenses
hillelcoren Jul 24, 2018
1964f42
Added langauges
hillelcoren Jul 24, 2018
58eca3f
Added new languages
hillelcoren Jul 26, 2018
621577d
Improve error logging
hillelcoren Jul 26, 2018
fe75e62
Lang fixes
hillelcoren Jul 26, 2018
a4c2744
Fix for new mobile app
hillelcoren Jul 26, 2018
7886908
Add totals to product report
hillelcoren Jul 26, 2018
31794ec
Support importing payment details with CSV
hillelcoren Jul 26, 2018
f98d680
Fix links to docs
hillelcoren Jul 26, 2018
227ad11
Fix for payments_contact_id_foreign
hillelcoren Jul 26, 2018
64be30d
Make license fields nullable
hillelcoren Jul 26, 2018
c6c0c2d
Overlapping elements on dashboard #2259
hillelcoren Jul 26, 2018
f6f5a20
Add recurring quotes to /quotes
hillelcoren Jul 26, 2018
b6d86c2
Fix for payment rounding
hillelcoren Jul 26, 2018
53e96fb
Remove Stacktrace.js
hillelcoren Jul 27, 2018
6e591c9
Warn if TRAVIS mode is enabled
hillelcoren Jul 27, 2018
91f8a10
Add PHP memory limit check on setup screen
hillelcoren Jul 27, 2018
7f0aed7
Remove borderless= from invoice link
hillelcoren Jul 27, 2018
71635dc
Support date variables in custom fields
hillelcoren Jul 27, 2018
9d6df23
Clean up check for config:cache
hillelcoren Jul 27, 2018
29a6603
Fix tax rate formatting
hillelcoren Jul 27, 2018
77eb641
Added discount to invoice export
hillelcoren Jul 27, 2018
429ab34
Added cookie consent configuration options
hillelcoren Jul 27, 2018
5f3e15b
Re-org config file
hillelcoren Jul 27, 2018
d52c7ca
Fix invoice design preview
hillelcoren Jul 27, 2018
d198fa6
Show vat/id number labels on PDF
hillelcoren Jul 27, 2018
3c614f3
Show tax settings option for longer
hillelcoren Jul 27, 2018
d68bd36
Support hiding field labels
hillelcoren Jul 27, 2018
67bcf4e
Fix for sidebar history
hillelcoren Jul 27, 2018
9f6fc35
Fix for tests
hillelcoren Jul 27, 2018
2221a2c
Fix for tests
hillelcoren Jul 27, 2018
ca1c28d
Fix for product report
hillelcoren Jul 29, 2018
8d0f83c
Hide Dwolla
hillelcoren Jul 29, 2018
5cfda3d
Client Statement Payment Method When Using Paypal Showing Manual #2263
hillelcoren Jul 29, 2018
95fdb50
Added refresh method to API
hillelcoren Jul 31, 2018
a6de6dc
cap payment processing fees
whatisfydocom Jul 31, 2018
0ad766b
Merge pull request #2215 from mindnervestech/mnt-cap
hillelcoren Aug 1, 2018
bc129ad
Merge branch 'develop' of github.com:invoiceninja/invoiceninja into d…
hillelcoren Aug 1, 2018
a78d6e0
Adjust fee cap UI
hillelcoren Aug 1, 2018
d580e7f
Fix and enhance dashboard totals
feldsam Jul 31, 2018
8bdae81
Update SQL file
hillelcoren Aug 1, 2018
c1a2242
API changes for mobile app
hillelcoren Aug 2, 2018
41f021f
Add client activity to API
hillelcoren Aug 2, 2018
59f83f2
Add activities to client API
hillelcoren Aug 3, 2018
1772a4f
Add activities to client API
hillelcoren Aug 3, 2018
0b4ce8f
Added mobile submenu items visibility check
alexbogias Aug 4, 2018
a9d3761
Merge pull request #2275 from alexbogias/develop
hillelcoren Aug 4, 2018
183cc5d
Merge branch 'develop' of github.com:invoiceninja/invoiceninja into d…
hillelcoren Aug 5, 2018
86220c0
Update version
hillelcoren Aug 5, 2018
3e305e0
Added custom field settings options
chrisdicarlo Aug 7, 2018
325956c
Task Details reports added
whatisfydocom Aug 8, 2018
c122853
Added payment terms to API
hillelcoren Aug 8, 2018
d545c7f
Added missing function
chrisdicarlo Aug 8, 2018
5466d60
Fix for kanban
hillelcoren Aug 8, 2018
141f1d2
Fix for search
hillelcoren Aug 8, 2018
de1c145
Merge pull request #2281 from mindnervestech/mnt-cap
hillelcoren Aug 9, 2018
0cb2050
Merge pull request #2282 from dicarlosystems/fix-reports-issue-custom…
hillelcoren Aug 9, 2018
c9eb3fb
Changes for mobile app
hillelcoren Aug 11, 2018
74622cd
fix Estonian thousand separator
aivar11 Aug 14, 2018
5022ee2
Merge pull request #2292 from aivar11/fix-estonian-thousand-separator
hillelcoren Aug 14, 2018
c7a7125
Added fix to only show export button once dropdown is filled
chrisdicarlo Aug 14, 2018
8bd24c1
Merge pull request #2294 from dicarlosystems/report-export-fix
hillelcoren Aug 15, 2018
8599a40
Update credits on README
chrisdicarlo Aug 15, 2018
ec8a033
Merge pull request #2298 from dicarlosystems/update-credits
hillelcoren Aug 15, 2018
0377f82
Changes for the mobile app
hillelcoren Aug 15, 2018
4904ce6
Working on mobile localization
hillelcoren Aug 15, 2018
e8a6a30
Working on mobile localization
hillelcoren Aug 15, 2018
3f705dd
Working on mobile localization
hillelcoren Aug 15, 2018
6f20530
Merge branch 'develop' of github.com:invoiceninja/invoiceninja into d…
hillelcoren Aug 15, 2018
58fce57
Working on mobile localization
hillelcoren Aug 15, 2018
8386788
Changes for mobile app
hillelcoren Aug 17, 2018
037d35a
Corrections to texts file
hillelcoren Aug 19, 2018
38a7b49
Update version
hillelcoren Aug 19, 2018
0c051ca
2FA check for mobile app
hillelcoren Aug 20, 2018
98c73b5
added update script
Silver-Golden Aug 21, 2018
fd86f16
Merge pull request #2304 from Silveress/silveress/develop
hillelcoren Aug 21, 2018
4666f95
Add sparkpost support (#2322)
Aug 27, 2018
02789fa
Added @render Blade directive to support custom components
chrisdicarlo Aug 28, 2018
e3eb2a2
Added simple select component
chrisdicarlo Aug 28, 2018
9effba2
Updated modules for components
chrisdicarlo Aug 28, 2018
2494f17
Changes to Gateway Fees calculation formula
invalid-email-address Aug 28, 2018
9dc2050
Merge pull request #2324 from omriyaacovi/develop
hillelcoren Aug 29, 2018
00fa8d0
Fix for statements
hillelcoren Aug 30, 2018
0cf3b18
Merge branch 'develop' of github.com:invoiceninja/invoiceninja into d…
hillelcoren Aug 30, 2018
ebc4ca0
Added fields for mobile app
hillelcoren Aug 31, 2018
e6e3d78
API change for mobile app
hillelcoren Sep 3, 2018
0f3ee8e
Merge pull request #2268 from FELDSAM-INC/feldsam/fix-n-enhance-dashb…
hillelcoren Sep 3, 2018
3372544
API changes for mobile app
hillelcoren Sep 4, 2018
b11d71c
Merge branch 'develop' of github.com:invoiceninja/invoiceninja into d…
hillelcoren Sep 4, 2018
55faffd
API changes for mobile app
hillelcoren Sep 4, 2018
dd960bf
Update install links
hillelcoren Sep 6, 2018
f6158e7
Remove extra parentheses from projects page
hillelcoren Sep 6, 2018
d03f3a8
Update version
hillelcoren Sep 6, 2018
02a500f
Added selected list form objects sum functionality (sum selected tasks)
invalid-email-address Sep 8, 2018
cf4b08c
Fix for zero tax rates
hillelcoren Sep 9, 2018
677275c
Merge pull request #2335 from omriyaacovi/develop
hillelcoren Sep 9, 2018
d463c3b
summing selected tasks now works in the client overview page as well
invalid-email-address Sep 9, 2018
1523075
Update InvoiceRequest.php
turbo124 Sep 10, 2018
3bfe11e
Add days since last email to Aging report
chrisdicarlo Sep 10, 2018
37f597a
Cleanup, secondary item label tweak
chrisdicarlo Sep 11, 2018
55c2082
Added missing stack declaration in header template
chrisdicarlo Sep 11, 2018
ae36f2b
Updated docs
chrisdicarlo Sep 11, 2018
ea1d141
Added check for self-hosted
chrisdicarlo Sep 11, 2018
ba5f71e
Custom module improvements (#2333)
chrisdicarlo Sep 12, 2018
8683a70
Resolved PR #2338 merge conflicts
chrisdicarlo Sep 12, 2018
de24890
Resolved PR #2336 merge conflicts
chrisdicarlo Sep 12, 2018
6905635
Merge pull request #2336 from dicarlosystems/2314-add-days-since-last…
hillelcoren Sep 12, 2018
6ff36c6
Adjust report column label
hillelcoren Sep 12, 2018
f3e008d
Merge pull request #2338 from dicarlosystems/add-ui-view-components
hillelcoren Sep 12, 2018
902aed1
Add new mobile text strings
hillelcoren Sep 12, 2018
092661d
Module settings fix (#2343)
chrisdicarlo Sep 12, 2018
c40877a
Merge remote-tracking branch 'upstream/develop' into develop
invalid-email-address Sep 13, 2018
beffd97
added sum functionality to all datatables and polished the code struc…
invalid-email-address Sep 13, 2018
e0c4664
API change for mobile app
hillelcoren Sep 13, 2018
eacc922
Merge branch 'develop' of github.com:invoiceninja/invoiceninja into d…
hillelcoren Sep 13, 2018
afee355
Merge branch 'develop' into client-custom-field-filter-and-display
chrisdicarlo Sep 13, 2018
50d418a
Fix missing comma
chrisdicarlo Sep 13, 2018
b34dbac
polished the code
invalid-email-address Sep 13, 2018
b2c33d4
Merge pull request #2344 from omriyaacovi/develop
hillelcoren Sep 13, 2018
22cf96e
removed some unecessary code
invalid-email-address Sep 13, 2018
c3b8a47
Add Feldsam to Credits secion of readme file
feldsam Sep 13, 2018
b4e1cd6
Merge pull request #2348 from FELDSAM-INC/feldsam/credits
hillelcoren Sep 13, 2018
83e2b25
Tickets (#2345)
turbo124 Sep 13, 2018
1a5e950
remove ticketstatus repo (#2349)
turbo124 Sep 13, 2018
b497ea6
Merge pull request #2346 from omriyaacovi/develop
hillelcoren Sep 13, 2018
5f186b4
Added Artisan command to create settings view for custom module
chrisdicarlo Sep 13, 2018
bb0cddf
Merge branch 'develop' into client-custom-field-filter-and-display
chrisdicarlo Sep 13, 2018
604d941
Fixed typos, added logging
chrisdicarlo Sep 13, 2018
9dbe49d
Merge pull request #2279 from dicarlosystems/client-custom-field-filt…
hillelcoren Sep 13, 2018
925284d
Simplified settings check logic
chrisdicarlo Sep 13, 2018
7529fde
Fixed stubs
chrisdicarlo Sep 13, 2018
4e04de7
Fix missing comma
hillelcoren Sep 13, 2018
8d454e1
Fix small tickets bug
hillelcoren Sep 13, 2018
ec911db
Move parseFloat to header
hillelcoren Sep 13, 2018
f63029f
Cleaned up documentation
chrisdicarlo Sep 13, 2018
80c98f7
Added Artisan command to create settings view for custom module
chrisdicarlo Sep 13, 2018
ac9bd7a
Fixed typos, added logging
chrisdicarlo Sep 13, 2018
baf4ac7
Simplified settings check logic
chrisdicarlo Sep 13, 2018
45c7419
Fixed stubs
chrisdicarlo Sep 13, 2018
18d3777
Cleaned up documentation
chrisdicarlo Sep 13, 2018
1fc6248
Merge remote-tracking branch 'origin/create-module-settings-command' …
chrisdicarlo Sep 13, 2018
2e59aee
Updated documentation
chrisdicarlo Sep 13, 2018
6704ff7
Merge pull request #2350 from dicarlosystems/create-module-settings-c…
hillelcoren Sep 13, 2018
0177ae2
Fix for Travis builds (#2351)
turbo124 Sep 13, 2018
ec8afeb
#2313 dashboard permissions (#2339)
anojht Sep 13, 2018
7e66105
Updated docs, added info about new Artisan command
chrisdicarlo Sep 13, 2018
1df67e1
Removed old ticket status implementation, cleaned up rollback (#2353)
chrisdicarlo Sep 14, 2018
049eea5
Merge pull request #2352 from dicarlosystems/update-module-docs
hillelcoren Sep 14, 2018
164724e
API fix
hillelcoren Sep 14, 2018
c53dfe7
Merge branch 'develop' of github.com:invoiceninja/invoiceninja into d…
hillelcoren Sep 14, 2018
26c6ef4
cleaned code and added well
invalid-email-address Sep 14, 2018
7aba539
Checked rows sum functionality - Improved formatting
invalid-email-address Sep 15, 2018
8a065dc
Ticket Bug Fixes (#2355)
turbo124 Sep 15, 2018
5729f27
Develop (#2356)
turbo124 Sep 15, 2018
6cb43c5
Create Edit Permissions bug (#2357)
turbo124 Sep 15, 2018
058a990
Merge remote-tracking branch 'upstream/develop' into develop
invalid-email-address Sep 15, 2018
d3c5f58
Checked rows sum functionality in lists - Improved formatting
invalid-email-address Sep 15, 2018
6f2eeec
Merge pull request #2360 from omriyaacovi/develop
hillelcoren Sep 15, 2018
70415ac
Minor fixes
hillelcoren Sep 15, 2018
8115e6e
Minor fixes
hillelcoren Sep 15, 2018
d816154
Minor fixes
hillelcoren Sep 15, 2018
cbe8337
Add Venezuelan Bolivars (VES) Currency
AlexR1712 Sep 15, 2018
8e87a46
Add Venezuelan Bolivars Locale [en]
AlexR1712 Sep 15, 2018
dfacb45
Merge pull request #2361 from AlexR1712/develop
hillelcoren Sep 15, 2018
cd55d39
Error handling
hillelcoren Sep 15, 2018
e3efa81
Merge branch 'develop' of github.com:invoiceninja/invoiceninja into d…
hillelcoren Sep 15, 2018
6a30d0e
Update ConstantsSeeder.php
AlexR1712 Sep 16, 2018
7a60dcc
Disable logo check
hillelcoren Sep 16, 2018
e7b2166
Fix for white label licenses
hillelcoren Sep 16, 2018
d05d5f8
Merge pull request #2362 from AlexR1712/develop
hillelcoren Sep 18, 2018
7c8a909
Fix docs
hillelcoren Sep 19, 2018
34f78fd
Fix email bug
hillelcoren Sep 19, 2018
1b0be92
Merge branch 'develop' of github.com:invoiceninja/invoiceninja into d…
hillelcoren Sep 19, 2018
d418703
Update Handler.php
turbo124 Sep 20, 2018
638ee15
Fix module display in sidebar
chrisdicarlo Sep 21, 2018
7fe5e36
Merge pull request #2364 from dicarlosystems/2363-fix-module-display-…
hillelcoren Sep 21, 2018
6f89c70
Fix for invoice link from quote
hillelcoren Sep 22, 2018
6af1441
Merge branch 'develop' of github.com:invoiceninja/invoiceninja into d…
hillelcoren Sep 22, 2018
22c17c7
Run 'bill later' once daily
hillelcoren Sep 23, 2018
b2bcd31
Run 'bill later' once daily
hillelcoren Sep 23, 2018
a1d21cd
Full Text Search & Bug Fixes For Permissions (#2375)
turbo124 Sep 26, 2018
3dc1e5b
fix for travis (#2377)
turbo124 Sep 26, 2018
56cc373
Oauth fix for mobile app
hillelcoren Sep 27, 2018
7a5001f
Add new mobile strings
hillelcoren Sep 27, 2018
f693c9b
Add new mobile strings
hillelcoren Sep 27, 2018
aadab24
Merge branch 'develop' of github.com:invoiceninja/invoiceninja into d…
hillelcoren Sep 27, 2018
a4ccdd7
API fixes for mobile app
hillelcoren Sep 28, 2018
db48c7e
Code cleanup
chrisdicarlo Sep 29, 2018
c87ec97
Merge pull request #2384 from dicarlosystems/view-component-cleanup
hillelcoren Sep 29, 2018
bf88227
Fix for borderless PDF view
hillelcoren Sep 30, 2018
98027eb
Merge branch 'develop' of github.com:invoiceninja/invoiceninja into d…
hillelcoren Sep 30, 2018
7089515
UI Fixes for Tickets, Bug Fixes (#2387)
turbo124 Sep 30, 2018
5bfa072
Permissions fixes (#2388)
turbo124 Sep 30, 2018
7568301
bug fix (#2389)
turbo124 Sep 30, 2018
3379af7
Fixed sidebar min-height due to new items in menu
feldsam Oct 2, 2018
e305273
Merge pull request #2391 from FELDSAM-INC/feldsam/fix-sidebar-height
hillelcoren Oct 2, 2018
87bc74e
Fixed tickets schema migration (#2392)
feldsam Oct 2, 2018
1bb374f
Fix redirection after client password reset
jclg Oct 3, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .env.example
Expand Up @@ -105,3 +105,11 @@ CLOUDFLARE_API_KEY=
CLOUDFLARE_EMAIL=
CLOUDFLARE_TARGET_IP_ADDRESS=
CLOUDFLARE_ZONE_IDS={}

POSTMARK_API_TICKET_TOKEN=
POSTMARK_API_TICKET_TOKEN_2=
TICKET_SUPPORT_DOMAIN=
TICKET_SUPPORT_DOMAIN_2=
TICKET_SUPPORT_EMAIL=
TICKET_SUPPORT_EMAIL_2=
TICKET_SUPPORT_EMAIL_NAME=
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -86,6 +86,7 @@ script:
- php ./vendor/codeception/codeception/codecept run --debug acceptance PaymentCest.php
- php ./vendor/codeception/codeception/codecept run --debug acceptance TaskCest.php
- php ./vendor/codeception/codeception/codecept run --debug acceptance AllPagesCept.php
- php ./vendor/codeception/codeception/codecept run --debug acceptance TicketCest.php
- php ./vendor/codeception/codeception/codecept run --debug functional PermissionsCest.php

#- sed -i 's/NINJA_DEV=true/NINJA_PROD=true/g' .env
Expand Down
17 changes: 10 additions & 7 deletions README.md
Expand Up @@ -5,7 +5,7 @@
# Invoice Ninja

[![Build Status](https://travis-ci.org/invoiceninja/invoiceninja.svg?branch=develop)](https://travis-ci.org/invoiceninja/invoiceninja)
[![Docs](https://readthedocs.org/projects/invoice-ninja/badge/?version=latest)](http://docs.invoiceninja.com/en/latest/?badge=latest)
[![Docs](https://readthedocs.org/projects/invoice-ninja/badge/?version=latest)](https://invoice-ninja.readthedocs.io/en/latest/?badge=latest)

## [Hosted](https://www.invoiceninja.com) | [Self-Hosted](https://www.invoiceninja.org)

Expand All @@ -17,7 +17,7 @@ The self-host zip includes all third party libraries whereas downloading the cod

* [Features](https://www.invoiceninja.com/invoicing-features/)
* [Videos](https://www.youtube.com/channel/UCXAHcBvhW05PDtWYIq7WDFA/videos)
* [User Guide](http://docs.invoiceninja.com/en/latest/)
* [User Guide](https://invoice-ninja.readthedocs.io/en/latest/)
* [Support Forum](https://www.invoiceninja.com/forums/forum/support/)
* [Roadmap](https://trello.com/b/63BbiVVe/)

Expand All @@ -37,7 +37,7 @@ The self-host zip includes all third party libraries whereas downloading the cod

## Installation Options
* [Ansible](https://github.com/invoiceninja/ansible-installer)
* [Self-Host Zip](http://docs.invoiceninja.com/en/latest/install.html)
* [Self-Host Zip](https://invoice-ninja.readthedocs.io/en/latest/install.html)
* [Docker File](https://hub.docker.com/r/invoiceninja/invoiceninja/)
* [Cloudron](https://cloudron.io/store/com.invoiceninja.cloudronapp.html)
* [Softaculous](https://www.softaculous.com/apps/ecommerce/Invoice_Ninja)
Expand All @@ -47,13 +47,14 @@ The self-host zip includes all third party libraries whereas downloading the cod
* [Postmark](https://postmarkapp.com/)

## Development
* [API Documentation](http://docs.invoiceninja.com/en/latest/api.html)
* [API Documentation](https://invoice-ninja.readthedocs.io/en/latest/api.html)
* [PHP SDK](https://github.com/invoiceninja/sdk-php)
* [Zend Framework](https://github.com/alexz707/InvoiceNinjaModule)
* [Custom Module](http://docs.invoiceninja.com/en/latest/custom_modules.html) | [Watch Video](https://www.youtube.com/watch?v=8jJ-PYuq85k)
* [Custom Module](https://invoice-ninja.readthedocs.io/en/latest/custom_modules.html) | [Watch Video](https://www.youtube.com/watch?v=8jJ-PYuq85k)

## Third Party Modules
* [Event Scheduler](https://github.com/cytech/Scheduler-InvoiceNinja)
* [Manufacturer Module](https://github.com/dicarlosystems/manufacturer-invoiceninja)

> Feel free to email us for help if you're working on a module, we're happy to provide developer support.

Expand All @@ -66,7 +67,7 @@ The self-host zip includes all third party libraries whereas downloading the cod
* [Some Techie](https://www.sometechie.com/customize-invoice-ninja/)

## Contributing
All contributors are welcome!
All contributors are welcome!
For information on how contribute to Invoice Ninja, please see our [contributing guide](CONTRIBUTING.md).

## Credits
Expand All @@ -83,7 +84,9 @@ For information on how contribute to Invoice Ninja, please see our [contributing
* [Samuel Laulhau](https://github.com/lalop) - [Lalop](http://lalop.co/)
* [Alexander Zamponi](https://github.com/alexz707)
* [Matthieu Calie](https://github.com/Matth--)
* [Christopher Di Carlo](https://github.com/dicarlosystems) - [Di Carlo Systems Inc.](https://www.dicarlosystems.ca)
* [Kristian Feldsam](https://github.com/feldsam) - [FeldHost™](https://www.feldhost.net)

## License
Invoice Ninja is released under the Attribution Assurance License.
Invoice Ninja is released under the Attribution Assurance License.
See [LICENSE](LICENSE) for details.
15 changes: 9 additions & 6 deletions app/Console/Commands/CalculatePayouts.php
Expand Up @@ -83,14 +83,17 @@ private function referralPayouts()
foreach ($companies as $company) {
$user = $userMap[$company->referral_code];
$payment = $company->payment;
$client = $payment->client;

$this->info("User: $user");
$this->info("Client: " . $client->getDisplayName());
if ($payment) {
$client = $payment->client;

foreach ($client->payments as $payment) {
$amount = $payment->getCompletedAmount();
$this->info("Date: $payment->payment_date, Amount: $amount, Reference: $payment->transaction_reference");
$this->info("User: $user");
$this->info("Client: " . $client->getDisplayName());

foreach ($client->payments as $payment) {
$amount = $payment->getCompletedAmount();
$this->info("Date: $payment->payment_date, Amount: $amount, Reference: $payment->transaction_reference");
}
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions app/Console/Commands/CheckData.php
Expand Up @@ -87,7 +87,7 @@ public function fire()
$this->checkClientBalances();
$this->checkContacts();
$this->checkUserAccounts();
$this->checkLogoFiles();
//$this->checkLogoFiles();

if (! $this->option('client_id')) {
$this->checkOAuth();
Expand All @@ -107,7 +107,7 @@ public function fire()
->subject("Check-Data: " . strtoupper($this->isValid ? RESULT_SUCCESS : RESULT_FAILURE) . " [{$database}]");
});
} elseif (! $this->isValid) {
throw new Exception('Check data failed!!');
throw new Exception("Check data failed!!\n" . $this->log);
}
}

Expand Down
91 changes: 91 additions & 0 deletions app/Console/Commands/CreateTestData.php
Expand Up @@ -2,11 +2,16 @@

namespace App\Console\Commands;

use App\Models\Ticket;
use App\Models\TicketCategory;
use App\Models\TicketComment;
use App\Models\TicketTemplate;
use App\Ninja\Repositories\AccountRepository;
use App\Ninja\Repositories\ClientRepository;
use App\Ninja\Repositories\ExpenseRepository;
use App\Ninja\Repositories\InvoiceRepository;
use App\Ninja\Repositories\PaymentRepository;
use App\Ninja\Repositories\TicketRepository;
use App\Ninja\Repositories\VendorRepository;
use App\Ninja\Repositories\TaskRepository;
use App\Ninja\Repositories\ProjectRepository;
Expand All @@ -15,6 +20,7 @@
use App\Models\Project;
use App\Models\ExpenseCategory;
use Auth;
use Carbon\Carbon;
use Faker\Factory;
use Illuminate\Console\Command;
use Utils;
Expand Down Expand Up @@ -48,8 +54,12 @@ class CreateTestData extends Command
* @param ExpenseRepository $expenseRepo
* @param TaskRepository $taskRepo
* @param AccountRepository $accountRepo
* @param TicketRepository $ticketRepo
* @param ProjectRepository $projectRepo
*/

public function __construct(
TicketRepository $ticketRepo,
ClientRepository $clientRepo,
InvoiceRepository $invoiceRepo,
PaymentRepository $paymentRepo,
Expand All @@ -71,6 +81,7 @@ public function __construct(
$this->taskRepo = $taskRepo;
$this->projectRepo = $projectRepo;
$this->accountRepo = $accountRepo;
$this->ticketRepo = $ticketRepo;
}

/**
Expand Down Expand Up @@ -103,6 +114,8 @@ public function fire()
Auth::loginUsingId(1);
}

//$this->createTicketStubs();
//$this->createTicketTemplates();
$this->createClients();
$this->createVendors();
$this->createOtherObjects();
Expand Down Expand Up @@ -134,6 +147,84 @@ private function createClients()
$this->createInvoices($client);
$this->createInvoices($client, true);
$this->createTasks($client);
$this->createTickets($client);

}
}

private function createTicketTemplates()
{
$ticketTemplate = TicketTemplate::createNew();
$ticketTemplate->name = 'Default response';
$ticketTemplate->description = $this->faker->realText(50);
$ticketTemplate->save();

$ticketTemplate = TicketTemplate::createNew();
$ticketTemplate->name = 'Updated ticket';
$ticketTemplate->description = $this->faker->realText(50);
$ticketTemplate->save();


$ticketTemplate = TicketTemplate::createNew();
$ticketTemplate->name = 'Ticket closed';
$ticketTemplate->description = $this->faker->realText(50);
$ticketTemplate->save();


$ticketTemplate = TicketTemplate::createNew();
$ticketTemplate->name = 'Generic response';
$ticketTemplate->description = $this->faker->realText(50);
$ticketTemplate->save();


}


/**
* @param $client
*/
private function createTickets($client)
{
$this->info('creating tickets');

for ($i = 0; $i < $this->count; $i++)
{
$maxTicketNumber = Ticket::getNextTicketNumber(Auth::user()->account->id);

$this->info('next ticket number = '.$maxTicketNumber);

$data = [
'priority_id'=> TICKET_PRIORITY_LOW,
'category_id'=> 1,
'client_id' => $client->id,
'is_deleted'=> 0,
'is_internal'=> (bool)random_int(0, 1),
'status_id'=> random_int(1,3),
'category_id'=> 1,
'subject'=> $this->faker->realText(10),
'description'=> $this->faker->realText(50),
'tags'=> json_encode($this->faker->words($nb = 5, $asText = false)),
'private_notes'=> $this->faker->realText(50),
'ccs'=> json_encode([]),
'contact_key'=> $client->getPrimaryContact()->contact_key,
'due_date'=> Carbon::now(),
'ticket_number' => $maxTicketNumber ? $maxTicketNumber : 1,
'action' => TICKET_SAVE_ONLY,
];

$ticket = $this->ticketRepo->save($data);

$ticketComment = TicketComment::createNew($ticket);
$ticketComment->description = $this->faker->realText(70);
$ticketComment->contact_key = $client->getPrimaryContact()->contact_key;
$ticket->comments()->save($ticketComment);

$ticketComment = TicketComment::createNew($ticket);
$ticketComment->description = $this->faker->realText(40);
$ticketComment->user_id = 1;
$ticket->comments()->save($ticketComment);

$this->info("Ticket: - {$ticket->ticket_number} - {$client->account->account_ticket_settings->ticket_number_start} - {$maxTicketNumber}");
}
}

Expand Down
1 change: 1 addition & 0 deletions app/Console/Commands/InitLookup.php
Expand Up @@ -362,6 +362,7 @@ private function truncateTables()
DB::statement('truncate lookup_invitations');
DB::statement('truncate lookup_proposal_invitations');
DB::statement('truncate lookup_account_tokens');
DB::statement('truncate lookup_ticket_invitations');
DB::statement('SET FOREIGN_KEY_CHECKS = 1');
}

Expand Down
113 changes: 113 additions & 0 deletions app/Console/Commands/MakeModuleSettings.php
@@ -0,0 +1,113 @@
<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use Nwidart\Modules\Commands\GeneratorCommand;
use Nwidart\Modules\Support\Stub;
use Nwidart\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;

class MakeModuleSettings extends GeneratorCommand
{
use ModuleCommandTrait;

/**
* The name and signature of the console command.
*
* @var string
*/
// protected $signature = 'ninja:make-module-settings {name : Module name} {--route : Add routes }';

protected $name = 'ninja:make-module-settings';
protected $argumentName = 'module';

/**
* The console command description.
*
* @var string
*/
protected $description = 'Create module settings';

/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}

public function getTemplateContents()
{
$module = $this->laravel['modules']->findOrFail($this->getModuleName());
$path = str_replace('/', '\\', config('modules.paths.generator.module-settings-view'));

return (new Stub('/module-settings-view.stub', [
'MODULE_NAME' => $module->getName(),
'LOWER_NAME' => $module->getLowerName(),
'SHOW_ROUTES' => $this->option('route') ? true : false
]))->render();
}

public function fire() {
$this->info('Creating settings view template for ' . $this->getModuleName());
$module = $this->laravel['modules']->findOrFail($this->getModuleName());

parent::fire();

// add default routes if option specified
$route = $this->option('route');

if ($route) {
file_put_contents(
$this->getModuleRoutesFilePath(),
(new Stub('/module-settings-routes.stub', [
'MODULE_NAME' => $module->getName(),
'LOWER_NAME' => $module->getLowerName(),
]))->render(),
FILE_APPEND
);
$this->info('Added routes to module routes.php.');
}
}

protected function getModuleRoutesFilePath() {
$path = $this->laravel['modules']->getModulePath($this->getModuleName());
$seederPath = $this->laravel['modules']->config('paths.generator.module-settings-routes');

return $path . $seederPath . '/routes.php';
}

public function getDestinationFilePath()
{
$path = $this->laravel['modules']->getModulePath($this->getModuleName());
$seederPath = $this->laravel['modules']->config('paths.generator.module-settings-view');

return $path . $seederPath . '/' . $this->getFileName();
}

protected function getArguments()
{
return [
['module', InputArgument::REQUIRED, 'The name of the module.']
];
}

protected function getOptions()
{
return [
['route', null, InputOption::VALUE_NONE, 'Add default routes.', null]
];
}

/**
* @return string
*/
protected function getFileName()
{
return 'settings.blade.php';
}
}