Skip to content

TRA fiscal receipts and Tally

Sync with TallyPrime

Send invoices, credit notes, receipts and expenses into TallyPrime through a connector on the Tally PC, or as files you import yourself.

On plans that include it, the app keeps your TallyPrime books up to date, so your accountant doesn't type invoices and receipts twice. Entries go one way only, from the app into Tally; nothing in Tally comes back.

Find it in Settings → TallyPrime. The System administrator and the Accounts manager can see the sync and export files; only the System administrator can change the setup and the connector.

What goes into Tally

In the appIn Tally
A customerA ledger under Sundry Debtors (or the group you choose), named e.g. Mfano Motors Ltd (C0012), with their address, phone, email, contact person, TIN and VRN
An issued invoiceA Sales voucher on its issue date: the customer is debited; storage, other services and VAT are credited
An issued credit noteA Credit Note voucher, the other way round
A paymentA Receipt voucher: the bank account it went into (or the ledger for its method) is debited and the customer credited. The narration has the receipt number, method, reference, the customer's bank and, when there is one, the TRA fiscal receipt code
A warehouse expenseA Payment voucher: the expense ledger is debited, and the ledger it was paid from credited
Opening balances from the old systemJournals, only if you tick Send opening balances (as Journals)

Only issued invoices and credit notes go; drafts don't. If an entry changes after it was sent, it's changed in Tally; a voided invoice or receipt, or a deleted expense, is removed from Tally. Amounts are in TZS.

Only entries dated on or after your Start from date are sent. Anything earlier is assumed to be in Tally already.

Ledgers

Ledgers Tally doesn't have yet are created under the group you choose next to each one. Ledgers Tally already has are used as they are, and the app never deletes a ledger. If Tally already knows a customer by another name, enter it as Ledger name in Tally on the customer's form: the app then uses that ledger and doesn't create or change it.

Bank ledgers. Each bank account in Settings → Bank accounts has its own Ledger in Tally. A payment recorded Into our account goes to that account's ledger, so each bank can be reconciled in Tally. See Bank accounts.

Custom fields. Fields marked Send to Tally are added to the narration as "Field name: value": a customer's fields on their invoices, a payment's on its receipt, and an expense's on its payment voucher. See Custom fields.

Set it up

Ask your accountant for the exact ledger and voucher type names in Tally first: a small difference in spelling makes a new ledger.

  1. Under Setup, tick Send entries to Tally, and choose Start from: the day after your Tally books are complete.
  2. Enter the Company name in Tally, or leave it empty to use whichever company is open in Tally.
  3. Choose where new customers go under Customers under.
  4. Check the Voucher types: Invoices, Credit notes, Payments in, Expenses and Opening balances.
  5. Check the ledgers under Income and VAT (Storage, Other services, VAT), Money in and out (one per payment method) and Warehouse expenses (one per category). Untick Send expenses to Tally (as Payment vouchers) if your accountant enters expenses in Tally.
  6. Press Save.
  7. Set up the connector, or export files (below).

The connector

The connector is a small script on the Windows computer that runs TallyPrime. It uses Windows PowerShell, which comes with Windows, so there's nothing to install. Every 15 minutes it asks the app what's new, sends it to Tally and reports back what Tally accepted.

  1. In TallyPrime, press F1 (Help) → Settings → Connectivity → Client/Server configuration. Set TallyPrime acts as to Both and the port to 9000, then restart TallyPrime and open your company.
  2. In the app, press Set up the connector, then Download tally-sync.ps1.
  3. On the Tally PC, save the file as C:\PowerBondedWarehouse\tally-sync.ps1.
  4. Test it once: open Command Prompt and run the first command shown in the app. The button beside each command copies it. powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\PowerBondedWarehouse\tally-sync.ps1
  5. Make it run every 15 minutes by running the second command, which creates a Windows scheduled task: schtasks /Create /TN "Power Bonded Warehouse Tally sync" /SC MINUTE /MO 15 /TR "powershell.exe -NoProfile -ExecutionPolicy Bypass -WindowStyle Hidden -File C:\PowerBondedWarehouse\tally-sync.ps1" /F

A good run ends with Sent 12 to Tally, 0 not accepted. or Tally is up to date. Each run also writes to tally-sync.log in the same folder. Back in the app, press Refresh: the status line says when the connector last checked in. Entries go through only while the PC is on and TallyPrime is open with your company; anything missed goes on the next run.

The file carries your warehouse's connector key: the connector signs every request with it, and the app shows it only once, inside the download. Keep the file private, and don't email it or leave it on a shared drive. Replace key and download again makes a new key and stops the old one at once; Remove key switches the connector off.

Import files by hand

No connector? When entries are waiting, press Export to files in the Tally sync card.

  1. Press Download the ledgers file. In TallyPrime, choose Import → Masters, pick the file, and set Behaviour of import if master already exists to Ignore duplicates.
  2. Press Download the entries file, then choose Import → Transactions and pick it.
  3. Check Tally's import summary. If everything went in, press I've imported the files, then Yes, Tally has them. If not, press Cancel export: the entries stay waiting.

An export holds up to 300 changes; export again for the rest. While an export is waiting to be confirmed, the connector doesn't send anything.

Check the sync

The Tally sync card shows whether sync is on, how many entries are In Tally and Waiting to send, and Next to send. Tally didn't accept these lists entries Tally refused, with Tally's reason: fix the cause in Tally, or the ledger names under Setup, and they go again on the next run. Recent sends shows each run, by connector or file.

Tip: Try it first on a copy of your Tally company, and check the entries before you point it at your real books.

Not using Power Bonded Warehouse yet?

30 days free with every feature. No card needed.

Start free trialWhatsApp us