Fork of itflow-org/itflow — additive server-side patches for the ITFlow Companion app
  • PHP 91.4%
  • JavaScript 7.5%
  • CSS 0.8%
  • Shell 0.3%
Find a file
James Lappin 92111caee0 apiv2 T2a: fix v2 line-item edits erasing the invoice/quote discount
recompute_item_and_invoice() / recompute_quote_item_and_quote() set the parent
total to bare SUM(item_total) with no discount term, so an API item edit wiped
a web-applied discount from invoice_amount/quote_amount while it still printed
on the PDF. Both rollups now subtract COALESCE(*_discount_amount, 0), matching
the web (agent/post/invoice.php, quote.php) exactly — a no-op when discount is
0/NULL, so existing roll-up tests are unchanged.

Fork-owned correctness hotfix, no upstream touch, no new fields/capability
(spec docs/TAX-ENGINE-DESIGN.md, defect 2). Superseded by per-line allocation
in T2b.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-17 11:20:50 +10:00
.github apiv2: invoice PDF over the API (additive) 2026-07-16 16:36:45 +10:00
admin API v2 security hardening pass 2026-07-12 18:29:50 +10:00
agent Rename plugins to libs and update all file references 2026-07-10 13:24:20 -04:00
api apiv2 T2a: fix v2 line-item edits erasing the invoice/quote discount 2026-07-17 11:20:50 +10:00
client Rename plugins to libs and update all file references 2026-07-10 13:24:20 -04:00
cron Rename plugins to libs and update all file references 2026-07-10 13:24:20 -04:00
css Remove the web UI skin experiment 2026-07-12 10:23:38 +10:00
docs apiv2: email an invoice (additive, link parity) 2026-07-16 16:38:39 +10:00
guest Rename plugins to libs and update all file references 2026-07-10 13:24:20 -04:00
includes apiv2: invoice PDF over the API (additive) 2026-07-16 16:36:45 +10:00
js Revert to old ajax-modal js code for now, Fix Assets not lising in create ticket. 2026-02-11 13:33:28 -05:00
libs Bump ImapEngine from 1.25.0 to 1.25.1 2026-07-10 18:37:16 -04:00
modals Fix Role Archiving, Roles can only be archived if no users are assigned to the role 2026-01-11 16:46:53 -05:00
post Check CSRF and Enforce ClientAccess when deactivating Shared Items 2026-06-26 12:17:38 -04:00
scripts apiv2: strip_tags line-item write sinks + legacy cleanup (SSRF/injection) 2026-07-16 16:37:41 +10:00
setup Rename plugins to libs and update all file references 2026-07-10 13:24:20 -04:00
uploads Create upload folders for recurring tickets and ticket_templates 2025-11-24 13:09:01 -05:00
.gitignore Remove xcustom from .gitignore as its been superceded by custom 2026-01-15 13:13:15 -05:00
.htaccess Hide the .git and .github folders as well as config.php 2025-01-24 19:30:22 +00:00
CHANGELOG-FORK.md apiv2 T2a: fix v2 line-item edits erasing the invoice/quote discount 2026-07-17 11:20:50 +10:00
CHANGELOG.md Update Changelog 2026-07-03 12:29:10 -04:00
CODE_OF_CONDUCT.md Update CODE_OF_CONDUCT.md 2024-09-20 23:32:05 +01:00
CONTRIBUTING.md Revert Billable placement in tickets, create CONTRIBUTING.md file 2026-07-10 12:32:46 -04:00
db.sql Remove custom_hosting tables from db.sql 2026-04-04 18:14:13 -04:00
favicon.ico Add Default Fav icon for now 2024-02-03 13:02:24 -05:00
FORK-WORKFLOW.md Workflow: webui/* branches base off upstream/master (deploy layout) 2026-07-12 10:11:27 +10:00
functions.php Rename plugins to libs and update all file references 2026-07-10 13:24:20 -04:00
index.php Fix to properly redirect to the setup page if config_enable_setup is not set or is 1 2025-10-06 14:19:49 -04:00
keepalive.php Keepalive 2025-09-24 08:39:45 +01:00
LICENSE Remove additonal 'how to use' info 2022-01-09 22:46:27 +00:00
login.php Rename plugins to libs and update all file references 2026-07-10 13:24:20 -04:00
README.md clarify PR stance 2026-02-26 10:24:44 +00:00
robots.txt Initialized migrating modals into entity folders and modals out of ajax and start working on moving admin items to new admin directory 2025-07-27 21:24:14 -04:00
SECURITY.md Update + credit 2025-12-10 08:54:24 +00:00

Contributors Stargazers Commits GPL License

ITFlow

IT documentation, ticketing and accounting system for small MSPs.

View demo
Username: demo@demo.com | Password: demo

About · Docs · Forum · Report Bug · Request Feature · Security

About

A comprehensive, free & open-source documentation, ticket management, and accounting platform.

ITFlow

The Problem

  • You're a small but busy managed service provider with 101 things to do. Information about your clients is unorganised, unstructured and outdated.
  • For some work, you seem to spend longer looking for the relevant documentation than actually working on the issue/project.
  • On top of the technical day to day, you also have to take care of the financial side of the business - consistent pricing, quotes/invoicing, and accounting.

The Solution: ITFlow

  • ITFlow consolidates common MSP needs (documentation, ticketing and billing) into one unified system.

Getting Started

Self Hosting

  • The best installation method is to use the install script on Ubuntu/Debian. A video walk through is available here.
  wget -O itflow_install.sh https://github.com/itflow-org/itflow-install-script/raw/main/itflow_install.sh
  bash itflow_install.sh
  • Other manual installation methods are available in the docs.

Managed Hosting

Key Features

  • Client documentation - assets, contacts, domains, docs, files, passwords, and more
  • Accounting / Billing - finance dashboard, quotes, invoices, accounting, expenses, etc
  • Client Portal - self service quote/invoice/ticket management for clients
  • Alerting - account balance, invoices, domain/SSL renewals
  • Completely free & open-source alternative to ITGlue and Hudu

Roadmap / Future to-do

We track the implementation of confirmed features and bugs via TaskFlow. Use the forum to request features or raise bug reports.

Support & Contributions

Forum

For help using ITFlow, bugs, feature requests, and general ideas / discussions please use the community forum.

Contributing

We have temporarily paused PRs from the community.

Contributors

Supporters

Were incredibly grateful to the organizations and individuals who support the project - a big thank you to:

  • CompuMatter
  • F1 for HELP
  • digiBandit
  • JetBrains (PhpStorm)

License

ITFlow is distributed "as is" under the GPL License, WITHOUT WARRANTY OF ANY KIND. See LICENSE for details.

Security

  • As of 2025, we now have a stable release of the project.
  • Whilst we are confident in the safety of the code, no system is risk-free. Nearly all software has bugs. Use your best judgement before storing highly confidential information in ITFlow.
  • If you have a security concern, privately report it here.