Xledger AR10 (export)

Modified on Thu, 5 Nov at 12:09 PM

How the export works

With the Xledger (AR10) export, Project Flow creates a file with your finalized invoices and credit notes, as vouchers, that you import into Xledger. AR10 is the common voucher format also known as GBAT10 or the Mamut format. It is a file export, not a live connection.

  • What is exported: invoices and credit notes. The customer's number, name and address are on the lines, but customers and projects aren't exported as separate records.
  • How the file gets to Xledger: you download it, or Project Flow sends it by email, FTP/SFTP or HTTP.
  • When: when you run the export, or automatically after each invoice is finalized (FTP and HTTP only).

Other Xledger integrations. Project Flow also has:

  • Xledger (GL02b): Xledger's own file format, with currency and customer ledger accounts.
  • Xledger: a live connection. See the article Xledger integration.



Set up the export

Step 1: Add the integration

  1. Go to Setup → Settings → Integrations (Oppsett → Innstillinger → Integrasjoner) and switch to the tab Export to file (Eksport til fil). You need administrator access.
  2. Click + Create integration and choose Xledger (AR10).
  3. Fill in the fields below, tick Enabled and save.

Project Flow plan. The export isn't available on the Start plan.


Step 2: Department

Department (Avdeling) decides what goes in the file's department column:

Option (EN / NB)Department in the file
Do not include department / Ikke inkluder avdelingNone (default)
Use accounting department / Bruk regnskapsavdelingThe accounting department's code. Only shown if you have accounting departments.
Use department from invoice / Bruk avdeling fra fakturaThe invoice's department
Use department from project / Bruk avdeling fra prosjektThe project's department
Use invoice tag group / Use project tag groupThe code of the invoice's or project's tag in the tag group you choose

For departments, Project Flow uses Department number in external system, or the department number if that is empty.

Department from the project? With Use department from project or Use project tag group, every invoice must have a project. Otherwise the export fails.


Step 3: How and when the file is sent

Field (EN / NB)Description
Default invoice issue date limit / Standard sluttdato for fakturaeksportWhich invoices are included, by invoice date: Up to and including last day of previous month, Current date, or No limitations on date (everything that hasn't been exported yet) (default).
Send data to / Send data tilDownload folder (default), Email, FTP / FTPS (also SFTP) or HTTP / HTTPS.
Transfer files / Send over filerOnly for FTP and HTTP. Manually (default), or Continuously (after each invoice finalization).
Define access / Definer tilgangOnly for manual transfer. Limit who may run the export, by access role or coworker.
  • Email: recipient addresses (separated by semicolons), subject and message.
  • FTP / FTPS / SFTP: type, host, port, username, password and directory.
  • HTTP / HTTPS: the URL, username and password. The file is sent with an HTTP PUT, without the file name.


Step 4: Accounts and VAT in Project Flow

  • Account numbers: the account number on each bookkeeping account must exist in Xledger.
  • Customer account: the customer line always uses account 1500. It can't be changed in this format. Use Xledger (GL02b) if you need other customer accounts.
  • VAT codes: fill in the Xledger VAT code in Accounting VAT code (Regnskap MVA kode) on each bookkeeping account. If it is empty, the VAT code column is empty.
  • No semicolons in names. The file uses ; as separator, so a customer name or address with ; moves the columns.



Run the export

  1. When there are invoices to export, Export to accounting (N) (Eksport til regnskap) appears in the notifications menu (the bell). You need permission to edit invoices, and must be on the access list if one is defined.
  2. Click it, check the Invoices to be exported, and choose an Until date if your date limit allows it.
  3. Click Export (Eksporter). You see "Data export succeeded". With Download folder, the file is downloaded right away.
  • Which invoices: finalized invoices and credit notes with the export status To transfer and an invoice date within the date limit.
  • After the export: the invoices get the export status Has been transferred (Har blitt overført).
  • Export again: in the invoice overview, open the cog menu, choose Edit export status for several invoices, set the invoices back to To transfer, and run the export again.
  • Earlier files: in the invoice overview, open the cog menu and choose Exported files (Eksporterte filer).



The file

The export is an AR10 (GBAT10) file:

  • A .csv file, separated by semicolons, with no header row.
  • Encoding ISO-8859-1.
  • Dates as YYYYMMDD, amounts with 2 decimals and a period as decimal separator.
  • The file name ends with -xledger.csv.

Lines for each invoice:

  • One customer line on account 1500, with the invoice total including VAT.
  • One line per bookkeeping account used on the invoice, with the amount including VAT as a negative amount. Invoice lines on the same account are added together, and text lines are left out.
  • A rounding line on the rounding account, if the invoice is rounded.

Credit notes have the same lines with the opposite signs.

ColumnContent
1GBAT10
2 Voucher no., 4 Voucher typeEmpty
3 Voucher dateInvoice date
5 Period, 6 Accounting yearMonth (01–12) and year of the invoice date
7 Account1500 on the customer line; the account number on the other lines
8 VAT codeThe account's Accounting VAT code; empty on the customer line
9 Balance, 28 GrossSumThe amount including VAT, in your company currency
10 Customer no., 12 ContactCustomer number and name
13–15Customer address, postal code and postal place (customer line only)
16 Invoice no.Invoice number
17 KID, 18 Due date, 20 Bank accountFrom the invoice (customer line only)
21 DescriptionA link to the invoice in Project Flow
24 DepartmentAccording to the Department setting
25 ProjectProject number
27 GrossT
29x (end of line)

Empty columns: supplier no. (11), ledger description (22), interest invoicing (23) and payment terms (26).

Currency. The file has no currency column. Invoices in another currency are converted to your company currency.



Continuous transfer

With FTP or HTTP and Continuously (after each invoice finalization), Project Flow sends a file for each invoice as soon as it is finalized.

  • No bell entry. The export entry in the notifications menu isn't shown in this mode.
  • Status before upload. The invoice can get the status Has been transferred before the upload is done. If the upload fails, it is only shown in Company → Logs, with a link to download the file. Check the log regularly.



Q&A

Q: Can I use another customer account than 1500?

A: Not with AR10. Use Xledger (GL02b), where the customer account can be set per customer with a tag group.

Q: Xledger asks for voucher number or voucher type.

A: These columns are empty in the AR10 file from Project Flow. Set them in Xledger's import, or use Xledger (GL02b).

Q: The export fails when I use department from the project.

A: One of the invoices has no project. Add a project to the invoice, or choose another Department option.

Q: Invoices in euro come out in NOK.

A: AR10 has no currency column, so all amounts are in your company currency. Xledger (GL02b) supports currency.

Q: I need to export an invoice again.

A: Set its export status back to To transfer with Edit export status for several invoices, and run the export again. Or download the earlier file from Exported files.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article