Tx for sending invoice with vat?

I am just getting started with hledger and pta.I want to add a tx for an invoice I am sending. I reside in a scandinavian country where VAT is 25%. Before I was using an accounting program where I would use these accounts for such a tx

3010  -28.00
2611  -7.00
1510  35.00

Where 3010 is "sales", 2611 "vat on sales" and 1510 "accounts receivable" (hope I got the translations correct). How would that look like in pta?
Thank you

Maybe you could show the full general journal entry from your old accounting program ? That'll be relatively easy to translate to PTA.

Actually I think it'll be something like:

2025-01-08 Invoice to Client1
    Revenues:Sales                       -28
    Liabilities:VATPayable                -7
    Assets:AccountsReceivable:Client1     35

(Or you could use the old account numbers if preferred.)

3 Likes

Great. I dislike accounting, but a little less with pta and hledger.
Thanks

For completeness, I should say that's the entry when using accrual basis accounting. If using cash basis accounting (as individuals and small businesses usually do in the US), it's different.
https://plaintextaccounting.org/Invoicing

Good point, I have been using cash based but have to start using accrual since I am sending invoices to other EU countries (which requires handing in a report that in turn requires accrual based accounting).

I am getting back to this as I am now dealing with at last years transactions. The format is sie (sie4). It seems to start with a definition of the accounts, ex:

#KONTO 1930 "Företagskonto"
#KTYP 1930 T

then the balances:

#IB 0 1930 50.00
#UB 0 1930 100.00

then the transactions:


#VER B 1 20240105 "Egen insättning" 20240111
{
#TRANS 1930 {} 1000.00 20240105 "Egen insättning"
#TRANS 2018 {} -1000.00 20240105 "Egen insättning"
}

I found this awk script which reads from a mapping file and converts to ledger.
Edit: after some input from ai the script now seems to work