How the export works
With the Xledger (GL02b) export, Project Flow creates a file in Xledger's own voucher format GL02b with your finalized invoices and credit notes, which you import into Xledger. It is a file export, not a live connection.
GL02b or AR10? Project Flow also has Xledger (AR10). GL02b adds:
- the invoice currency;
- the customer's address, phone and e-mail on each line;
- customer accounts and revenue accounts chosen per customer with tags;
- your company's Xledger owner code.
See the article Xledger AR10 (export) for the simpler format.
Set up the export
Step 1: Add the integration
- Go to Setup → Settings → Integrations (Oppsett → Innstillinger → Integrasjoner) and switch to the tab Export to file (Eksport til fil). You need administrator access.
- Click + Create integration and choose Xledger (GL02b).
- Fill in the fields below, tick Enabled and save.
Project Flow plan. The export isn't available on the Start plan.
Step 2: GL02b settings
| Field (EN / NB) | Description |
|---|---|
| Department / Avdeling | What goes in the department column (Posting1): Do not include department (default), Use accounting department, Use department from invoice, Use department from project, or an invoice or project tag group. |
| Customer ledger account / Kundens reskontrokonto | A customer tag group. The code of the customer's tag in this group is used as account on the customer line. Without a tag, account 1500 is used. |
| Revenue account / Inntektskonto | A customer tag group. The code of the customer's tag in this group is used as account on the revenue lines. Customers without a tag use the bookkeeping account's number. |
| Owner code / Eier kode | The code that identifies your company in Xledger, for example 5000. Required. |
Revenue account not set? If you don't choose a Revenue account tag group, the account column on the revenue lines is currently empty in the file. Contact Project Flow support before you use the export without it.
Step 3: How and when the file is sent
| Field (EN / NB) | Description |
|---|---|
| Default invoice issue date limit / Standard sluttdato for fakturaeksport | Which 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 til | Download folder (default), Email, FTP / FTPS (also SFTP) or HTTP / HTTPS. |
| Transfer files / Send over filer | Only for FTP and HTTP. Manually (default), or Continuously (after each invoice finalization). |
| Define access / Definer tilgang | Only for manual transfer. Limit who may run the export, by access role or coworker. |
Step 4: Prepare Project Flow
- Every invoice needs a project. If one invoice has no project, the whole export fails with "Export to xledgerG02b failed", and no invoices are exported.
- VAT: fill in the Xledger tax rule in Accounting VAT code (Regnskap MVA kode) on each bookkeeping account. It is sent as TaxRule on the revenue lines.
- Tags: for the account tag groups, the tag's code must be filled in, not only its name.
- Customers: give each customer a country. Don't use
;in names and addresses.
Run the export
- 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.
- Click it, check the Invoices to be exported, and choose an Until date if your date limit allows it.
- Click Export (Eksporter).
- 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
- A
.csvfile with a header row and 61 columns, separated by semicolons. - 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 with the invoice total including VAT.
- One line per bookkeeping account used on the invoice, with the amount including VAT as a negative amount, and the tax rule. Xledger splits out the VAT.
- A rounding line on the rounding account, if the invoice is rounded.
Credit notes have the opposite signs.
| Column | Content |
|---|---|
| ImpSystem | GL02b |
| Entity | The Owner code |
| VoucherType, VoucherNo | Empty |
| FiscalYear, PeriodNo, VoucherDate | Year, month (01–12) and date of the invoice date |
| Account | See Step 2 |
| Posting1 / Posting2 | Department / project number |
| SubledgerName, CompanyNo | Customer name and customer number |
| InvoiceDate, InvoiceNo, XIdentifier(KID/OCR), DueDate | From the invoice |
| Text | A link to the invoice in Project Flow |
| TaxRule | The account's Accounting VAT code (revenue lines) |
| Currency, CurrencyAmount, Amount | See Currency below |
| UpdateSubledger | 1 if the customer has an address, otherwise 0 |
| StreetAddress1–2, ZipCode, Place, Country | The customer's invoice address (or main address); country as English name, for example Norway |
| Phone, Email | The customer's phone and e-mail |
| Workflow | 0 |
| EOL | x |
Currency. For invoices in your company currency, the amount is in Amount. For invoices in another currency, the amount is only in CurrencyAmount, in the invoice currency, and Amount is empty. Xledger then converts it.
Empty columns include ImpSystemRef, SubledgerNo, PaymentTerms, the billing address columns and YourRef.
Q&A
Q: The export fails with "Export to xledgerG02b failed".
A: The usual reason is an invoice without a project. Add a project to the invoice, or set it to Do not transfer to accounting, and export again.
Q: The revenue lines have no account in Xledger.
A: Choose a Revenue account tag group in the integration, or contact Project Flow support.
Q: The customer line goes to 1500, not our customer account.
A: Choose a Customer ledger account tag group, and give the customer a tag in it, with the account as tag code.
Q: Why are voucher type and voucher number empty?
A: Project Flow doesn't fill them in. Set them in the import in Xledger.
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
Feedback sent
We appreciate your effort and will try to fix the article