Commit Graph

7554 Commits

Author SHA1 Message Date
johnnyq
96eec95fb8 Ticket statuses: When the client replies can move a ticket to another status, a Client responded one say, on the built-in statuses as well as your own, falling back to Open when that status is switched off and cleared when it is deleted; a status can count as the first response when an agent moves a ticket nobody has answered into it, quietly or after emailing the contact and watchers a ticket assigned message kept as a public note, counted only when someone got it; the message is set under Messages to clients in Settings Tickets with the canned response placeholders; database 3.7.3 adds ticket_status_reply_status_id, ticket_status_first_response and config_ticket_assigned_message; 26.11.9 changelog entries 2026-11-17 17:52:35 -05:00
johnnyq
0cc24e286e New Ticket: a Status picker of the statuses an agent can set, saved with the ticket so a status that pauses the SLA starts it paused, and a Schedule date and time with Remote or Onsite booked through ticketSetSchedule after the ticket's own emails, with the clash warning; an unreadable schedule turns the form away; New or Open as before when no status is picked; 26.11.9 changelog entries 2026-11-17 17:51:31 -05:00
johnnyq
707fdaedd4 Robustness: lists take page 1 at least and an open end date, portal sessions go to the portal from the main address, custom page forms no longer load a missing post/ai.php, cron jobs that stop with an error code show as Failed with the parser saying what the mail server answered, the mail queue keeps a refreshed OAuth token for the rest of the run, the update check keeps the newest 100 commits and counts them all, restore_cli works on a database with no settings yet, the API reads a non-JSON body as no fields and clamps limit and offset, API client delete removes the client's uploads, contact anonymizing redacts stored values longest first, the asset transfer log names the asset, the client duplicate check escapes wildcards, and Access Modules drops its dead buttons and sorts only on its own columns; 26.11.9 changelog entries 2026-11-17 16:15:23 -05:00
johnnyq
44c7155078 Payments: Charge Saved Card takes a per-window token used as the Stripe idempotency key and holds a per-invoice lock while it re-reads and charges the balance, so a double click or two agents make one charge; Add Payment and Batch Payment work the balance out on save in whole cents, refuse 0 or less, and Add Payment only takes sent invoices with something owed; autopay charges what is still owed on Partial invoices, re-read before the charge; the invoice link payment page allows balances under 1.00, follows the card limit and refuses non-billable invoices, answers errors as JSON and shows them, with a working spinner; guest receipts and quote notices go out with OAuth mail; Make Recurring keeps the discount; statuses set by updateInvoiceStatusFromPayments; 26.11.9 changelog entries 2026-11-17 16:14:53 -05:00
johnnyq
58cbce83cc Tickets: every way out of Resolved into a working status (ticket reply, bulk reply, portal comment, API reply) clears the resolved time and restarts the resolution SLA; an emailed client reply on an open ticket keeps its SLA alerts; portal Resolve needs an unresolved ticket with its tasks done and Close needs a resolved one; API replies refuse closed tickets, New, Closed or unknown statuses and resolving with open tasks, and sync the SLA clock on a status change; API ticket update re-applies the SLA on a priority change; merging with replies moved takes their attachments and files along; 26.11.9 changelog entries 2026-11-17 16:14:18 -05:00
johnnyq
2ba1074e0e Security and access fixes from MountaineerIT's build: security headers in .htaccess and script-free uploads, with restores writing the same uploads guard (no php_flag 500 on PHP-FPM); portal sessions end when the portal is off or the client or contact is archived, and Microsoft sign-in checks the same; saved-card setup takes only the checkout session this sign-in started for the client's own customer; portal uploads take their type from the file; bulk email to clients and contacts needs Modify; bulk archive leaves a primary contact's login; MFA can't be set up again over one that is on, and 000000 is a valid code; tasks waiting for approval stay open; the email parser keeps strangers' mail as an internal note without reopening or attachments, files agents' mail as their internal note, sends no closed-ticket reply to bounces, and cuts long subjects and attachment names; 26.11.9 changelog entries 2026-11-17 16:13:36 -05:00
johnnyq
7b6356e057 Security and SLA fixes from MountaineerIT's build: links in ticket and document HTML lose the ajax-modal class and ajax_modal.js loads only same-origin addresses, so a link in an email can no longer load another site's page into ITFlow and run it as the agent who clicks it (25.12 to 26.11.8); the vault key cookie is HttpOnly on installs without HTTPS too; applyTicketSla keeps a ticket's SLA alert stages when re-stamping leaves the alert standing, so saving an SLA, the SLA settings or a closure day, or changing a priority, no longer re-sends every breach and warning email; 26.11.9 changelog entries 2026-11-17 16:12:54 -05:00
johnnyq
c6f1de43e0 Agent banners: a note along the top of agents' pages for one client or every client, shown as Notice, Heads up or Urgent between its start and end; a client's is added from New Banner in the client's menu, which lists its banners to change, and shows on its pages and on its tickets, invoices, quotes, recurring invoices and projects opened on their own; Admin > Agent Banners lists them all and adds them for every client; Notice and Heads up can be hidden per agent until the banner changes, Urgent is big and red and can't be hidden; kept in portal_announcements with a new announcement_audience column and an announcement_dismissals table (database 3.7.2), sharing the portal announcement form, now includes/announcement_form.php; 26.11.9 changelog entries 2026-11-17 13:44:49 -05:00
johnnyq
579eaeca1a Ticket tasks check off and mark not done without reloading the page: the data-task-toggle links are followed with fetch and the ticket page the post handler redirects back to supplies the task rows, count, progress and Resolve button in place, with its toast, keeping the scroll position; only the latest click is applied, rows are replaced inside the tbody so reordering keeps working, and anything unexpected falls back to the old navigation; 26.11.9 changelog entries 2026-11-17 12:58:05 -05:00
johnnyq
6e313f0c7d Ticket Schedule Cancelled emails send on Microsoft 365: sendQueueEmail puts a calendar file in its own text/calendar part only for a meeting with an organizer and attendees and attaches the rest as invite.ics, so a ticket's cancellation goes attached like its booking instead of as a meeting Exchange refuses; a failed send keeps the SMTP server's reply in email_error; 26.11.9 changelog entries 2026-11-16 22:31:59 -05:00
johnnyq
24d748198f Remove csv 2026-11-16 22:16:31 -05:00
johnnyq
00784e3139 Tax Package report under Finance for a tax year starting in any month: profit and loss by quarter, sales tax on payments received and invoices sent, account balances at the start and end of the year, invoices unpaid at year end, vendors for 1099s for US companies with the threshold by year and card payments apart, mileage and expenses with no receipt; Download package makes a ZIP of the page as a PDF, each table as a CSV, the Income, Expenses, Invoices and Trips registers and the receipts named by date, vendor and amount; reportCsvData, reportPdfStart with a sender, reportTable pdf_whole, and report PDF tables wrap only their text columns when wider than the page; 26.11.9 changelog entries 2026-11-16 22:13:45 -05:00
johnnyq
2109349715 Reports export as a PDF that looks like the page: Export PDF draws the report as usual and reportPdfFinish lays out what it drew with ReportPdfWriter in functions/report_pdf.php - the title bar, the figures, each section with its tables in the page colours, badges and bold, the notes, heat grid, bar lists and the geography map - with the charts drawn again by the browser in light colours and posted as PNG pictures; tables list every row for a PDF, Letter or A4 by country and landscape for wide tables, Client Review offers a PDF once a client is picked, and the per-table PDF is gone from the Export menu; 26.11.9 changelog entries 2026-11-16 21:55:19 -05:00
johnnyq
5417f68ac6 Reports export each table to PDF as well as CSV: reportExporting takes export=csv or pdf and reportCsv hands a PDF to reportPdf, which lays out the columns on screen as the page words them with totals and heading rows through finishExport, and turns back a table over EXPORT_PDF_MAX_ROWS; the report header Export is always a menu of CSV and PDF, per table where there are several; 26.11.9 changelog entries 2026-11-16 21:31:23 -05:00
johnnyq
8294a3f8cb Geography report under Clients and Documentation - where clients and their locations are by country, state or province and city, on built-in maps of the world, US states and Canadian provinces from Natural Earth outlines in includes/maps, shaded by clients or locations, with drill-down, incomplete address count, leads switch and CSV exports; reportGeo helpers in functions/reports.php; 26.11.9 changelog entries 2026-11-16 21:15:14 -05:00
johnnyq
4a5632f490 Dashboard cash flow runs January to December of this year, or of the year picked, with what is expected for the months still to come, instead of the last 12 months and the next 3; dashboardCashFlow labels months by name and returns the year it shows; 26.11.9 changelog entries 2026-11-16 20:51:56 -05:00
johnnyq
05cb1a158b View as Client no longer counts as the client viewing: an invoice, quote or contract link opened in a browser signed in to ITFlow as an agent leaves its status, history and notifications alone, through userSignedInAgent, which takes the session as the agent pages do; 26.11.9 changelog entries 2026-11-16 19:42:34 -05:00
johnnyq
4faa0d91ca Pasted pictures go with ticket emails as pictures attached inline: emailInlineImages takes each data image out of an email's HTML to uploads/tmp/mail_images, stored once by its hash, and points it at a cid that the mail queue attaches with addEmbeddedImage, so mail programs that show no data images show them and the queue keeps each picture once rather than in every email; Admin Mail Queue shows them back in the message and counts only files as attachments, a meeting request with pictures goes as an attached invite, and nightly removes pictures no queued email uses; 26.11.9 changelog entries 2026-11-16 19:36:00 -05:00
johnnyq
6eb6102dc0 Large pasted pictures: emailMessageHtml styled images and paragraphs with a lookahead across each tag that ran out of pcre.backtrack_limit on a data image of 750 KB or more and emptied the email's message, so it now works a tag at a time and keeps its input on failure; the same scan through a tag is replaced in document template export and import and in the client export's document images, which came out empty with such a picture; 26.11.9 changelog entries 2026-11-16 19:12:50 -05:00
johnnyq
c2eb55c8dc Mail queue keeps what a sent email said: only an email with a link or code that opens something - a shared login and its code, a portal or agent invite, a password link, a contract to sign or a task to approve - is cleared once sent, and a day after it was queued if it failed or was cancelled; emailQueue gains a sensitive option set by those senders, cron marks sent email with mailQueueSentSql, nightly runs mailQueueClearSensitive, and a cleared email can't be retried; database 3.7.1 adds email_queue.email_sensitive and marks email waiting at the update; 26.11.9 changelog entries 2026-11-16 18:48:57 -05:00
johnnyq
8784c50abe API keys in the address: Admin API Keys flags each key sent in a call's address in the last 30 days with a note counting them, and Admin Settings Security gains Take API keys in the address - off, a key in the address is turned away with a 401 telling the caller to use the X-API-Key header and logged against the key; database 3.7.0 adds api_keys.api_key_address_at and settings.config_api_key_in_address, on where a key still in date was there at the update and off otherwise and on new installs; 26.11.9 changelog entries 2026-11-16 18:17:49 -05:00
johnnyq
270cc91f60 API keys in a header: the API takes the key from the X-API-Key header first, then a JSON body or the address as before, so a key no longer has to be sent in the address where web server and proxy access logs keep it; apiKeyFromRequest reads it for validate_api_key, which now escapes it once; the New API Key window says where it goes; 26.11.9 changelog entries 2026-11-16 18:05:44 -05:00
johnnyq
9f8676fe48 Quieter App Logs from cron: the email parser no longer logs a run summary every minute mail comes in or is left in the inbox, and echoes its counts and time instead; with no IMAP or SMTP provider set up the email parser and mail queue stop with a reason Maintenance Cron shows instead of an App Logs entry every minute; the mail queue, ticket SLA monitor, domain refresher and certificate refresher stop without an App Logs error while cron is switched off, as the email parser already did; 26.11.9 changelog entries 2026-11-16 17:38:51 -05:00
johnnyq
ad4899a9ae Receipts and the company logo open in the Picture window: an expense's receipt on its form and quick look, the company logo in Admin Settings Company details and the setup wizard, and the setup account step's avatar; pictureField gains a free crop (shapes free, a frame with corner and edge handles), Trim the edges for logos, an accept option with PDF passthrough for receipts, submit to save the quick look's receipt as soon as it is used, tall and logo boxes and pictureFile for a PDF; a PNG stays PNG where WebP is not taken so a logo keeps its transparency; setup.js loses its image preview and checks and the setup preview CSS is gone; 26.11.9 changelog entries 2026-11-16 15:11:45 -05:00
johnnyq
eee720ff77 Pictures open in a Picture window: the profile, Admin Users, contacts, assets, locations and racks show the picture itself on a button with a camera badge, a person's initials or an Add a photo box when there is none, and clicking it opens a window over the form to drop, paste or choose a picture, crop it to fit its shape by dragging, zooming and turning, and use it or remove the one there is; new pictureField in functions/picture.php and js/picture_field.js put the crop in a hidden file input as a JPG or WebP up to 512 pixels for a person or 2048 for a photo, upright and without location or camera details, and set the existing remove field, so the forms post the same fields and no handler changed; a person's initials follow the name as it is typed; the old file inputs, remove boxes and preview scripts on those forms are gone; 26.11.9 changelog entries 2026-11-16 14:44:31 -05:00
johnnyq
525e1b6f43 Vendors, domains, certificates, licenses and services import through the Import window: five new kinds in importKinds saved through the same form functions as their New and Edit windows, with updates laying the file's values over the record's own; vendors import as the client's from its vendors or as your own from your vendors, with the permission chosen by client through the new importModule; domains are tidied and matched by name with registrar and hosts found by vendor name and changes kept in their history; certificates read a pasted PEM or take the issuer and expiry as typed and find their domain from the host; licenses get seats from asset and contact names and keys added; services link to the client's assets, vendors, contacts and domains by name; domains and certificates are looked up by their refreshers; Import added to the five list menus and empty states, with the Domains and Certificates menus now shown to agents who can add; 26.11.9 changelog entries 2026-11-16 14:11:01 -05:00
johnnyq
71f7c00ab4 One Import window for clients, contacts, locations, credentials, networks, assets and products: new agent/modals/import/import.php and agent/post/import.php replace the seven per-list import windows and their handlers; the file's columns are matched to fields by heading and shown with sample values to change or leave out, a record already here can be skipped or updated with the file's non-empty cells, and before importing the window shows what every row will do by running the import in a transaction and rolling it back; rows that do not import download as a CSV with the reason; each kind is an entry in importKinds in new functions/import_kinds.php with its fields, matching and row function, each row behind a savepoint; contacts, locations, credentials and networks now take tags, notes and their other export columns, assets keep history rows and merge details on update, and templates need read access to their module; 26.11.9 changelog entries rewritten for the new window 2026-11-16 13:59:18 -05:00
johnnyq
fd360b35b9 Client and asset imports read a file by its headings: new functions/import.php reads an import's CSV by heading in any order with any column left out, comma or semicolon separated, without the old 1000 character line limit, and reads files from the old templates by position when no heading matches; clients now take everything their export has plus Lead, Tax Rate by name, Tax Exempt with certificate and expiry, Tags and Notes, keep a phone's country code, and no longer get an empty location or contact; assets now take everything their export has plus Status, Primary IP or DHCP, Primary MAC, Network, Links, Vendor, Order Reference, Install Date, Warranty Expire and Tags, with Assigned To, Location, Vendor and Network found by name and Assigned To by email; rows with no name are skipped, and the import says what it could not use; templates and the import windows list the columns from the same definition; 26.11.9 changelog entries 2026-11-16 13:25:56 -05:00
johnnyq
a4f2cf0a60 Virtual machines can have a vendor: Virtual Machine in ASSET_TYPES now has the purchase fields, so the asset form shows Vendor, Order / invoice reference and Purchased on its Purchase tab like other types, for the provider a hosted VM or VPS is rented from - before, a VM only kept a vendor when added from a vendor's page; 26.11.9 changelog entries 2026-11-16 13:00:50 -05:00
johnnyq
c814eaa6d8 Contract rates of 0 are a rate of nothing rather than the default: contractFromInput saves an entered 0 as 0.00 and only an empty rate as NULL, for contracts, contract templates and the API; contractTicketRate, contractTermsOn, contractUsualTerms, contractClientTerms and the clients list rate treat a rate as set when it is not NULL instead of above 0, and contractClientTerms gives null for no after-hours rate so a 0 after-hours rate shows on the client overview, terms note and export; the no-rate warnings on Unbilled Time, Unbilled Tickets, Time Detail by Client and the bill-a-ticket window only flag a 0 rate from the default; the contract and template forms say a rate of 0 bills that time at nothing; existing contracts have no 0 rates stored so nothing changes for them; 26.11.9 changelog entries 2026-11-16 12:42:38 -05:00
johnnyq
24c902f0e2 Add RMM device actions: a provider's Edit has a Device actions switch, off for every provider until an admin turns it on, and with it technicians with Modify on Support can reboot a device, install its patches on Windows, turn its maintenance mode on and off, and run one of the RMM's scripts on it, from the Actions menu on the device's card on its asset or the lightning button beside the asset on a ticket; reboot and patches ask first and say who is signed in; Run a script lists the RMM's scripts for the device's platform with favorites first, starts with the script's own arguments and timeout, shows the output in the window and notes it on the ticket picked, or leaves it in the RMM's history when not waiting; each action goes in the asset history, the audit log and, when done from a ticket, on it as an internal note by the person; a Tactical 403 says which role permission the key needs; Tactical actions use POST agents reboot, POST winupdate install, PUT agents with maintenance_mode, GET scripts and POST agents runscript; rmmHttp accepts text answers, reads text error bodies and sends an empty object for an empty body; new agent/post/rmm.php handlers and agent/modals/rmm/rmm_script.php window, with their request keys in the demo locks; database 3.6.9 adds rmm_providers.rmm_provider_actions; 26.11.9 changelog entries 2026-11-14 00:25:16 -05:00
johnnyq
ecbb974fff API stage 3, calendar events, trips, accounts and money, contracts, and files and folders: calendars can be read, and calendar events read with their attendees, created once or repeating for a client or nobody, changed, sent as invitations, skipped for a day of a series and deleted, following calendarEventCan(); trips can be read, logged, changed and deleted through tripSave() and tripDelete(), anyone their own and someone else's with Financial; accounts can be read with their balances, added, changed, archived, unarchived and deleted while nothing is on them, other income and transfers read, recorded, changed and deleted, and recurring expenses read, set up, changed, paused and resumed, recorded now, moved on past missed runs and deleted, keeping reconciled lines as they were; contracts can be read with their prepaid hours and signing state, added, changed, made active, renewed, cancelled and deleted, sent for signature or the link sent again, the request withdrawn, prepaid hours added with a draft invoice or deleted, tickets' time drawn or put back, and the billing recurring invoice made, linked or unlinked; a client's files can be read, uploaded as base64, downloaded, renamed, moved, archived, unarchived and deleted once archived, and folders read, made, renamed, moved and deleted with their contents moved up; new api/v1/form_input.php builds a save function's input from the API's field names; the upload allow-list moves from agent/post/file.php into fileUploadExtensions() so Upload Files and the API check the same list; enforce_api_rbac.php maps the new resources, lets events, calendars and trips check their own rules, puts the new state changes at Modify and treats files/download as a read; 26.11.9 changelog entries 2026-11-13 23:51:10 -05:00
johnnyq
0ee649967e API stage 3a, network IPs, asset interfaces, license seats and keys, notes and racks: a network's documented IP addresses can be read, added one at a time or as a run of up to 256, changed and deleted with the address plan's checks; an asset's interfaces can be read with what each is plugged into, added, changed, made primary, plugged in or unplugged and deleted with the interface window's checks; a license's seats can be set, it can be renewed by a term or to a date, and its keys read, added, handed to the client's devices and users and deleted; asset and contact notes can be read, added with one of your note types, archived, unarchived and deleted once archived, through one shared body in notes_body.php; racks can be read with what is mounted in them, made, changed, archived, unarchived and deleted once archived, and items mounted, moved and taken out with the rack page's checks; new categoryPickedName() checks a posted name for a category kind held by name; enforce_api_rbac.php maps network_ips, asset_interfaces, software_keys, asset_notes, racks and rack_units to Support and contact_notes to Clients, with seats and renew at Modify; software/read.php looked up software_key from the wrong parameter and now finds a license by its own key or any of its keys; 26.11.9 changelog entries 2026-11-13 23:27:51 -05:00
johnnyq
0f4a8b5131 API stage 2, payments, projects, tasks and recurring tickets: payments can be read, recorded on an invoice that is sent and still owed on with no more than is owed into one of your accounts and the receipt emailed when mail is set up, changed, deleted and their receipt sent again, with reconciled payments keeping their date, amount and account, needing Financial with Sales at Read; projects can be read with their tickets and progress, started for a client or as internal work with a project template's tickets, changed, given a template's tickets, completed once none of their tickets is open, reopened, archived, unarchived and deleted once archived, and tickets/create and tickets/update take ticket_project_id, turning down a project that isn't the client's or internal; a ticket's tasks can be read, added, changed, marked done or not done and deleted, with approvals asked of the client or the team, approved by the key's agent and taken off, and a task waiting on or declined for approval can't be marked done; recurring tickets can be read, made from a ticket template with its fill-ins and tasks, changed, paused and resumed, raised now and deleted; enforce_api_rbac.php maps payments to the Financial module and projects, tasks, task_approvals and recurring_tickets to Support, with complete, approve, raise and apply_template at Modify; 26.11.9 changelog entries 2026-11-13 23:13:11 -05:00
johnnyq
1a0c984242 API stage 1, the missing operations on the existing resources: invoices can be created with their lines, updated, sent or reminded, marked sent, cancelled and deleted, and invoice lines updated and deleted; quotes created with their lines, updated, sent, marked sent, accepted, declined, invoiced as Invoice does on the quote page and deleted, with new quote_items read, create, update and delete; recurring invoices updated, paused or resumed and deleted, with new recurring_invoice_items read, create, update and delete including lines that count users or devices; expenses created, refunded, updated and deleted; services created, updated, archived, unarchived and deleted; licenses created, updated and deleted; certificates updated, archived, unarchived and deleted; products created, archived, unarchived and deleted; tickets reopened and deleted, ticket replies edited and archived, assets archived and unarchived, documents, domains, networks, vendors and tags deleted, and client portal invites listed and cancelled; each endpoint calls the same functions as its page handler, the line endpoints share billing_lines.php and the new billingLineFromApi() which recurring_invoices/create now uses too, enforce_api_rbac.php maps quote_items and recurring_invoice_items to the Sales module and puts the state changes at Modify, and every delete needs Full; 26.11.9 changelog entries 2026-11-13 22:51:49 -05:00
johnnyq
38e5a8ddfc Fix uploads and scripts under PHP-FPM: php_flag engine off in the .htaccess files of uploads, its backups, expenses, tmp and canned_responses folders, and scripts is wrapped in IfModule mod_php.c, as Apache only knows php_flag under mod_php and with PHP-FPM through mod_proxy_fcgi answered every request in those folders with a 500, so the logo, favicon, avatars and photos of contacts, locations, assets and racks didn't load on hosting panels; PHP still can't run there, as uploads denies php and the like by name and the other five deny everything; 26.11.9 changelog entries 2026-11-13 20:25:50 -05:00
johnnyq
3f8d948fe1 Add billing per managed device: recurring invoice lines can take their quantity from Managed devices, the client's devices an RMM provider has, narrowed by device type and tag like Devices and, with more than one provider, to one of them; devices the RMM no longer has stop counting and lost, stolen or retired ones never count; products can be counted Per managed device in the product window and product import, so they bill that way on any recurring invoice; a line whose provider is deleted keeps its last quantity marked RMM provider gone, and deleting a provider says how many lines bill its devices; tag merges, the line script and the AI catalog text know the new source; no database change; 26.11.9 changelog entries 2026-11-13 18:44:58 -05:00
johnnyq
c76882f3d2 Add RMM alerts opening tickets: a provider's Edit picks which alerts open tickets (errors, errors and warnings, or every alert) and their ticket category, and the new RMM Alerts cron job looks every minute - a new alert on a device of a linked client opens a ticket on its client and asset with priority by severity, the same alert again goes on its open ticket and reopens it if resolved, and a cleared alert notes and resolves its ticket unless someone has written on it, it was moved to another status or another of its alerts is still open; the first look after turning alerts on, or the provider back on, takes open alerts as known, as does an alert raised before its device came into ITFlow; Tactical alerts read from PATCH /alerts/ and GET /alerts/id/ with no setup in Tactical; open alerts and their tickets on the asset's RMM card, an Alerts column on the providers list, the RMM ticket source on the ticket page and list, and the new-ticket address email; database 3.6.8 adds the alert columns to rmm_providers and the rmm_alerts table; 26.11.9 changelog entries 2026-11-13 18:33:38 -05:00
johnnyq
3fb0a3e2e0 Add RMM Providers under Admin > Integrations to bring devices in from an RMM as assets, with Tactical RMM as the first kind: a providers list (search, sort, add, edit, test, sync now, turn off and on, delete), a Clients page per provider to link its clients to ITFlow clients with same-name suggestions, devices matched to existing assets by serial or unique name or made as new ones, each asset field following the RMM until it is edited in ITFlow, removed devices marked and returned ones picked up, deleted assets left out until Bring back, a card per RMM device on the asset page with online state, last seen, signed-in user, reboot, patches and failing checks, Take Control and dashboard links, the state on the quick look, a status dot and RMM filter on the assets list, and the RMM Sync cron job every 15 minutes across every provider that is on; shared engine in functions/rmm.php and the Tactical adapter in functions/rmm_tactical.php so another RMM is one file and one registry line; database 3.6.7 adds rmm_providers, rmm_clients and rmm_devices; demo mode locks the new pages and handlers; 26.11.9 changelog entries 2026-11-13 18:13:58 -05:00
johnnyq
88648fb45c Security: send the JSON answers in agent/ajax.php as application/json so a browser never draws them as a page (the credential username and password answer and sixteen others), show the login key on the join page only while an invite is pending or accepted, and limit filter labels built from an id in the address to clients the agent can open with a new getFieldByIdInScope helper (tickets project filter, Trips and its export window, domains export window, Update Prices, AI refusals); adds the 26.11.9 changelog section 2026-11-13 17:04:57 -05:00
johnnyq
0ce8b5a510 Bump ITFlow to 26.11.8 2026-11-13 13:21:22 -05:00
johnnyq
e92c5cee2f Speed up one account's Transactions, the Transactions and Income counts and totals, and Reconcile: the balance after each line on one account no longer comes from a running total over the account's whole history, accountLedgerBalances giving each line on the page the account's balance from accountBalanceSql less the lines after it, or oldest first the opening balance and the lines up to it, reading only the lines from the page's edge date on and adding up in cents, which lets one account's lines page newest first through listNewestFirst too; the ledger SQL is split into accountLedgerLinesSql, one SELECT naming its columns for payments, revenues and expenses, and accountLedgerWrapSql, with accountLedgerSql their UNION ALL as before and still used with the balance by the export, and the new accountLedgerTotals takes counts and sums over each part and adds them up in cents because a UNION in a derived table is written out whole before it is counted, used for the Transactions pills and totals and Reconcile's uncleared count and later lines; Income gets incomeLinesSql and incomeTotals the same way for its pills, total and incomeTotal; checked against the pushed ledger in every column on every account, over 34 filter sets for the totals, and against the old pages over 119 Transactions, Reconcile and Income combinations on four accounts with transfers, reimbursements and reconciliations; update the 26.11.8 changelog section 2026-11-13 13:17:59 -05:00
johnnyq
2311d1f9d8 Speed up Admin Audit Logs, Sign-ins and Users, Transactions, Income, Invoices, Projects and the invoice page on installs with years of history: database 3.6.6 adds logs (log_user_id, log_type, log_action), logs (log_type, log_action, log_user_id, log_ip, log_created_at) and tickets (ticket_invoice_id), each only where missing and in db.sql, leaving out one it cannot add with a warning in App Logs; Audit Logs drops SQL_CALC_FOUND_ROWS and counts its views with one GROUP BY log_type, log_action in the new auditLogViewCounts, which also hands back the types and actions in the view so auditLogKindsSql finds a sparse view or action on the index, and builds its who, client, type and action lists with auditLogDistinctSql in place of EXISTS and DISTINCT over the log, as the export window now does; Sign-ins reads only the new log_type index, counts unknown emails for the page's addresses in their own query and ends every sort on log_ip or log_user_id so tied rows keep one order; the new listNewestFirst in functions/app.php pages a newest-first list from the last month, year and four years back before the whole of it, used by Transactions without the running balance and by Income, which both take their count from their pill in place of SQL_CALC_FOUND_ROWS, with incomeUnionSql(false) leaving out the name joins for Income's counts when there is no search; Invoices replaces the LEFT JOIN of every payment grouped by invoice with a paid lookup for the page's invoices and the unpaid ones in the totals; the project lookups, through the new PROJECT_TICKETS_SQL, the client onboarding ticket counts and the expense refund lookups also say the column is > 0, so the database stays on the index where nearly every row has 0 and its statistics say a lookup finds every row, Projects having read 33.6 million rows with no ticket on a project; checked on an eight-year test install against the old code over 103 filter, sort and page combinations and a crawl of all 233 pages; add the changes to the 26.11.8 changelog section 2026-11-13 12:58:04 -05:00
johnnyq
20cc3a9cf3 Speed up the dashboard's Hardware not on assets count and the invoices list's hardware filter: productHardwarePending and the hardware filter in agent/invoices.php had a COUNT(*) subquery a line on assets by the line's invoice and line, and where nearly every asset has asset_invoice_id 0 the index statistics say a lookup finds every asset, so the database read the whole assets table once a hardware line, 1.89 seconds and 3.1 million rows on a forum install and 22.9 seconds and 185 million rows on a test install with 25,000 assets none from an invoice; both now count each line's assets once and join them through the new productHardwareMadeJoinSql, a LEFT JOIN onto invoice_items of assets with asset_invoice_id > 0 grouped by invoice and line, a range the database measures on the index itself, with productHardwareShortSql comparing against hardware_made.made; run with none, 3,000 and 21,000 of 25,000 assets made from an invoice, the same counts as before each time and 18 to 32 ms; the lookups by one invoice give the database a constant and are unchanged; add both to the 26.11.8 changelog section 2026-11-13 12:18:21 -05:00
johnnyq
d14788a4f1 SLAs page wording: name the report SLA Performance, as the reports list does, in the menu beside New SLA and in the help card where it said SLA Summary; correct the archive confirmation, which said tickets under a contract that gave the SLA get no SLA from then on, when they fall back to the default for their priority and only a priority the SLA was the default for gets none; join the priorities with and in that sentence 2026-11-13 03:04:21 -05:00
johnnyq
bf7f6d476b Word contract SLA targets as the SLA clock counts them: slaMinutesText now gives formatSlaMinutes in business time, so the contract page, the contract and template windows, the contract document and its PDF read 4 business hours and 6 business days where they read 4 hrs and 2 days; add an exact option to formatSlaMinutes that drops no remainder, used by contracts and Admin > SLAs so both word a target the same, with the emails unchanged; keep the old wording only for comparing fingerprints through the new contractDocumentIs, so a contract signed or out for signature before this is not marked as changed or withdrawn by the rewording alone and keeps the text it was sent with; a document now depends on the business hours wherever a target is a business day or more; changelog entries for 26.11.8 including an Upgrading note to check signed copies; no database change 2026-11-13 02:41:53 -05:00
johnnyq
be50f92fe8 Rebuild Admin > SLAs on the standard list pattern: the SLAs are a searchable, sortable, paged list with Active and Archived views and the settings forms beside it, and each SLA shows its targets in business time with the hours typed under it, the priorities it is the default for and what uses it (open tickets, contracts and contract templates); closure days become views of the same list, coming up and past, searched by name, date, month or weekday, and Add US Holidays is a window that says how many of each year are already in; the SLA window takes targets as hours and minutes and refuses a missing name, a missing response target or a resolution target shorter than the response target; archiving says what stops getting the SLA and an archived default is shown as archived; Default SLA by priority uses the select picker, Business hours and alerts has day buttons and warns when cron is not running, and an On tickets now strip links to the tickets close to or past a target; fix business hours that end before they start being accepted and running the SLA clocks around the clock, keep the warning percent within 1 to 99, word the save messages as tickets not yet closed, and fix the backslash shown after saving an SLA with an apostrophe in its name; add slaBusinessDayMinutes, formatSlaClockMinutes and slaTargetMinutes to functions/sla.php; no database change 2026-11-13 02:25:09 -05:00
johnnyq
dfb0298245 Rebuild Maintenance > Cron on the Update and Backup pages' pattern: a status card at the top says cron is running, when it last ran, how many jobs are on and which runs next, or instead that cron has never run or has stopped, with the crontab line and a copy button, that it is switched off, with Turn cron on, that a managed instance's jobs are paused by its manager, or that a job failed, by name; the jobs are listed with an icon, what each does, its schedule and next run, its last run and how long it took, and a status of Queued, Running, Completed, Failed, Skipped, Paused, Not run yet or Didn't finish for one still running six hours on, with the reason a run was skipped under the job and a kept error shown until dismissed, marked as having run since once it has; the list sorts in PHP on the standard sort and order by job, schedule, last run or status, starting by schedule, with no pager or search as it is a fixed list of at most fifteen; a job's menu has Run now, Change the schedule, Copy the command to run it and Turn off, which asks first; the page reloads itself every 10 seconds while a job is queued or running and every 15 while cron has not been heard from; the side column has At a glance, the cron line with a copy button and Turn cron off, which asks first; includes/cron_jobs.php gives each job an icon and drops cronJobTimeAgo, which nothing uses now; the schedule window opens with what the job does, uses the select picker and names the time zone; admin/post/cron.php words its messages as the buttons are worded, with the audit log unchanged; js/auto_reload.js holds a reload while a window, menu or confirmation is open, a field has focus or text is selected, which also stops the Backup page reloading away its Change the time window or what is typed into its retention boxes; CONTRIBUTING says to give a new job its icon; no database change and no new CSS; changelog entries added to 26.11.8 2026-11-13 01:51:34 -05:00
johnnyq
dd160ef1d7 Rebuild Maintenance > Backup on the Update page's pattern: a status card at the top says when the last backup was made, what kind and when the next scheduled one is due, or instead that one is being made, the last one failed and why, the last good one is over 7 days old, none has been made yet, a queued one is stuck because cron isn't running, or there is no encryption key, with Back up now and Database only under it, and the page reloads itself every 10 seconds while a backup is being made except while an exported master key is showing; the backups list uses the standard list plumbing with sortable headers on date, type, size and status and the standard pager, no longer stops at the newest 100, shows who made each backup or that the schedule did, when it was last downloaded and why one failed, and a row menu copies its path on the server and its SHA-256 checksum, deletes a finished backup, takes a queued one off the queue or removes a failed or missing one, with the card left out when there are no backups; the schedule and retention card shows whether the Backup cron job is on and at what time, with Turn on and Change the time using the Cron page's enable_cron_job handler and cron_edit window; an At a glance column has the last Full Backup and Database Only, the schedule, retention, how many are kept and their size, free space, cron status and the backup folder; the encryption key is masked behind the eye with a copy button; the master key export moves to a new ajax modal, admin/modals/backup/backup_master_key.php, which asks for the password and says an encrypted copy is filed with the backups and every agent is notified, where the old window said the key was not written anywhere; delete_backup in admin/post/backup.php words its audit entry and message by the backup's status; no new CSS or JS; changelog entries added to 26.11.8 2026-11-13 01:14:10 -05:00
johnnyq
755e488d6c Add and change lines on invoices, quotes and recurring invoices on the page itself, without a reload: the row of boxes under the lines is now one field - type a product and Enter takes the one picked out, adding it as a line with its description, price and tax, billed as the product usually is on a quote and counted per user or per device on a recurring invoice, or type anything and pick the Add row for a line of its own - and the new line opens with its quantity ready to type over, Enter moving on to a price it still needs and then back to the field; a line name, description, quantity, price and tax are changed where they sit, by a click or by Tab and Enter, saved on Enter or on leaving, put back by Escape, with the tax picked from the select picker and a counted quantity left to the Edit Line window; a quote line menu gains Billed, one time to yearly; agent/ajax.php gains billing_item_add and billing_item_set with the checks post.php billing_item_save makes, answering JSON, and functions/billing.php gains billingItemSetField, which replaces one value and hands the line to billingItemSave so stock, tax and totals follow as before, saves nothing when the value is the same, and gives the audit log what changed; js/billing_items.js is rewritten to send saves one at a time in order and then fetch the page again, taking from it the lines by id and every element marked data-billing-live - the totals and amount due in includes/billing_paper.php, the header card, tax warning and side column on the three pages - so nothing is drawn twice, a field in use is left alone, and a document no longer open for changes reloads; the paper carries the products as JSON and the tax options, and itflowBillingItems no longer takes products; js/autocomplete.js gains pickFirst and an extra row kept in view under the list, and opens above the field when the list does not fit below; getProductsForAutocomplete encodes with JSON_HEX_TAG and JSON_HEX_AMP; the guest and client portal pages are unchanged; add a 26.11.8 changelog section 2026-11-12 16:14:30 -05:00