OScar.
← Blog

30 November 2026 · 14 min read

The receipt that is the email itself

Receipts found the short way into the books: straight from a mail's attachment, from Documents, and now the mail itself when the receipt is its text. Plus two polite questions that stop the same purchase being booked twice, suppliers' bills that are paid later by the bank line that finds them, a year's end that books the bills still unpaid, and the books' deadlines turning up in the task list by t

An open envelope with a receipt curling out of it and a paper airplane gliding toward an open ledger book

Most of a small company's receipts never touch paper. They land in a mailbox: a PDF from the phone company, a photo from a colleague, or a mail whose text simply says "thanks, that was 125 kronor". This session was about those email receipts and the shortest way from the mailbox into the books. It ended with a small piece of law, read at the source, that decided how the last step had to be built.

Send to Bookkeeping

For an account that keeps a company's books, a file in a mail now has one more button beside Download and Save to Documents: Send to Bookkeeping. So does a file in Documents, in its right-click menu and its info panel. Press it and the receipt waits in the bookkeeping inbox, beside the voucher you will write for it, with a note of where it came from: which mail, from whom, on which day.

The dialog always says whose books the file goes to. With one company that is a sentence; with several it is a picker that starts on the company of the project you are in. And it says what it did: sent, or already there.

The same file never goes in twice

That "already there" grew into a rule of its own. A receipt is recognised by its content, not its name, so the same PDF sent from a mail on Monday and from Documents on Thursday is still one receipt. The books answer with where it is: waiting in the inbox, booked on voucher A 12, or taken out.

The owner then asked the obvious question after adding the same receipt to the inbox twice by hand: should that work, and why did nothing say so? It should not, and now it does not. The inbox's own plus button and a file dropped on the page take the same road as a send. The second copy is not added, and the page says, quietly, "was not added again", with a link to where the first one is.

The morning after brought the follow-up question: take everything out of the inbox, add a receipt again, and the same note comes back. Is that right? It is: once a file has come into the books it is kept for good, so there is nothing new to add. But the note's link led nowhere useful, which made a correct answer feel like a dead end. Now the note carries a Put back button. One press, and the receipt waits in the inbox again.

The same money, asked about once

A subtler double is the receipt and its line on the bank statement. Book the receipt on its own today and the bank line tomorrow, and the purchase is in the books twice. So when a receipt is about to be posted alone against the bank account, the books ask first: its bank line may still come in, book it together with the line instead? If a line of exactly that amount is already waiting, the question names it, and one press books the two as one voucher on the bank's day. It only ever asks. The decision stays yours.

When the receipt is the mail

Then the case with no file at all: an app store, a train ticket, a web shop whose receipt is the mail's own text. The tempting fix is to turn the mail into a PDF. Swedish bookkeeping law says otherwise: a record that arrives electronically is kept in the format and with the content it had when it came, and the official guidance names a mail as exactly such a record. A PDF of a mail is a different thing.

So an opened mail in Email has a small book in its menu, and it sends the whole mail to the books, kept as it arrived: its text, the pictures inside it, its files. In the bookkeeping inbox it is shown the way the mail reader shows a mail, in the same sealed frame where nothing a sender wrote can run. Pictures a mail would fetch from the internet are left out on purpose: they were never part of what arrived, and fetching one tells the sender you looked. The page says how many it left out.

Once booked, the mail sits on its voucher and opens right there with a press, and it downloads as a mail file that any mail program opens. If the mail also carries a PDF, the dialog gently points out that a receipt which is that file should be sent as the file.

Suppliers and their bills

Not every purchase is paid at the till. A supplier's invoice arrives today and is paid in thirty days, and until then it is something the company owes. So the books learned a second answer to "what is this document?". Beside Book it now the inbox offers A bill to pay later: pick the supplier (or make one right there, a name is enough), type the invoice number, the dates and the total, and say which costs and how much VAT it is made of. A template fills those lines for the total, and the supplier remembers which template its bills usually take.

What happens next depends on how the company keeps its books, and the law decides, not the program. With the invoice method the bill is booked the moment it is registered, against what suppliers are owed. With the cash method, the one most small companies use, nothing is booked yet: the bill waits in order among the unpaid ones, which is exactly what the guidance asks for. Either way there is a new page, Purchases, with the bills that are open, and a new report, the supplier ledger, that lists what is owed bill by bill and checks its own total against the books.

Two things were built to be forgiving. A bill registered by mistake is taken out with a word of why, and its document simply waits in the inbox again, ready to be booked the usual way. And a supplier's invoice number can only be used once per supplier, so the same bill typed in twice is caught at the door rather than at the bank.

One small piece of law surprised us here too. The well-known rule that a simple till receipt only works up to 4 000 kronor turned out to be one of four grounds, and the other three are things no program can judge. So the books do not stop a larger receipt. They say what to check on it, and leave the judgement where it belongs.

The bank line that finds its bill

And then, the same day, the bill got paid. A line of money out in the inbox now asks a small question on its card: the payment of a bill? Under it stand the open bills it could be paying, the one whose payment reference is in the bank's text first. Pick one and the voucher is simply there, drawn rather than typed: the money on the bank's side, the bill's own costs and VAT on the other, and the bill's document beside it. Post and next, and the bill is paid on the bank's day.

A bill paid some other way is marked as paid on its own page: the day, where the money came from (a company account, or the owner's own pocket), and the same drawn voucher before the press. Either way the document the bill was registered from rides along on the voucher that pays it, because a voucher without its paper is half a voucher.

Mistakes have a way back. Mark as unpaid takes the payment out of the books again and, if a bank line paid it, puts that line back in the inbox to be matched to the right bill.

A bill in another currency keeps the kronor it was registered at. If the bank took a little more or less on the day, the difference lands on a line of its own as an exchange loss or gain, which is how the tax agency's own example does it.

One rule waited for the next step. A bill left unpaid when a year ends belongs to that year's last day, so the books will not let January's payment quietly book December's cost, and they will not close the year over such a bill either. The next step came the same evening.

The bills that crossed New Year unpaid

With the cash method a purchase is booked when it is paid. Almost. The law has one exception, and it is a sensible one: whatever is still unpaid when the year ends is booked on the year's last day, so the year's accounts show what the company owed when the clock struck twelve. The books already did this for the invoices a company sends. Now they do it for the bills it receives.

On the Company page, once a year has ended, Book what was unpaid looks through the year and puts every bill that was still open on its last day into the inbox, one card each. A card shows the supplier, the invoice number and the amount, and under it the voucher, already drawn: the bill's own costs and VAT on one side, what suppliers are owed on the other, dated the 31st. Nothing is typed. Post and next, and December's cost is in December. Several at once work from the list too, ticked and posted in one press.

Then January's payment does the quiet, correct thing. The cost is already in the books, so the payment only clears the debt against the bank. The purchase is counted once, in the year it belongs to.

The card has one more button, and it carries a meaning. Taking a year-end bill out of the inbox says: this cost is in my books already, another way. Perhaps the year came in from another program, or stands in the opening balances. The books take you at your word. Its payment then clears the debt and books no cost, the bill's page says so in plain words, and the supplier ledger lists such bills in a group of their own, so its totals still agree with the accounts.

And the two doors that used to rely on good manners now check for themselves. A year cannot be closed, and the VAT return for the period it ends in cannot be approved, while a bill or an invoice from that year's end is neither booked nor taken out. The VAT on those bills belongs to that return, so the return waits for them.

Late in the evening the invoices got the courtesy the bills already had. Picture January: you press Book what was unpaid, and an invoice from December lands in the inbox as unpaid. Then the bank statement shows the customer did pay, on the 29th. The payment books the sale in December, as it should, and the year-end card is left with nothing to do. Until tonight the page's advice was to take that card out, which was the one wrong move: taking a year-end card out means "this sale is in my books another way", and the books remember it. Now posting the payment finishes the card by itself, and the card says so while it waits. Take the payment back and the card waits again; if the year was closed in between, the invoice simply turns up for the next year's end.

Paid with my own money

A classic of the small company: the owner pays for something with a private card. That is not a kind of purchase, it is a place the money came from. So a voucher's template row now has that choice, and the money lands on the account where the company owes its owner, with a second template for the day the company pays it back.

Deadlines that walk into the task list

Books come with dates that are easy to forget until they are tomorrow. So every night now, the books look at what is coming and put it where the rest of the to-dos already live: in Tasks, in a list called Bookkeeping in the company's own project. A VAT return turns up once its period has ended, on the day it is due. A supplier's bill turns up a month before its due day, with its supplier, number and amount in the title. And when a year has ended for a company that books by the cash method, a task says so the next morning.

The rules are short. One task a deadline, never a second one. Delete a task and it stays deleted, because that is an answer too. Move a bill's due day and its task moves with it, unless you had already given the task a date of your own, in which case yours stands. Pay the bill and its task ticks itself. The VAT task is the one the books never tick: approving a return in OScar is not the same as filing it and paying it, and only you know when that is done.

Each task comes with a reminder by email, a week ahead for a VAT return and two days ahead for a bill. That needed two new choices in every task's reminder menu, 2 days before and 1 week before, and they are there for all your own tasks as well. And one promise was built in from the start: if you have shared your Bookkeeping list with someone, the books do not write into it. A supplier's name and an amount were never theirs to read, so those tasks go into a list of their own.

Small things

  • A mail with both a designed version and a plain text version offers the text too, in case an amount only stands in one of them.
  • A mail's other files are listed by name and size under it, so nothing of a kept mail is out of sight.
  • Beside a voucher on a computer, a mail gets a wider column than a PDF does: receipt mails are drawn wide, and half size was too small to read.
  • Before this went out, an independent reviewer read the work twice, and what it found was fixed first. One lesson went into the workshop's rule book: when you time how fast a tool chews through a strange file, time what it eats as well.
  • The books' own description of how they are kept now mentions mails, and how the same file is only kept once.
  • The first real receipt mail made the trip the next morning: a subscription invoice, from the mailbox into the books' inbox, shown there just as the mail reader shows it.
  • The care taken with oddly built mails in the books now covers the mailbox's own background reading too: both go through the same door.
  • A bill in another currency asks for what it comes to in kronor, and offers the central bank's rate of the bill's day as a start.
  • The complete archive of a company's books holds the supplier ledger for every year, and the books' history has words for everything that happens to a supplier or a bill.
  • The bills were read by an independent reviewer three times before they went out, twice before the database learned about them. The most useful finding was about honesty: a page had promised something that is only built next.
  • A voucher that books or pays a bill wears a small link back to its bill, and is put right from there, never by hand.
  • "Post what is ready" ticks a bank line as a bill's payment only when it is certain: one open bill's reference in the bank's text, the same amount. And a ticked row is only ever posted as what the list showed, a point the reviewer pressed until it held.
  • How many bills and suppliers a company may keep was moved far out of sight. Those figures were guard rails, never a price list.
  • The supplier ledger no longer reads every bill a company ever had, only the ones that can still be open on the day asked about.
  • A bill paid in the last days of the year, after its year-end card had already come in, takes the card with it: the payment did the job, so nothing is left waiting. Take the payment back and the card waits again.
  • A bill that waits for the year's end says so on its own page, with the way into the inbox; one booked at the year's end links the voucher that did it.
  • The books' own description of how they are kept gained a paragraph on the year's end for bills. It nearly did not: the feature was finished and tested before anyone noticed the description still told the old story. It is checked before the code goes out now.
  • The year's end was read three times by an independent reviewer before the database learned about it. Then about a thousand checks ran against the real thing, and the only ones that failed were the checks themselves: one had miscounted, one expected "31 December" where the page says "31 Dec".
  • The invoices' fix was read by an independent reviewer before the database heard of it, and the thousand checks ran twice: once before, to watch the new ones fail, and once after, to watch them pass. A green light is only believed when it was red first.
  • The books no longer let a year be closed, a VAT return be approved or the bookkeeping method be changed while an invoice's year-end card still waits in the inbox, also when the invoice has since turned out to be paid inside the year. Before, a careless close could have shut that payment out of its own year.
  • A year-end card that was taken out of the inbox can be put back for as long as its year is open. An independent reviewer caught the first version being too strict about that: it had borrowed a rule from the bills that does not fit an invoice, and would have closed the one road back. The rule was cut to fit before the database heard of it.
  • Something that waits in the inbox again, after its payment was taken back, forgets that it was once pushed to "Later". It is news again.
  • The deadlines were read by the same reviewer twice as well. The best catch: the task for a year's end could only ever have been made on one single night of the year. Miss that night and it was gone for good. It is made on any night now, for as long as the year is open.

Next on the workbench: the rest of the bank's side of the books, and a reader that looks at a receipt and proposes its voucher.

  • changelog
  • oscar
  • bookkeeping
  • email
  • documents
  • tasks