<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: JTM Logic</title>
    <description>The latest articles on DEV Community by JTM Logic (@jtmlogic).</description>
    <link>https://dev.to/jtmlogic</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4274046%2Fb9c0e4c3-5250-45a0-bb73-116c219f4a3f.png</url>
      <title>DEV Community: JTM Logic</title>
      <link>https://dev.to/jtmlogic</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jtmlogic"/>
    <language>en</language>
    <item>
      <title>Designing Workflow Software for CPA Firms: 7 Lessons on Entities, WIP, Permissions and Period Locks</title>
      <dc:creator>JTM Logic</dc:creator>
      <pubDate>Mon, 30 Nov 2026 11:02:57 +0000</pubDate>
      <link>https://dev.to/jtmlogic/designing-workflow-software-for-cpa-firms-7-lessons-on-entities-wip-permissions-and-period-locks-43h</link>
      <guid>https://dev.to/jtmlogic/designing-workflow-software-for-cpa-firms-7-lessons-on-entities-wip-permissions-and-period-locks-43h</guid>
      <description>&lt;p&gt;If you're building software for accounting firms, or choosing it for one, the hard part isn't the UI. It's that a CPA firm's work is shaped by deadlines, client relationships and billing rules that generic project tools don't model. A to-do app with a "Tax" label won't survive its first filing season.&lt;/p&gt;

&lt;p&gt;This post walks through the requirements that keep coming up in practice management and small-business ledger software, and the design choices each one forces. I'll use the public feature set of &lt;a href="https://jtmlogic.com/" rel="noopener noreferrer"&gt;JTM Logic&lt;/a&gt; as a running reference. It's a US company that builds two web apps for accounting firms: JTM Flow, which runs the firm's work, and JTM Ledger, which runs the books. Flow was developed with a mid-size CPA firm running 7 locations and 50 employees. Ledger was developed with a panel of CPAs, accounting managers and AR/AP specialists. The lessons are general, though. Treat the code as illustration, not anyone's production schema.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Model entities and relationships, not just "clients"
&lt;/h2&gt;

&lt;p&gt;The first mistake most teams make is a flat &lt;code&gt;clients&lt;/code&gt; table. In a tax practice, one relationship often spans several filing entities: an individual, their spouse, an S-corp, a partnership, a trust. Each has its own deadlines and returns, but they're served together and often billed together.&lt;/p&gt;

&lt;p&gt;That's why "entity linking" appears as a first-class feature in tools built for firms. The point, as the JTM Flow feature list puts it, is "so a business is not missed in the heat of tax season."&lt;/p&gt;

&lt;p&gt;A minimal shape:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- Illustrative only&lt;/span&gt;
&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;entities&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;id&lt;/span&gt;          &lt;span class="kt"&gt;BIGINT&lt;/span&gt; &lt;span class="k"&gt;PRIMARY&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;name&lt;/span&gt;        &lt;span class="kt"&gt;TEXT&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;entity_type&lt;/span&gt; &lt;span class="kt"&gt;TEXT&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;   &lt;span class="c1"&gt;-- individual, s_corp, partnership, trust...&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;entity_links&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;parent_id&lt;/span&gt;   &lt;span class="kt"&gt;BIGINT&lt;/span&gt; &lt;span class="k"&gt;REFERENCES&lt;/span&gt; &lt;span class="nf"&gt;entities&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;child_id&lt;/span&gt;    &lt;span class="kt"&gt;BIGINT&lt;/span&gt; &lt;span class="k"&gt;REFERENCES&lt;/span&gt; &lt;span class="nf"&gt;entities&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;relation&lt;/span&gt;    &lt;span class="kt"&gt;TEXT&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="kc"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;-- owner, spouse, subsidiary...&lt;/span&gt;
  &lt;span class="k"&gt;PRIMARY&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;parent_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;child_id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once relationships are explicit, you can answer the question partners actually ask in March: "Which of this family's entities still have open returns?"&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Generate recurring work from rules, and make it idempotent
&lt;/h2&gt;

&lt;p&gt;Firms repeat the same engagements every month, quarter and year. Good practice software offers templates, recurring projects and automatic tax project generation, which are the three ways to create work in JTM Flow.&lt;/p&gt;

&lt;p&gt;The engineering lesson is that generation has to be &lt;strong&gt;idempotent&lt;/strong&gt;. A scheduler that runs twice, or a user who clicks "generate" again, must not create duplicate returns. Key generated projects on something stable:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Illustrative: one project per entity, template and period&lt;/span&gt;
&lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;entity_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;template_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;period&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;# e.g. (42, "1120S", "2026")&lt;/span&gt;
&lt;span class="n"&gt;project&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;created&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Project&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get_or_create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;dedupe_key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;defaults&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Also decide early what happens when a template changes mid-season. Most firms want already-generated projects left alone, with future periods picking up the new version. Version your templates rather than editing them in place.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. WIP is a pricing engine in disguise
&lt;/h2&gt;

&lt;p&gt;"Work in progress" sounds like a report. In practice it's where time entries turn into billable value, and every firm prices differently. JTM Flow describes its WIP as supporting time codes, user rates and group rates, "for billing you can shape to your firm."&lt;/p&gt;

&lt;p&gt;That implies a rate-resolution order, which you should make explicit and testable:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rate(entry) =
  override on the time entry         (if set)
  else rate for the user             (user rate)
  else rate for the user's group     (group rate)
  else default rate for the time code
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two practical notes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Store the resolved rate on the entry when it's billed.&lt;/strong&gt; Rates change, and an invoice from last year has to reproduce exactly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep non-billable time codes.&lt;/strong&gt; Firms want to see where time went even when it can't be billed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. Permissions need to be granular and maintainable
&lt;/h2&gt;

&lt;p&gt;Accounting data is sensitive, and staff turnover is normal. People join for busy season and leave after it. "Admin vs user" isn't enough, but hundreds of hand-set checkboxes per person isn't workable either.&lt;/p&gt;

&lt;p&gt;JTM Flow advertises over 120 permissions that are "easy to maintain as people join and leave," and JTM Ledger has a permission-based system that controls what each user can access and do. To get both granularity and maintainability:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Define fine-grained permissions in code (&lt;code&gt;invoice.void&lt;/code&gt;, &lt;code&gt;time.edit_others&lt;/code&gt;, &lt;code&gt;client.view_portal_messages&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Group them into &lt;strong&gt;roles&lt;/strong&gt; that admins assign, so onboarding means choosing a role, not ticking 120 boxes.&lt;/li&gt;
&lt;li&gt;Allow per-user exceptions, but make them visible in an audit view so they don't pile up silently.&lt;/li&gt;
&lt;li&gt;Check permissions on the server for every request. Hiding a button isn't access control.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. Put notifications where the work happens
&lt;/h2&gt;

&lt;p&gt;Email is where task notifications go to die. JTM Flow's approach is to "keep inboxes clean and keep the alerts on the platform where the work happens", with per-user dashboards that show assigned projects, time entries, to-do lists and notifications.&lt;/p&gt;

&lt;p&gt;If you're building this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Keep an in-app notification table with read and unread state. It's cheap and it's queryable.&lt;/li&gt;
&lt;li&gt;Make email a digest or an opt-in, not the default for every status change.&lt;/li&gt;
&lt;li&gt;Link every notification to the exact project or task, so it can be acted on in one click.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  6. A client portal is a security boundary, not a feature page
&lt;/h2&gt;

&lt;p&gt;Firms need to exchange documents and messages with clients. A complete portal, which JTM Flow lists as messaging, project view, and document upload and storage, has to treat external users very differently from staff:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Scope every portal query to the entities a client user is linked to. This is where the entity model from lesson 1 pays off again.&lt;/li&gt;
&lt;li&gt;Keep staff-only notes and internal comments in a separate table or field that portal endpoints can't select.&lt;/li&gt;
&lt;li&gt;Store documents in private object storage and serve them through short-lived signed URLs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  7. Ledgers need period locks, accountant access and clean imports
&lt;/h2&gt;

&lt;p&gt;On the bookkeeping side, the features that matter to accountants are mostly about &lt;strong&gt;control&lt;/strong&gt;. JTM Ledger's list includes book locking, accountant access with multiple team members, reclassification and recurring-transaction tools, account registers and reconciliations, and import from QuickBooks Online or Desktop. It also has bank feeds through Plaid and invoice payments through Stripe.&lt;/p&gt;

&lt;p&gt;The design implications:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Period locks are enforced on writes.&lt;/strong&gt; Once a period is closed, any insert or update dated inside it should be rejected unless someone with the right permission reopens it. Log who reopened it and when.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reclassification is a new transaction, not an edit.&lt;/strong&gt; Moving amounts between accounts or classes should create an adjusting entry so the audit trail survives. That's also what makes an "Adjusted Journal Entries" report possible.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Accountant access is multi-tenant by design.&lt;/strong&gt; One accountant may work across many client companies. Give that access a clear identity, separate from the business owner's own login.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Imports are migrations.&lt;/strong&gt; A QuickBooks import maps charts of accounts, customers, vendors and open balances. Build a preview and reconciliation step so the accountant can confirm the trial balance matches before switching over.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;External money movement is asynchronous.&lt;/strong&gt; Payment processors and bank-feed providers report outcomes through webhooks and sync jobs. Make your handlers idempotent and keep the provider's IDs on your records.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The reports accountants expect out of the box are a useful checklist for your data model. JTM Ledger ships seven: Profit &amp;amp; Loss, Balance Sheet, General Ledger, AP/AR Aging, Adjusted Journal Entries, Sales by Item and a Compiled Management Report. If your schema can't produce those cleanly, find out before launch, not after.&lt;/p&gt;

&lt;h2&gt;
  
  
  The meta-lesson: build with the people who use it
&lt;/h2&gt;

&lt;p&gt;The common thread is that none of these requirements is obvious from outside a firm. Entity relationships, rate hierarchies, period locks and portal boundaries come from watching real work during real deadlines. That's the approach behind &lt;a href="https://jtmlogic.com/" rel="noopener noreferrer"&gt;practice management software for CPA and EA firms&lt;/a&gt; that's put in front of working CPAs before features ship, and it's good advice whatever you're building. Find a firm willing to tell you plainly what they'd never use, and cut it.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;If you've built or run software for accounting firms, I'd like to hear which of these lessons matches your experience and what's missing. Comments are open.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>saas</category>
      <category>accounting</category>
      <category>webdev</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
