Xledger GL02b (export)

Modified on Thu, 5 Nov at 12:08 PM

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

  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 (GL02b).
  3. 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 / AvdelingWhat 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 reskontrokontoA 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 / InntektskontoA 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 kodeThe 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 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.


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

  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).
  • 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 .csv file 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.

ColumnContent
ImpSystemGL02b
EntityThe Owner code
VoucherType, VoucherNoEmpty
FiscalYear, PeriodNo, VoucherDateYear, month (01–12) and date of the invoice date
AccountSee Step 2
Posting1 / Posting2Department / project number
SubledgerName, CompanyNoCustomer name and customer number
InvoiceDate, InvoiceNo, XIdentifier(KID/OCR), DueDateFrom the invoice
TextA link to the invoice in Project Flow
TaxRuleThe account's Accounting VAT code (revenue lines)
Currency, CurrencyAmount, AmountSee Currency below
UpdateSubledger1 if the customer has an address, otherwise 0
StreetAddress1–2, ZipCode, Place, CountryThe customer's invoice address (or main address); country as English name, for example Norway
Phone, EmailThe customer's phone and e-mail
Workflow0
EOLx

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

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