<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[PERFONEC COMPUTERS]]></title><description><![CDATA[PERFONEC COMPUTERS]]></description><link>https://perfoneccomputers.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 01:51:05 GMT</lastBuildDate><atom:link href="https://perfoneccomputers.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Designing an Undo Log for Bulk Corrections in Accounting Data]]></title><description><![CDATA[Accounting tools often let users reclassify hundreds of transactions at once. It is a real time saver, and it is also risky. A wrong target account…]]></description><link>https://perfoneccomputers.hashnode.dev/designing-an-undo-log-for-bulk-corrections-in-accounting-data</link><guid isPermaLink="true">https://perfoneccomputers.hashnode.dev/designing-an-undo-log-for-bulk-corrections-in-accounting-data</guid><dc:creator><![CDATA[Perfonec Computers]]></dc:creator><pubDate>Wed, 25 Nov 2026 07:57:53 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6788e093015e484a8166ce15/b4e89b3d-3442-4079-9b3a-200e2bf8cd84.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Accounting tools often let users reclassify hundreds of transactions at once. It is a real time saver, and it is also risky. A wrong target account, applied to every selected row, is a wrong answer repeated hundreds of times.</p>
<p>If you build or extend software like this, a change log that supports undo is one of the most useful features you can add. This post shows a small pattern for it.</p>
<p>The problem</p>
<p>Imagine a user selects every transaction coded to "Office Supplies" in October and moves them to "Software Subscriptions". Two weeks later, the finance lead notices that some of those were real office supplies. Without a record, nobody knows which rows moved or what they were before.</p>
<p>A three-table model</p>
<p>Keep the main table as it is, and add two tables: one for the batch and one for each row changed in it.</p>
<p>sql CREATE TABLE txn (id INTEGER PRIMARY KEY, account TEXT, amount TEXT); CREATE TABLE change_batch ( id INTEGER PRIMARY KEY, reason TEXT, created_at TEXT DEFAULT CURRENT_TIMESTAMP ); CREATE TABLE change_row ( batch_id INTEGER, txn_id INTEGER, old_account TEXT, new_account TEXT );</p>
<p>A batch records why the change happened, and a row records what each transaction looked like before and after.</p>
<p>Applying a change and reversing it</p>
<p>python import sqlite3</p>
<p>def reclassify(con, txn_ids, new_account, reason): with con: # one transaction: all rows change or none do cur = con.execute("INSERT INTO change_batch(reason) VALUES (?)", (reason,)) batch = cur.lastrowid for tid in txn_ids: old = con.execute("SELECT account FROM txn WHERE id=?", (tid,)).fetchone()[0] con.execute("INSERT INTO change_row VALUES (?,?,?,?)", (batch, tid, old, new_account)) con.execute("UPDATE txn SET account=? WHERE id=?", (new_account, tid)) return batch</p>
<p>def undo(con, batch): with con: rows = con.execute( "SELECT txn_id, old_account FROM change_row WHERE batch_id=?", (batch,) ).fetchall() for tid, old in rows: con.execute("UPDATE txn SET account=? WHERE id=?", (old, tid))</p>
<p>I ran this on an in-memory database with three transactions. Moving two of them to "Software Subscriptions" changed both rows, and calling undo restored both to "Office Supplies". The third row was never touched.</p>
<p>Design choices worth copying</p>
<p>One database transaction per batch. If anything fails halfway, nothing is saved. A half-applied bulk change is harder to explain than a failed one. Store the old value on the row, not only the batch. Different rows can start from different accounts, so one "old" value per batch is not enough. Require a reason. Make reason a required field. Months later, it is the first thing an auditor asks for. Show the list before applying. Display the selected rows and count, and ask for confirmation.</p>
<p>Edge cases to handle</p>
<p>Undo is not always safe. If a row was edited again after the batch, restoring the old value would overwrite the newer change. A simple fix is to store a version number and refuse to undo rows whose version has moved on. Also lock closed periods, so a batch cannot touch transactions after sign-off.</p>
<p>Accounting terms vary</p>
<p>Product and country terms differ. A field that one tool calls "sales tax" may map to VAT elsewhere, so avoid hard-coding tax meaning. Let users map accounts and tax codes, and let their adviser confirm the treatment.</p>
<p>Where to take it next</p>
<p>You could add a read-only report listing every batch, who ran it and how many rows moved. You could also add a dry-run mode that shows the diff without saving. Start with the three tables, and add the rest when a real correction needs it.</p>
<p>If you have built something like this, I would be interested to hear how you handled undo after later edits.</p>
<p>Akanksha Surana works on accounting software and compliance content in Dubai.</p>
<p>Optional author link (delete for a fully non-promotional post): A printable accountant-side month-end checklist: <a href="https://perfonec.com/quickbooks-enterprise-accounting-audit-firms-month-end-checklist/">https://perfonec.com/quickbooks-enterprise-accounting-audit-firms-month-end-checklist/</a></p>
]]></content:encoded></item><item><title><![CDATA[Auditing Booking References in a Zoho Books Export with Python]]></title><description><![CDATA[AI disclosure: I used an AI assistant to help draft this post. I ran the code and checked the output myself.]]></description><link>https://perfoneccomputers.hashnode.dev/auditing-booking-references-in-a-zoho-books-export-with-python</link><guid isPermaLink="true">https://perfoneccomputers.hashnode.dev/auditing-booking-references-in-a-zoho-books-export-with-python</guid><dc:creator><![CDATA[Perfonec Computers]]></dc:creator><pubDate>Fri, 20 Nov 2026 09:55:50 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6788e093015e484a8166ce15/3fb9c524-2077-4f6e-9471-aac5cd6d0edd.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>A travel agency sells one package and buys it from several suppliers. To see profit per booking in an accounting tool such as Zoho Books, every customer invoice and every supplier bill needs the same booking reference. People forget, or they type it differently, and the profit view quietly breaks.</p>
<p>In this post, we write a small Python script that reads two CSV exports, one of supplier bills and one of customer invoices, and lists reference problems. It uses only the standard library.</p>
<p>One caution first. Export column names differ between tools and editions, and I haven’t checked Zoho Books’ export headers for you. That is why the script has a mapping at the top that you edit to match your file. The sample data below is made up.</p>
<p>The data</p>
<p>exp_bills.csv:</p>
<p>csv bill_no,vendor,reference,currency,total,date B-1001,Hotel A,TRV-101,EUR,800,2026-10-02 B-1002,Transfers Co,TRV-101,AED,300,2026-10-03 B-1003,Hotel B,,USD,500,2026-10-06 B-1004,Tours Ltd,trv102,AED,250,2026-10-07 B-1005,Airline X,TRV-104,USD,1200,2026-10-09</p>
<p>exp_invoices.csv:</p>
<p>csv invoice_no,customer,reference,currency,total,date INV-501,Customer 1,TRV-101,AED,4500,2026-10-01 INV-502,Customer 2,TRV-102,AED,2600,2026-10-05 INV-503,Customer 3,TRV-103,AED,2000,2026-10-07 The script</p>
<p>The audit looks for four problems: a bill with no reference, a reference in the wrong format, a booking with costs but no sales invoice, and a sales invoice with no supplier bills yet.</p>
<p>python import csv import re import sys from collections import defaultdict</p>
<h1>Map your export's column names here. Headers differ between tools and editions.</h1>
<p>COLUMNS = {"number": "bill_no", "party": "vendor", "ref": "reference", "currency": "currency"} INVOICE_COLUMNS = {"number": "invoice_no", "party": "customer", "ref": "reference", "currency": "currency"} PATTERN = re.compile(r"^TRV-\d{3}$")</p>
<p>def read(path, cols): with open(path, newline="") as f: for row in csv.DictReader(f): yield {k: (row.get(v) or "").strip() for k, v in cols.items()}</p>
<p>def audit(bills_path, invoices_path): problems = [] bill_refs, invoice_refs = defaultdict(list), set()</p>
<pre><code class="language-plaintext">for r in read(bills_path, COLUMNS):
    if not r["ref"]:
        problems.append(f"{r['number']} ({r['party']}): no booking reference")
    elif not PATTERN.match(r["ref"]):
        problems.append(f"{r['number']} ({r['party']}): reference '{r['ref']}' does not match TRV-000")
    else:
        bill_refs[r["ref"]].append(r["number"])

for r in read(invoices_path, INVOICE_COLUMNS):
    if PATTERN.match(r["ref"]):
        invoice_refs.add(r["ref"])

for ref, numbers in sorted(bill_refs.items()):
    if ref not in invoice_refs:
        problems.append(f"{ref}: costs {', '.join(numbers)} but no sales invoice")
for ref in sorted(invoice_refs - set(bill_refs)):
    problems.append(f"{ref}: sales invoice but no supplier bills yet")
return problems
</code></pre>
<p>if <strong>name</strong> == "<strong>main</strong>": issues = audit("exp_bills.csv", "exp_invoices.csv") print(f"{len(issues)} issue(s) found") for line in issues: print(" -", line) sys.exit(1 if issues else 0)</p>
<p>Save it as audit_refs.py next to the two CSV files and run python3 audit_refs.py.</p>
<p>The output 5 issue(s) found</p>
<ul>
<li>B-1003 (Hotel B): no booking reference</li>
<li>B-1004 (Tours Ltd): reference 'trv102' does not match TRV-000</li>
<li>TRV-104: costs B-1005 but no sales invoice</li>
<li>TRV-102: sales invoice but no supplier bills yet</li>
<li>TRV-103: sales invoice but no supplier bills yet</li>
</ul>
<p>Notice how one typo cascades. Bill B-1004 was typed as trv102, so it fails the format check. Then TRV-102 also shows up as having a sales invoice but no supplier bills. Fixing the one typo clears both lines.</p>
<p>The script exits with code 1 when it finds issues, so you can run it in a scheduled job or a pre-close checklist.</p>
<p>Ideas to extend it Reject duplicates, such as the same bill number on two bookings. Add the currency and total columns, and flag foreign-currency bills so a person checks their exchange rates. Read the files from a folder, and name the report with the month. Add a few unit tests with tiny CSV strings for each problem type. Limits</p>
<p>This only checks that references are present and consistent. It does not know whether an amount is right, how VAT should be treated, or how your accounting tool records exchange differences. Those depend on your business and edition, so confirm them with a qualified adviser.</p>
<p>What would you check next?</p>
]]></content:encoded></item><item><title><![CDATA[Keep QuickBooks or Switch? Script the Data Check That Settles Half the Decision]]></title><description><![CDATA[When a compliance deadline arrives, teams that use QuickBooks often ask the same question: do we keep it or move to something else? Most advice focuses on…]]></description><link>https://perfoneccomputers.hashnode.dev/keep-quickbooks-or-switch-script-the-data-check-that-settles-half-the-decision</link><guid isPermaLink="true">https://perfoneccomputers.hashnode.dev/keep-quickbooks-or-switch-script-the-data-check-that-settles-half-the-decision</guid><dc:creator><![CDATA[Perfonec Computers]]></dc:creator><pubDate>Tue, 17 Nov 2026 11:25:26 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6788e093015e484a8166ce15/416ab90b-6a91-492c-a923-ba2e17386886.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>When a compliance deadline arrives, teams that use QuickBooks often ask the same question: do we keep it or move to something else? Most advice focuses on features and price. I want to focus on one factor that matters on both routes and that you can measure in an afternoon: the quality of your data.</p>
<p>If you stay on QuickBooks and add a tool that sends structured invoices, messy customer and item records will cause rejected documents. If you switch, you will migrate those same records into a new system, and the mess comes with you. So a data check is useful before you decide, and it costs almost nothing.</p>
<p>The five-question frame</p>
<p>Here is the short decision frame I use. Answer yes or no:</p>
<p>Does QuickBooks still fit how you work (stock, users, branches)? Does your team know it well? Is your customer and item data clean? Is the three-year cost of staying lower than switching, including migration and training? Do you have enough weeks to test whichever route you pick?</p>
<p>This post tackles question 3, because it is the only one you can answer with a script.</p>
<p>Export your data</p>
<p>In QuickBooks, export your customer list and your item list to Excel or CSV. The exact menu names differ between QuickBooks Desktop and QuickBooks Online and between versions, so look for the customer contact list and the item list reports, then save them as CSV. Rename the columns to match the ones below: name,trn,street,city,country for customers and description,unit for items.</p>
<p>The auditor</p>
<p>The script reads a CSV and runs a set of rules. A rule is a function that returns a list of problems for a row, so adding a check later takes a few lines. It uses only built-in Node modules.</p>
<p>Save this as audit.mjs:</p>
<p>js import { readFileSync } from "node:fs";</p>
<p>const GENERIC = new Set(["item", "items", "goods", "service", "services", "misc", "other", "product", "general"]);</p>
<p>function parseCsv(text) { const [head, ...lines] = text.trim().split(/\r?\n/); const keys = head.split(",").map((k) =&gt; k.trim()); return lines.map((line) =&gt; { const cells = line.split(","); return Object.fromEntries( keys.map((k, i) =&gt; [k, (cells[i] ?? "").trim()]) ); }); }</p>
<p>const rules = { customers: (row) =&gt; { const out = []; const trn = row.trn.replace(/\D/g, ""); if (trn.length !== 15) out.push(<code>TRN must be 15 digits (got "${row.trn}")</code>); for (const f of ["street", "city", "country"]) if (!row[f]) out.push(<code>${f} is empty</code>); return out; }, items: (row) =&gt; { const out = []; if (row.description.length &lt; 5 || GENERIC.has(row.description.toLowerCase())) out.push(<code>description too generic ("${row.description}")</code>); if (!row.unit) out.push("unit is empty"); return out; }, };</p>
<p>const [kind, file] = process.argv.slice(2); const rows = parseCsv(readFileSync(file, "utf8")); let count = 0; rows.forEach((row, i) =&gt; { for (const msg of rules<a href="row">kind</a>) { console.log(<code>row ${i + 2}: ${msg}</code>); count++; } }); console.log(<code>\n${count} problem(s) in ${rows.length} rows</code>); Try it on sample data</p>
<p>customers.csv:</p>
<p>csv name,trn,street,city,country Acme,100123456789012,St 1,Dubai,AE Old,12345,,Sharjah,AE</p>
<p>items.csv:</p>
<p>csv description,unit Brake pad set,EA Services,</p>
<p>Run:</p>
<p>bash node audit.mjs customers customers.csv node audit.mjs items items.csv</p>
<p>Output:</p>
<p>row 3: TRN must be 15 digits (got "12345") row 3: street is empty</p>
<p>2 problem(s) in 2 rows</p>
<p>and</p>
<p>row 3: description too generic ("Services") row 3: unit is empty</p>
<p>2 problem(s) in 2 rows How to read the result</p>
<p>Divide the problem count by the row count. A low rate means your data is close to ready, and staying on QuickBooks is cheap to prepare for. A high rate means you have clean-up work on either route, and the work should start now, before you compare vendors. Either way, the result turns question 3 from a feeling into a number.</p>
<p>Limits</p>
<p>This parser splits on commas, so quoted fields containing commas will break it. Use a library such as csv-parse for real exports. A 15-digit check tests length only, not whether a number is genuinely registered, so treat the script as a first filter, not as official validation. It also does not cover the other four questions, which need judgment, not code.</p>
<p>Disclosure: I used AI assistance to draft this post and ran the code on the sample files above before publishing.</p>
]]></content:encoded></item><item><title><![CDATA[duplicate-client-records-python-uae-clinic]]></title><description><![CDATA[Disclosure: I used AI to help draft this article. I wrote and ran the code and tests myself. I work at an accounting software partner in Dubai, and this is…]]></description><link>https://perfoneccomputers.hashnode.dev/duplicate-client-records-python-uae-clinic</link><guid isPermaLink="true">https://perfoneccomputers.hashnode.dev/duplicate-client-records-python-uae-clinic</guid><dc:creator><![CDATA[Perfonec Computers]]></dc:creator><pubDate>Thu, 05 Nov 2026 06:54:41 GMT</pubDate><content:encoded><![CDATA[<p><em>Disclosure: I used AI to help draft this article. I wrote and ran the code and tests myself. I work at an accounting software partner in Dubai, and this is a general programming tutorial.</em></p>
<p>UAE businesses are moving to structured electronic invoices, and a business-to-business invoice needs the buyer's tax registration number. For a clinic, that raises a data question. The customer list holds corporate clients that pay for employee health checks, insurers, and suppliers, and over the years the same company often gets entered twice. "Alpha Medical Supplies LLC" and "Alpha Medical Supplies L.L.C." are one business, but a computer sees two.</p>
<p>This post builds a small Python tool that finds likely duplicates in a client list, and flags two kinds of tax number conflict. It decides nothing. It produces a short list for a person to review.</p>
<h2>The three checks</h2>
<ol>
<li><strong>Similar names.</strong> Two names that look like the same business, after removing company-type words such as LLC or Ltd.</li>
<li><strong>Same tax number, different names.</strong> One number attached to two different businesses.</li>
<li><strong>Same name, different tax numbers.</strong> One business with two numbers.</li>
</ol>
<h2>The code</h2>
<pre><code class="language-python">import csv
import re
import sys
from collections import defaultdict
from difflib import SequenceMatcher
from itertools import combinations

# Words that describe the type of company, not which company it is.
LEGAL_WORDS = {"llc", "fze", "fzco", "fz", "ltd", "limited", "co",
               "company", "inc", "est", "establishment"}


def normalize(name):
    """Lowercase, drop dots and punctuation, and remove company-type words."""
    text = name.lower().replace(".", "")
    text = re.sub(r"[^a-z0-9 ]", " ", text)
    return " ".join(w for w in text.split() if w not in LEGAL_WORDS)


def similar_pairs(records, threshold=0.88):
    """Return pairs of names that look like the same business."""
    keyed = [(r["name"], normalize(r["name"])) for r in records]
    pairs = []
    for (name_a, key_a), (name_b, key_b) in combinations(keyed, 2):
        score = SequenceMatcher(None, key_a, key_b).ratio()
        if score &gt;= threshold:
            pairs.append((name_a, name_b, round(score, 2)))
    return pairs


def tax_number_conflicts(records):
    """Return tax numbers that are used by more than one distinct name."""
    names_by_trn = defaultdict(set)
    for r in records:
        trn = r.get("trn", "").strip()
        if trn:
            names_by_trn[trn].add(normalize(r["name"]))
    return {t: sorted(n) for t, n in names_by_trn.items() if len(n) &gt; 1}


def name_conflicts(records):
    """Return business names that appear with more than one tax number."""
    trns_by_name = defaultdict(set)
    for r in records:
        trn = r.get("trn", "").strip()
        if trn:
            trns_by_name[normalize(r["name"])].add(trn)
    return {n: sorted(t) for n, t in trns_by_name.items() if len(t) &gt; 1}


if __name__ == "__main__":
    with open(sys.argv[1], newline="", encoding="utf-8") as f:
        rows = list(csv.DictReader(f))
    print("Possible duplicates:")
    for a, b, score in similar_pairs(rows):
        print(f"  {a} | {b} ({score})")
    print("Same tax number, different names:")
    for trn, names in tax_number_conflicts(rows).items():
        print(f"  {trn}: {names}")
    print("Same name, different tax numbers:")
    for name, trns in name_conflicts(rows).items():
        print(f"  {name}: {trns}")
</code></pre>
<p>The matching uses <code>SequenceMatcher</code> from Python's standard library. You can read how it scores two strings in the <a href="https://docs.python.org/3/library/difflib.html">difflib documentation</a>.</p>
<h2>Why normalise first</h2>
<p>Without the <code>normalize</code> step, "Alpha Trading LLC" and "Alpha Trading L.L.C." score lower than you would expect, because the company-type words and the dots count as differences. Removing them makes the comparison about the part of the name that identifies the business. The word list is the part you will edit most.</p>
<h2>Try it</h2>
<p>Save a file called <code>clients.csv</code>. The names and numbers below are made up:</p>
<pre><code class="language-csv">name,trn
Gulf Corporate Health LLC,100111111111111
Gulf Corporate Health L.L.C.,100111111111111
Alpha Medical Supplies,100222222222222
Alpha Medical Suplies,
Desert Insurance Services,100333333333333
Harbour Logistics FZE,100333333333333
Northern Dental Co.,100444444444444
Northern Dental Company,100555555555555
</code></pre>
<p>Run it:</p>
<pre><code class="language-bash">python find_duplicates.py clients.csv
</code></pre>
<p>The output:</p>
<pre><code class="language-text">Possible duplicates:
  Gulf Corporate Health LLC | Gulf Corporate Health L.L.C. (1.0)
  Alpha Medical Supplies | Alpha Medical Suplies (0.98)
  Northern Dental Co. | Northern Dental Company (1.0)
Same tax number, different names:
  100333333333333: ['desert insurance services', 'harbour logistics']
Same name, different tax numbers:
  northern dental: ['100444444444444', '100555555555555']
</code></pre>
<p>Each line is a question for a person. The Gulf entries are probably one business typed twice. The Alpha pair looks like a typo, and one record has no tax number. The Desert and Harbour records share a number, so at least one entry is wrong. The Northern Dental records look like one business with two numbers.</p>
<h2>The tests</h2>
<pre><code class="language-python">from find_duplicates import (name_conflicts, normalize, similar_pairs,
                             tax_number_conflicts)


def rec(name, trn=""):
    return {"name": name, "trn": trn}


def test_normalize_removes_company_type_and_punctuation():
    assert normalize("Alpha Medical Supplies L.L.C.") == "alpha medical supplies"
    assert normalize("ALPHA MEDICAL SUPPLIES LLC") == "alpha medical supplies"


def test_same_business_written_two_ways_is_found():
    pairs = similar_pairs([rec("Alpha Medical Supplies LLC"),
                           rec("Alpha Medical Supplies L.L.C.")])
    assert len(pairs) == 1 and pairs[0][2] == 1.0


def test_typo_is_found_but_stays_below_perfect():
    pairs = similar_pairs([rec("Alpha Medical Supplies"),
                           rec("Alpha Medical Suplies")])
    assert len(pairs) == 1 and pairs[0][2] &lt; 1.0


def test_different_businesses_are_not_flagged():
    assert similar_pairs([rec("Alpha Medical Supplies"),
                          rec("Gulf Corporate Health")]) == []


def test_same_tax_number_with_different_names_is_a_conflict():
    rows = [rec("Alpha Trading", "100111111111111"),
            rec("Beta Logistics", "100111111111111")]
    assert list(tax_number_conflicts(rows)) == ["100111111111111"]


def test_same_business_with_two_spellings_is_not_a_tax_conflict():
    rows = [rec("Alpha Trading LLC", "100111111111111"),
            rec("Alpha Trading L.L.C.", "100111111111111")]
    assert tax_number_conflicts(rows) == {}


def test_same_name_with_different_tax_numbers_is_flagged():
    rows = [rec("Alpha Trading LLC", "100111111111111"),
            rec("Alpha Trading L.L.C.", "100222222222222")]
    assert list(name_conflicts(rows)) == ["alpha trading"]


def test_blank_tax_numbers_are_ignored():
    rows = [rec("Alpha Trading"), rec("Beta Logistics")]
    assert tax_number_conflicts(rows) == {} and name_conflicts(rows) == {}
</code></pre>
<p>Notice the test for two spellings with the same number. Without normalising, the tool would report it as a conflict, which would be a false alarm.</p>
<h2>Limits worth knowing</h2>
<ul>
<li><strong>Similar is not the same.</strong> Two different businesses can have near-identical names. Treat every result as a question, never as a merge instruction.</li>
<li><strong>The word list is a starting point.</strong> "Trading" and "Services" describe the business and are kept on purpose, but your data may need other words removed.</li>
<li><strong>It compares every pair.</strong> That is fine for a few thousand records, but it slows down on very large lists. A blocking step, such as grouping by first letter, helps there.</li>
<li><strong>Short names behave oddly.</strong> Two short names can score high on a single letter.</li>
<li><strong>Keep patient data out of this file.</strong> A client list should hold business names and numbers only.</li>
</ul>
<h2>Takeaways</h2>
<ul>
<li>Normalise before you compare.</li>
<li>Treat matching as a way to build a review list, not to decide.</li>
<li>Test the false-alarm cases as carefully as the hits.</li>
<li>Check for conflicts in both directions, name to number and number to name.</li>
</ul>
<p>If you adapt this to your own data, I would like to hear which company-type words you had to add.</p>
]]></content:encoded></item><item><title><![CDATA[Export All Your Zoho Books Invoices to CSV with Python]]></title><description><![CDATA[Disclosure: I used AI to help draft this article. I wrote and tested the code against a mock API, and you should test it against your own Zoho organisation…]]></description><link>https://perfoneccomputers.hashnode.dev/export-all-your-zoho-books-invoices-to-csv-with-python</link><guid isPermaLink="true">https://perfoneccomputers.hashnode.dev/export-all-your-zoho-books-invoices-to-csv-with-python</guid><dc:creator><![CDATA[Perfonec Computers]]></dc:creator><pubDate>Mon, 02 Nov 2026 11:21:59 GMT</pubDate><content:encoded><![CDATA[<p><em>Disclosure: I used AI to help draft this article. I wrote and tested the code against a mock API, and you should test it against your own Zoho organisation before relying on it. I work at a Zoho partner in Dubai, and this is a general programming tutorial.</em></p>
<p>Accounting data is often more useful outside the accounting tool. A CSV of invoices lets you check data quality, build reports, or feed another system. Zoho Books has a REST API for this, but a few details trip people up. This post builds a small, tested exporter and points out each trap.</p>
<h2>Three things to know first</h2>
<p><strong>1. Every request needs an</strong> <code>organization_id</code><strong>.</strong> In Zoho Books, a business is called an organization, and its ID must be sent as a query parameter on every API request. You can get it from the <code>GET /organizations</code> endpoint:</p>
<pre><code class="language-bash">curl -X GET 'https://www.zohoapis.com/books/v3/organizations' \
  -H 'Authorization: Zoho-oauthtoken YOUR_ACCESS_TOKEN'
</code></pre>
<p>The response lists your organizations, each with an <code>organization_id</code>.</p>
<p><strong>2. The base URL depends on your data centre.</strong> There is no single address. Zoho lists a different domain for each region, for example:</p>
<table>
<thead>
<tr>
<th>Data centre</th>
<th>Base URL</th>
</tr>
</thead>
<tbody><tr>
<td>United States</td>
<td><code>https://www.zohoapis.com/books/v3</code></td>
</tr>
<tr>
<td>Europe</td>
<td><code>https://www.zohoapis.eu/books/v3</code></td>
</tr>
<tr>
<td>India</td>
<td><code>https://www.zohoapis.in/books/v3</code></td>
</tr>
<tr>
<td>Australia</td>
<td><code>https://www.zohoapis.com.au/books/v3</code></td>
</tr>
</tbody></table>
<p>To find yours, open Zoho Books in the browser and look at the address. If it contains <code>books.zoho.eu</code>, use the <code>.eu</code> domain. Zoho also lists other regions, so check the official documentation for yours.</p>
<p><strong>3. Access tokens are short-lived.</strong> You register a client in the Zoho API Console, authorise it once to get a refresh token, and then exchange that refresh token for fresh access tokens as needed. Request a read-only scope such as <code>ZohoBooks.invoices.READ</code>.</p>
<h2>The code</h2>
<p>Save this as <code>zoho_invoices.py</code>:</p>
<pre><code class="language-python">import csv

import requests

FIELDS = ["invoice_number", "customer_name", "status", "date", "total", "currency_code"]


def refresh_access_token(accounts_domain, client_id, client_secret, refresh_token):
    """Exchange a refresh token for a short-lived access token.

    accounts_domain is the suffix for your data centre, e.g. "com", "eu" or "in".
    """
    resp = requests.post(
        f"https://accounts.zoho.{accounts_domain}/oauth/v2/token",
        data={
            "refresh_token": refresh_token,
            "client_id": client_id,
            "client_secret": client_secret,
            "grant_type": "refresh_token",
        },
        timeout=30,
    )
    resp.raise_for_status()
    return resp.json()["access_token"]


def list_invoices(base_url, organization_id, access_token, per_page=200, session=None):
    """Return every invoice, following Zoho's page-based pagination."""
    session = session or requests
    headers = {"Authorization": f"Zoho-oauthtoken {access_token}"}
    invoices, page = [], 1
    while True:
        resp = session.get(
            f"{base_url}/invoices",
            headers=headers,
            params={"organization_id": organization_id, "page": page, "per_page": per_page},
            timeout=30,
        )
        resp.raise_for_status()
        body = resp.json()
        if body.get("code") != 0:
            raise RuntimeError(f"Zoho error {body.get('code')}: {body.get('message')}")
        invoices.extend(body.get("invoices", []))
        if not body.get("page_context", {}).get("has_more_page"):
            return invoices
        page += 1


def write_csv(invoices, path):
    with open(path, "w", newline="", encoding="utf-8") as f:
        writer = csv.DictWriter(f, fieldnames=FIELDS, extrasaction="ignore")
        writer.writeheader()
        writer.writerows(invoices)
</code></pre>
<p>A few design choices are worth explaining:</p>
<ul>
<li><strong>The loop follows pages.</strong> Zoho returns invoices in pages, so a single call misses most of a large organisation. The loop keeps requesting pages until the response says there are no more.</li>
<li><strong>It checks the</strong> <code>code</code> <strong>field.</strong> Zoho returns a numeric <code>code</code> in the response body, where <code>0</code> means success. The function raises an error for anything else, so a failed call does not look like an empty result.</li>
<li><strong>It accepts a</strong> <code>session</code> <strong>argument.</strong> This lets the tests pass in a fake session, so no network is needed.</li>
<li><code>extrasaction="ignore"</code> <strong>drops unlisted fields,</strong> and missing fields become empty cells. Zoho returns many more fields than we export.</li>
</ul>
<h2>Putting it together</h2>
<pre><code class="language-python">import os

from zoho_invoices import list_invoices, refresh_access_token, write_csv

domain = os.environ["ZOHO_DOMAIN"]  # "com", "eu", "in", "com.au", ...

token = refresh_access_token(
    domain,
    os.environ["ZOHO_CLIENT_ID"],
    os.environ["ZOHO_CLIENT_SECRET"],
    os.environ["ZOHO_REFRESH_TOKEN"],
)
base_url = f"https://www.zohoapis.{domain}/books/v3"
invoices = list_invoices(base_url, os.environ["ZOHO_ORG_ID"], token)
write_csv(invoices, "invoices.csv")
print(f"Wrote {len(invoices)} invoices")
</code></pre>
<p>Keep your client secret and refresh token in environment variables. Never commit them to a repository.</p>
<h2>Testing without calling Zoho</h2>
<p>A fake session returns canned pages, so you can test pagination and error handling without credentials:</p>
<pre><code class="language-python">import pytest
from zoho_invoices import list_invoices


class FakeResponse:
    def __init__(self, body):
        self._body = body

    def raise_for_status(self):
        pass

    def json(self):
        return self._body


class FakeSession:
    def __init__(self, pages):
        self.pages = pages
        self.calls = []

    def get(self, url, headers, params, timeout):
        self.calls.append((url, headers, params))
        return FakeResponse(self.pages[params["page"] - 1])


def page(invoices, more):
    return {"code": 0, "message": "success", "invoices": invoices,
            "page_context": {"has_more_page": more}}


def test_follows_pagination_and_sends_required_values():
    session = FakeSession([
        page([{"invoice_number": "INV-1"}], True),
        page([{"invoice_number": "INV-2"}], False),
    ])
    result = list_invoices("https://www.zohoapis.com/books/v3", "123", "tok", session=session)
    assert [i["invoice_number"] for i in result] == ["INV-1", "INV-2"]
    url, headers, params = session.calls[0]
    assert headers["Authorization"] == "Zoho-oauthtoken tok"
    assert params["organization_id"] == "123"
    assert len(session.calls) == 2


def test_raises_on_zoho_error_code():
    session = FakeSession([{"code": 57, "message": "You are not authorized"}])
    with pytest.raises(RuntimeError, match="57"):
        list_invoices("https://x/books/v3", "123", "tok", session=session)
</code></pre>
<h2>What I have not verified</h2>
<p>These tests use a mock, so they prove my logic, not Zoho's behaviour. Before you rely on this, run it once against your own organisation and compare the row count with the invoice list in the Zoho Books app. Also read Zoho's documentation for the maximum page size and the API call limits for your plan, because those can change.</p>
<h2>Takeaways</h2>
<ul>
<li>Send <code>organization_id</code> on every request.</li>
<li>Use the base URL for your data centre.</li>
<li>Follow pagination, or you will miss data.</li>
<li>Check the response <code>code</code>, not only the HTTP status.</li>
<li>Inject the HTTP session so you can test without a network.</li>
</ul>
<p>If you extend this to customers or bills, I would be interested to hear what you ran into.</p>
]]></content:encoded></item><item><title><![CDATA[QBESync Setup Guide — UAE E-Invoicing for QuickBooks Desktop and Online]]></title><description><![CDATA[UAE mandatory e-invoicing requires all VAT-registered businesses to send B2B invoices through the UAE Peppol network by 2027. QuickBooks does not have…]]></description><link>https://perfoneccomputers.hashnode.dev/qbesync-setup-guide-uae-e-invoicing-for-quickbooks-desktop-and-online</link><guid isPermaLink="true">https://perfoneccomputers.hashnode.dev/qbesync-setup-guide-uae-e-invoicing-for-quickbooks-desktop-and-online</guid><dc:creator><![CDATA[Perfonec Computers]]></dc:creator><pubDate>Tue, 27 Oct 2026 10:43:05 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6788e093015e484a8166ce15/d928affa-8a77-4381-b11e-5184b82e33ad.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h3>QBESync Setup Guide — UAE E-Invoicing for QuickBooks Desktop and Online</h3>
<p>UAE mandatory e-invoicing requires all VAT-registered businesses to send B2B invoices through the UAE Peppol network by 2027. QuickBooks does not have native UAE Peppol support built in. QBESync is consequently the connector that bridges QuickBooks and the UAE Peppol network — developed by Perfonec, the Authorised QuickBooks Dealer and Pro Advisor in UAE.</p>
<p>This guide covers the complete QBESync setup process — all 9 steps from version check through to go-live. Setup takes 4 to 8 weeks. The PINT AE data audit is the longest step. The pilot phase from 1 July 2026 carries zero fines — start now while testing is free.</p>
<p><em>Disclosure: Perfonec Computers is the developer of QBESync and the Authorised QuickBooks Dealer and Pro Advisor in UAE. This article is written to inform — not to pressure.</em></p>
<hr />
<h4>Quick Answer — QBESync Setup</h4>
<table>
<thead>
<tr>
<th></th>
<th></th>
</tr>
</thead>
<tbody><tr>
<td><strong>What is QBESync</strong></td>
<td>UAE Peppol e-invoicing connector for QuickBooks — by Perfonec</td>
</tr>
<tr>
<td><strong>QB versions supported</strong></td>
<td>Desktop 2017–2024 and QuickBooks Online</td>
</tr>
<tr>
<td><strong>Setup time</strong></td>
<td>4 to 8 weeks — data audit is the longest step</td>
</tr>
<tr>
<td><strong>Pilot phase</strong></td>
<td>Open from 1 July 2026 — ZERO fines during testing</td>
</tr>
<tr>
<td><strong>Go-live deadline</strong></td>
<td>1 Jan 2027 (AED 50M+) — 1 Jul 2027 (all other VAT SMEs)</td>
</tr>
<tr>
<td><strong>Contact</strong></td>
<td>+971 4 386 6199 — <a href="mailto:sales@perfonec.com">sales@perfonec.com</a></td>
</tr>
</tbody></table>
<hr />
<h4>Overview — All 9 Setup Steps</h4>
<table>
<thead>
<tr>
<th>Step</th>
<th>Activity</th>
<th>Who</th>
<th>Time</th>
</tr>
</thead>
<tbody><tr>
<td>1</td>
<td>Version check — confirm QB Desktop 2017+ or QB Online</td>
<td>Perfonec</td>
<td>Day 1</td>
</tr>
<tr>
<td>2</td>
<td>PINT AE data audit — all 17 fields across all records</td>
<td>Perfonec + client</td>
<td>Week 1–3</td>
</tr>
<tr>
<td>3</td>
<td>Data quality fixes — TRNs, addresses, items, unit codes</td>
<td>Client team</td>
<td>Week 2–4</td>
</tr>
<tr>
<td>4</td>
<td>ASP registration — appoint Approved Service Provider</td>
<td>Perfonec</td>
<td>Week 2–3</td>
</tr>
<tr>
<td>5</td>
<td>QBESync installation and QuickBooks configuration</td>
<td>Perfonec</td>
<td>Week 3–4</td>
</tr>
<tr>
<td>6</td>
<td>Peppol sandbox testing — all 7 invoice types</td>
<td>Perfonec + client</td>
<td>Week 4–6</td>
</tr>
<tr>
<td>7</td>
<td>Fix issues from pilot testing results</td>
<td>Perfonec + client</td>
<td>Week 5–7</td>
</tr>
<tr>
<td>8</td>
<td>Team training — invoice workflow and error handling</td>
<td>Perfonec</td>
<td>Week 6–7</td>
</tr>
<tr>
<td>9</td>
<td>Go-live — full production Peppol transmission</td>
<td>Client team</td>
<td>Week 7–8</td>
</tr>
</tbody></table>
<p>The PINT AE data audit is consequently the longest step — not the technical integration. Businesses that start the audit early finish setup faster and have more pilot testing time before their mandatory deadline.</p>
<hr />
<h4>Step 1 — QuickBooks Version Check</h4>
<p>The first step is confirming your QuickBooks version supports QBESync. QB Desktop 2016 and older cannot support UAE e-invoicing and consequently require an upgrade before any setup begins. Perfonec handles this check on Day 1 — at no cost.</p>
<table>
<thead>
<tr>
<th>QuickBooks Version</th>
<th>QBESync Ready</th>
<th>Action</th>
</tr>
</thead>
<tbody><tr>
<td>QB Desktop 2017 to 2024</td>
<td>✅ Ready</td>
<td>Proceed to Step 2</td>
</tr>
<tr>
<td>QuickBooks Online</td>
<td>✅ Ready</td>
<td>Proceed to Step 2</td>
</tr>
<tr>
<td>QB Desktop 2016 and older</td>
<td>❌ Not ready</td>
<td>Upgrade first</td>
</tr>
<tr>
<td>QuickBooks Enterprise</td>
<td>✅ Ready</td>
<td>Confirm with Perfonec</td>
</tr>
</tbody></table>
<hr />
<h4>Step 2 — PINT AE Data Audit — The Most Important Step</h4>
<blockquote>
<p><strong>Why this step takes the longest:</strong> Between 20 and 40 percent of UAE QuickBooks customer records are typically missing the buyer TRN (BT-46). Furthermore, generic item descriptions, unstructured addresses, and wrong unit codes all cause PINT AE schema validation failure. Fixing these before go-live consequently prevents invoice rejections that would trigger AED 100 per invoice fines after the mandatory deadline.</p>
</blockquote>
<p>Here is what Perfonec checks across every customer and product record in QuickBooks:</p>
<p><strong>Buyer TRN — BT-46</strong><br />Where to check: Customer record — Tax Registration No field.<br />Common problem: Missing from 20 to 40 percent of UAE customer records.<br />Fix: Collect UAE TRN from every VAT-registered customer before go-live.</p>
<p><strong>Item description — BT-153</strong><br />Where to check: Products and Services — Name field.<br />Common problem: Services, Goods, Item — all fail for being too generic.<br />Fix: Rename to specific descriptions. Examples: IT Support Monthly, Steel Pipe 6m, Warehouse Storage per Pallet.</p>
<p><strong>Unit code — BT-130</strong><br />Where to check: Products — Unit of Measure field.<br />Common problem: Each, Box, Lot, Piece — none are valid UN/CEFACT codes.<br />Fix: Map to UN/CEFACT codes — EA (each), KGM (kilogram), MTR (metre), LTR (litre), HUR (hour).</p>
<p><strong>Seller address — BT-35</strong><br />Where to check: Company settings — address fields.<br />Common problem: Full address stored as one unstructured block.<br />Fix: Split into street, city, and country code in company settings.</p>
<p><strong>Buyer address — BT-50</strong><br />Where to check: Customer record — billing address.<br />Common problem: Full address stored in one text block.<br />Fix: Split into street, city, and country code in every customer record.</p>
<p><strong>VAT category — BT-151</strong><br />Where to check: Tax code on each product or service.<br />Common problem: Wrong category — standard 5% applied to zero-rated or exempt supplies.<br />Fix: S = standard 5%, Z = zero-rated export, E = exempt, O = out of scope.</p>
<p><strong>Free zone field</strong><br />Where to check: Customer record — free zone flag.<br />Common problem: Missing for JAFZA, DMCC, IFZA, DIFC, and RAKEZ buyers.<br />Fix: Tag all free zone customers in QuickBooks before pilot testing.</p>
<p><strong>Currency — BT-5</strong><br />Where to check: Invoice currency setting.<br />Common problem: AED equivalent missing on USD and EUR invoices.<br />Fix: QBESync adds the AED equivalent automatically — no manual action needed.</p>
<hr />
<h4>Step 3 — Data Quality Fixes</h4>
<p>The client team fixes all issues from the PINT AE audit. This covers collecting missing buyer TRNs, renaming generic item descriptions, splitting unstructured addresses, mapping wrong unit codes, and tagging free zone customers. Perfonec consequently provides a prioritised fix list after the audit — ordered by rejection risk so the most critical fixes happen first.</p>
<p>This step takes 1 to 3 weeks depending on the number of customer and product records. Businesses with hundreds of products and large customer lists consequently take longer than businesses with a small product catalogue.</p>
<hr />
<h4>Step 4 — ASP Registration</h4>
<p>Perfonec registers your business with an Approved Service Provider (ASP). The ASP connects QBESync to the UAE Peppol network. Registration includes your company TRN, Peppol participant ID, and network endpoint configuration. Furthermore, Perfonec handles this step entirely — the client team does not need to interact with the ASP directly at any point during setup.</p>
<hr />
<h4>Step 5 — QBESync Installation and Configuration</h4>
<p><strong>For QuickBooks Desktop:</strong><br />Perfonec installs QBESync on the machine running QuickBooks and connects it to the company file via the local SDK API. This gives a more stable connection than the cloud API. Bulk data editing during the audit is furthermore significantly faster on Desktop — making QB Desktop the recommended version for businesses with high invoice volumes or large customer databases.</p>
<p><strong>For QuickBooks Online:</strong><br />Perfonec connects QBESync to the QB Online account via the cloud API. The same 9-step setup applies. QB Online works well for lower-volume businesses and remote teams.</p>
<p><strong>QBESync configuration covers:</strong></p>
<ul>
<li>ASP connection and Peppol endpoint</li>
<li>VAT code mapping — S, Z, E, O categories</li>
<li>All 7 invoice type settings</li>
<li>Free zone beneficiary field configuration for JAFZA, DMCC, IFZA, DIFC, RAKEZ</li>
<li>Multi-currency AED equivalent rules for USD and EUR invoices</li>
<li>Incoming Peppol invoice receipt settings</li>
</ul>
<p>Configuration consequently takes 1 to 2 days once all data fixes are complete.</p>
<hr />
<h4>Step 6 — Pilot Phase Testing — All 7 Invoice Types</h4>
<blockquote>
<p><strong>The pilot phase carries ZERO fines — use it fully.</strong> The UAE e-invoicing pilot phase opened on 1 July 2026. ZERO financial penalties apply to any validation failure or rejected Peppol transmission during pilot. Consequently, every rejected invoice during pilot costs nothing. The same rejection after the mandatory go-live date triggers AED 100 per invoice. Test all seven invoice types before going live.</p>
</blockquote>
<table>
<thead>
<tr>
<th>Invoice Type</th>
<th>How to Test in QuickBooks</th>
<th>What to Check</th>
</tr>
</thead>
<tbody><tr>
<td>Standard B2B invoice</td>
<td>Raise invoice to UAE VAT-registered customer</td>
<td>PINT AE XML created — all 17 fields correct — Peppol status: delivered</td>
</tr>
<tr>
<td>Credit note — type 381</td>
<td>Issue credit memo against a test invoice</td>
<td>Document type 381 — original invoice reference in BT-25 correct</td>
</tr>
<tr>
<td>Advance payment invoice</td>
<td>Raise deposit invoice before full order</td>
<td>Advance payment flag correct per Version 1.1</td>
</tr>
<tr>
<td>Zero-rated export invoice</td>
<td>Raise invoice with overseas buyer — country not AE</td>
<td>VAT category Z — buyer country code not AE — 0% VAT</td>
</tr>
<tr>
<td>Free zone invoice</td>
<td>Raise invoice to JAFZA or DMCC test customer</td>
<td>Free zone beneficiary field populated — Peppol delivered</td>
</tr>
<tr>
<td>Multi-currency invoice</td>
<td>Raise USD or EUR invoice to international customer</td>
<td>AED equivalent amounts populated — correct exchange rate</td>
</tr>
<tr>
<td>Incoming supplier invoice</td>
<td>Ask test supplier to send Peppol invoice to your endpoint</td>
<td>QBESync receives and validates — imports into QuickBooks</td>
</tr>
</tbody></table>
<p>Test every invoice type your business actually raises. If your business does not raise zero-rated export invoices, you consequently do not need to test that type. However, every type you do raise in production must pass pilot before go-live.</p>
<hr />
<h4>Steps 7 and 8 — Fix Issues and Train the Team</h4>
<p><strong>Step 7 — Fix pilot issues:</strong><br />Perfonec reviews every pilot rejection and provides a specific fix for each one. Common pilot issues include wrong VAT category on a product line, free zone beneficiary field missing for a specific customer, or a unit code that did not map correctly. Consequently, most pilot issues resolve within 1 to 3 days of receiving the rejection report.</p>
<p><strong>Step 8 — Team training:</strong><br />Perfonec trains the accounts team on the live QBESync workflow — confirming invoices, checking Peppol delivery status, handling rejections, and raising credit notes type 381. Training consequently takes half a day for most businesses. Furthermore, Perfonec provides a reference guide for the accounts team to use after training.</p>
<hr />
<h4>Step 9 — Go-Live</h4>
<p>After all 7 invoice types pass pilot and the team training is complete, your business goes live on UAE Peppol. From go-live, every B2B invoice confirmed in QuickBooks consequently transmits through Peppol automatically via QBESync — with no action needed from the accounts team beyond their normal invoice confirmation.</p>
<p>Perfonec furthermore provides go-live support for the first 2 weeks — monitoring Peppol delivery status, resolving any production issues, and confirming the first live invoices of each type transmit correctly.</p>
<hr />
<h4>UAE E-Invoicing Deadlines</h4>
<table>
<thead>
<tr>
<th>Business Category</th>
<th>ASP Registration</th>
<th>Go-Live</th>
<th>Fines Begin</th>
</tr>
</thead>
<tbody><tr>
<td>Revenue AED 50M or above</td>
<td>By 30 Oct 2026</td>
<td>1 January 2027</td>
<td>2 January 2027</td>
</tr>
<tr>
<td>All other VAT-registered SMEs</td>
<td>By 31 Mar 2027</td>
<td>1 July 2027</td>
<td>2 July 2027</td>
</tr>
<tr>
<td>Pilot phase — all businesses</td>
<td>Open now</td>
<td>From 1 Jul 2026</td>
<td>ZERO FINES</td>
</tr>
</tbody></table>
<p><strong>Fines for non-compliance:</strong><br />AED 5,000 per month for not going live — no upper cap.<br />AED 100 per non-compliant invoice — capped at AED 5,000 per month.<br />Maximum combined fine: AED 10,000 per month.</p>
<p>The pilot phase consequently gives every UAE QuickBooks business a window to complete setup and test — while getting it wrong costs nothing. Starting the QBESync setup now consequently maximises the time available before the mandatory deadline carries financial consequences.</p>
<hr />
<h4>Common Questions</h4>
<p><strong>How long does the PINT AE data audit take?</strong><br />The audit typically takes 1 to 3 weeks depending on the number of customer and product records. Businesses with large customer lists take longer — particularly when buyer TRNs are missing from most records. Perfonec consequently provides a prioritised fix list so the most critical issues resolve first.</p>
<p><strong>What is the difference between QB Desktop and QB Online for QBESync?</strong><br />QB Desktop connects via the local SDK API — more stable and faster for bulk data editing during the audit. QB Online connects via the cloud API — suitable for lower-volume businesses and remote teams. Both follow the same 9-step setup process. QB Desktop is consequently recommended for higher invoice volumes.</p>
<p><strong>Do I need to test all 7 invoice types during pilot?</strong><br />Test every type your business actually raises. Each invoice type has specific PINT AE requirements that can fail independently. Pilot failures cost nothing — the same failure after go-live consequently triggers AED 100 per invoice. Furthermore, do not go live until every invoice type you use has passed pilot.</p>
<p><strong>Can Perfonec handle the full setup from start to go-live?</strong><br />Yes. Perfonec handles the version check, PINT AE audit, fix prioritisation, ASP registration, installation, sandbox testing, training, and go-live support. The only steps the client team handles are the data quality fixes — collecting missing TRNs and renaming items — which require internal knowledge of the business’s customers and products.</p>
<hr />
<h4>About the Author</h4>
<p><strong>Akanksha Surana</strong> is the CEO of Perfonec Computers, Dubai — developer of QBESync and OESync, Authorised QuickBooks Dealer and Pro Advisor in UAE, Odoo Ready Partner with Odoo Middle East (Cert n°0000699697), Authorised Silver Partner for TallyPrime, Zoho Partner, and Authorised Sage Reseller UAE.</p>
<p>📞 +971 4 386 6199<br />📧 <a href="mailto:sales@perfonec.com">sales@perfonec.com</a><br />💬 WhatsApp: +971 56 408 5594<br />🌐 <a href="http://www.perfonec.com">www.perfonec.com</a> — <a href="http://www.qbeinvoice.com">www.qbeinvoice.com</a></p>
<p><em>Full guide with downloadable PDF:</em> <a href="https://perfonec.com/qbesync-setup-guide-uae-einvoicing-quickbooks/"><em>QBESync Setup Guide — UAE E-Invoicing for QuickBooks</em></a></p>
<hr />
<p><em>QuickBooks is a product of Intuit Inc. Based on UAE Ministry of Finance Electronic Invoicing Guidelines Version 1.1 (June 2026), Ministerial Decisions No. 243 and 244 of 2025, and Cabinet Decision No. 106 of 2025. For general information only — not legal or tax advice.</em></p>
]]></content:encoded></item><item><title><![CDATA[Setting Up UAE Peppol E-Invoicing in Odoo — A Technical Walkthrough for Developers and Implementers]]></title><description><![CDATA[UAE mandatory e-invoicing went live in pilot phase on 1 July 2026.]]></description><link>https://perfoneccomputers.hashnode.dev/setting-up-uae-peppol-e-invoicing-in-odoo-a-technical-walkthrough-for-developers-and-implementers</link><guid isPermaLink="true">https://perfoneccomputers.hashnode.dev/setting-up-uae-peppol-e-invoicing-in-odoo-a-technical-walkthrough-for-developers-and-implementers</guid><dc:creator><![CDATA[Perfonec Computers]]></dc:creator><pubDate>Tue, 22 Sep 2026 07:27:55 GMT</pubDate><content:encoded><![CDATA[<p>Every UAE VAT-registered business sending B2B invoices must route them through the UAE Peppol network as PINT AE XML from their mandatory go-live date. For Odoo implementers and developers working with UAE clients, this creates a specific technical integration challenge — Odoo does not have a native UAE Peppol access point, which means the e-invoicing transmission layer has to be added externally.</p>
<p>This post covers how the UAE Peppol infrastructure works technically, what PINT AE XML requires at the data level, how the Odoo integration works through OESync, and what a real implementation involves from a developer and implementer perspective.</p>
<p>How the UAE Peppol Network Works</p>
<p>The UAE uses the Peppol framework — the same four-corner model used across Europe, Singapore, and Australia. The four corners are:</p>
<p>Corner 1 — Seller ERP (Odoo in this case) Corner 2 — Seller's Access Point (the ASP) Corner 3 — Buyer's Access Point Corner 4 — Buyer ERP</p>
<p>Every B2B invoice must travel this full path. The ASP — Accredited Service Provider — at Corner 2 is responsible for validating the invoice against the PINT AE schema, converting it to PINT AE XML if it is not already, and transmitting it through the Peppol network to Corner 3.</p>
<p>For Odoo, this means the integration point is between Corner 1 (Odoo) and Corner 2 (ASP). The developer or implementer needs to build or configure a connection that takes invoice data from Odoo, passes it to the ASP API, receives the transmission status, and surfaces that status back in the Odoo UI.</p>
<p>The PINT AE XML Schema — What It Requires</p>
<p>PINT AE is the UAE's national extension of the Peppol BIS Billing 3.0 standard. It is defined under the UAE Ministry of Finance Electronic Invoicing Guidelines Version 1.1, published June 2026.</p>
<p>The schema requires 17 mandatory fields on every invoice. These are the fields that must be present and correctly populated before an invoice will pass validation at the ASP level:</p>
<p>BT-1 Invoice number BT-2 Invoice date BT-3 Invoice type code (380 = invoice, 381 = credit note) BT-5 Invoice currency code BT-27 Supplier name BT-29 Supplier TRN (15-digit UAE VAT number) BT-35 Supplier address line 1 BT-37 Supplier city BT-40 Supplier country code (AE) BT-44 Buyer name BT-46 Buyer TRN (15-digit UAE VAT number) BT-50 Buyer address line 1 BT-52 Buyer city BT-55 Buyer country code BT-112 Invoice total VAT amount BT-110 Sum of invoice line net amounts BT-131 Invoice line net amount</p>
<p>Additionally, every invoice line must carry a PINT AE VAT category code:</p>
<p>S — Standard rate (5% UAE VAT) Z — Zero-rated E — Exempt O — Out of scope</p>
<p>And every unit of measure must use UN/CEFACT codes:</p>
<p>EA — Each (for countable items) KGM — Kilogram LTR — Litre MTR — Metre HUR — Hour (for services billed hourly) DAY — Day</p>
<p>The most common validation failures in UAE Odoo accounts are BT-46 (missing buyer TRN in res.partner), BT-50 and BT-52 (address stored as a single street field rather than separate structured fields), and missing UN/CEFACT unit codes on product.uom records.</p>
<p>The Odoo Data Model — Where Each PINT AE Field Lives</p>
<p>Understanding which Odoo model holds each PINT AE field is the first step in any UAE e-invoicing implementation. Here is the mapping:</p>
<p>PINT AE Field Odoo Model Odoo Field BT-1 account.move name BT-2 account.move invoice_date BT-3 account.move move_type BT-5 account.move currency_id BT-27 res.company name BT-29 res.company vat BT-35 res.company street BT-37 res.company city BT-40 res.company country_id BT-44 res.partner name BT-46 res.partner vat BT-50 res.partner street BT-52 res.partner city BT-55 res.partner country_id BT-112 account.move amount_tax BT-110 account.move amount_untaxed BT-131 account.move.line price_subtotal</p>
<p>The unit of measure maps from the UoM set on the product.template or product.product record through to the account.move.line via the product_uom field. If this field is blank or mapped to a UoM that has no UN/CEFACT code defined, the invoice will fail validation.</p>
<p>How OESync Works as the Integration Layer</p>
<p>OESync is an Odoo module built for UAE e-invoicing. It sits between Odoo and the ASP API. The integration works as follows.</p>
<p>When an account.move record reaches the posted state, OESync intercepts the confirmation event. It reads the invoice data from the Odoo database, maps each field to its PINT AE equivalent, runs a local pre-validation check against all 17 mandatory fields, and if the pre-validation passes, serialises the data to PINT AE XML and sends it to the ASP API endpoint via HTTPS POST.</p>
<p>The ASP then validates the XML against the full PINT AE schema, runs the UAE-specific business rules, and transmits the invoice through the Peppol network to the buyer's access point. The ASP returns a status code to OESync — sent, delivered, or rejected — which OESync writes back to a custom field on the account.move record and surfaces in the invoice view.</p>
<p>The pre-validation step is important. It catches data quality issues in Odoo before the invoice reaches the ASP — which is faster and cheaper than letting the ASP reject it and handling the error response.</p>
<p>The Fiscal Position Configuration</p>
<p>UAE e-invoicing requires correct fiscal position setup in Odoo to map tax rates to PINT AE VAT category codes. The standard Odoo UAE fiscal position maps as follows:</p>
<p>Tax Rate PINT AE Code account.tax field UAE VAT 5% S l10n_ae_vat_type = S UAE VAT 0% exports Z l10n_ae_vat_type = Z Exempt E l10n_ae_vat_type = E Out of scope O l10n_ae_vat_type = O</p>
<p>If a fiscal position is missing or a tax rate is not mapped, OESync will catch this at pre-validation and return a validation error on the invoice before submission. The error is written to the invoice chatter with the specific PINT AE field and BT code that failed — which makes debugging straightforward.</p>
<p>Credit Notes — Document Type 381</p>
<p>UAE e-invoicing handles credit notes as a separate document type. A credit note in PINT AE must carry invoice type code 381 and must reference the original invoice number in BT-25 (preceding invoice reference).</p>
<p>In Odoo, this maps to account.move records with move_type = out_refund. OESync automatically sets the document type to 381 for these records and prompts for the original invoice reference if it is not already linked through the standard Odoo reversal mechanism.</p>
<p>Advance Payment Invoices — Version 1.1</p>
<p>UAE E-Invoicing Guidelines Version 1.1 introduced specific handling for advance payment invoices. An advance payment invoice is a separate document type that must be issued when a deposit or prepayment is received before the final supply.</p>
<p>In Odoo, advance payments are typically managed through account.payment records linked to a sale.order. OESync handles the PINT AE document generation for these records and ensures the advance amount is correctly referenced in the final invoice when issued.</p>
<p>Free Zone Beneficiary Fields</p>
<p>UAE businesses in DMCC, JAFZA, IFZA, DIFC, ADGM, and RAKEZ need to populate the free zone beneficiary field in the PINT AE XML. This is an additional field not present in the base PINT AE schema — it is a UAE-specific extension added in Guidelines Version 1.1.</p>
<p>OESync adds a custom field to the res.partner model to store the free zone beneficiary details and maps this to the correct PINT AE extension element during XML serialisation.</p>
<p>Testing During the Pilot Phase</p>
<p>The UAE e-invoicing pilot phase has been open since 1 July 2026. During the pilot phase, no financial penalties apply to any validation failures or rejected transmissions. This is the correct window to run a full integration test.</p>
<p>The recommended test sequence for an Odoo implementation is:</p>
<ol>
<li><p>Standard B2B invoice — all 17 fields populated</p>
</li>
<li><p>Zero-rated export invoice — BT category code Z</p>
</li>
<li><p>Credit note — document type 381, original invoice reference</p>
</li>
<li><p>Advance payment invoice per Version 1.1</p>
</li>
<li><p>Multi-currency invoice — AED equivalent calculation</p>
</li>
<li><p>Free zone invoice — beneficiary field populated</p>
</li>
<li><p>Invoice with mixed VAT lines — S and Z on same invoice</p>
</li>
</ol>
<p>Each test should be run against a real Peppol sandbox endpoint, not a mock, to catch any ASP-level schema validation issues that the local pre-validation might not catch.</p>
<p>Common Implementation Errors</p>
<p>These are the errors that appear most frequently in UAE Odoo e-invoicing implementations:</p>
<p>Error 1 — BT-46 missing Cause: res.partner records without vat field populated Fix: Bulk update customer TRNs, add validation rule on partner save</p>
<p>Error 2 — BT-50/BT-52 combined into one field Cause: Street and city stored in a single street field Fix: Split using partner import or direct SQL update on res.partner</p>
<p>Error 3 — UoM not mapped to UN/CEFACT code Cause: Default Odoo UoMs do not have UN/CEFACT codes by default Fix: Add l10n_ae_uom_code field to uom.uom, populate via data file</p>
<p>Error 4 — Fiscal position not set on customer Cause: UAE fiscal position not assigned to res.partner records Fix: Bulk assign via partner import or domain-filtered write</p>
<p>Error 5 — Tax rate not mapped to PINT AE category Cause: Custom tax rates created without l10n_ae_vat_type Fix: Set l10n_ae_vat_type on all account.tax records</p>
<p>The Mandatory Deadline Schedule</p>
<p>For implementers planning client go-lives:</p>
<p>ASP appointment deadline (large biz): 30 October 2026 Go-live deadline (revenue AED 50M+): 1 January 2027 Fines begin (large biz): 2 January 2027 ASP appointment deadline (SMEs): 31 March 2027 Go-live deadline (all other SMEs): 1 July 2027 Fines begin (SMEs): 2 July 2027 Pilot phase (no penalties): From 1 July 2026</p>
<p>Penalty for non-implementation: AED 5,000 per month under Cabinet Decision No. 106 of 2025. Penalty per non-compliant invoice: AED 100, capped AED 5,000 per month. Maximum combined: AED 10,000 per month.</p>
<p>Summary for Implementers</p>
<p>The UAE Peppol e-invoicing integration for Odoo is a well-defined technical problem. The data model mapping is clear. The PINT AE schema is documented. The most common issues are data quality in res.partner and res.company rather than schema complexity. A clean implementation with proper pre-validation, correct fiscal position mapping, and full test coverage across all invoice types should pass Peppol transmission without significant issues.</p>
<p>The pilot phase is the right time to run that full test sequence. No penalties apply during the pilot phase regardless of how many validation failures occur.</p>
<p>Based on UAE Ministry of Finance Electronic Invoicing Guidelines Version 1.1 (June 2026), Peppol BIS Billing 3.0, and Ministerial Decisions No. 243 and 244 of 2025. For technical reference only — not legal or tax advice.</p>
<p>Written by Akanksha Surana — Odoo Ready Partner with Odoo Middle East (Cert n°0000699697), Perfonec Computers, Dubai.</p>
]]></content:encoded></item><item><title><![CDATA[A Comprehensive Guide to Sage 50 Peachtree Accounting Software for Financial Management]]></title><description><![CDATA[Sage 50 Peachtree Accounting Software is a powerful solution designed to simplify financial management for businesses of all sizes. With robust features…]]></description><link>https://perfoneccomputers.hashnode.dev/a-comprehensive-guide-to-sage-50-peachtree-accounting-software-for-financial-management</link><guid isPermaLink="true">https://perfoneccomputers.hashnode.dev/a-comprehensive-guide-to-sage-50-peachtree-accounting-software-for-financial-management</guid><dc:creator><![CDATA[Perfonec Computers]]></dc:creator><pubDate>Mon, 27 Jan 2025 06:44:01 GMT</pubDate><content:encoded><![CDATA[<p>Sage 50 Peachtree Accounting Software is a powerful solution designed to simplify financial management for businesses of all sizes. With robust features like budgeting, invoicing, payroll management, and real-time financial tracking, it streamlines accounting processes while ensuring accuracy and compliance. This comprehensive guide explores the software’s capabilities, helping you make the most of its tools to optimise your business’s financial health and efficiency. Whether you're a small business owner or part of a growing enterprise, Sage 50 Peachtree offers a reliable platform to manage your finances with confidence.  </p>
<p>Learn more about how Sage 50 Peachtree can transform your financial reporting and decision-making here: <a target="_blank" href="https://www.pearltrees.com/perfoneccomputers10/item688267223">https://www.pearltrees.com/perfoneccomputers10/item688267223</a></p>
]]></content:encoded></item></channel></rss>