Accounts
Exporting sales and GST to Tally Prime offline
How a fuel station can send daily sales, purchases and GST to Tally Prime without retyping, with petrol and diesel outside GST and lubricants under it.
By PetroKhata team Published Updated 5 min read
On this page
At most fuel stations the books are typed twice. Someone writes the day's sales, collections and purchases into a register at the station, and later an accountant types the same figures into Tally. Every retyping is a chance for a mistake, and the month-end rush is when those mistakes are least likely to be caught.
The alternative is to post the day's figures once, at the station, and give the accountant a file Tally can import. This article explains what has to be right for that to work at a fuel station, where fuel and lubricants are taxed differently, and how PetroKhata does it on a PC with no internet.
Fuel is outside GST, lubricants are not
The first thing to get right is the split between fuel and everything else.
- Petrol and diesel are outside GST. They are taxed through central excise and state VAT, which reach you inside the price the oil company charges. Your fuel sales are non-GST supplies: no output GST, and the fuel purchase carries no GST input credit.
- Lubricants, AdBlue and other packaged goods carry GST. They need HSN codes and the correct rate, and they produce output GST on sales and input GST on purchases.
- Charges on the fuel invoice can carry GST even though the fuel does not. The licence fee recovered by the oil company is one example.
If fuel sales are posted as if they carried GST, or lube sales without it, the GST return and the books will disagree. Check the rate for each item with your CA; for some items practice differs between dealers.
In PetroKhata fuel sales are tagged non-GST, each lube or other item has its own GST rate set by the Owner or Accountant, and the fuel bill entered against a delivery has separate fields for base value, VAT, TCS, licence fee recovery with its GST, and other charges.
Post the day's books from operations
Once a day is closed (every shift locked, closing dips entered), its figures can become vouchers without anyone retyping them. In PetroKhata this is the Post books action on the PC the Owner has cleared for accounts. It posts:
- fuel sales by product, and lube sales by GST rate with their output GST;
- cash, net of floats;
- each card machine, QR code and fleet card into its own clearing ledger, so you can later match it against what the bank actually credited;
- credit sales to each customer's ledger, shortages to the attendant, and excess to income;
- customer receipts and interest, purchases, supplier payments and notes, and issued invoices.
If a source changes after posting (for example, a locked shift is corrected), the old voucher is reversed and posted again, and both stay visible. A day whose figures do not balance is not posted, and the screen says which days to check.
Ledgers and names in Tally
A Tally import works only if every ledger in the file either exists in the Tally company or is created by the import under the right group. PetroKhata creates ledgers under Tally's own group names (Sales Accounts, Purchase Accounts, Duties & Taxes, Sundry Debtors, Sundry Creditors, Bank Accounts, Cash-in-Hand and so on) and includes the ledger masters in the export. Groups Tally does not have, such as a group for the card and UPI clearing ledgers, are created under the right parent.
Before your first import, sit with your CA and compare the ledger list with the company's existing ledgers. If the company already has a ledger with a different name for the same thing, decide which name to keep, or Tally will end up with two.
Do a dry run before the export
PetroKhata shows a dry run before any file is made: how many vouchers will go, how many in that period were already exported and will be left out, and every ledger with the name it will carry in Tally, grouped as Tally will see it. Read it like a checklist:
- Are the dates right?
- Is the voucher count roughly what you expect for that many days?
- Is any ledger name new or spelled differently from the company's?
Then download the Tally Prime XML. In Tally Prime, import it through Import, then Transactions. PetroKhata records each export, so the next one sends only vouchers that are new. If your CA needs to re-import a period, you can choose to send everything in those dates again.
Import into a test company first
Whatever software produces the file, the first import should go into a copy or a test company, not the live books. Compare the trial balance after import with the trial balance in PetroKhata. If they agree, import into the live company. We are doing exactly this with a CA on a real import before our first pilot station goes live.
GSTR-1 and GSTR-3B figures
The GST return needs the same split. PetroKhata makes, for any month:
- GSTR-1 as JSON: B2B invoices, B2C small sales by rate, the HSN summary, documents issued, and fuel shown as non-GST supplies.
- GSTR-3B figures as JSON.
These are meant for the GST offline tool, so your CA can check them before anything is filed. Filing itself still happens on the GST portal and needs internet; preparing the figures does not.
Lock the month
Once the month is handed over, lock it. In PetroKhata the Owner or the Accountant can lock a month and only the Owner can unlock it. Posting leaves locked months alone, so a late correction cannot quietly change figures your CA has already filed.
Why offline matters here
Month end is not when you want to find out the internet is down. In PetroKhata the books, the dry run, the Tally XML and the GST JSON are all made from the encrypted database on the station PC. If the CA prefers to work remotely, the same screens are available to the Owner and accountant in the web portal when there is a connection.
A month-end routine
- Close every day of the month (all shifts locked, closing dips in).
- Post books and fix any day that does not balance.
- Run the dry run and check ledger names with your CA.
- Download the Tally XML and import it, into a test company the first time.
- Compare trial balances.
- Download the GSTR-1 and GSTR-3B JSON for the CA.
- Lock the month.
You can see the reports and registers from a demo station on the screens page. If your accountant spends the first week of every month retyping registers, tell us about your station. We would like to run the first import with your CA.
Frequently asked questions
Are petrol and diesel under GST?
No. Petrol and diesel are currently outside GST and are taxed through central excise and state VAT, which come to you inside the oil company's price. Lubricants and most other goods you sell carry GST. Your CA will confirm the treatment for each item.
Do I need internet to make the Tally and GST files?
Not in PetroKhata. The books are posted and the files are made from the data on the PC the Owner has cleared for accounts. You only need internet later, to upload the GST return on the portal.
Will the same voucher be imported twice?
PetroKhata remembers which vouchers each export contained, so the next export sends only what is new. You can choose to send everything in a date range again if your CA needs to re-import.
Has the PetroKhata Tally file been tested with a real company?
We are checking the Tally and GST files with a CA on a real import before our first pilot. Until then, and as good practice anyway, import into a test company first and compare the trial balance.