Commit Graph

7565 Commits

Author SHA1 Message Date
johnnyq
512ac75c73 Tickets: booked work has an end - the Schedule window has How long from 15 minutes to a day and an Agent picker that gives the ticket to someone else and takes it off the old agent's calendar; New Ticket's Schedule and a recurring ticket's Book the work for take a length; the calendar draws each booking at its length and dragging its bottom edge changes it after asking; the booking email, calendar file, ticket and guest page show the end; the double-booking warning lists the agent's tickets and timed events that overlap the booking instead of anything within two hours; database 3.8.2 adds tickets.ticket_schedule_end and recurring_tickets.recurring_ticket_schedule_minutes; 26.11.9 changelog entries 2026-11-17 20:50:59 -05:00
johnnyq
1c4c8be8de Users: an API or service account keeps its role for API keys but is left out of agent lists, pickers, notifications and admin alerts, cannot sign in, and has its own API accounts tab on Admin Users; database 3.8.1 adds users.user_service_account; 26.11.9 changelog entries 2026-11-17 19:24:04 -05:00
johnnyq
46a2dfe96c Admin Labor Costs holds each agent's cost per hour from a date with a company default, and Client Profitability adds labor, parts, profit, margin and break-even hours for flat fees, with a Paid or Invoiced basis; database 3.8.0 adds user_cost_rates and config_labor_cost_default; 26.11.9 changelog entries 2026-11-17 19:23:22 -05:00
johnnyq
ee5f7ff48a Admin Backup restores a backup from its menu or an upload of up to 5 GB sent in pieces, checked in the Restore window and confirmed with the password and RESTORE, then queued for the Backup cron job, which takes a Before restore backup, restores, keeps both in the list, runs the database updates and ends the cycle while other dispatches wait; the page shows it waiting with Cancel, running and how it went; 26.11.9 changelog entries 2026-11-17 19:22:47 -05:00
johnnyq
71dab1cca7 Development mode for a test copy, set on Admin Backup and kept in config.php: every email goes to the test inbox with its recipient in the subject or is cancelled without one, texts wait, the ticket mailbox is not read, AI Triage, Stripe, autopay, RMM device actions, log forwarding, managed check-ins and telemetry are off, and a DEVELOPMENT badge shows in the top bar; 26.11.9 changelog entries 2026-11-17 19:22:10 -05:00
johnnyq
22f9315c81 Maintenance Cron: admins see a heartbeat in the top bar when cron is not running, is switched off, or a job failed, is stuck or has fallen behind; the new Cron Watch job emails the admins or set addresses when a problem starts, once a day while it lasts and when it is fixed; health.php answers OK or 503 for an uptime monitor given its key in the address or an X-Health-Key header; the Alerts card sets the emails, sends a test and makes a new key; database 3.7.9 adds the cron alert settings; 26.11.9 changelog entries 2026-11-17 18:43:26 -05:00
johnnyq
4078fa5f25 Tickets: a note with time worked keeps when it was worked, a date, start and end under Time worked filled from the timer until typed, with typed times setting the time worked, shown beside the time in the conversation and changed in Edit reply; database 3.7.8 adds ticket_replies.ticket_reply_work_start and ticket_reply_work_end; 26.11.9 changelog entries 2026-11-17 18:19:56 -05:00
johnnyq
de9544ffc6 Recurring tickets book each ticket for its run day at a set time, remote or onsite, and can be raised a number of days ahead of the run or of the 1st of its month; recurring invoices can be made a number of days ahead, due on their date plus the client's terms or on their date; database 3.7.7 adds the columns; 26.11.9 changelog entries 2026-11-17 17:56:00 -05:00
johnnyq
a27c5d684a Tickets: Quick ticket, a + in the top bar, takes the client, contact found by name email or phone, and the issue, lists the contact's open tickets with Work on this one, raises it through add_ticket and opens it with its timer running, with what it starts with set in Admin Settings Tickets; a stopwatch in the top bar lists the ticket timers in this browser to open, pause, resume or throw away; database 3.7.6 adds the Quick tickets settings; 26.11.9 changelog entries 2026-11-17 17:55:25 -05:00
johnnyq
c8fa1ba3b4 Tickets: Email reply has a To line starting with the contact, watchers and colleagues who asked for every update, where the assigned agent, the client's other contacts or a typed address can be added and anyone taken out, and the choice is kept per ticket for its next email reply; moving a ticket to another client takes off watchers who are neither agents nor the new client's contacts; database 3.7.5 adds ticket_mail_choices; 26.11.9 changelog entries 2026-11-17 17:54:20 -05:00
johnnyq
7105d00b77 Tickets: Resolve - no response on an arrow beside Resolve sends a client who never answered the message from Settings Tickets, filled in and editable in its window, as a public note and in place of the resolved email's usual words, then resolves the ticket, which closes as usual without the email asking how we did; the Resolve button is a group with a split arrow swapped whole when a task is ticked; database 3.7.4 adds tickets.ticket_no_response_at and config_ticket_no_response_message; 26.11.9 changelog entries 2026-11-17 17:53:16 -05:00
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