Commit Graph

191 Commits

Author SHA1 Message Date
Marcus Hill 67ea16e4fc Allow searching the main clients list by client tags.
- DB Change: Prefixed columns in client_tags table with client_tags_
- Updated existing SQL references to client_tags.client_id and client_tags.tag_id to new names
- clients.php: Added SQL joins/where/groupby logic to allow searching via tags
2023-02-25 19:00:31 +00:00
johnnyq 6f0017d90b Dedup More Pagination code you now only have to define Sortby column and its order, also fixed issue when searching by date it would close on the first query 2023-02-24 20:22:57 -05:00
johnnyq f7552cd25a Finished up santizeInput Conv and UI updates 2023-02-23 16:09:37 -05:00
johnnyq 95f190c89d More UI work and santitizeInput migrations 2023-02-20 22:02:39 -05:00
johnnyq 3742051e03 UI spruce up on invoice details, also now more mobile friendly 2023-02-17 13:58:55 -05:00
johnnyq 8a91ae0e46 More updating with new sanitize function and more logging and alerting cont 2023-02-16 22:26:38 -05:00
Marcus Hill 5bb4296f14 Adjust core files to 4 spaces 2023-02-12 14:40:10 +00:00
Marcus Hill 615f317d2b General cleanup/formatting 2023-02-09 12:29:12 +00:00
Marcus Hill f92dc108e2 Tidy
- Move some scripts to their own js files
- Move some duplicate code blocks to functions
- General tidy & spacing cleanups (#538)
2023-02-04 22:09:56 +00:00
johnnyq da810349f4 Moved the toastr response from the top right to the top center 2023-01-25 12:40:25 -05:00
Marcus Hill 2c3ebb3bbb Tidy codestyle - spaces between parenthesis and curly braces 2023-01-21 17:09:39 +00:00
johnnyq 6bafb0bcbb Added Recurring Monthly to Client Listing Billing column as well 2023-01-09 14:51:13 -05:00
Marcus Hill a66b6052df Change stripslashes to strip_tags for better html sanitization 2023-01-02 19:28:24 +00:00
johnnyq 2a16b6d2ae Remove some tags there and here some more output formatting all thanks to the great security researcher @indevi0us for pointing these out to us. 2022-12-21 21:31:51 -05:00
Marcus Hill 51792a1a2f Set a max date attribute for date input fields to prevent/discourage them going over 4 characters (client side validation) 2022-12-17 18:03:53 +00:00
Johnny 64c3d47ac5
Merge pull request #505 from wrongecho/quick-fix-tech-financials
Role enforcement
2022-12-11 13:17:52 -05:00
johnnyq 13d9d6f743 Refresh some UI elements for add edit calendar events and some other UI updates including adding tickets 2022-12-11 13:12:08 -05:00
Marcus Hill 5c1653dc0a Sonarcloud codesmell, add space after IF 2022-12-11 14:47:16 +00:00
Marcus Hill 1917b3413c Hide the client actions (edit/delete) button for non-admins - they aren't able to use the actions anyway as post.php enforces an admin rolecheck 2022-12-11 14:41:47 +00:00
johnnyq b6e540825f Format output for the proper code syntax, this should fix many various issues with output formatting and page breakage 2022-12-02 19:58:21 -05:00
johnnyq e3601ad2ce opps misspelling 2022-09-29 12:23:32 -04:00
johnnyq a8a7ea4805 Made Client Refferral searchable under clients 2022-09-29 12:20:35 -04:00
johnnyq d7090d3286 Reworked Client Section URL routing to be standard with standard URL routing of ITFlow. It was just too confusing to mix to different URL routing operations 2022-09-18 14:00:31 -04:00
johnnyq ff5f08a052 Added copy to clipboard for contact emails 2022-05-14 18:26:31 -04:00
Marcus Hill f7df7811c0 Correct L207 ['client_archive_at'] to ['client_archiveD_at'] 2022-05-11 20:45:54 +01:00
johnnyq 50670d4d27 Table Field cleanup 2022-05-07 20:51:13 -04:00
johnnyq 0ac9143e47 Do no show archived clients under clients, add archive client, add undo archive client 2022-05-07 20:15:13 -04:00
Marcus Hill f5f033fed4 Remove MeshCentral integration
As per recent discussions about the API & scripts being a better way forward for all integration, removing the MeshCentral integration that was added.
2022-04-19 22:42:38 +01:00
Marcus Hill fca1627c33 Remove delete user post.php code. Deleting users means we'll lose all tickets/replies which isn't great.
Correct user archive behaviour so when users are archived they can no longer login. Need to add ability for quick disable/enable of user accounts, as using archive as permanent.
Refactor "You are not permitted to do that!" wording into a constant instead.
2022-04-15 13:29:27 +01:00
johnnyq fd8188095e New Feature Enable/Disable ITFlow Modules now using the automated DB updater 2022-04-14 22:59:36 -04:00
Marcus Hill ca629801af Change all "AND" / "OR" to && / || 2022-04-14 18:40:51 +01:00
Marcus Hill e6a314d233 Prevent tech/accountant from performing certain tasks as per access matrix 2022-03-27 15:32:40 +01:00
Joe Clark e54eae13a7 Fix bug with initializing variable name 2022-03-22 13:06:14 -07:00
johnnyq 5b274b09e6 Clicking client links take you to client overview by default 2022-03-12 13:38:30 -05:00
johnnyq d1ee7ce5aa You can now search by phone numbers with dashes or () before it requied you to only type in the numbers only 2022-03-05 14:41:52 -05:00
Marcus Hill e4dc22a0ce Add functionality to pull/sync assets & info from MeshCentral 2022-02-26 21:51:37 +00:00
johnnyq 4182e43b5e UI polish bolded contact under client listing 2022-02-22 02:22:03 -05:00
johnnyq e633d1ad71 Merged contact with client on ticket listing 2022-02-22 02:15:41 -05:00
johnnyq 1829c7299e Made the php includes much more modular and simpler by lumping them all in 1 file inc_all.php instead of all over the place 2022-02-22 00:29:39 -05:00
johnnyq b850d913a0 Fixed Balanced and total amount paid in client listing 2022-02-19 00:14:52 -05:00
johnnyq a9346845ab Refactored Currency Display using PHP numfmt_format_currency() function as this is best practice and will put the right currency symbol in the right place based off locale and currency type 2022-02-17 22:20:59 -05:00
johnnyq f2f9f22545 Started using new php function for Currency formatting as this is best preactice, removed Client Access and removed certian user roles 2022-02-17 17:41:30 -05:00
johnnyq 5dd576fe20 Removed Legacy AES Password conversion and old AES key from database 2022-02-05 16:41:21 -05:00
johnnyq 0e3c457991 Reverted Modal Callback naming IDs, these do not follow the same logic as File Entity renaming 2022-02-05 13:43:52 -05:00
johnnyq 278b243e7c Finished File Entity Renaming process 2022-02-05 13:24:57 -05:00
johnnyq dd9fcd57d2 Fix guest invoice caused issues with the alert Query on certain client names, will need reworking and testing in other areas of the code as well 2022-01-28 20:38:48 -05:00
johnnyq 5e9eb4d27d More work on #324 Products and Clients 2022-01-23 20:58:27 -05:00
johnnyq 6ad98158db Updated File/Function naming convention for campaigns in accordance to #324 2022-01-23 11:31:25 -05:00
johnnyq a3c63b0649 Added Export Expenses Records with custom from and to Date, Fixed Advanced Search under expenses some other minor code formatting fixups 2022-01-22 14:37:45 -05:00
johnnyq c41daab0c9 Tidy DB file 2022-01-07 22:19:46 -05:00
Marcus Hill a48e3029f1 Ensure canned_date is defined before it is referenced, to prevent errors 2022-01-05 14:21:06 +00:00
johnnyq d23d455cd9 DB update The long awaited Client Tag support is finally complete along with icon support and color badges this has replaced the user maintenance field to allow further customization, fixed tickets as it was using the old permission system. 2021-12-27 11:42:13 -05:00
johnnyq ba584a57e0 BREAKING CHANGES - Many DB Updates - NOT POSSIBLE TO EASILY UPGRADE TO THIS - Completely reworked User Company Access Permssions, started working on Client Role so Clients can access their data and a bunch of other small fixes 2021-12-22 13:08:24 -05:00
johnnyq 78f1e75eda Fix #216 Updated Currency codes everywhere not just in a few places 2021-12-14 13:00:24 -05:00
johnnyq faf39fc84a Code cleanup and fix possible injections when a trusted user is logged in thanks to mwdmeyer, constant_chaos, disclosure5 and rightwayround from /r/msp for pointing these issues out 2021-12-12 13:16:26 -05:00
johnnyq c8d83ca09c Fixed broken Client Print, added option to export client documentation with and without password 2021-12-04 12:12:14 -05:00
johnnyq 100286738e Removed Unnessary DIVs under invoice/quote/recurring notes 2021-11-09 15:17:38 -05:00
johnnyq ee836291f5 Rename location to Address under client listings 2021-11-08 18:10:16 -05:00
johnnyq 55a9e87604 Do not show Primary Contact or Location in clients listing or client details if Contact or Location was deleted aka archived 2021-09-12 00:08:45 -04:00
johnnyq 2e5e1aee52 Phone numbers are all now formatted correctly per their length 2021-09-11 22:41:50 -04:00
johnnyq e9336c1866 Fix Recent Logins Log front not updating due to VAR name 2021-08-31 13:24:33 -04:00
johnnyq 94577379d4 Fixed Edit Client Contact Title it was missing 2021-08-29 14:01:04 -04:00
johnnyq 3b3e6a0166 UI Update on Trip Forms contact forms and location forms also Contact / Location under add /edit contact now add or edit the primary location and contact 2021-08-28 16:07:31 -04:00
johnnyq f3053ffbd4 BREAKING CHANGES: Major Backend Code Changes Updated Foreign keys to prepend their table names ex invoice_client_id, switched most queries over to JOIN instead of = Combined contacts and location into client removed client email, phone etc fields, tons of small bug fixes, and other small UI changes all across the board 2021-08-27 23:14:06 -04:00
johnnyq 7fc738382b Add - Filler to lcient listing if all Client Contact info is blank 2021-08-22 20:50:04 -04:00
johnnyq 24fcb04411 Moved Support to colored handshake icon boldered client name and only mark balance red instead of both balance and paid red 2021-08-22 20:31:06 -04:00
johnnyq f7b07cf107 Added total paid by client to client listing along with their current balance 2021-08-21 01:54:18 -04:00
johnnyq bf69d02cba Added - filler to blank fields in all data listing, some other fixups of required fields etc 2021-08-19 01:48:19 -04:00
johnnyq 73c398f8ba Updated GET Variable names to be more descriptive and look nicer on the URI Bar in clients will also update for others 2021-08-11 14:04:14 -04:00
johnnyq 012c77d81e Fixed Canned Dates issue where seach queries would not work 2021-08-11 12:49:20 -04:00
johnnyq cc10e2c4c9 Introduction of Canned Dates for client search like today yesterday This week etc 2021-08-10 21:47:54 -04:00
johnnyq 63c986ab3c Added Support Type option to clients, added date added field in client listing, added client_accessed_at and sorted clients listing by recently accessed by default within client listing 2021-08-10 20:12:58 -04:00
johnny@pittpc.com eef4c65057 Added Client Name to the top of Client Side Nav Thank You @aftechro 2021-08-07 22:17:43 -04:00
johnnyq 9318f40fcd Initial work on detion confirmation 2021-04-06 01:40:17 -04:00
johnny@pittpc.com 6f46f2ec87 More Currency Code Updates, would like to do conversions and add currency icons at a later date also set default country so it doesnt have to be selected each time 2021-02-14 18:06:32 -05:00
johnny@pittpc.com 66f9e2b10f Removed Records per page as a setting and added it as session variable define at 10 by default when logged in DB Structure Updated 2021-02-10 13:40:28 -05:00
johnny@pittpc.com 530d46a812 Added selectable num of records on each listing page, fixed up Pagination Records UI, added new stripe library, further worked on stripe integration, fixed mispelling in client details 2021-02-10 11:21:38 -05:00
johnny@pittpc.com 274e1dc9e8 Hide Archived dropdowns when adding adding a new item, except when you are editing an item from before the archived date, Do not allow archiving account until balance is 0. 2021-02-07 13:58:42 -05:00
johnny@pittpc.com d2b37a8940 Added new category buttons to certian dropdowns to quickly add a category without going to setting then category also a few fixes here and there 2021-02-06 15:03:11 -05:00
johnny@pittpc.com 1ede4bc795 Shrunk the card header down to a more reasonable size which made a big difference the card header are not so over bearing 2021-02-06 02:35:58 -05:00
johnny@pittpc.com f8166bdc81 Fixed more php errors empty vars updated more ui search headers 2021-02-04 17:42:21 -05:00
johnny@pittpc.com f9899d89ea Bunch of little fixes to to UI empty vars php errors removed a buch of tags etc. Converted client trip modals with global trip modals 2021-02-03 22:42:03 -05:00
johnny@pittpc.com 11f9f82f6d Cleaned up empty vars and tags in Vendors listing add edit post 2021-02-03 18:31:01 -05:00
johnny@pittpc.com ffc647b0ca Cleaned up some unnessesary ids and class tags under edit add list and clients 2021-02-02 22:13:52 -05:00
johnny@pittpc.com 089016265c Fix undefined Var under clients permssion_sql 2021-02-02 20:55:13 -05:00
johnny@pittpc.com bb46c93790 Added Company Select Option on top of side Nav Added Client ACL Modal in users, hide side bar elements based off user permission level, if IT Contract level list only clients in users Client ACL 2021-02-02 17:09:31 -05:00
johnny@pittpc.com 71e1aa46ec Added address field to client listing as well as additonal search filters (phone, email, type address, city, state, zip) 2021-01-25 23:15:42 -05:00
johnny@pittpc.com 93a2c750d0 Updated Client Listing UI Search NAV Bar 2021-01-25 23:04:08 -05:00
johnny@pittpc.com 7b28678110 Added more dividers on action menus to sectionize, removed some unnessesary html5 code 2021-01-20 18:40:33 -05:00
johnny@pittpc.com cefc68c6d0 Moved some fields around under payment added some dividers for sub menus as well as use color red for delete 2021-01-20 17:27:51 -05:00
johnny@pittpc.com 7b4618c16f Number of Records per page is now configurable 2021-01-15 19:51:40 -05:00
johnny@pittpc.com ad979ac8fd Added Referral as a category option, removed Hours and Client Size undr client, rerranged client add and edit New DB Dump 2021-01-15 19:03:07 -05:00
johnny@pittpc.com fb9fe54899 Added Table Bordeless CSS Tag and added HR to mimic other tables 2020-09-25 15:57:16 -04:00
johnny@pittpc.com 1c98e61cf8 Added initial country support for Canada 2020-03-30 20:01:59 -04:00
johnny@pittpc.com da9cad0723 Lots of updates, modal design updates, added notes to many tables, added contact relation to location, moved next_date as primary sorted in recurring, updated database tables, few fixes for transfers and other small bug fixes 2020-02-02 01:08:27 -05:00
johnny@pittpc.com 382a4b2842 Added Phone Extensions to vendors, clients, and contacts, updated DB to relect new fields, some other minor cleanups 2020-01-20 17:05:39 -05:00
johnny@pittpc.com f84e3c4b6b Refactored Login UI to reduce clutter, minimise and increase security also 2FA Box will appear when enabled 2020-01-04 23:44:04 -05:00
johnny@pittpc.com e8b13c6058 Added AES Encryption to client Logins Password Fields, updated DB modified field login_password from VARCHAR to VARBINARY to store password as encrypted, added additonal field to settings called config_aes_key the key is used to decrypt client login passwords, removed invoice, vendor, locaiton linkage in trips, other small cleanups fixups and UI updates, NOTE this will break existing install due to the db being updated 2020-01-04 19:52:41 -05:00
johnny@pittpc.com a28d1d6e57 Added Adavnced Filter to customers and expenses, removed some text-mono, ui updates to ticket details, added quick links to reports under dashboard 2019-12-04 20:58:16 -05:00
johnny@pittpc.com 341f1c37a2 updated initial sorting order for some lists 2019-11-29 14:08:32 -05:00