gnucash master: Multiple changes pushed

Christopher Lam clam at code.gnucash.org
Thu Jan 30 07:38:00 EST 2020


Updated	 via  https://github.com/Gnucash/gnucash/commit/62c2203d (commit)
	 via  https://github.com/Gnucash/gnucash/commit/2adaf692 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/67fbb232 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/b8c71e1e (commit)
	 via  https://github.com/Gnucash/gnucash/commit/c0044f53 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/e65db8df (commit)
	 via  https://github.com/Gnucash/gnucash/commit/074aed94 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/0131780b (commit)
	 via  https://github.com/Gnucash/gnucash/commit/00d00a46 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/3fd7f19f (commit)
	 via  https://github.com/Gnucash/gnucash/commit/e6b3c565 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/88bfc8b4 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/3f324952 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/5de18cf1 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/6ab936af (commit)
	 via  https://github.com/Gnucash/gnucash/commit/91b3c8cf (commit)
	 via  https://github.com/Gnucash/gnucash/commit/a9be5d40 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/4839a563 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/ffe3aa79 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/94cb9650 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/7ee3f430 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/a9d51dd9 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/d91a9512 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/a01bfa68 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/8e34a799 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/cbb74317 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/3866d9bb (commit)
	 via  https://github.com/Gnucash/gnucash/commit/a033b7b1 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/ad612c48 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/4537c1de (commit)
	 via  https://github.com/Gnucash/gnucash/commit/031d805b (commit)
	 via  https://github.com/Gnucash/gnucash/commit/93ff991b (commit)
	 via  https://github.com/Gnucash/gnucash/commit/c29409f4 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/24b46b1c (commit)
	 via  https://github.com/Gnucash/gnucash/commit/7cd24956 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/e51bc45e (commit)
	 via  https://github.com/Gnucash/gnucash/commit/08fd3e97 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/2c45e0ec (commit)
	 via  https://github.com/Gnucash/gnucash/commit/253707e1 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/b9601e01 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/220eb952 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/e788480e (commit)
	 via  https://github.com/Gnucash/gnucash/commit/d688b6b1 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/fefe427b (commit)
	 via  https://github.com/Gnucash/gnucash/commit/13add9c4 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/0423fd72 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/8c31b1c9 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/66950e63 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/53aec754 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/75d45653 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/94a4d762 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/91f68e94 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/ffd92534 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/31f23404 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/eab9f19b (commit)
	 via  https://github.com/Gnucash/gnucash/commit/57a554d6 (commit)
	from  https://github.com/Gnucash/gnucash/commit/b4e67782 (commit)



commit 62c2203d4071677165521df1a2807aa9c34c4389
Merge: b4e677826 2adaf692b
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Thu Jan 30 20:30:04 2020 +0800

    Merge branch 'maint'

diff --cc gnucash/report/reports/CMakeLists.txt
index 1484e94ac,000000000..75653419e
mode 100644,000000..100644
--- a/gnucash/report/reports/CMakeLists.txt
+++ b/gnucash/report/reports/CMakeLists.txt
@@@ -1,225 -1,0 +1,226 @@@
 +
 +add_subdirectory(standard/test)
 +add_subdirectory(support)
 +
 +set (reports_common_SCHEME
 +  aging.scm
 +)
 +
 +set (reports_standard_SCHEME
 +    standard/account-piecharts.scm
 +    standard/account-summary.scm
 +    standard/advanced-portfolio.scm
 +    standard/balance-sheet.scm
 +    standard/balance-forecast.scm
 +    standard/balsheet-pnl.scm
 +    standard/budget-balance-sheet.scm
 +    standard/budget-barchart.scm
 +    standard/budget-flow.scm
 +    standard/budget-income-statement.scm
 +    standard/budget.scm
 +    standard/cash-flow.scm
 +    standard/cashflow-barchart.scm
 +    standard/category-barchart.scm
 +    standard/dashboard.scm
 +    standard/equity-statement.scm
 +    standard/general-journal.scm
 +    standard/general-ledger.scm
 +    standard/income-gst-statement.scm
 +    standard/income-statement.scm
++    standard/lot-viewer.scm
 +    standard/net-charts.scm
 +    standard/new-owner-report.scm
 +    standard/portfolio.scm
 +    standard/price-scatter.scm
 +    standard/reconcile-report.scm
 +    standard/register.scm
 +    standard/transaction.scm
 +    standard/trial-balance.scm
 +    standard/view-column.scm
 +    standard/taxinvoice.scm
 +    standard/receipt.scm
 +    standard/invoice.scm
 +    standard/job-report.scm
 +    standard/owner-report.scm
 +    standard/payables.scm
 +    standard/receivables.scm
 +    standard/balsheet-eg.scm
 +)
 +
 +set (reports_standard_SCHEME_2
 +    standard/customer-summary.scm # Depends on owner-report
 +    standard/new-aging.scm        # ditto
 +)
 +
 +set(reports_example_SCHEME
 +  example/average-balance.scm
 +  example/daily-reports.scm
 +  example/hello-world.scm
 +  example/sample-graphs.scm
 +  example/welcome-to-gnucash.scm
 +)
 +
 +set(reports_us_SCHEME
 +  locale-specific/us/taxtxf.scm
 +)
 +
 +set(reports_de_DE_SCHEME
 +  locale-specific/de_DE/taxtxf.scm
 +)
 +
 +set (reports_SCHEME
 +  reports.scm
 +)
 +
 +set(scm_rpts_GUILE_DEPENDS
 +  scm-gnc-html
 +  scm-core-utils
 +  scm-engine
 +  scm-gnome-utils
 +  scm-report
 +  )
 +
 +set(scm_rpt_example_GUILE_DEPENDS
 +  scm-gnc-html
 +  scm-app-utils
 +  scm-core-utils
 +  scm-gnc-module
 +  scm-engine
 +  scm-reports-example-links
 +  scm-gnome-utils
 +  scm-report
 +  )
 +
 +set(scm_rpt_locale_specific_GUILE_DEPENDS
 +  scm-gnc-html
 +  scm-core-utils
 +  scm-gnc-module
 +  scm-engine
 +  scm-test-core
 +  scm-locale-tax
 +  scm-report
 +  scm-gnome-utils
 +  )
 +
 +set(scm_rpt_std_GUILE_DEPENDS
 +  ${scm_rpts_GUILE_DEPENDS}
 +  scm-app-utils
 +  scm-gnc-module
 +  scm-rpt-reports
 +  scm-reports-common-links
 +  scm-reports-standard-links
 +  )
 +
 +gnc_add_scheme_targets(scm-reports-common
 +  "${reports_common_SCHEME}"
 +  "gnucash/reports"
 +  "scm-reports-common-links;${scm_rpt_std_GUILE_DEPENDS}"
 +  TRUE
 +)
 +
 +gnc_add_scheme_targets(scm-rpt-reports
 +  "${reports_SCHEME}"
 +  "gnucash"
 +  "${scm_rpts_GUILE_DEPENDS}"
 +  TRUE
 +)
 +
 +gnc_add_scheme_targets(scm-reports-standard
 +  "${reports_standard_SCHEME}"
 +  "gnucash/reports/standard"
 +  "scm-reports-common;${scm_rpt_std_GUILE_DEPENDS}"
 +  TRUE
 +)
 +
 +gnc_add_scheme_targets(scm-reports-example
 +  "${reports_example_SCHEME}"
 +  "gnucash/reports/example"
 +  "${scm_rpt_example_GUILE_DEPENDS}"
 +  TRUE
 +)
 +
 +gnc_add_scheme_targets(scm-reports-us
 +  "${reports_us_SCHEME}"
 +  "gnucash/reports/locale-specific/us"
 +  "${scm_rpt_locale_specific_GUILE_DEPENDS}"
 +  TRUE
 +)
 +
 +gnc_add_scheme_targets(scm-reports-de_DE
 +  "${reports_de_DE_SCHEME}"
 +  "gnucash/reports/locale-specific/de_DE"
 +  "${scm_rpt_locale_specific_GUILE_DEPENDS}"
 +  TRUE
 +)
 +
 +gnc_add_scheme_targets(scm-reports-standard-2
 +  "${reports_standard_SCHEME_2}"
 +  "gnucash/reports/standard"
 +  "scm-rpt-reports"
 +  TRUE
 +)
 +
 +add_custom_target(scm-reports ALL DEPENDS
 +    scm-reports-standard
 +    scm-reports-standard-2
 +    scm-reports-example
 +    scm-reports-common
 +    scm-rpt-reports
 +    scm-reports-us
 +    scm-reports-de_DE)
 +
 +# Module interfaces deprecated in 4.x, will be removed for 5.x
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports" "gnucash reports" "scm-rpt-reports" "")
 +gnc_add_scheme_deprecated_module ("gnucash report aging" "gnucash reports aging" "scm-reports-common" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports average-balance" "gnucash reports example average-balance" "scm-reports-example" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports daily-reports" "gnucash reports example daily-reports" "scm-reports-example" "")
 +gnc_add_scheme_deprecated_module ("gnucash report hello-world" "gnucash reports example hello-world" "scm-reports-example" "")
 +gnc_add_scheme_deprecated_module ("gnucash report test-graphing" "gnucash reports example sample-graphs" "scm-reports-example" "")
 +gnc_add_scheme_deprecated_module ("gnucash report locale-specific de_DE" "gnucash reports locale-specific de_DE taxtxf" "scm-reports-de_DE" "")
 +gnc_add_scheme_deprecated_module ("gnucash report taxtxf-de_DE" "gnucash reports locale-specific de_DE taxtxf" "scm-reports-de_DE" "")
 +gnc_add_scheme_deprecated_module ("gnucash report locale-specific us" "gnucash reports locale-specific us taxtxf" "scm-reports-us" "")
 +gnc_add_scheme_deprecated_module ("gnucash report taxtxf" "gnucash reports locale-specific us taxtxf" "scm-reports-us" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports account-piecharts" "gnucash reports standard account-piecharts" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports account-summary" "gnucash reports standard account-summary" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports advanced-portfolio" "gnucash reports standard advanced-portfolio" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports balance-forecast" "gnucash reports standard balance-forecast" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports balance-sheet" "gnucash reports standard balance-sheet" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report balsheet-eg" "gnucash reports standard balsheet-eg" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports balsheet-pnl" "gnucash reports standard balsheet-pnl" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports budget-balance-sheet" "gnucash reports standard budget-balance-sheet" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports budget-barchart" "gnucash reports standard budget-barchart" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports budget-flow" "gnucash reports standard budget-flow" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports budget" "gnucash reports standard budget" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports budget-income-statement" "gnucash reports standard budget-income-statement" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports cashflow-barchart" "gnucash reports standard cashflow-barchart" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports cash-flow" "gnucash reports standard cash-flow" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports category-barchart" "gnucash reports standard category-barchart" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report customer-summary" "gnucash reports standard customer-summary" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report welcome-to-gnucash" "gnucash reports standard dashboard" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports equity-statement" "gnucash reports standard equity-statement" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports general-journal" "gnucash reports standard general-journal" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports general-ledger" "gnucash reports standard general-ledger" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports income-gst-statement" "gnucash reports standard income-gst-statement" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports income-statement" "gnucash reports standard income-statement" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report invoice" "gnucash reports standard invoice" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report job-report" "gnucash reports standard job-report" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports net-charts" "gnucash reports standard net-charts" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report owner-report" "gnucash reports standard owner-report" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report payables" "gnucash reports standard payables" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports portfolio" "gnucash reports standard portfolio" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports price-scatter" "gnucash reports standard price-scatter" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report receipt" "gnucash reports standard receipt" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report receivables" "gnucash reports standard receivables" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports reconcile-report" "gnucash reports standard reconcile-report" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports register" "gnucash reports standard register" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports sx-summary" "gnucash reports standard account-summary" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report taxinvoice" "gnucash reports standard taxinvoice" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports transaction" "gnucash reports standard transaction" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report standard-reports trial-balance" "gnucash reports standard trial-balance" "scm-reports-standard" "")
 +gnc_add_scheme_deprecated_module ("gnucash report view-column" "gnucash reports standard view-column" "scm-reports-standard" "")
 +
 +set_local_dist(reports_DIST_local CMakeLists.txt ${reports_SCHEME}
 +    ${reports_common_SCHEME} ${reports_standard_SCHEME}  ${reports_standard_SCHEME_2}
 +    ${reports_example_SCHEME} ${reports_us_SCHEME} ${reports_de_DE_SCHEME})
 +set(reports_DIST ${reports_DIST_local} ${reports_support_DIST}
 +    ${test_reports_standard_DIST} PARENT_SCOPE)
diff --cc gnucash/report/reports/standard/lot-viewer.scm
index 000000000,01a061007..04ebd91ac
mode 000000,100644..100644
--- a/gnucash/report/reports/standard/lot-viewer.scm
+++ b/gnucash/report/reports/standard/lot-viewer.scm
@@@ -1,0 -1,206 +1,206 @@@
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+ ;;
+ ;; This program is free software; you can redistribute it and/or
+ ;; modify it under the terms of the GNU General Public License as
+ ;; published by the Free Software Foundation; either version 2 of
+ ;; the License, or (at your option) any later version.
+ ;;
+ ;; This program is distributed in the hope that it will be useful,
+ ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ ;; GNU General Public License for more details.
+ ;;
+ ;; You should have received a copy of the GNU General Public License
+ ;; along with this program; if not, contact:
+ ;;
+ ;; Free Software Foundation           Voice:  +1-617-542-5942
+ ;; 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
+ ;; Boston, MA  02110-1301,  USA       gnu at gnu.org
+ ;;
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+ 
 -(define-module (gnucash report standard-reports lot-viewer))
++(define-module (gnucash reports standard lot-viewer))
+ 
+ (use-modules (srfi srfi-1))
+ (use-modules (ice-9 match))
+ (use-modules (gnucash utilities))
+ (use-modules (gnucash gnc-module))
+ (use-modules (gnucash report business-reports))
+ (use-modules (gnucash gettext))
+ (use-modules (sw_core_utils))           ;for gnc-prefs-is-extra-enabled
+ 
+ (gnc:module-load "gnucash/report/report-system" 0)
+ 
+ (define reportname (N_ "Lot Viewer"))
+ (define optname-from-date (N_ "Start Date"))
+ (define optname-to-date (N_ "End Date"))
+ (define optname-account (N_ "Account"))
+ (define optname-desc-filter (N_ "Desc Filter"))
+ 
+ (define txn-type-alist
+   (list (cons TXN-TYPE-NONE "None")
+         (cons TXN-TYPE-INVOICE "Inv")
+         (cons TXN-TYPE-PAYMENT "Pmt")
+         (cons TXN-TYPE-LINK "Link")))
+ 
+ (define (options-generator)
+   (let ((options (gnc:new-options)))
+ 
+     (define (add-option new-option)
+       (gnc:register-option options new-option))
+ 
+     ;; General tab
+     (gnc:options-add-date-interval!
+      options gnc:pagename-general
+      optname-from-date optname-to-date "a")
+ 
+     (add-option
+      (gnc:make-account-sel-option
+       gnc:pagename-general optname-account "b"
+       (N_ "The account to search for lots.")
+       #f #f))
+ 
+     (add-option
+      (gnc:make-string-option
+       gnc:pagename-general optname-desc-filter "b" "Description Filter" ""))
+ 
+     options))
+ 
+ (define (lot-renderer report-obj)
+ 
+   ;; This is a helper function for looking up option values.
+   (define (get-option section name)
+     (gnc:option-value
+      (gnc:lookup-option (gnc:report-options report-obj) section name)))
+ 
+   (define (get-all-lots splits)
+     (let lp ((splits splits) (lots '()))
+       (match splits
+         (() (reverse lots))
+         ((split . rest)
+          (let ((lot (xaccSplitGetLot split)))
+            (lp rest
+                (cond
+                 ((null? lot) lots)
+                 ((member lot lots) lots) ;warning: O(N^2)!
+                 (else (cons lot lots)))))))))
+ 
+   (let* ((to-date (gnc:time64-end-day-time
+                    (gnc:date-option-absolute-time
+                     (get-option gnc:pagename-general optname-to-date))))
+          (from-date (gnc:time64-start-day-time
+                      (gnc:date-option-absolute-time
+                       (get-option gnc:pagename-general optname-from-date))))
+          (account (get-option gnc:pagename-general optname-account))
+          (desc-filter (get-option gnc:pagename-general optname-desc-filter))
+          (desc-filter? (lambda (split)
+                          (string-contains
+                           (xaccTransGetDescription (xaccSplitGetParent split))
+                           desc-filter)))
+          (currency (xaccAccountGetCommodity account))
+          (document (gnc:make-html-document))
+          (splits
+           (let ((query (qof-query-create-for-splits)))
+             (qof-query-set-book query (gnc-get-current-book))
+             (gnc:query-set-match-non-voids-only! query (gnc-get-current-book))
+             (xaccQueryAddSingleAccountMatch query account QOF-QUERY-AND)
+             (xaccQueryAddDateMatchTT query #t from-date #t to-date QOF-QUERY-AND)
+             (filter desc-filter? (qof-query-run query))))
+          (transactions
+           (sort-and-delete-duplicates
+            (map xaccSplitGetParent splits)
+            (lambda (a b) (string<? (gncTransGetGUID a) (gncTransGetGUID b)))
+            equal?))
+          (lots (get-all-lots splits))
+          (lots-splits (map gnc-lot-get-split-list lots)))
+ 
+     (define (amount->monetary amount)
+       (gnc:make-gnc-monetary currency amount))
+ 
+     (define (elt->cell split)
+       (gnc:html-markup-anchor
+        (gnc:split-anchor-text split)
+        (amount->monetary (xaccSplitGetAmount split))))
+ 
+     (define (list->text lst)
+       (let lp ((lst lst) (result '()))
+         (match lst
+           (() (if (null? result) (gnc:make-html-text ":")
+                   (apply gnc:make-html-text result)))
+           ((elt . rest) (lp rest (cons* (elt->cell elt) result))))))
+ 
+     (define (lot->title lot)
+       (let ((title (gnc-lot-get-title lot)))
+         (if (string-null? title) "None" title)))
+ 
+     (define (to-cell elt)
+       (gnc:make-html-table-cell/markup "number-cell" elt))
+ 
+     (define (lot->document lot)
+       (let ((inv (gncInvoiceGetInvoiceFromLot lot)))
+         (and (not (null? inv))
+              (to-cell
+               (gnc:make-html-text
+                (gnc:html-markup-anchor
+                 (gnc:invoice-anchor-text inv)
+                 (gncInvoiceGetID inv))
+                (gnc:html-markup-br)
+                (string-take (gncInvoiceReturnGUID inv) 8))))))
+ 
+     (define (lot->balance lot)
+       (to-cell (amount->monetary (gnc-lot-get-balance lot))))
+ 
+     (cond
+      ((null? splits)
+       (gnc:html-document-add-object!
+        document (gnc:html-make-empty-data-warning
+                  reportname (gnc:report-id report-obj))))
+ 
+      (else
+       (let ((table (gnc:make-html-table)))
+         (gnc:html-table-set-col-headers!
+          table `("Date" "Desc" "Type" ,@(map lot->title lots) "Non-APAR"))
+ 
+         (gnc:html-table-append-row!
+          table `(#f "Document" #f ,@(map lot->document lots)))
+ 
+         (for-each
+          (lambda (txn)
+            (gnc:html-table-append-row!
+             table
+             (append
+              (list (qof-print-date (xaccTransGetDate txn))
+                    (xaccTransGetDescription txn)
+                    (assv-ref txn-type-alist (xaccTransGetTxnType txn)))
+              (let lp ((lots lots)
+                       (lots-splits lots-splits)
+                       (splits (xaccTransGetSplitList txn))
+                       (accum '()))
+                (match lots
+                  (() (map (compose to-cell list->text) (reverse (cons splits accum))))
+                  ((this-lot . rest-lots)
+                   (define (in-lot? s) (member s (car lots-splits)))
+                   (let lp1 ((splits splits) (next '()) (this '()))
+                     (match splits
+                       (() (lp rest-lots (cdr lots-splits) next (cons this accum)))
+                       (((? in-lot? head) . tail) (lp1 tail next (cons head this)))
+                       ((head . tail) (lp1 tail (cons head next) this))))))))))
+          (sort transactions (lambda (a b) (< (xaccTransOrder a b) 0))))
+ 
+         (gnc:html-table-append-row!
+          table `(#f "Balance" #f ,@(map lot->balance lots)))
+ 
+         (gnc:html-document-add-object! document table))))
+ 
+     document))
+ 
+ 
+ ;; Here we define the actual report
+ (gnc:define-report
+  'version 1
+  'name reportname
+  'report-guid "b64b8cbaa633472c93ab7d9a2424d157"
+  'menu-path (list gnc:menuname-experimental)
+  'options-generator options-generator
+  'in-menu? (gnc-prefs-is-extra-enabled)
+  'renderer lot-renderer)
diff --cc po/POTFILES.in
index b53ddbd70,790cb84f3..a84e6d732
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@@ -435,87 -411,101 +435,88 @@@ gnucash/register/register-gnome/gnucash
  gnucash/register/register-gnome/pricecell-gnome.c
  gnucash/register/register-gnome/quickfillcell-gnome.c
  gnucash/register/register-gnome/table-gnome.c
 -gnucash/report/business-reports/aging.scm
 -gnucash/report/business-reports/balsheet-eg.eguile.scm
 -gnucash/report/business-reports/balsheet-eg.scm
 -gnucash/report/business-reports/business-reports.scm
 -gnucash/report/business-reports/customer-summary.scm
 -gnucash/report/business-reports/invoice.scm
 -gnucash/report/business-reports/job-report.scm
 -gnucash/report/business-reports/new-aging.scm
 -gnucash/report/business-reports/new-owner-report.scm
 -gnucash/report/business-reports/owner-report.scm
 -gnucash/report/business-reports/payables.scm
 -gnucash/report/business-reports/receipt.eguile.scm
 -gnucash/report/business-reports/receipt.scm
 -gnucash/report/business-reports/receivables.scm
 -gnucash/report/business-reports/taxinvoice.eguile.scm
 -gnucash/report/business-reports/taxinvoice.scm
 -gnucash/report/locale-specific/us/de_DE.scm
 -gnucash/report/locale-specific/us/gncmod-locale-reports-us.c
 -gnucash/report/locale-specific/us/taxtxf-de_DE.scm
 -gnucash/report/locale-specific/us/taxtxf.scm
 -gnucash/report/locale-specific/us/us.scm
 -gnucash/report/report-gnome/dialog-custom-report.c
 -gnucash/report/report-gnome/dialog-report-column-view.c
 -gnucash/report/report-gnome/dialog-report-style-sheet.c
 -gnucash/report/report-gnome/gncmod-report-gnome.c
 -gnucash/report/report-gnome/gnc-plugin-page-report.c
 -gnucash/report/report-gnome/report-gnome.scm
 -gnucash/report/report-gnome/window-report.c
 -gnucash/report/report-system/collectors.scm
 -gnucash/report/report-system/commodity-utilities.scm
 -gnucash/report/report-system/eguile-gnc.scm
 -gnucash/report/report-system/eguile-html-utilities.scm
 -gnucash/report/report-system/eguile-utilities.scm
 -gnucash/report/report-system/gncmod-report-system.c
 -gnucash/report/report-system/gnc-report.c
 -gnucash/report/report-system/html-acct-table.scm
 -gnucash/report/report-system/html-anytag.scm
 -gnucash/report/report-system/html-barchart.scm
 -gnucash/report/report-system/html-document.scm
 -gnucash/report/report-system/html-fonts.scm
 -gnucash/report/report-system/html-linechart.scm
 -gnucash/report/report-system/html-piechart.scm
 -gnucash/report/report-system/html-scatter.scm
 -gnucash/report/report-system/html-style-info.scm
 -gnucash/report/report-system/html-style-sheet.scm
 -gnucash/report/report-system/html-table.scm
 -gnucash/report/report-system/html-text.scm
 -gnucash/report/report-system/html-utilities.scm
 -gnucash/report/report-system/options-utilities.scm
 -gnucash/report/report-system/report-collectors.scm
 -gnucash/report/report-system/report.scm
 -gnucash/report/report-system/report-system.scm
 -gnucash/report/report-system/report-utilities.scm
 -gnucash/report/report-system/trep-engine.scm
 -gnucash/report/standard-reports/account-piecharts.scm
 -gnucash/report/standard-reports/account-summary.scm
 -gnucash/report/standard-reports/advanced-portfolio.scm
 -gnucash/report/standard-reports/average-balance.scm
 -gnucash/report/standard-reports/balance-forecast.scm
 -gnucash/report/standard-reports/balance-sheet.scm
 -gnucash/report/standard-reports/balsheet-pnl.scm
 -gnucash/report/standard-reports/budget-balance-sheet.scm
 -gnucash/report/standard-reports/budget-barchart.scm
 -gnucash/report/standard-reports/budget-flow.scm
 -gnucash/report/standard-reports/budget-income-statement.scm
 -gnucash/report/standard-reports/budget.scm
 -gnucash/report/standard-reports/cashflow-barchart.scm
 -gnucash/report/standard-reports/cash-flow.scm
 -gnucash/report/standard-reports/category-barchart.scm
 -gnucash/report/standard-reports/daily-reports.scm
 -gnucash/report/standard-reports/equity-statement.scm
 -gnucash/report/standard-reports/general-journal.scm
 -gnucash/report/standard-reports/general-ledger.scm
 -gnucash/report/standard-reports/income-gst-statement.scm
 -gnucash/report/standard-reports/income-statement.scm
 -gnucash/report/standard-reports/lot-viewer.scm
 -gnucash/report/standard-reports/net-charts.scm
 -gnucash/report/standard-reports/portfolio.scm
 -gnucash/report/standard-reports/price-scatter.scm
 -gnucash/report/standard-reports/reconcile-report.scm
 -gnucash/report/standard-reports/register.scm
 -gnucash/report/standard-reports/standard-reports.scm
 -gnucash/report/standard-reports/transaction.scm
 -gnucash/report/standard-reports/trial-balance.scm
 -gnucash/report/stylesheets/gncmod-stylesheets.c
 -gnucash/report/stylesheets/gnc-plugin-stylesheets.c
 -gnucash/report/stylesheets/stylesheet-css.scm
 -gnucash/report/stylesheets/stylesheet-footer.scm
 -gnucash/report/stylesheets/stylesheet-head-or-tail.scm
 -gnucash/report/stylesheets/stylesheet-plain.scm
 -gnucash/report/stylesheets/stylesheets.scm
 -gnucash/report/utility-reports/hello-world.scm
 -gnucash/report/utility-reports/utility-reports.scm
 -gnucash/report/utility-reports/view-column.scm
 -gnucash/report/utility-reports/welcome-to-gnucash.scm
 +gnucash/report/commodity-utilities.scm
 +gnucash/report/eguile-html-utilities.scm
 +gnucash/report/eguile.scm
 +gnucash/report/eguile-utilities.scm
 +gnucash/report/gncmod-report.c
 +gnucash/report/gnc-report.c
 +gnucash/report/html-acct-table.scm
 +gnucash/report/html-anytag.scm
 +gnucash/report/html-barchart.scm
 +gnucash/report/html-chart.scm
 +gnucash/report/html-document.scm
 +gnucash/report/html-fonts.scm
 +gnucash/report/html-linechart.scm
 +gnucash/report/html-piechart.scm
 +gnucash/report/html-scatter.scm
 +gnucash/report/html-style-info.scm
 +gnucash/report/html-style-sheet.scm
 +gnucash/report/html-table.scm
 +gnucash/report/html-text.scm
 +gnucash/report/html-utilities.scm
 +gnucash/report/options-utilities.scm
 +gnucash/report/report-core.scm
 +gnucash/report/report-register-hooks.scm
 +gnucash/report/reports/aging.scm
 +gnucash/report/reports/example/average-balance.scm
 +gnucash/report/reports/example/daily-reports.scm
 +gnucash/report/reports/example/hello-world.scm
 +gnucash/report/reports/example/sample-graphs.scm
 +gnucash/report/reports/example/welcome-to-gnucash.scm
 +gnucash/report/reports/locale-specific/de_DE/taxtxf.scm
 +gnucash/report/reports/locale-specific/us/taxtxf.scm
 +gnucash/report/reports/reports.scm
 +gnucash/report/reports/standard/account-piecharts.scm
 +gnucash/report/reports/standard/account-summary.scm
 +gnucash/report/reports/standard/advanced-portfolio.scm
 +gnucash/report/reports/standard/balance-forecast.scm
 +gnucash/report/reports/standard/balance-sheet.scm
 +gnucash/report/reports/standard/balsheet-eg.scm
 +gnucash/report/reports/standard/balsheet-pnl.scm
 +gnucash/report/reports/standard/budget-balance-sheet.scm
 +gnucash/report/reports/standard/budget-barchart.scm
 +gnucash/report/reports/standard/budget-flow.scm
 +gnucash/report/reports/standard/budget-income-statement.scm
 +gnucash/report/reports/standard/budget.scm
 +gnucash/report/reports/standard/cashflow-barchart.scm
 +gnucash/report/reports/standard/cash-flow.scm
 +gnucash/report/reports/standard/category-barchart.scm
 +gnucash/report/reports/standard/customer-summary.scm
 +gnucash/report/reports/standard/dashboard.scm
 +gnucash/report/reports/standard/equity-statement.scm
 +gnucash/report/reports/standard/general-journal.scm
 +gnucash/report/reports/standard/general-ledger.scm
 +gnucash/report/reports/standard/income-gst-statement.scm
 +gnucash/report/reports/standard/income-statement.scm
 +gnucash/report/reports/standard/invoice.scm
 +gnucash/report/reports/standard/job-report.scm
++gnucash/report/reports/standard/lot-viewer.scm
 +gnucash/report/reports/standard/net-charts.scm
 +gnucash/report/reports/standard/new-aging.scm
 +gnucash/report/reports/standard/new-owner-report.scm
 +gnucash/report/reports/standard/owner-report.scm
 +gnucash/report/reports/standard/payables.scm
 +gnucash/report/reports/standard/portfolio.scm
 +gnucash/report/reports/standard/price-scatter.scm
 +gnucash/report/reports/standard/receipt.scm
 +gnucash/report/reports/standard/receivables.scm
 +gnucash/report/reports/standard/reconcile-report.scm
 +gnucash/report/reports/standard/register.scm
 +gnucash/report/reports/standard/taxinvoice.scm
 +gnucash/report/reports/standard/transaction.scm
 +gnucash/report/reports/standard/trial-balance.scm
 +gnucash/report/reports/standard/view-column.scm
 +gnucash/report/reports/support/balsheet-eg.eguile.scm
 +gnucash/report/reports/support/receipt.eguile.scm
 +gnucash/report/reports/support/taxinvoice.eguile.scm
 +gnucash/report/report.scm
 +gnucash/report/report-utilities.scm
 +gnucash/report/stylesheets/css.scm
 +gnucash/report/stylesheets/footer.scm
 +gnucash/report/stylesheets/head-or-tail.scm
 +gnucash/report/stylesheets/plain.scm
 +gnucash/report/trep-engine.scm
  libgnucash/app-utils/app-utils.scm
  libgnucash/app-utils/business-options.c
  libgnucash/app-utils/business-options.scm

commit 2adaf692b844fe9b69199f0d6e9d516e4bb3371b
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Tue Jan 28 23:05:18 2020 +0800

    [lot-viewer.scm] initial commit
    
    Simple report to visualise lots (business and non-business) in a
    spreadsheet. Each column is a unique lot, and each row is a unique
    transaction. The lot balance, and the associated lot invoice are also
    included.
    
    Each transaction is analysed to render the split in the lot column,
    and non-lot splits are rendered in a last column.
    
    An account must be chosen in options, and all splits in the specified
    date range will be scanned to find unique lots which are all reported
    in order of first appearance.
    
    A heavy APAR account will lead to an impractical number of columns
    signifying multiple lots, therefore date-range filtering and
    description filtering are both encouraged to narrow down the list of
    transactions.

diff --git a/gnucash/report/standard-reports/CMakeLists.txt b/gnucash/report/standard-reports/CMakeLists.txt
index df41fc441..e7e171e8f 100644
--- a/gnucash/report/standard-reports/CMakeLists.txt
+++ b/gnucash/report/standard-reports/CMakeLists.txt
@@ -25,6 +25,7 @@ set (standard_reports_SCHEME_2
     general-ledger.scm
     income-gst-statement.scm
     income-statement.scm
+    lot-viewer.scm
     net-charts.scm
     portfolio.scm
     price-scatter.scm
diff --git a/gnucash/report/standard-reports/lot-viewer.scm b/gnucash/report/standard-reports/lot-viewer.scm
new file mode 100644
index 000000000..01a061007
--- /dev/null
+++ b/gnucash/report/standard-reports/lot-viewer.scm
@@ -0,0 +1,206 @@
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;
+;; This program is free software; you can redistribute it and/or
+;; modify it under the terms of the GNU General Public License as
+;; published by the Free Software Foundation; either version 2 of
+;; the License, or (at your option) any later version.
+;;
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;; GNU General Public License for more details.
+;;
+;; You should have received a copy of the GNU General Public License
+;; along with this program; if not, contact:
+;;
+;; Free Software Foundation           Voice:  +1-617-542-5942
+;; 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
+;; Boston, MA  02110-1301,  USA       gnu at gnu.org
+;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+(define-module (gnucash report standard-reports lot-viewer))
+
+(use-modules (srfi srfi-1))
+(use-modules (ice-9 match))
+(use-modules (gnucash utilities))
+(use-modules (gnucash gnc-module))
+(use-modules (gnucash report business-reports))
+(use-modules (gnucash gettext))
+(use-modules (sw_core_utils))           ;for gnc-prefs-is-extra-enabled
+
+(gnc:module-load "gnucash/report/report-system" 0)
+
+(define reportname (N_ "Lot Viewer"))
+(define optname-from-date (N_ "Start Date"))
+(define optname-to-date (N_ "End Date"))
+(define optname-account (N_ "Account"))
+(define optname-desc-filter (N_ "Desc Filter"))
+
+(define txn-type-alist
+  (list (cons TXN-TYPE-NONE "None")
+        (cons TXN-TYPE-INVOICE "Inv")
+        (cons TXN-TYPE-PAYMENT "Pmt")
+        (cons TXN-TYPE-LINK "Link")))
+
+(define (options-generator)
+  (let ((options (gnc:new-options)))
+
+    (define (add-option new-option)
+      (gnc:register-option options new-option))
+
+    ;; General tab
+    (gnc:options-add-date-interval!
+     options gnc:pagename-general
+     optname-from-date optname-to-date "a")
+
+    (add-option
+     (gnc:make-account-sel-option
+      gnc:pagename-general optname-account "b"
+      (N_ "The account to search for lots.")
+      #f #f))
+
+    (add-option
+     (gnc:make-string-option
+      gnc:pagename-general optname-desc-filter "b" "Description Filter" ""))
+
+    options))
+
+(define (lot-renderer report-obj)
+
+  ;; This is a helper function for looking up option values.
+  (define (get-option section name)
+    (gnc:option-value
+     (gnc:lookup-option (gnc:report-options report-obj) section name)))
+
+  (define (get-all-lots splits)
+    (let lp ((splits splits) (lots '()))
+      (match splits
+        (() (reverse lots))
+        ((split . rest)
+         (let ((lot (xaccSplitGetLot split)))
+           (lp rest
+               (cond
+                ((null? lot) lots)
+                ((member lot lots) lots) ;warning: O(N^2)!
+                (else (cons lot lots)))))))))
+
+  (let* ((to-date (gnc:time64-end-day-time
+                   (gnc:date-option-absolute-time
+                    (get-option gnc:pagename-general optname-to-date))))
+         (from-date (gnc:time64-start-day-time
+                     (gnc:date-option-absolute-time
+                      (get-option gnc:pagename-general optname-from-date))))
+         (account (get-option gnc:pagename-general optname-account))
+         (desc-filter (get-option gnc:pagename-general optname-desc-filter))
+         (desc-filter? (lambda (split)
+                         (string-contains
+                          (xaccTransGetDescription (xaccSplitGetParent split))
+                          desc-filter)))
+         (currency (xaccAccountGetCommodity account))
+         (document (gnc:make-html-document))
+         (splits
+          (let ((query (qof-query-create-for-splits)))
+            (qof-query-set-book query (gnc-get-current-book))
+            (gnc:query-set-match-non-voids-only! query (gnc-get-current-book))
+            (xaccQueryAddSingleAccountMatch query account QOF-QUERY-AND)
+            (xaccQueryAddDateMatchTT query #t from-date #t to-date QOF-QUERY-AND)
+            (filter desc-filter? (qof-query-run query))))
+         (transactions
+          (sort-and-delete-duplicates
+           (map xaccSplitGetParent splits)
+           (lambda (a b) (string<? (gncTransGetGUID a) (gncTransGetGUID b)))
+           equal?))
+         (lots (get-all-lots splits))
+         (lots-splits (map gnc-lot-get-split-list lots)))
+
+    (define (amount->monetary amount)
+      (gnc:make-gnc-monetary currency amount))
+
+    (define (elt->cell split)
+      (gnc:html-markup-anchor
+       (gnc:split-anchor-text split)
+       (amount->monetary (xaccSplitGetAmount split))))
+
+    (define (list->text lst)
+      (let lp ((lst lst) (result '()))
+        (match lst
+          (() (if (null? result) (gnc:make-html-text ":")
+                  (apply gnc:make-html-text result)))
+          ((elt . rest) (lp rest (cons* (elt->cell elt) result))))))
+
+    (define (lot->title lot)
+      (let ((title (gnc-lot-get-title lot)))
+        (if (string-null? title) "None" title)))
+
+    (define (to-cell elt)
+      (gnc:make-html-table-cell/markup "number-cell" elt))
+
+    (define (lot->document lot)
+      (let ((inv (gncInvoiceGetInvoiceFromLot lot)))
+        (and (not (null? inv))
+             (to-cell
+              (gnc:make-html-text
+               (gnc:html-markup-anchor
+                (gnc:invoice-anchor-text inv)
+                (gncInvoiceGetID inv))
+               (gnc:html-markup-br)
+               (string-take (gncInvoiceReturnGUID inv) 8))))))
+
+    (define (lot->balance lot)
+      (to-cell (amount->monetary (gnc-lot-get-balance lot))))
+
+    (cond
+     ((null? splits)
+      (gnc:html-document-add-object!
+       document (gnc:html-make-empty-data-warning
+                 reportname (gnc:report-id report-obj))))
+
+     (else
+      (let ((table (gnc:make-html-table)))
+        (gnc:html-table-set-col-headers!
+         table `("Date" "Desc" "Type" ,@(map lot->title lots) "Non-APAR"))
+
+        (gnc:html-table-append-row!
+         table `(#f "Document" #f ,@(map lot->document lots)))
+
+        (for-each
+         (lambda (txn)
+           (gnc:html-table-append-row!
+            table
+            (append
+             (list (qof-print-date (xaccTransGetDate txn))
+                   (xaccTransGetDescription txn)
+                   (assv-ref txn-type-alist (xaccTransGetTxnType txn)))
+             (let lp ((lots lots)
+                      (lots-splits lots-splits)
+                      (splits (xaccTransGetSplitList txn))
+                      (accum '()))
+               (match lots
+                 (() (map (compose to-cell list->text) (reverse (cons splits accum))))
+                 ((this-lot . rest-lots)
+                  (define (in-lot? s) (member s (car lots-splits)))
+                  (let lp1 ((splits splits) (next '()) (this '()))
+                    (match splits
+                      (() (lp rest-lots (cdr lots-splits) next (cons this accum)))
+                      (((? in-lot? head) . tail) (lp1 tail next (cons head this)))
+                      ((head . tail) (lp1 tail (cons head next) this))))))))))
+         (sort transactions (lambda (a b) (< (xaccTransOrder a b) 0))))
+
+        (gnc:html-table-append-row!
+         table `(#f "Balance" #f ,@(map lot->balance lots)))
+
+        (gnc:html-document-add-object! document table))))
+
+    document))
+
+
+;; Here we define the actual report
+(gnc:define-report
+ 'version 1
+ 'name reportname
+ 'report-guid "b64b8cbaa633472c93ab7d9a2424d157"
+ 'menu-path (list gnc:menuname-experimental)
+ 'options-generator options-generator
+ 'in-menu? (gnc-prefs-is-extra-enabled)
+ 'renderer lot-renderer)
diff --git a/po/POTFILES.in b/po/POTFILES.in
index d564198eb..790cb84f3 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -486,6 +486,7 @@ gnucash/report/standard-reports/general-journal.scm
 gnucash/report/standard-reports/general-ledger.scm
 gnucash/report/standard-reports/income-gst-statement.scm
 gnucash/report/standard-reports/income-statement.scm
+gnucash/report/standard-reports/lot-viewer.scm
 gnucash/report/standard-reports/net-charts.scm
 gnucash/report/standard-reports/portfolio.scm
 gnucash/report/standard-reports/price-scatter.scm

commit 67fbb2322cfe4d27b6bcbd8452e8003fa41cd2ad
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Wed Jan 29 06:00:46 2020 +0800

    [new-owner-report] remove unused code

diff --git a/gnucash/report/business-reports/new-owner-report.scm b/gnucash/report/business-reports/new-owner-report.scm
index eae206fdc..c581d02a3 100644
--- a/gnucash/report/business-reports/new-owner-report.scm
+++ b/gnucash/report/business-reports/new-owner-report.scm
@@ -304,20 +304,6 @@
      ((txn-is-link? txn) (_ "Link"))
      (else (_ "Unknown")))))
 
-;; for splits, find the first peer that is not in an APAR
-;; account. this is adequate to find the transfer split (ie
-;; asset/liability/income/expense account split). lot-link txns are
-;; not expected to have any non-APAR split therefore returns #f.
-(define (txn->transfer-split txn)
-  (find
-   (compose (negate xaccAccountIsAPARType) xaccAccountGetType xaccSplitGetAccount)
-   (xaccTransGetSplitList txn)))
-
-(define (txn->assetliab-splits txn)
-  (filter
-   (compose xaccAccountIsAssetLiabType xaccAccountGetType xaccSplitGetAccount)
-   (xaccTransGetSplitList txn)))
-
 ;; input: list of html-text elements
 ;; output: a cell with html-text interleaved with <br> tags
 (define (list->cell lst)

commit b8c71e1e4fe81f44302efb8fb4b0a7a2ebf5a831
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Wed Jan 29 00:34:15 2020 +0800

    [new-owner-report] inline single-use invoice accessors

diff --git a/gnucash/report/business-reports/new-owner-report.scm b/gnucash/report/business-reports/new-owner-report.scm
index 3ad96ebfb..eae206fdc 100644
--- a/gnucash/report/business-reports/new-owner-report.scm
+++ b/gnucash/report/business-reports/new-owner-report.scm
@@ -754,26 +754,6 @@
 
     (append invoices-list payments-list overpayment-list))
 
-  (define (invoice->sale invoice)
-    (and (not (null? invoice))
-         ((if (gncInvoiceGetIsCreditNote invoice) - identity)
-          (gncInvoiceGetTotalSubtotal invoice))))
-
-  (define (invoice->tax invoice)
-    (and (not (null? invoice))
-         ((if (gncInvoiceGetIsCreditNote invoice) - identity)
-          (gncInvoiceGetTotalTax invoice))))
-
-  (define (invoice->total invoice)
-    (and (not (null? invoice))
-         ((if (gncInvoiceGetIsCreditNote invoice) - identity)
-          (gncInvoiceGetTotal invoice))))
-
-  (define (invoice->due-date invoice)
-    (and (not (null? invoice))
-         (gncInvoiceIsPosted invoice)
-         (gncInvoiceGetDateDue invoice)))
-
   (define (amount->anchor split amount)
     (gnc:make-html-text
      (gnc:html-markup-anchor
@@ -841,15 +821,18 @@
              (value (AP-negate orig-value))
              (invoice (gncInvoiceGetInvoiceFromTxn txn)))
 
+        (define (CN-negate fn)
+          (if (gncInvoiceGetIsCreditNote invoice) (- (fn invoice)) (fn invoice)))
+
         (add-row
-         table odd-row? used-columns date (invoice->due-date invoice)
+         table odd-row? used-columns date (gncInvoiceGetDateDue invoice)
          (split->reference split)
          (split->type-str split)
          (splits->desc (list split))
          currency (+ total value)
          (and (>= orig-value 0) (amount->anchor split orig-value))
          (and (< orig-value 0) (amount->anchor split (- orig-value)))
-         (invoice->sale invoice) (invoice->tax invoice)
+         (CN-negate gncInvoiceGetTotalSubtotal) (CN-negate gncInvoiceGetTotalTax)
          (gncInvoiceReturnGUID invoice)
          link-option
          (case link-option
@@ -860,8 +843,8 @@
         (lp printed? (not odd-row?) (cdr splits) (+ total value)
             (if (< 0 orig-value) (+ debit orig-value) debit)
             (if (< 0 orig-value) credit (- credit orig-value))
-            (+ tax (invoice->tax invoice))
-            (+ sale (invoice->sale invoice)))))
+            (+ tax (CN-negate gncInvoiceGetTotalTax))
+            (+ sale (CN-negate gncInvoiceGetTotalSubtotal)))))
 
      ((txn-is-payment? (xaccSplitGetParent (car splits)))
       (let* ((split (car splits))

commit c0044f533956432a7192a3cab627b2b0698b13cc
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Wed Jan 29 00:46:48 2020 +0800

    [new-owner-report] LHS invoice->RHS payments rewritten

diff --git a/gnucash/report/business-reports/new-owner-report.scm b/gnucash/report/business-reports/new-owner-report.scm
index 96d454f6c..3ad96ebfb 100644
--- a/gnucash/report/business-reports/new-owner-report.scm
+++ b/gnucash/report/business-reports/new-owner-report.scm
@@ -301,6 +301,7 @@
     (cond
      ((txn-is-invoice? txn) (gncInvoiceGetTypeString invoice))
      ((txn-is-payment? txn) (_ "Payment"))
+     ((txn-is-link? txn) (_ "Link"))
      (else (_ "Unknown")))))
 
 ;; for splits, find the first peer that is not in an APAR
@@ -317,14 +318,16 @@
    (compose xaccAccountIsAssetLiabType xaccAccountGetType xaccSplitGetAccount)
    (xaccTransGetSplitList txn)))
 
-(define (splits->desc splits)
-  (let lp ((splits splits) (result '()))
-    (match splits
+;; input: list of html-text elements
+;; output: a cell with html-text interleaved with <br> tags
+(define (list->cell lst)
+  (let lp ((lst lst) (result '()))
+    (match lst
       (() (apply gnc:make-html-text result))
-      ((split . rest)
-       (lp rest (cons* (gnc:html-string-sanitize (xaccSplitGetMemo split))
-                       (gnc:html-markup-br)
-                       result))))))
+      ((elt . rest) (lp rest (cons* elt (gnc:html-markup-br) result))))))
+
+(define (splits->desc splits)
+  (list->cell (map (compose gnc:html-string-sanitize xaccSplitGetMemo) splits)))
 
 (define (make-aging-table splits to-date payable? date-type currency)
   (let ((table (gnc:make-html-table))
@@ -564,24 +567,8 @@
                            ((detailed) (list (make-link-blank))))))
 
   (define (make-invoice->payments-table invoice)
-    (define (posting-split->row posting-split)
-      (let* ((posting-txn (xaccSplitGetParent posting-split))
-             (inv (gncInvoiceGetInvoiceFromLot (xaccSplitGetLot posting-split))))
-        (make-link-data
-         (qof-print-date (xaccTransGetDate posting-txn))
-         (split->reference posting-split)
-         (split->type-str posting-split)
-         (splits->desc (list posting-split))
-         #f
-         (gnc:make-html-text
-          (gnc:html-markup-anchor
-           (gnc:split-anchor-text (txn->transfer-split posting-txn))
-           (gnc:make-gnc-monetary
-            currency (AP-negate (xaccSplitGetAmount posting-split)))))
-         (gncInvoiceReturnGUID inv))))
     (let ((lot (gncInvoiceGetPostedLot invoice)))
       (let lp ((lot-splits (gnc-lot-get-split-list lot))
-               (link-splits-seen '())
                (result '()))
         (cond
          ;; Finished result rows. Display them, and add Outstanding if
@@ -597,63 +584,93 @@
                       (gncInvoiceReturnGUID invoice))
                      result))))
 
-         ;; This is the regular payment split. Find Transfer acct
-         ;; splits, and if haven't encountered before, add to result rows.
-         ((txn-is-payment? (xaccSplitGetParent (car lot-splits)))
-          (lp (cdr lot-splits)
-              link-splits-seen
-              (cons (let* ((lot-split (car lot-splits))
-                           (lot-txn (xaccSplitGetParent lot-split))
-                           (pmt-splits (xaccTransGetPaymentAcctSplitList lot-txn)))
-                      (make-link-data
-                       (qof-print-date (xaccTransGetDate lot-txn))
-                       (split->reference lot-split)
-                       (split->type-str lot-split)
-                       (splits->desc pmt-splits)
-                       (gnc:make-html-text (split->anchor lot-split #t))
-                       (let lp1 ((pmt-splits pmt-splits) (acc '()))
-                         (match pmt-splits
-                           (() (apply gnc:make-html-text acc))
-                           ((pmt-split . rest)
-                            (lp1 rest (cons* (split->anchor pmt-split #f)
-                                             (gnc:html-markup-br)
-                                             acc)))))
-                       (gncTransGetGUID lot-txn)))
-                    result)))
-
-         ;; This is a lot link split. Find corresponding documents,
-         ;; and add to result rows.
-         ((txn-is-link? (xaccSplitGetParent (car lot-splits)))
-          (let lp1 ((link-splits (xaccTransGetSplitList
-                                  (xaccSplitGetParent (car lot-splits))))
-                    (link-splits-seen link-splits-seen)
-                    (result result))
-            ;; this is a secondary 'inner loop', looping
-            ;; lot-split->peer-splits.
-            (cond
-             ;; finished peer-splits. loop main lot-splits.
-             ((null? link-splits)
-              (lp (cdr lot-splits) link-splits-seen result))
-             ;; peer split is of same sign as lot split. skip.
-             ((sign-equal? (xaccSplitGetAmount (car lot-splits))
-                           (xaccSplitGetAmount (car link-splits)))
-              (lp1 (cdr link-splits) link-splits-seen result))
-             ;; we've encountered this peer-split before. skip.
-             ((member (car link-splits) link-splits-seen)
-              (lp1 (cdr link-splits) link-splits-seen result))
-             ;; new peer-split. render the posting split details.
-             ((lot-split->posting-split (car link-splits))
-              => (lambda (posting-split)
-                   (lp1 (cdr link-splits)
-                        (cons (car link-splits) link-splits-seen)
-                        (cons (posting-split->row posting-split) result))))
-             ;; can't find posting split. probably invalid txn. skip.
-             (else (lp1 (cdr link-splits) link-splits-seen result)))))
-
-         ;; This is either the invoice posting transaction, or a
-         ;; TXN-TYPE-NONE txn which shouldn't happen. Skip both.
+         ;; this is invoice posting split. skip. has no payment data.
+         ((equal? (xaccSplitGetParent (car lot-splits))
+                  (gncInvoiceGetPostedTxn invoice))
+          (lp (cdr lot-splits) result))
+
+         ;; this is an invoice payment split (reduces the lot).
          (else
-          (lp (cdr lot-splits) link-splits-seen result))))))
+          (let* ((lot-split (car lot-splits))
+                 (lot-txn (xaccSplitGetParent lot-split)))
+
+            ;; each invoice payment split's peer splits are analysed.
+            (let lp1 ((lot-txn-splits (xaccTransGetSplitList lot-txn))
+                      (non-APAR '())
+                      (result result))
+              (cond
+
+               ;; finished. loop up, adding single row with non-APAR
+               ((null? lot-txn-splits)
+                (lp (cdr lot-splits)
+                    (if (null? non-APAR)
+                        result
+                        (cons (make-link-data
+                               (qof-print-date (xaccTransGetDate lot-txn))
+                               (split->reference lot-split)
+                               (split->type-str lot-split)
+                               (splits->desc non-APAR)
+                               (gnc:make-html-text (split->anchor lot-split #t))
+                               (list->cell
+                                (map (lambda (s) (split->anchor s #f)) non-APAR))
+                               (gncTransGetGUID lot-txn))
+                              result))))
+
+               ;; this payment peer is non-APAR, accumulate it.
+               ((not (memv (xaccAccountGetType
+                            (xaccSplitGetAccount (car lot-txn-splits)))
+                           (list ACCT-TYPE-RECEIVABLE ACCT-TYPE-PAYABLE)))
+                (lp1 (cdr lot-txn-splits)
+                     (cons (car lot-txn-splits) non-APAR)
+                     result))
+
+               ;; this payment's peer split has same sign as the
+               ;; payment split. ignore.
+               ((sign-equal? (xaccSplitGetAmount (car lot-txn-splits))
+                             (xaccSplitGetAmount lot-split))
+                (lp1 (cdr lot-txn-splits) non-APAR result))
+
+               ;; this payment's peer APAR split is a document lot
+               ;; reducing split.
+               ((lot-split->posting-split (car lot-txn-splits)) =>
+                (lambda (posting-split)
+                  (let ((lot-txn-split (car lot-txn-splits))
+                        (invoice (gncInvoiceGetInvoiceFromTxn
+                                  (xaccSplitGetParent posting-split)))
+                        (posting-txn (xaccSplitGetParent posting-split)))
+                    (lp1 (cdr lot-txn-splits)
+                         non-APAR
+                         (cons (make-link-data
+                                (qof-print-date (xaccTransGetDate posting-txn))
+                                (split->reference posting-split)
+                                (split->type-str posting-split)
+                                (splits->desc (list posting-split))
+                                (gnc:make-html-text (split->anchor lot-txn-split #t))
+                                (gnc:make-html-text (split->anchor posting-split #f))
+                                (gncInvoiceReturnGUID invoice))
+                               result)))))
+
+               ;; this payment's peer APAR split can't find
+               ;; document. this likely is an old style link txn. RHS
+               ;; show transaction only.
+               (else
+                (gnc:warn (car lot-txn-splits) " in APAR but can't find "
+                          "owner; is likely an old-style link transaction.")
+                (let* ((lot-txn-split (car lot-txn-splits))
+                       (posting-txn (xaccSplitGetParent lot-txn-split)))
+                  (lp1 (cdr lot-txn-splits)
+                       non-APAR
+                       (cons (make-link-data
+                              (qof-print-date (xaccTransGetDate posting-txn))
+                              (split->reference lot-txn-split)
+                              (split->type-str lot-txn-split)
+                              (splits->desc (list lot-txn-split))
+                              (gnc:make-html-text (split->anchor lot-txn-split #t))
+                              (gnc:make-html-text (split->anchor lot-txn-split #t))
+                              (gncTransGetGUID posting-txn))
+                             result))))))))))))
+
+
 
   (define (payment-txn->payment-info txn)
     (let lp ((splits (xaccTransGetAPARAcctSplitList txn #f))
@@ -730,7 +747,7 @@
           (split->reference s)
           (split->type-str s)
           (splits->desc (list s))
-          (gnc:make-html-text (split->anchor s #t))
+          (gnc:make-html-text (split->anchor s #f))
           (gnc:make-html-text (split->anchor s #f))
           (gncTransGetGUID (xaccSplitGetParent s))))
        (payment-info-opposing-splits payment-info)))

commit e65db8df4a6416865cc9706c331c345c2443a37e
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sun Jan 26 11:44:55 2020 +0800

    [new-owner-report] RHS Pre-Payment and UNPAID get link-id highlights
    
    They are related to the LHS invoice or payment.

diff --git a/gnucash/report/business-reports/new-owner-report.scm b/gnucash/report/business-reports/new-owner-report.scm
index fa1703eb7..96d454f6c 100644
--- a/gnucash/report/business-reports/new-owner-report.scm
+++ b/gnucash/report/business-reports/new-owner-report.scm
@@ -116,10 +116,11 @@
   (rhs-class link-data-rhs-class))
 
 (define-record-type :link-desc-amount
-  (make-link-desc-amount desc amount)
+  (make-link-desc-amount desc amount rhs-class)
   link-desc-amount?
   (desc link-desc-amount-desc)
-  (amount link-desc-amount-amount))
+  (amount link-desc-amount-amount)
+  (rhs-class link-desc-amount-rhs-class))
 
 (define-record-type :link-blank
   (make-link-blank)
@@ -403,11 +404,25 @@
      ((link-desc-amount? link-data)
       (let ((cols (num-cols column-vector 'rhs-span)))
         (append
-         (addif (< 0 cols) (gnc:make-html-table-cell/size
-                            1 cols (link-desc-amount-desc link-data)))
-         (addif (or (debit-col column-vector) (credit-col column-vector))
-                (gnc:make-html-table-cell/size/markup
-                 1 2 "number-cell" (link-desc-amount-amount link-data))))))
+         (map
+          (lambda (str)
+            (let ((cell (gnc:make-html-table-cell/size 1 cols str))
+                  (rhs-class (link-desc-amount-rhs-class link-data)))
+              (when rhs-class
+                (gnc:html-table-cell-set-style!
+                 cell "td" 'attribute (list "link-id" rhs-class)))
+              cell))
+          (addif (< 0 cols) (link-desc-amount-desc link-data)))
+         (map
+          (lambda (str)
+            (let ((cell (gnc:make-html-table-cell/size/markup 1 2 "number-cell" str))
+                  (rhs-class (link-desc-amount-rhs-class link-data)))
+              (when rhs-class
+                (gnc:html-table-cell-set-style!
+                 cell "number-cell" 'attribute (list "link-id" rhs-class)))
+              cell))
+          (addif (or (debit-col column-vector) (credit-col column-vector))
+                 (link-desc-amount-amount link-data))))))
 
      ((link-blank? link-data)
       (make-list (num-cols column-vector 'rhs-cols) #f))
@@ -578,7 +593,8 @@
                (cons (make-link-desc-amount
                       (_ "UNPAID")
                       (gnc:make-gnc-monetary
-                       currency (AP-negate (gnc-lot-get-balance lot))))
+                       currency (AP-negate (gnc-lot-get-balance lot)))
+                      (gncInvoiceReturnGUID invoice))
                      result))))
 
          ;; This is the regular payment split. Find Transfer acct
@@ -703,7 +719,8 @@
             '()
             (list (make-link-desc-amount
                    (_ "Pre-Payment")
-                   (gnc:make-gnc-monetary currency overpayment))))))
+                   (gnc:make-gnc-monetary currency overpayment)
+                   (gncTransGetGUID txn))))))
 
     (define payments-list
       (map

commit 074aed940eac089eb40b8aeadf62e0a674ce9e4f
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Wed Jan 29 00:32:23 2020 +0800

    [new-owner-report] payment-info has 3 components now
    
    * overpayment, a number
    * invoice-split-pairs, a list of (cons invoice posting-split) pairs
    * opposing-splits, a list of opposing-sign splits

diff --git a/gnucash/report/business-reports/new-owner-report.scm b/gnucash/report/business-reports/new-owner-report.scm
index 4c1122e79..fa1703eb7 100644
--- a/gnucash/report/business-reports/new-owner-report.scm
+++ b/gnucash/report/business-reports/new-owner-report.scm
@@ -125,6 +125,13 @@
   (make-link-blank)
   link-blank?)
 
+(define-record-type :payment-info
+  (make-payment-info overpayment invoices opposing-splits)
+  payment-info?
+  (overpayment payment-info-overpayment)
+  (invoices payment-info-invoices)
+  (opposing-splits payment-info-opposing-splits))
+
 ;; Names in Option panel (Untranslated! Because it is used for option
 ;; naming and lookup only, and the display of the option name will be
 ;; translated somewhere else.)
@@ -632,16 +639,31 @@
          (else
           (lp (cdr lot-splits) link-splits-seen result))))))
 
-  (define (payment-txn->overpayment-and-invoices txn)
+  (define (payment-txn->payment-info txn)
     (let lp ((splits (xaccTransGetAPARAcctSplitList txn #f))
              (overpayment 0)
-             (invoices '()))
+             (invoices '())
+             (opposing-splits '()))
       (match splits
-        (() (cons (AP-negate overpayment) invoices))
+        (() (make-payment-info (AP-negate overpayment) invoices opposing-splits))
         ((split . rest)
-         (match (gncInvoiceGetInvoiceFromLot (xaccSplitGetLot split))
-           (() (lp rest (- overpayment (xaccSplitGetAmount split)) invoices))
-           (invoice (lp rest overpayment (cons (cons invoice split) invoices))))))))
+         (let ((lot (xaccSplitGetLot split)))
+           (define (equal-to-split? s) (equal? s split))
+           (match (gncInvoiceGetInvoiceFromLot lot)
+             (() (lp rest
+                     (- overpayment (gnc-lot-get-balance lot))
+                     invoices
+                     (let lp ((lot-splits (gnc-lot-get-split-list lot))
+                              (acc opposing-splits))
+                       (match lot-splits
+                         (() acc)
+                         (((? equal-to-split?) . rest) (lp rest acc))
+                         ((lot-split . rest) (lp rest (cons lot-split acc)))))))
+             (inv
+              (lp rest
+                  overpayment
+                  (cons (cons inv split) invoices)
+                  opposing-splits))))))))
 
   (define (make-payment->invoices-list txn)
     (list
@@ -651,34 +673,52 @@
        (map
         (lambda (inv-split-pair)
           (invoice->anchor (car inv-split-pair)))
-        (cdr (payment-txn->overpayment-and-invoices txn)))))))
-
-  (define (make-payment->invoices-table txn)
-    (define overpayment-and-invoices (payment-txn->overpayment-and-invoices txn))
-    (let lp ((invoice-split-pairs (cdr overpayment-and-invoices))
-             (result '()))
-      (match invoice-split-pairs
-        (()
-         (let ((overpayment (car overpayment-and-invoices)))
-           (reverse
-            (if (zero? overpayment)
-                result
-                (cons (make-link-desc-amount
-                       (_ "Pre-Payment")
-                       (gnc:make-gnc-monetary currency overpayment))
-                      result)))))
-        (((inv . APAR-split) . rest)
-         (let* ((posting-split (lot-split->posting-split APAR-split)))
-           (lp rest
-               (cons (make-link-data
-                      (qof-print-date (gncInvoiceGetDatePosted inv))
-                      (gnc:make-html-text (invoice->anchor inv))
-                      (gncInvoiceGetTypeString inv)
-                      (splits->desc (list APAR-split))
-                      (gnc:make-html-text (split->anchor APAR-split #t))
-                      (gnc:make-html-text (split->anchor posting-split #f))
-                      (gncInvoiceReturnGUID inv))
-                     result)))))))
+        (payment-info-invoices (payment-txn->payment-info txn)))))))
+
+  (define (make-payment->payee-table txn)
+
+    (define payment-info (payment-txn->payment-info txn))
+
+    (define invoices-list
+      (let lp ((invoice-split-pairs (payment-info-invoices payment-info))
+               (result '()))
+        (match invoice-split-pairs
+          (() result)
+          (((inv . APAR-split) . rest)
+           (let* ((posting-split (lot-split->posting-split APAR-split)))
+             (lp rest
+                 (cons (make-link-data
+                        (qof-print-date (gncInvoiceGetDatePosted inv))
+                        (gnc:make-html-text (invoice->anchor inv))
+                        (gncInvoiceGetTypeString inv)
+                        (splits->desc (list APAR-split))
+                        (gnc:make-html-text (split->anchor APAR-split #t))
+                        (gnc:make-html-text (split->anchor posting-split #f))
+                        (gncInvoiceReturnGUID inv))
+                       result)))))))
+
+    (define overpayment-list
+      (let ((overpayment (payment-info-overpayment payment-info)))
+        (if (zero? overpayment)
+            '()
+            (list (make-link-desc-amount
+                   (_ "Pre-Payment")
+                   (gnc:make-gnc-monetary currency overpayment))))))
+
+    (define payments-list
+      (map
+       (lambda (s)
+         (make-link-data
+          (qof-print-date (xaccTransGetDate (xaccSplitGetParent s)))
+          (split->reference s)
+          (split->type-str s)
+          (splits->desc (list s))
+          (gnc:make-html-text (split->anchor s #t))
+          (gnc:make-html-text (split->anchor s #f))
+          (gncTransGetGUID (xaccSplitGetParent s))))
+       (payment-info-opposing-splits payment-info)))
+
+    (append invoices-list payments-list overpayment-list))
 
   (define (invoice->sale invoice)
     (and (not (null? invoice))
@@ -714,6 +754,7 @@
            (credit 0)
            (tax 0)
            (sale 0))
+
     (cond
 
      ((null? splits)
@@ -808,7 +849,7 @@
          link-option
          (case link-option
            ((simple) (make-payment->invoices-list txn))
-           ((detailed) (make-payment->invoices-table txn))
+           ((detailed) (make-payment->payee-table txn))
            (else '(()))))
 
         (lp printed? (not odd-row?) (cdr splits) (+ total value)

commit 0131780b3028e04b332fab0fa10b8d66a8e78c2e
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Mon Jan 27 11:53:16 2020 +0100

    Add guile function to extract a lot's guid
    
    Useful for debugging lot issues in reports.

diff --git a/libgnucash/engine/business-core.i b/libgnucash/engine/business-core.i
index 5ceb8e51e..7d61460a7 100644
--- a/libgnucash/engine/business-core.i
+++ b/libgnucash/engine/business-core.i
@@ -52,6 +52,9 @@ static GncGUID gncCustomerReturnGUID(GncCustomer *x)
 static GncGUID gncEmployeeReturnGUID(GncEmployee *x)
 { return (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null())); }
 
+static GncGUID gncLotReturnGUID(GNCLot *x)
+{ return (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null())); }
+
 static GncTaxTable * gncTaxTableLookupFlip(GncGUID g, QofBook *b)
 { return gncTaxTableLookup(b, &g); }
 

commit 00d00a465090107acaad95080d9c40be7e76afee
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Mon Jan 27 06:38:33 2020 +0800

    [report-utilities] fix overpayments calc
    
    overpayment is lot->balance rather than split->amount.

diff --git a/gnucash/report/report-system/report-utilities.scm b/gnucash/report/report-system/report-utilities.scm
index 9f40770eb..1c595a673 100644
--- a/gnucash/report/report-system/report-utilities.scm
+++ b/gnucash/report/report-system/report-utilities.scm
@@ -1169,15 +1169,14 @@ flawed. see report-utilities.scm. please update reports.")
               TXN-TYPE-PAYMENT)
         (let* ((txn (xaccSplitGetParent (car splits)))
                (splitlist (xaccTransGetAPARAcctSplitList txn #f))
-               (payment (apply + (map xaccSplitGetAmount splitlist)))
                (overpayment
                 (fold
                  (lambda (a b)
                    (if (null? (gncInvoiceGetInvoiceFromLot (xaccSplitGetLot a)))
-                       (- b (xaccSplitGetAmount a))
+                       (- b (gnc-lot-get-balance (xaccSplitGetLot a)))
                        b))
                  0 splitlist)))
-          (gnc:msg "next " (gnc:strify (car splits)) " payment " payment
+          (gnc:msg "next " (gnc:strify (car splits))
                    " overpayment " overpayment)
           (addbucket! (1- num-buckets) (if receivable? (- overpayment) overpayment))
           (lp (cdr splits))))

commit 3fd7f19f62a898cf7a75dba5b8d94b374906e6d0
Merge: e6b3c5656 d688b6b15
Author: Frank H. Ellenberger <frank.h.ellenberger at gmail.com>
Date:   Wed Jan 29 08:33:28 2020 +0100

    Merge branch 'PR609' into maint


commit e6b3c56568ba72a72f14055138df65007d7612c3
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sun Jan 26 10:31:54 2020 +0800

    [report-utilities] add gnc:dump-lot

diff --git a/gnucash/report/report-system/report-system.scm b/gnucash/report/report-system/report-system.scm
index 1153e62b0..1fdcdf92c 100644
--- a/gnucash/report/report-system/report-system.scm
+++ b/gnucash/report/report-system/report-system.scm
@@ -753,6 +753,7 @@
 (export gnc:pk)
 (export gnc:dump-book)
 (export gnc:dump-invoices)
+(export gnc:dump-lot)
 
 ;; trep-engine.scm
 (export gnc:trep-options-generator)
diff --git a/gnucash/report/report-system/report-utilities.scm b/gnucash/report/report-system/report-utilities.scm
index 21b12e018..9f40770eb 100644
--- a/gnucash/report/report-system/report-utilities.scm
+++ b/gnucash/report/report-system/report-utilities.scm
@@ -1414,3 +1414,14 @@ flawed. see report-utilities.scm. please update reports.")
                (inv-amt->string inv (gncInvoiceGetTotalTax inv)))
        (newline))
      invoices)))
+
+(define (gnc:dump-lot lot)
+  (display "gnc:dump-lot: ")
+  (display (gnc:strify lot))
+  (newline)
+  (for-each
+   (lambda (s)
+     (display "Lot-split: ")
+     (display (gnc:strify s))
+     (newline))
+   (gnc-lot-get-split-list lot)))

commit 88bfc8b477b577b5d8bfa42d91894e295470f99d
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat Jan 25 17:16:05 2020 +0800

    [new-owner-report] refine payment->description
    
    LHS payment description are memos from APAR splits
    RHS payment description are memos from non-APAR splits
    RHS payment description should match RHS payment amounts

diff --git a/gnucash/report/business-reports/new-owner-report.scm b/gnucash/report/business-reports/new-owner-report.scm
index ec3d48883..4c1122e79 100644
--- a/gnucash/report/business-reports/new-owner-report.scm
+++ b/gnucash/report/business-reports/new-owner-report.scm
@@ -311,17 +311,12 @@
 
 (define (splits->desc splits)
   (let lp ((splits splits) (result '()))
-    (if (null? splits)
-        (apply gnc:make-html-text
-               (fold
-                (lambda (a b)
-                  (cons* (gnc:html-string-sanitize a) (gnc:html-markup-br) b))
-                '() result))
-        (lp (cdr splits)
-            (let ((memo (xaccSplitGetMemo (car splits))))
-              (if (or (string-null? memo) (member memo result))
-                  result
-                  (cons memo result)))))))
+    (match splits
+      (() (apply gnc:make-html-text result))
+      ((split . rest)
+       (lp rest (cons* (gnc:html-string-sanitize (xaccSplitGetMemo split))
+                       (gnc:html-markup-br)
+                       result))))))
 
 (define (make-aging-table splits to-date payable? date-type currency)
   (let ((table (gnc:make-html-table))
@@ -591,7 +586,7 @@
                        (qof-print-date (xaccTransGetDate lot-txn))
                        (split->reference lot-split)
                        (split->type-str lot-split)
-                       (splits->desc (list lot-split))
+                       (splits->desc pmt-splits)
                        (gnc:make-html-text (split->anchor lot-split #t))
                        (let lp1 ((pmt-splits pmt-splits) (acc '()))
                          (match pmt-splits
@@ -804,7 +799,7 @@
          table odd-row? used-columns date #f
          (split->reference split)
          (split->type-str split)
-         (splits->desc (txn->assetliab-splits txn))
+         (splits->desc (xaccTransGetAPARAcctSplitList txn #t))
          currency (+ total value)
          (and (>= orig-value 0) (amount->anchor split orig-value))
          (and (< orig-value 0) (amount->anchor split (- orig-value)))

commit 3f324952d4b39720e57c7ff258f526ac7f4f997f
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat Jan 25 15:22:17 2020 +0800

    [new-owner-report] add interactivity to highlight linked rows
    
    add javascript to highlight matching documents/payments via their
    common link-id attribute.

diff --git a/gnucash/report/business-reports/new-owner-report.scm b/gnucash/report/business-reports/new-owner-report.scm
index ddfe08cbb..ec3d48883 100644
--- a/gnucash/report/business-reports/new-owner-report.scm
+++ b/gnucash/report/business-reports/new-owner-report.scm
@@ -60,6 +60,23 @@
 (define balance-header (N_ "Balance"))
 (define linked-txns-header (N_ "Links"))
 
+(define javascript "
+<script>
+  function getID(cell) { return cell.getAttribute('link-id'); }
+  function clicky() {
+      var id = getID(this);
+      var ishighlighted = this.classList.contains('highlight');
+      TDs.forEach(TD => TD.classList.remove('highlight'));
+      if (ishighlighted) return;
+      TDs
+          .filter (TD => getID(TD) == id)
+          .forEach (TD => TD.classList.add('highlight'));}
+  var TDs = document.getElementsByTagName('td');
+  TDs = [...TDs].filter(getID);
+  TDs.forEach(TD => TD.onclick = clicky);
+</script>
+")
+
 ;; Depending on the report type we want to set up some lists/cases
 ;; with strings to ease overview and translation
 (define owner-string-alist
@@ -1116,7 +1133,9 @@ invoices and amounts.")))))
                (list section-headings headings)
                (list headings)))
 
-          (gnc:html-document-add-object! document table))))))
+          (gnc:html-document-add-object! document table)
+
+          (gnc:html-document-add-object! document javascript))))))
 
     document))
 
diff --git a/gnucash/report/report-system/html-fonts.scm b/gnucash/report/report-system/html-fonts.scm
index c74b8550a..abdd154dd 100644
--- a/gnucash/report/report-system/html-fonts.scm
+++ b/gnucash/report/report-system/html-fonts.scm
@@ -142,6 +142,7 @@
       "th.column-heading-left { text-align: left; " number-header-info " }\n"
       "th.column-heading-center { text-align: center; " number-header-info " }\n"
       "th.column-heading-right { text-align: right; " number-header-info " }\n"
+      "td.highlight {background-color:#e1e1e1}"
       "td.neg { " (if negative-red? "color: red; " "") " }\n"
       "td.number-cell, td.total-number-cell { text-align: right; white-space: nowrap; }\n"
       "td.date-cell { white-space: nowrap; }\n"

commit 5de18cf1015d197c23d4d6d27ec04b0ac1795cee
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat Jan 25 14:16:49 2020 +0800

    [new-owner-report] add invoice/txn link-id to tag via javascript
    
    This commit adds a link-id attribute to describe <td> elements
    containing invoice & payment details. Each link-id is the invoice or
    transaction guid.

diff --git a/gnucash/report/business-reports/new-owner-report.scm b/gnucash/report/business-reports/new-owner-report.scm
index d894086ed..ddfe08cbb 100644
--- a/gnucash/report/business-reports/new-owner-report.scm
+++ b/gnucash/report/business-reports/new-owner-report.scm
@@ -88,14 +88,15 @@
   (assv-ref owner-string-alist key))
 
 (define-record-type :link-data
-  (make-link-data date ref type desc partial-amount amount)
+  (make-link-data date ref type desc partial-amount amount rhs-class)
   link-data?
   (date link-data-date)
   (ref link-data-ref)
   (type link-data-type)
   (desc link-data-desc)
   (partial-amount link-data-partial-amount)
-  (amount link-data-amount))
+  (amount link-data-amount)
+  (rhs-class link-data-rhs-class))
 
 (define-record-type :link-desc-amount
   (make-link-desc-amount desc amount)
@@ -346,23 +347,39 @@
 ;; Make a row list based on the visible columns
 ;;
 (define (add-row table odd-row? column-vector date due-date ref type-str
-                 desc currency amt debit credit sale tax
+                 desc currency amt debit credit sale tax lhs-class
                  link-option link-rows)
   (define nrows (if link-rows (length link-rows) 1))
   (define (link-data->cols link-data)
     (cond
      ((link-data? link-data)
       (append
-       (addif (date-col column-vector) (link-data-date link-data))
-       (addif (ref-col column-vector) (link-data-ref link-data))
-       (addif (type-col column-vector) (link-data-type link-data))
-       (addif (desc-col column-vector) (link-data-desc link-data))
-       (addif (or (debit-col column-vector) (credit-col column-vector))
-              (gnc:make-html-table-cell/markup
-               "number-cell" (link-data-partial-amount link-data)))
-       (addif (or (debit-col column-vector) (credit-col column-vector))
-              (gnc:make-html-table-cell/markup
-               "number-cell" (link-data-amount link-data)))))
+       (map
+        (lambda (str)
+          (let ((cell (gnc:make-html-table-cell str))
+                (rhs-class (link-data-rhs-class link-data)))
+            (when rhs-class
+              (gnc:html-table-cell-set-style!
+               cell "td" 'attribute (list "link-id" rhs-class)))
+            cell))
+        (append
+         (addif (date-col column-vector) (link-data-date link-data))
+         (addif (ref-col column-vector) (link-data-ref link-data))
+         (addif (type-col column-vector) (link-data-type link-data))
+         (addif (desc-col column-vector) (link-data-desc link-data))))
+       (map
+        (lambda (str)
+          (let ((cell (gnc:make-html-table-cell/markup "number-cell" str))
+                (rhs-class (link-data-rhs-class link-data)))
+            (when rhs-class
+              (gnc:html-table-cell-set-style!
+               cell "number-cell" 'attribute (list "link-id" rhs-class)))
+            cell))
+        (append
+         (addif (or (debit-col column-vector) (credit-col column-vector))
+                (link-data-partial-amount link-data))
+         (addif (or (debit-col column-vector) (credit-col column-vector))
+                (link-data-amount link-data))))))
 
      ((link-desc-amount? link-data)
       (let ((cols (num-cols column-vector 'rhs-span)))
@@ -386,6 +403,7 @@
       cell))
   (define mid-span
     (if (eq? link-option 'detailed) (num-cols column-vector 'mid-spac) 0))
+
   (let lp ((link-rows link-rows)
            (first-row? #t))
     (unless (null? link-rows)
@@ -394,8 +412,12 @@
            table (if odd-row? "normal-row" "alternate-row")
            (append
             (map
-             (lambda (cell)
-               (gnc:make-html-table-cell/size nrows 1 cell))
+             (lambda (str)
+               (let ((cell (gnc:make-html-table-cell/size nrows 1 str)))
+                 (when lhs-class
+                   (gnc:html-table-cell-set-style!
+                    cell "td" 'attribute (list "link-id" lhs-class)))
+                 cell))
              (append
               (addif (date-col column-vector) (qof-print-date date))
               (addif (date-due-col column-vector)
@@ -404,14 +426,21 @@
               (addif (type-col column-vector)   type-str)
               (addif (desc-col column-vector)   desc)))
             (map
-             (lambda (cell)
-               (gnc:make-html-table-cell/size/markup nrows 1 "number-cell" cell))
+             (lambda (str)
+               (let ((cell (gnc:make-html-table-cell/size/markup
+                            nrows 1 "number-cell" str)))
+                 (when lhs-class
+                   (gnc:html-table-cell-set-style!
+                    cell "number-cell" 'attribute (list "link-id" lhs-class)))
+                 cell))
              (append
               (addif (sale-col column-vector)    (cell sale))
               (addif (tax-col column-vector)     (cell tax))
               (addif (debit-col column-vector)   debit)
-              (addif (credit-col column-vector)  credit)
-              (addif (bal-col column-vector)     (cell amt))))
+              (addif (credit-col column-vector)  credit)))
+            (addif (bal-col column-vector)
+                   (gnc:make-html-table-cell/size/markup
+                    nrows 1 "number-cell" (cell amt)))
             (addif (< 0 mid-span) cell-nohoriz)
             (link-data->cols (car link-rows))))
           (gnc:html-table-append-row/markup!
@@ -494,7 +523,7 @@
 
   (define (add-balance-row odd-row? total)
     (add-row table odd-row? used-columns start-date #f "" (_ "Balance") ""
-             currency total #f #f #f (list (make-list rhs-cols #f))
+             currency total #f #f #f (list (make-list rhs-cols #f)) #f
              link-option (case link-option
                            ((none) '(()))
                            ((simple) '((#f)))
@@ -514,7 +543,8 @@
           (gnc:html-markup-anchor
            (gnc:split-anchor-text (txn->transfer-split posting-txn))
            (gnc:make-gnc-monetary
-            currency (AP-negate (xaccSplitGetAmount posting-split))))))))
+            currency (AP-negate (xaccSplitGetAmount posting-split)))))
+         (gncInvoiceReturnGUID inv))))
     (let ((lot (gncInvoiceGetPostedLot invoice)))
       (let lp ((lot-splits (gnc-lot-get-split-list lot))
                (link-splits-seen '())
@@ -552,7 +582,8 @@
                            ((pmt-split . rest)
                             (lp1 rest (cons* (split->anchor pmt-split #f)
                                              (gnc:html-markup-br)
-                                             acc)))))))
+                                             acc)))))
+                       (gncTransGetGUID lot-txn)))
                     result)))
 
          ;; This is a lot link split. Find corresponding documents,
@@ -633,7 +664,8 @@
                       (gncInvoiceGetTypeString inv)
                       (splits->desc (list APAR-split))
                       (gnc:make-html-text (split->anchor APAR-split #t))
-                      (gnc:make-html-text (split->anchor posting-split #f)))
+                      (gnc:make-html-text (split->anchor posting-split #f))
+                      (gncInvoiceReturnGUID inv))
                      result)))))))
 
   (define (invoice->sale invoice)
@@ -731,6 +763,7 @@
          (and (>= orig-value 0) (amount->anchor split orig-value))
          (and (< orig-value 0) (amount->anchor split (- orig-value)))
          (invoice->sale invoice) (invoice->tax invoice)
+         (gncInvoiceReturnGUID invoice)
          link-option
          (case link-option
            ((simple) (list (list (and (gncInvoiceIsPaid invoice) (_ "Paid")))))
@@ -759,6 +792,7 @@
          (and (>= orig-value 0) (amount->anchor split orig-value))
          (and (< orig-value 0) (amount->anchor split (- orig-value)))
          #f #f
+         (gncTransGetGUID txn)
          link-option
          (case link-option
            ((simple) (make-payment->invoices-list txn))

commit 6ab936af1f36d0fe25a8988c2f9e27b4d21d5926
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat Jan 25 11:57:22 2020 +0800

    [new-owner-report] LHS payments have no invoice details. remove code.
    
    a previous commit had split LHS invoice vs payment handling. remove
    invoice handling code in the payment section.

diff --git a/gnucash/report/business-reports/new-owner-report.scm b/gnucash/report/business-reports/new-owner-report.scm
index c9ce1883c..d894086ed 100644
--- a/gnucash/report/business-reports/new-owner-report.scm
+++ b/gnucash/report/business-reports/new-owner-report.scm
@@ -740,26 +740,25 @@
         (lp printed? (not odd-row?) (cdr splits) (+ total value)
             (if (< 0 orig-value) (+ debit orig-value) debit)
             (if (< 0 orig-value) credit (- credit orig-value))
-            (+ tax (or (invoice->tax invoice) 0))
-            (+ sale (or (invoice->sale invoice) 0)))))
+            (+ tax (invoice->tax invoice))
+            (+ sale (invoice->sale invoice)))))
 
      ((txn-is-payment? (xaccSplitGetParent (car splits)))
       (let* ((split (car splits))
              (txn (xaccSplitGetParent split))
              (date (xaccTransGetDate txn))
              (orig-value (xaccTransGetAccountAmount txn acc))
-             (value (AP-negate orig-value))
-             (invoice (gncInvoiceGetInvoiceFromTxn txn)))
+             (value (AP-negate orig-value)))
 
         (add-row
-         table odd-row? used-columns date (invoice->due-date invoice)
+         table odd-row? used-columns date #f
          (split->reference split)
          (split->type-str split)
          (splits->desc (txn->assetliab-splits txn))
          currency (+ total value)
          (and (>= orig-value 0) (amount->anchor split orig-value))
          (and (< orig-value 0) (amount->anchor split (- orig-value)))
-         (invoice->sale invoice) (invoice->tax invoice)
+         #f #f
          link-option
          (case link-option
            ((simple) (make-payment->invoices-list txn))
@@ -769,8 +768,8 @@
         (lp printed? (not odd-row?) (cdr splits) (+ total value)
             (if (< 0 orig-value) (+ debit orig-value) debit)
             (if (< 0 orig-value) credit (- credit orig-value))
-            (+ tax (or (invoice->tax invoice) 0))
-            (+ sale (or (invoice->sale invoice) 0))))))))
+            tax
+            sale))))))
 
 (define (options-generator owner-type)
 

commit 91b3c8cf3a19d6a43c90adc8945e4fd136bc0861
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat Jan 25 11:56:01 2020 +0800

    [new-owner-report] LHS handle split->anchor differently
    
    remove cell-anchor from add-row
    no functional change

diff --git a/gnucash/report/business-reports/new-owner-report.scm b/gnucash/report/business-reports/new-owner-report.scm
index 3f538cbfe..c9ce1883c 100644
--- a/gnucash/report/business-reports/new-owner-report.scm
+++ b/gnucash/report/business-reports/new-owner-report.scm
@@ -346,7 +346,7 @@
 ;; Make a row list based on the visible columns
 ;;
 (define (add-row table odd-row? column-vector date due-date ref type-str
-                 desc currency amt credit debit sale tax anchor-split
+                 desc currency amt debit credit sale tax
                  link-option link-rows)
   (define nrows (if link-rows (length link-rows) 1))
   (define (link-data->cols link-data)
@@ -379,12 +379,6 @@
      (else link-data)))
   (define (cell amt)
     (and amt (gnc:make-gnc-monetary currency amt)))
-  (define (cell-anchor amt)
-    (and amt anchor-split
-         (gnc:make-html-text
-          (gnc:html-markup-anchor
-           (gnc:split-anchor-text anchor-split)
-           (gnc:make-gnc-monetary currency amt)))))
   (define cell-nohoriz
     (let ((cell (gnc:make-html-table-cell/size nrows 1 #f)))
       (gnc:html-table-cell-set-style!
@@ -415,8 +409,8 @@
              (append
               (addif (sale-col column-vector)    (cell sale))
               (addif (tax-col column-vector)     (cell tax))
-              (addif (debit-col column-vector)   (cell-anchor debit))
-              (addif (credit-col column-vector)  (cell-anchor (and credit (- credit))))
+              (addif (debit-col column-vector)   debit)
+              (addif (credit-col column-vector)  credit)
               (addif (bal-col column-vector)     (cell amt))))
             (addif (< 0 mid-span) cell-nohoriz)
             (link-data->cols (car link-rows))))
@@ -500,7 +494,7 @@
 
   (define (add-balance-row odd-row? total)
     (add-row table odd-row? used-columns start-date #f "" (_ "Balance") ""
-             currency total #f #f #f #f (list (make-list rhs-cols #f))
+             currency total #f #f #f (list (make-list rhs-cols #f))
              link-option (case link-option
                            ((none) '(()))
                            ((simple) '((#f)))
@@ -662,6 +656,12 @@
          (gncInvoiceIsPosted invoice)
          (gncInvoiceGetDateDue invoice)))
 
+  (define (amount->anchor split amount)
+    (gnc:make-html-text
+     (gnc:html-markup-anchor
+      (gnc:split-anchor-text split)
+      (gnc:make-gnc-monetary currency amount))))
+
   (let lp ((printed? #f)
            (odd-row? #t)
            (splits splits)
@@ -728,10 +728,9 @@
          (split->type-str split)
          (splits->desc (list split))
          currency (+ total value)
-         (and (< orig-value 0) orig-value)
-         (and (>= orig-value 0) orig-value)
+         (and (>= orig-value 0) (amount->anchor split orig-value))
+         (and (< orig-value 0) (amount->anchor split (- orig-value)))
          (invoice->sale invoice) (invoice->tax invoice)
-         split
          link-option
          (case link-option
            ((simple) (list (list (and (gncInvoiceIsPaid invoice) (_ "Paid")))))
@@ -758,10 +757,9 @@
          (split->type-str split)
          (splits->desc (txn->assetliab-splits txn))
          currency (+ total value)
-         (and (< orig-value 0) orig-value)
-         (and (>= orig-value 0) orig-value)
+         (and (>= orig-value 0) (amount->anchor split orig-value))
+         (and (< orig-value 0) (amount->anchor split (- orig-value)))
          (invoice->sale invoice) (invoice->tax invoice)
-         split
          link-option
          (case link-option
            ((simple) (make-payment->invoices-list txn))

commit a9be5d406f6183f37117649749196912a60f0255
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat Jan 25 00:29:50 2020 +0800

    [new-owner-report] compact code
    
    * reuse split->anchor for RHS splits
    * use invoice->anchor for invoice anchor

diff --git a/gnucash/report/business-reports/new-owner-report.scm b/gnucash/report/business-reports/new-owner-report.scm
index 3aed85e03..3f538cbfe 100644
--- a/gnucash/report/business-reports/new-owner-report.scm
+++ b/gnucash/report/business-reports/new-owner-report.scm
@@ -251,6 +251,11 @@
 (define (split-is-payment? split)
   (txn-is-payment? (xaccSplitGetParent split)))
 
+(define (invoice->anchor inv)
+  (gnc:html-markup-anchor
+   (gnc:invoice-anchor-text inv)
+   (gncInvoiceGetID inv)))
+
 (define (split->reference split)
   (let* ((txn (xaccSplitGetParent split))
          (type (xaccTransGetTxnType txn)))
@@ -262,10 +267,7 @@
           (gnc:split-anchor-text split) ref))))
      ((eqv? type TXN-TYPE-INVOICE)
       (let ((inv (gncInvoiceGetInvoiceFromLot (xaccSplitGetLot split))))
-        (gnc:make-html-text
-         (gnc:html-markup-anchor
-          (gnc:invoice-anchor-text inv)
-          (gncInvoiceGetID inv))))))))
+        (gnc:make-html-text (invoice->anchor inv)))))))
 
 (define (split->type-str split)
   (let* ((txn (xaccSplitGetParent split))
@@ -434,6 +436,15 @@
                              link-option))
   (define mid-span
     (if (eq? link-option 'detailed) (num-cols used-columns 'mid-spac) 0))
+
+  (define (split->anchor split negate?)
+    (gnc:html-markup-anchor
+     (gnc:split-anchor-text split)
+     (gnc:make-gnc-monetary
+      (xaccAccountGetCommodity (xaccSplitGetAccount split))
+      ((if negate? - +)
+       (AP-negate (xaccSplitGetAmount split))))))
+
   (define (print-totals total debit credit tax sale)
     (define (total-cell cell)
       (gnc:make-html-table-cell/markup "total-number-cell" cell))
@@ -535,13 +546,6 @@
               (cons (let* ((lot-split (car lot-splits))
                            (lot-txn (xaccSplitGetParent lot-split))
                            (pmt-splits (xaccTransGetPaymentAcctSplitList lot-txn)))
-                      (define (split->anchor split negate?)
-                        (gnc:html-markup-anchor
-                         (gnc:split-anchor-text split)
-                         (gnc:make-gnc-monetary
-                          (xaccAccountGetCommodity (xaccSplitGetAccount split))
-                          ((if negate? - +)
-                           (AP-negate (xaccSplitGetAmount split))))))
                       (make-link-data
                        (qof-print-date (xaccTransGetDate lot-txn))
                        (split->reference lot-split)
@@ -598,16 +602,9 @@
       (match splits
         (() (cons (AP-negate overpayment) invoices))
         ((split . rest)
-         (let ((invoice (gncInvoiceGetInvoiceFromLot (xaccSplitGetLot split))))
-           (if (null? invoice)
-               (lp rest
-                   (- overpayment (xaccSplitGetAmount split))
-                   invoices)
-               (lp rest
-                   overpayment
-                   (if (member invoice invoices)
-                       invoices
-                       (cons (cons invoice split) invoices)))))))))
+         (match (gncInvoiceGetInvoiceFromLot (xaccSplitGetLot split))
+           (() (lp rest (- overpayment (xaccSplitGetAmount split)) invoices))
+           (invoice (lp rest overpayment (cons (cons invoice split) invoices))))))))
 
   (define (make-payment->invoices-list txn)
     (list
@@ -616,10 +613,7 @@
        gnc:make-html-text
        (map
         (lambda (inv-split-pair)
-          (let ((inv (car inv-split-pair)))
-            (gnc:html-markup-anchor
-             (gnc:invoice-anchor-text inv)
-             (gncInvoiceGetID inv))))
+          (invoice->anchor (car inv-split-pair)))
         (cdr (payment-txn->overpayment-and-invoices txn)))))))
 
   (define (make-payment->invoices-table txn)
@@ -637,26 +631,15 @@
                        (gnc:make-gnc-monetary currency overpayment))
                       result)))))
         (((inv . APAR-split) . rest)
-         (let* ((tfr-txn (gncInvoiceGetPostedTxn inv)))
+         (let* ((posting-split (lot-split->posting-split APAR-split)))
            (lp rest
                (cons (make-link-data
                       (qof-print-date (gncInvoiceGetDatePosted inv))
-                      (gnc:make-html-text
-                       (gnc:html-markup-anchor
-                        (gnc:invoice-anchor-text inv)
-                        (gncInvoiceGetID inv)))
+                      (gnc:make-html-text (invoice->anchor inv))
                       (gncInvoiceGetTypeString inv)
                       (splits->desc (list APAR-split))
-                      (gnc:make-html-text
-                       (gnc:html-markup-anchor
-                        (gnc:split-anchor-text APAR-split)
-                        (gnc:make-gnc-monetary
-                         currency (AP-negate (- (xaccSplitGetAmount APAR-split))))))
-                      (gnc:make-html-text
-                       (gnc:html-markup-anchor
-                        (gnc:split-anchor-text (lot-split->posting-split APAR-split))
-                        (gnc:make-gnc-monetary
-                         currency (invoice->total inv)))))
+                      (gnc:make-html-text (split->anchor APAR-split #t))
+                      (gnc:make-html-text (split->anchor posting-split #f)))
                      result)))))))
 
   (define (invoice->sale invoice)

commit 4839a5636722793106497cb0d431ffb76cfb4594
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat Jan 25 00:07:37 2020 +0800

    [new-owner-report] RHS invoice amount links to invoice posting
    
    RHS invoice amounts links to the APAR posting split instead of a APAR
    payment split.

diff --git a/gnucash/report/business-reports/new-owner-report.scm b/gnucash/report/business-reports/new-owner-report.scm
index ebe76f470..3aed85e03 100644
--- a/gnucash/report/business-reports/new-owner-report.scm
+++ b/gnucash/report/business-reports/new-owner-report.scm
@@ -654,7 +654,7 @@
                          currency (AP-negate (- (xaccSplitGetAmount APAR-split))))))
                       (gnc:make-html-text
                        (gnc:html-markup-anchor
-                        (gnc:split-anchor-text APAR-split)
+                        (gnc:split-anchor-text (lot-split->posting-split APAR-split))
                         (gnc:make-gnc-monetary
                          currency (invoice->total inv)))))
                      result)))))))

commit ffe3aa792cd236890a9295b762e1a9d3a01ef2de
Author: Robert Fewell <14uBobIT at gmail.com>
Date:   Sat Jan 11 14:10:41 2020 +0000

    Bug 797522 - Focus after reconcile jumps to a different account
    
    After the use of the reconcile window, the keyboard focus may not be
    on the current account register. This is due to the call for a gui
    refresh which refreshes the pages in reverse qofinstance order and as
    part of this there is a call to grab the keyboard focus on the register
    sheet so the last one will have the keyboard focus which may not be the
    current register, just depends on the order of creation.
    
    To fix this, as part of the main window page changed callback a flag is
    set on the current sheet to indicate it can grab the focus on refresh.

diff --git a/gnucash/gnome/gnc-plugin-page-register.c b/gnucash/gnome/gnc-plugin-page-register.c
index ace2c379d..1d1958698 100644
--- a/gnucash/gnome/gnc-plugin-page-register.c
+++ b/gnucash/gnome/gnc-plugin-page-register.c
@@ -566,6 +566,7 @@ typedef struct GncPluginPageRegisterPrivate
 
     gint lines_default;
     gboolean read_only;
+    gboolean page_focus;
     gboolean enable_refresh; // used to reduce ledger display refreshes
     Query *search_query;     // saved search query for comparison
     Query *filter_query;     // saved filter query for comparison
@@ -1150,6 +1151,7 @@ gnc_plugin_register_main_window_page_changed (GncMainWindow *window,
                                               GncPluginPage *register_plugin_page)
 {
     GncPluginPageRegisterPrivate *priv;
+    GNCSplitReg *gsr;
 
     // We continue only if the plugin_page is a valid
     if (!current_plugin_page || !GNC_IS_PLUGIN_PAGE_REGISTER(current_plugin_page) ||
@@ -1157,15 +1159,23 @@ gnc_plugin_register_main_window_page_changed (GncMainWindow *window,
         return;
 
     priv = GNC_PLUGIN_PAGE_REGISTER_GET_PRIVATE(register_plugin_page);
+    gsr = gnc_plugin_page_register_get_gsr (GNC_PLUGIN_PAGE(register_plugin_page));
 
     if (current_plugin_page == register_plugin_page)
     {
+        priv->page_focus = TRUE;
+
         // The page changed signal is emitted multiple times so we need
         // to use an idle_add to change the focus to the register
         g_idle_remove_by_data (GNC_PLUGIN_PAGE_REGISTER (register_plugin_page));
         g_idle_add ((GSourceFunc)gnc_plugin_page_register_focus,
                       GNC_PLUGIN_PAGE_REGISTER (register_plugin_page));
     }
+    else
+        priv->page_focus = FALSE;
+
+    // set the sheet focus setting
+    gnc_split_reg_set_sheet_focus (gsr, priv->page_focus);
 }
 
 static GtkWidget *
@@ -1194,6 +1204,8 @@ gnc_plugin_page_register_create_widget (GncPluginPage *plugin_page)
         LEAVE("existing widget %p", priv->widget);
         return priv->widget;
     }
+    // on create, the page will be the current page so set the focus flag
+    priv->page_focus = TRUE;
 
     priv->widget = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
     gtk_box_set_homogeneous (GTK_BOX (priv->widget), FALSE);
diff --git a/gnucash/gnome/gnc-split-reg.c b/gnucash/gnome/gnc-split-reg.c
index f8c3db9ed..599a16705 100644
--- a/gnucash/gnome/gnc-split-reg.c
+++ b/gnucash/gnome/gnc-split-reg.c
@@ -1930,6 +1930,14 @@ gnc_split_reg_focus_on_sheet (GNCSplitReg *gsr)
         gtk_widget_grab_focus (GTK_WIDGET (sheet));
 }
 
+void
+gnc_split_reg_set_sheet_focus (GNCSplitReg *gsr, gboolean has_focus)
+{
+    GnucashRegister *reg = gsr->reg;
+    GnucashSheet *sheet = gnucash_register_get_sheet (reg);
+    gnucash_sheet_set_has_focus (sheet, has_focus);
+}
+
 void
 gnc_split_reg_balancing_entry(GNCSplitReg *gsr, Account *account,
                               time64 statement_date, gnc_numeric balancing_amount)
diff --git a/gnucash/gnome/gnc-split-reg.h b/gnucash/gnome/gnc-split-reg.h
index d54372c8e..8c0f78c24 100644
--- a/gnucash/gnome/gnc-split-reg.h
+++ b/gnucash/gnome/gnc-split-reg.h
@@ -248,6 +248,7 @@ void gnc_split_reg_jump_to_split_amount(GNCSplitReg *gsr, Split *split);
  * Set the focus of the register to the sheet
  **/
 void gnc_split_reg_focus_on_sheet (GNCSplitReg *gsr);
+void gnc_split_reg_set_sheet_focus (GNCSplitReg *gsr, gboolean has_focus);
 
 /*
  * Create a transaction entry with given amount and date. One account is
diff --git a/gnucash/register/register-gnome/gnucash-sheet.c b/gnucash/register/register-gnome/gnucash-sheet.c
index 049411737..36bd9c652 100644
--- a/gnucash/register/register-gnome/gnucash-sheet.c
+++ b/gnucash/register/register-gnome/gnucash-sheet.c
@@ -407,8 +407,10 @@ gnucash_sheet_activate_cursor_cell (GnucashSheet *sheet,
         sheet->direct_update_cell =
             gnucash_sheet_check_direct_update_cell (sheet, virt_loc);
     }
-
-    gtk_widget_grab_focus (GTK_WIDGET(sheet));
+    // when a gui refresh is called, we end up here so only grab the focus
+    // if the sheet is showing on the current plugin_page
+    if (sheet->sheet_has_focus)
+        gtk_widget_grab_focus (GTK_WIDGET(sheet));
 }
 
 
@@ -757,6 +759,12 @@ gnucash_sheet_is_read_only (GnucashSheet *sheet)
     return gnc_table_model_read_only (sheet->table->model);
 }
 
+void
+gnucash_sheet_set_has_focus (GnucashSheet *sheet, gboolean has_focus)
+{
+    sheet->sheet_has_focus = has_focus;
+}
+
 static void
 gnucash_sheet_finalize (GObject *object)
 {
@@ -2764,6 +2772,9 @@ gnucash_sheet_new (Table *table)
 
     sheet = gnucash_sheet_create (table);
 
+    /* on create, the sheet can grab the focus */
+    sheet->sheet_has_focus = TRUE;
+
     /* The cursor */
     sheet->cursor = gnucash_cursor_new (sheet);
 
diff --git a/gnucash/register/register-gnome/gnucash-sheet.h b/gnucash/register/register-gnome/gnucash-sheet.h
index 907cd34e9..c24fe2c19 100644
--- a/gnucash/register/register-gnome/gnucash-sheet.h
+++ b/gnucash/register/register-gnome/gnucash-sheet.h
@@ -112,5 +112,7 @@ gint gnucash_sheet_get_text_offset (GnucashSheet *sheet, const VirtualLocation v
 
 gboolean gnucash_sheet_is_read_only (GnucashSheet *sheet);
 
+void gnucash_sheet_set_has_focus (GnucashSheet *sheet, gboolean has_focus);
+
 /** @} */
 #endif
diff --git a/gnucash/register/register-gnome/gnucash-sheetP.h b/gnucash/register/register-gnome/gnucash-sheetP.h
index 888106832..1c2d96c1d 100644
--- a/gnucash/register/register-gnome/gnucash-sheetP.h
+++ b/gnucash/register/register-gnome/gnucash-sheetP.h
@@ -80,6 +80,8 @@ struct _GnucashSheet
 
     gint editing;
 
+    gboolean sheet_has_focus;
+
     guint button; /* mouse button being held down */
     gboolean grabbed; /* has the grab */
     gdouble button_x, button_y;

commit 94cb96501e4e3a405cd5f059ebb75f0b49c020a4
Author: Robert Fewell <14uBobIT at gmail.com>
Date:   Sat Jan 11 14:06:13 2020 +0000

    Change the way the focus is added to plugin_pages
    
    This change corrects a previous commit and makes all the plugin_pages
    follow the same format. In the previous commit a test was made for the
    plugin_page to be equal to one returned from get_current_page which
    would always be the case. With this change the respective plugin_page
    is passed as a parameter to the 'page_changed' call back and it is this
    that is tested against the current plugin_page.

diff --git a/gnucash/gnome/gnc-plugin-account-tree.c b/gnucash/gnome/gnc-plugin-account-tree.c
index abe3e5a65..fec9c2f4c 100644
--- a/gnucash/gnome/gnc-plugin-account-tree.c
+++ b/gnucash/gnome/gnc-plugin-account-tree.c
@@ -44,8 +44,6 @@
 static void gnc_plugin_account_tree_class_init (GncPluginAccountTreeClass *klass);
 static void gnc_plugin_account_tree_init (GncPluginAccountTree *plugin);
 static void gnc_plugin_account_tree_finalize (GObject *object);
-static void gnc_plugin_account_tree_add_to_window (GncPlugin *plugin,
-                                                   GncMainWindow *window, GQuark type);
 
 /* Command callbacks */
 static void gnc_plugin_account_tree_cmd_new_account_tree (GtkAction *action, GncMainWindowActionData *data);
@@ -97,26 +95,6 @@ gnc_plugin_account_tree_new (void)
     return GNC_PLUGIN (plugin);
 }
 
-static void
-gnc_plugin_account_tree_main_window_page_changed (GncMainWindow *window,
-        GncPluginPage *plugin_page, gpointer user_data)
-{
-    // We continue only if the plugin_page is a valid
-    if (!plugin_page || !GNC_IS_PLUGIN_PAGE(plugin_page))
-        return;
-
-    if (gnc_main_window_get_current_page (window) == plugin_page)
-    {
-        if (!GNC_IS_PLUGIN_PAGE_ACCOUNT_TREE(plugin_page))
-            return;
-
-        // The page changed signal is emitted multiple times so we need
-        // to use an idle_add to change the focus to the tree view
-        g_idle_remove_by_data (GNC_PLUGIN_PAGE_ACCOUNT_TREE (plugin_page));
-        g_idle_add ((GSourceFunc)gnc_plugin_page_account_tree_focus,
-                      GNC_PLUGIN_PAGE_ACCOUNT_TREE (plugin_page));
-    }
-}
 
 /** Initialize the class for a new account tree plugin.  This will set
  *  up any function pointers that override functions in the parent
@@ -138,9 +116,6 @@ gnc_plugin_account_tree_class_init (GncPluginAccountTreeClass *klass)
     /* plugin info */
     plugin_class->plugin_name  = GNC_PLUGIN_ACCOUNT_TREE_NAME;
 
-    /* function overrides */
-    plugin_class->add_to_window = gnc_plugin_account_tree_add_to_window;
-
     /* widget addition/removal */
     plugin_class->actions_name = PLUGIN_ACTIONS_NAME;
     plugin_class->actions      = gnc_plugin_actions;
@@ -176,20 +151,6 @@ gnc_plugin_account_tree_finalize (GObject *object)
     G_OBJECT_CLASS (parent_class)->finalize (object);
 }
 
-
-/**
- * Called when this plugin is added to a main window.  Connect a few callbacks
- * here to track page changes.
- *
- */
-static void gnc_plugin_account_tree_add_to_window (GncPlugin *plugin,
-        GncMainWindow *mainwindow,
-        GQuark type)
-{
-    g_signal_connect(mainwindow, "page_changed",
-                     G_CALLBACK(gnc_plugin_account_tree_main_window_page_changed),
-                     plugin);
-}
 /************************************************************
  *                    Command Callbacks                     *
  ************************************************************/
diff --git a/gnucash/gnome/gnc-plugin-budget.c b/gnucash/gnome/gnc-plugin-budget.c
index 0f767047f..2056afe2a 100644
--- a/gnucash/gnome/gnc-plugin-budget.c
+++ b/gnucash/gnome/gnc-plugin-budget.c
@@ -101,28 +101,6 @@ GncPlugin * gnc_plugin_budget_new (void)
     return GNC_PLUGIN(plugin);
 }
 
-static void
-gnc_plugin_budget_main_window_page_changed (GncMainWindow *window,
-                                            GncPluginPage *plugin_page,
-                                            gpointer user_data)
-{
-    // We continue only if the plugin_page is a valid
-    if (!plugin_page || !GNC_IS_PLUGIN_PAGE(plugin_page))
-        return;
-
-    if (gnc_main_window_get_current_page (window) == plugin_page)
-    {
-        if (!GNC_IS_PLUGIN_PAGE_BUDGET(plugin_page))
-            return;
-
-        // The page changed signal is emitted multiple times so we need
-        // to use an idle_add to change the focus to the tree view
-        g_idle_remove_by_data (GNC_PLUGIN_PAGE_BUDGET(plugin_page));
-        g_idle_add ((GSourceFunc)gnc_plugin_page_budget_focus,
-                      GNC_PLUGIN_PAGE_BUDGET(plugin_page));
-    }
-}
-
 G_DEFINE_TYPE_WITH_PRIVATE(GncPluginBudget, gnc_plugin_budget, GNC_TYPE_PLUGIN)
 
 static void
@@ -135,9 +113,6 @@ gnc_plugin_budget_class_init (GncPluginBudgetClass *klass)
     parent_class = g_type_class_peek_parent (klass);
     object_class->finalize = gnc_plugin_budget_finalize;
 
-    /* function overrides */
-    plugin_class->add_to_window = gnc_plugin_budget_add_to_window;
-
     plugin_class->plugin_name  = GNC_PLUGIN_BUDGET_NAME;
     plugin_class->actions_name = PLUGIN_ACTIONS_NAME;
     plugin_class->actions      = gnc_plugin_actions;
@@ -163,20 +138,6 @@ gnc_plugin_budget_finalize (GObject *object)
 
 }
 
-/**
- * Called when this plugin is added to a main window.  Connect a few callbacks
- * here to track page changes.
- *
- */
-static void gnc_plugin_budget_add_to_window (GncPlugin *plugin,
-                                             GncMainWindow *mainwindow,
-                                             GQuark type)
-{
-    g_signal_connect (mainwindow, "page_changed",
-                      G_CALLBACK(gnc_plugin_budget_main_window_page_changed),
-                      plugin);
-}
-
 /************************************************************
  *                    Command Callbacks                     *
  ************************************************************/
diff --git a/gnucash/gnome/gnc-plugin-page-account-tree.c b/gnucash/gnome/gnc-plugin-page-account-tree.c
index ecd5a2369..1f70ad94a 100644
--- a/gnucash/gnome/gnc-plugin-page-account-tree.c
+++ b/gnucash/gnome/gnc-plugin-page-account-tree.c
@@ -636,11 +636,32 @@ gnc_plugin_page_account_editing_finished_cb (gpointer various, GncPluginPageRegi
         gtk_action_set_sensitive (action, TRUE);
 }
 
+static void
+gnc_plugin_account_tree_main_window_page_changed (GncMainWindow *window,
+                                                  GncPluginPage *current_plugin_page,
+                                                  GncPluginPage *account_plugin_page)
+{
+    // We continue only if the plugin_page is a valid
+    if (!current_plugin_page || !GNC_IS_PLUGIN_PAGE_ACCOUNT_TREE(current_plugin_page)||
+        !account_plugin_page || !GNC_IS_PLUGIN_PAGE_ACCOUNT_TREE(account_plugin_page))
+        return;
+
+    if (current_plugin_page == account_plugin_page)
+    {
+        // The page changed signal is emitted multiple times so we need
+        // to use an idle_add to change the focus to the tree view
+        g_idle_remove_by_data (GNC_PLUGIN_PAGE_ACCOUNT_TREE (account_plugin_page));
+        g_idle_add ((GSourceFunc)gnc_plugin_page_account_tree_focus,
+                      GNC_PLUGIN_PAGE_ACCOUNT_TREE (account_plugin_page));
+    }
+}
+
 static GtkWidget *
 gnc_plugin_page_account_tree_create_widget (GncPluginPage *plugin_page)
 {
     GncPluginPageAccountTree *page;
     GncPluginPageAccountTreePrivate *priv;
+    GncMainWindow *window;
     GtkTreeSelection *selection;
     GtkTreeView *tree_view;
     GtkWidget *scrolled_window;
@@ -738,6 +759,11 @@ gnc_plugin_page_account_tree_create_widget (GncPluginPage *plugin_page)
                            gnc_plugin_page_account_tree_summarybar_position_changed,
                            page);
 
+    window = GNC_MAIN_WINDOW(GNC_PLUGIN_PAGE(page)->window);
+    g_signal_connect (window, "page_changed",
+                      G_CALLBACK(gnc_plugin_account_tree_main_window_page_changed),
+                      plugin_page);
+
     // Read account filter state information from account section
     gnc_tree_view_account_restore_filter (GNC_TREE_VIEW_ACCOUNT(priv->tree_view), &priv->fd,
        gnc_state_get_current(), gnc_tree_view_get_state_section (GNC_TREE_VIEW(priv->tree_view)));
diff --git a/gnucash/gnome/gnc-plugin-page-budget.c b/gnucash/gnome/gnc-plugin-page-budget.c
index 5e5e6dedb..3449f289d 100644
--- a/gnucash/gnome/gnc-plugin-page-budget.c
+++ b/gnucash/gnome/gnc-plugin-page-budget.c
@@ -423,6 +423,27 @@ gnc_plugin_page_budget_refresh_cb (GHashTable *changes, gpointer user_data)
 }
 
 
+static void
+gnc_plugin_budget_main_window_page_changed (GncMainWindow *window,
+                                            GncPluginPage *current_plugin_page,
+                                            GncPluginPage *budget_plugin_page)
+{
+    // We continue only if the plugin_page is a valid
+    if (!current_plugin_page || !GNC_IS_PLUGIN_PAGE_BUDGET(current_plugin_page) ||
+        !budget_plugin_page || !GNC_IS_PLUGIN_PAGE_BUDGET(budget_plugin_page))
+        return;
+
+    if (current_plugin_page == budget_plugin_page)
+    {
+        // The page changed signal is emitted multiple times so we need
+        // to use an idle_add to change the focus to the tree view
+        g_idle_remove_by_data (GNC_PLUGIN_PAGE_BUDGET(budget_plugin_page));
+        g_idle_add ((GSourceFunc)gnc_plugin_page_budget_focus,
+                      GNC_PLUGIN_PAGE_BUDGET(budget_plugin_page));
+    }
+}
+
+
 /****************************
  * GncPluginPage Functions  *
  ***************************/
@@ -431,6 +452,7 @@ gnc_plugin_page_budget_create_widget (GncPluginPage *plugin_page)
 {
     GncPluginPageBudget *page;
     GncPluginPageBudgetPrivate *priv;
+    GncMainWindow *window;
 
     ENTER("page %p", plugin_page);
     page = GNC_PLUGIN_PAGE_BUDGET(plugin_page);
@@ -465,6 +487,11 @@ gnc_plugin_page_budget_create_widget (GncPluginPage *plugin_page)
                                     gnc_budget_get_guid (priv->budget),
                                     QOF_EVENT_DESTROY | QOF_EVENT_MODIFY);
 
+    window = GNC_MAIN_WINDOW(GNC_PLUGIN_PAGE(page)->window);
+    g_signal_connect (window, "page_changed",
+                      G_CALLBACK(gnc_plugin_budget_main_window_page_changed),
+                      plugin_page);
+
     LEAVE("widget = %p", priv->budget_view);
     return GTK_WIDGET(priv->budget_view);
 }
diff --git a/gnucash/gnome/gnc-plugin-page-invoice.c b/gnucash/gnome/gnc-plugin-page-invoice.c
index cbc08c9b7..f4fa4c4a7 100644
--- a/gnucash/gnome/gnc-plugin-page-invoice.c
+++ b/gnucash/gnome/gnc-plugin-page-invoice.c
@@ -605,22 +605,17 @@ gnc_plugin_page_invoice_focus (InvoiceWindow *iw)
  */
 static void
 gnc_plugin_page_invoice_main_window_page_changed (GncMainWindow *window,
-        GncPluginPage *plugin_page, gpointer user_data)
+                                                  GncPluginPage *current_plugin_page,
+                                                  GncPluginPage *invoice_plugin_page)
 {
     // We continue only if the plugin_page is a valid
-    if (!plugin_page || !GNC_IS_PLUGIN_PAGE(plugin_page))
+    if (!current_plugin_page || !GNC_IS_PLUGIN_PAGE_INVOICE(current_plugin_page) ||
+        !invoice_plugin_page || !GNC_IS_PLUGIN_PAGE_INVOICE(invoice_plugin_page))
         return;
 
-    if (gnc_main_window_get_current_page (window) == plugin_page)
+    if (current_plugin_page == invoice_plugin_page)
     {
-        GncPluginPageInvoice *page;
-        GncPluginPageInvoicePrivate *priv;
-
-        if (!GNC_IS_PLUGIN_PAGE_INVOICE(plugin_page))
-            return;
-
-        page = GNC_PLUGIN_PAGE_INVOICE(plugin_page);
-        priv = GNC_PLUGIN_PAGE_INVOICE_GET_PRIVATE(page);
+        GncPluginPageInvoicePrivate *priv = GNC_PLUGIN_PAGE_INVOICE_GET_PRIVATE(invoice_plugin_page);
 
         // The page changed signal is emitted multiple times so we need
         // to use an idle_add to change the focus to the sheet
diff --git a/gnucash/gnome/gnc-plugin-page-owner-tree.c b/gnucash/gnome/gnc-plugin-page-owner-tree.c
index 5022e7907..1b54a06f6 100644
--- a/gnucash/gnome/gnc-plugin-page-owner-tree.c
+++ b/gnucash/gnome/gnc-plugin-page-owner-tree.c
@@ -384,22 +384,17 @@ gnc_plugin_page_owner_focus (GtkTreeView *tree_view)
  */
 static void
 gnc_plugin_page_owner_main_window_page_changed (GncMainWindow *window,
-        GncPluginPage *plugin_page, gpointer user_data)
+                                                GncPluginPage *current_plugin_page,
+                                                GncPluginPage *owner_plugin_page)
 {
     // We continue only if the plugin_page is a valid
-    if (!plugin_page || !GNC_IS_PLUGIN_PAGE(plugin_page))
+    if (!current_plugin_page || !GNC_IS_PLUGIN_PAGE_OWNER_TREE(current_plugin_page) ||
+        !owner_plugin_page || !GNC_IS_PLUGIN_PAGE_OWNER_TREE(owner_plugin_page))
         return;
 
-    if (gnc_main_window_get_current_page (window) == plugin_page)
+    if (current_plugin_page == owner_plugin_page)
     {
-        GncPluginPageOwnerTree *page;
-        GncPluginPageOwnerTreePrivate *priv;
-
-        if (!GNC_IS_PLUGIN_PAGE_OWNER_TREE(plugin_page))
-            return;
-
-        page = GNC_PLUGIN_PAGE_OWNER_TREE(plugin_page);
-        priv = GNC_PLUGIN_PAGE_OWNER_TREE_GET_PRIVATE(page);
+        GncPluginPageOwnerTreePrivate *priv = GNC_PLUGIN_PAGE_OWNER_TREE_GET_PRIVATE(owner_plugin_page);
 
         // The page changed signal is emitted multiple times so we need
         // to use an idle_add to change the focus to the tree view
diff --git a/gnucash/gnome/gnc-plugin-page-register.c b/gnucash/gnome/gnc-plugin-page-register.c
index af60b32a7..ace2c379d 100644
--- a/gnucash/gnome/gnc-plugin-page-register.c
+++ b/gnucash/gnome/gnc-plugin-page-register.c
@@ -1144,11 +1144,36 @@ get_filter_default_num_of_days (GNCLedgerDisplayType ledger_type)
         return "0";
 }
 
+static void
+gnc_plugin_register_main_window_page_changed (GncMainWindow *window,
+                                              GncPluginPage *current_plugin_page,
+                                              GncPluginPage *register_plugin_page)
+{
+    GncPluginPageRegisterPrivate *priv;
+
+    // We continue only if the plugin_page is a valid
+    if (!current_plugin_page || !GNC_IS_PLUGIN_PAGE_REGISTER(current_plugin_page) ||
+        !register_plugin_page || !GNC_IS_PLUGIN_PAGE_REGISTER(register_plugin_page))
+        return;
+
+    priv = GNC_PLUGIN_PAGE_REGISTER_GET_PRIVATE(register_plugin_page);
+
+    if (current_plugin_page == register_plugin_page)
+    {
+        // The page changed signal is emitted multiple times so we need
+        // to use an idle_add to change the focus to the register
+        g_idle_remove_by_data (GNC_PLUGIN_PAGE_REGISTER (register_plugin_page));
+        g_idle_add ((GSourceFunc)gnc_plugin_page_register_focus,
+                      GNC_PLUGIN_PAGE_REGISTER (register_plugin_page));
+    }
+}
+
 static GtkWidget *
 gnc_plugin_page_register_create_widget (GncPluginPage *plugin_page)
 {
     GncPluginPageRegister *page;
     GncPluginPageRegisterPrivate *priv;
+    GncMainWindow *window;
     GNCLedgerDisplayType ledger_type;
     GncWindow *gnc_window;
     guint numRows;
@@ -1361,6 +1386,11 @@ gnc_plugin_page_register_create_widget (GncPluginPage *plugin_page)
     gnc_split_reg_set_moved_cb
     (priv->gsr, (GFunc)gnc_plugin_page_register_ui_update, page);
 
+    window = GNC_MAIN_WINDOW(GNC_PLUGIN_PAGE(plugin_page)->window);
+    g_signal_connect (window, "page_changed",
+                      G_CALLBACK(gnc_plugin_register_main_window_page_changed),
+                      plugin_page);
+
     /* DRH - Probably lots of other stuff from regWindowLedger should end up here. */
     LEAVE(" ");
     return priv->widget;
diff --git a/gnucash/gnome/gnc-plugin-page-sx-list.c b/gnucash/gnome/gnc-plugin-page-sx-list.c
index 6cbabc586..2f6ab431f 100644
--- a/gnucash/gnome/gnc-plugin-page-sx-list.c
+++ b/gnucash/gnome/gnc-plugin-page-sx-list.c
@@ -205,22 +205,17 @@ gnc_plugin_page_sx_list_focus (GtkTreeView *tree_view)
  */
 static void
 gnc_plugin_page_sx_list_main_window_page_changed (GncMainWindow *window,
-        GncPluginPage *plugin_page, gpointer user_data)
+                                                  GncPluginPage *current_plugin_page,
+                                                  GncPluginPage *sx_plugin_page)
 {
     // We continue only if the plugin_page is a valid
-    if (!plugin_page || !GNC_IS_PLUGIN_PAGE(plugin_page))
+    if (!current_plugin_page || !GNC_IS_PLUGIN_PAGE_SX_LIST(current_plugin_page) ||
+        !sx_plugin_page || !GNC_IS_PLUGIN_PAGE_SX_LIST(sx_plugin_page))
         return;
 
-    if (gnc_main_window_get_current_page (window) == plugin_page)
+    if (current_plugin_page == sx_plugin_page)
     {
-        GncPluginPageSxList *page;
-        GncPluginPageSxListPrivate *priv;
-
-        if (!GNC_IS_PLUGIN_PAGE_SX_LIST(plugin_page))
-            return;
-
-        page = GNC_PLUGIN_PAGE_SX_LIST(plugin_page);
-        priv = GNC_PLUGIN_PAGE_SX_LIST_GET_PRIVATE(page);
+        GncPluginPageSxListPrivate *priv = GNC_PLUGIN_PAGE_SX_LIST_GET_PRIVATE(sx_plugin_page);
 
         // The page changed signal is emitted multiple times so we need
         // to use an idle_add to change the focus to the tree view
diff --git a/gnucash/gnome/gnc-plugin-register.c b/gnucash/gnome/gnc-plugin-register.c
index 181a7f883..31ea43be0 100644
--- a/gnucash/gnome/gnc-plugin-register.c
+++ b/gnucash/gnome/gnc-plugin-register.c
@@ -120,27 +120,6 @@ gnc_plugin_register_new (void)
     return GNC_PLUGIN (plugin);
 }
 
-static void
-gnc_plugin_register_main_window_page_changed(GncMainWindow *window,
-        GncPluginPage *plugin_page, gpointer user_data)
-{
-    // We continue only if the plugin_page is a valid
-    if (!plugin_page || !GNC_IS_PLUGIN_PAGE(plugin_page))
-        return;
-
-    if (gnc_main_window_get_current_page (window) == plugin_page)
-    {
-        if (!GNC_IS_PLUGIN_PAGE_REGISTER(plugin_page))
-            return;
-
-        // The page changed signal is emitted multiple times so we need
-        // to use an idle_add to change the focus to the register
-        g_idle_remove_by_data (GNC_PLUGIN_PAGE_REGISTER (plugin_page));
-        g_idle_add ((GSourceFunc)gnc_plugin_page_register_focus,
-                      GNC_PLUGIN_PAGE_REGISTER (plugin_page));
-    }
-}
-
 static void
 gnc_plugin_register_class_init (GncPluginRegisterClass *klass)
 {
@@ -204,10 +183,6 @@ gnc_plugin_register_add_to_window (GncPlugin *plugin,
 {
     gnc_prefs_register_cb (GNC_PREFS_GROUP_GENERAL_REGISTER, NULL,
                            gnc_plugin_register_pref_changed, window);
-
-    g_signal_connect(window, "page_changed",
-                     G_CALLBACK(gnc_plugin_register_main_window_page_changed),
-                     plugin);
 }
 
 
diff --git a/gnucash/report/report-gnome/gnc-plugin-page-report.c b/gnucash/report/report-gnome/gnc-plugin-page-report.c
index f3bcdaf1d..19272f77e 100644
--- a/gnucash/report/report-gnome/gnc-plugin-page-report.c
+++ b/gnucash/report/report-gnome/gnc-plugin-page-report.c
@@ -250,24 +250,18 @@ gnc_plugin_page_report_focus (GtkWidget *widget)
  */
 static void
 gnc_plugin_page_report_main_window_page_changed (GncMainWindow *window,
-        GncPluginPage *plugin_page, gpointer user_data)
+                                                 GncPluginPage *current_plugin_page,
+                                                 GncPluginPage *report_plugin_page)
 {
     // We continue only if the plugin_page is a valid
-    if (!plugin_page || !GNC_IS_PLUGIN_PAGE(plugin_page))
+    if (!current_plugin_page || !GNC_IS_PLUGIN_PAGE_REPORT(current_plugin_page) ||
+        !report_plugin_page || !GNC_IS_PLUGIN_PAGE_REPORT(report_plugin_page))
         return;
 
-    if (gnc_main_window_get_current_page (window) == plugin_page)
+    if (current_plugin_page == report_plugin_page)
     {
-        GncPluginPageReport *report;
-        GncPluginPageReportPrivate *priv;
-        GtkWidget *widget;
-
-        if (!GNC_IS_PLUGIN_PAGE_REPORT(plugin_page))
-            return;
-
-        report = GNC_PLUGIN_PAGE_REPORT(plugin_page);
-        priv = GNC_PLUGIN_PAGE_REPORT_GET_PRIVATE(report);
-        widget = gnc_html_get_widget(priv->html);
+        GncPluginPageReportPrivate *priv = GNC_PLUGIN_PAGE_REPORT_GET_PRIVATE(report_plugin_page);
+        GtkWidget *widget = gnc_html_get_widget (priv->html);
 
         // The page changed signal is emitted multiple times so we need
         // to use an idle_add to change the focus to the webkit widget

commit 7ee3f43037bef40e78b0d792bfbafd4d9cfd42f8
Author: Robert Fewell <14uBobIT at gmail.com>
Date:   Sat Jan 11 13:54:56 2020 +0000

    Bug 797566 - Crash on use of context menu in importer
    
    If the context menu key is used on the "Assign transfer account page"
    the application will crash. This was down to the call back function
    gnc_gen_trans_onPopupMenu_cb being defined with a second parameter of
    GdkEvent but it should not have, removing this fixes the bug.

diff --git a/gnucash/import-export/import-main-matcher.c b/gnucash/import-export/import-main-matcher.c
index 34320bc8f..dcc228ed7 100644
--- a/gnucash/import-export/import-main-matcher.c
+++ b/gnucash/import-export/import-main-matcher.c
@@ -124,7 +124,6 @@ static gboolean gnc_gen_trans_onButtonPressed_cb (
                     GNCImportMainMatcher *info);
 static gboolean gnc_gen_trans_onPopupMenu_cb (
                     GtkTreeView *treeview,
-                    GdkEvent *event,
                     GNCImportMainMatcher *info);
 static void refresh_model_row (
                     GNCImportMainMatcher *gui,
@@ -651,7 +650,6 @@ gnc_gen_trans_onButtonPressed_cb (GtkTreeView *treeview,
 
 static gboolean
 gnc_gen_trans_onPopupMenu_cb (GtkTreeView *treeview,
-                              GdkEvent *event,
                               GNCImportMainMatcher *info)
 {
     GtkTreeSelection *selection;

commit a9d51dd9e305a581d5c193a31a3336c213b97ea0
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Fri Jan 24 22:58:06 2020 +0800

    [new-owner-report] RHS invoice amount links APAR instead of transfer
    
    because invoices can have more than 1 non-APAR split.

diff --git a/gnucash/report/business-reports/new-owner-report.scm b/gnucash/report/business-reports/new-owner-report.scm
index 0d4c177b9..ebe76f470 100644
--- a/gnucash/report/business-reports/new-owner-report.scm
+++ b/gnucash/report/business-reports/new-owner-report.scm
@@ -637,8 +637,7 @@
                        (gnc:make-gnc-monetary currency overpayment))
                       result)))))
         (((inv . APAR-split) . rest)
-         (let* ((tfr-txn (gncInvoiceGetPostedTxn inv))
-                (tfr-split (txn->transfer-split tfr-txn)))
+         (let* ((tfr-txn (gncInvoiceGetPostedTxn inv)))
            (lp rest
                (cons (make-link-data
                       (qof-print-date (gncInvoiceGetDatePosted inv))
@@ -655,7 +654,7 @@
                          currency (AP-negate (- (xaccSplitGetAmount APAR-split))))))
                       (gnc:make-html-text
                        (gnc:html-markup-anchor
-                        (gnc:split-anchor-text tfr-split)
+                        (gnc:split-anchor-text APAR-split)
                         (gnc:make-gnc-monetary
                          currency (invoice->total inv)))))
                      result)))))))

commit d91a9512a48306c399a9eb8b41ebb0e87b3fcac2
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Fri Jan 24 22:34:34 2020 +0800

    [new-owner-report] RHS payments with >1 non-APAR splits all shown
    
    Payments by default have 1 non-APAR split. But UI allows modification
    to multiple non-APAR splits. Render each in different line.

diff --git a/gnucash/report/business-reports/new-owner-report.scm b/gnucash/report/business-reports/new-owner-report.scm
index 5504dcc73..0d4c177b9 100644
--- a/gnucash/report/business-reports/new-owner-report.scm
+++ b/gnucash/report/business-reports/new-owner-report.scm
@@ -534,23 +534,27 @@
               link-splits-seen
               (cons (let* ((lot-split (car lot-splits))
                            (lot-txn (xaccSplitGetParent lot-split))
-                           (lot-amt (AP-negate (- (xaccSplitGetAmount lot-split))))
-                           (tfr-split (txn->transfer-split lot-txn)))
+                           (pmt-splits (xaccTransGetPaymentAcctSplitList lot-txn)))
+                      (define (split->anchor split negate?)
+                        (gnc:html-markup-anchor
+                         (gnc:split-anchor-text split)
+                         (gnc:make-gnc-monetary
+                          (xaccAccountGetCommodity (xaccSplitGetAccount split))
+                          ((if negate? - +)
+                           (AP-negate (xaccSplitGetAmount split))))))
                       (make-link-data
                        (qof-print-date (xaccTransGetDate lot-txn))
                        (split->reference lot-split)
                        (split->type-str lot-split)
                        (splits->desc (list lot-split))
-                       (gnc:make-html-text
-                        (gnc:html-markup-anchor
-                         (gnc:split-anchor-text lot-split)
-                         (gnc:make-gnc-monetary currency lot-amt)))
-                       (gnc:make-html-text
-                        (gnc:html-markup-anchor
-                         (gnc:split-anchor-text tfr-split)
-                         (gnc:make-gnc-monetary
-                          (xaccAccountGetCommodity (xaccSplitGetAccount tfr-split))
-                          (AP-negate (xaccSplitGetAmount tfr-split)))))))
+                       (gnc:make-html-text (split->anchor lot-split #t))
+                       (let lp1 ((pmt-splits pmt-splits) (acc '()))
+                         (match pmt-splits
+                           (() (apply gnc:make-html-text acc))
+                           ((pmt-split . rest)
+                            (lp1 rest (cons* (split->anchor pmt-split #f)
+                                             (gnc:html-markup-br)
+                                             acc)))))))
                     result)))
 
          ;; This is a lot link split. Find corresponding documents,

commit a01bfa6843de7c98b8876f4632b5473b0b6ac073
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Fri Jan 24 18:50:35 2020 +0800

    [new-owner-report] RHS partial amount/amount separated
    
    RHS partial-amount and amount are shown in separate cells.
    
    also modify test-owner-report.scm to allow pass
    
    the $2.00 is strictly a RHS amount but I'm not sure how to exclude it
    using sxpath.

diff --git a/gnucash/report/business-reports/new-owner-report.scm b/gnucash/report/business-reports/new-owner-report.scm
index 9a9c839b5..5504dcc73 100644
--- a/gnucash/report/business-reports/new-owner-report.scm
+++ b/gnucash/report/business-reports/new-owner-report.scm
@@ -88,12 +88,13 @@
   (assv-ref owner-string-alist key))
 
 (define-record-type :link-data
-  (make-link-data date ref type desc amount)
+  (make-link-data date ref type desc partial-amount amount)
   link-data?
   (date link-data-date)
   (ref link-data-ref)
   (type link-data-type)
   (desc link-data-desc)
+  (partial-amount link-data-partial-amount)
   (amount link-data-amount))
 
 (define-record-type :link-desc-amount
@@ -151,7 +152,7 @@
            (list 'lhs-cols date? due? ref? type? desc? sale? tax? credit? debit? bal?)
            (list 'ptt-span date? due? ref? type? desc?)
            (list 'mid-spac spacer?)
-           (list 'rhs-cols date? ref? type? desc? amt?)
+           (list 'rhs-cols date? ref? type? desc? amt? amt?)
            (list 'rhs-span date? ref? type? desc?)))
          (cols-list (assq-ref cols-alist section)))
     (count identity cols-list)))
@@ -220,6 +221,8 @@
        (if (ref-col column-vector) (addto! heading-list (_ "Reference")))
        (if (type-col column-vector) (addto! heading-list (_ "Type")))
        (if (desc-col column-vector) (addto! heading-list (_ "Description")))
+       (if (or (debit-col column-vector) (credit-col column-vector))
+           (addto! heading-list (_ "Partial Amount")))
        (if (or (debit-col column-vector) (credit-col column-vector))
            (addto! heading-list (_ "Amount")))))
     (reverse heading-list)))
@@ -352,6 +355,9 @@
        (addif (ref-col column-vector) (link-data-ref link-data))
        (addif (type-col column-vector) (link-data-type link-data))
        (addif (desc-col column-vector) (link-data-desc link-data))
+       (addif (or (debit-col column-vector) (credit-col column-vector))
+              (gnc:make-html-table-cell/markup
+               "number-cell" (link-data-partial-amount link-data)))
        (addif (or (debit-col column-vector) (credit-col column-vector))
               (gnc:make-html-table-cell/markup
                "number-cell" (link-data-amount link-data)))))
@@ -362,8 +368,8 @@
          (addif (< 0 cols) (gnc:make-html-table-cell/size
                             1 cols (link-desc-amount-desc link-data)))
          (addif (or (debit-col column-vector) (credit-col column-vector))
-                (gnc:make-html-table-cell/markup
-                 "number-cell" (link-desc-amount-amount link-data))))))
+                (gnc:make-html-table-cell/size/markup
+                 1 2 "number-cell" (link-desc-amount-amount link-data))))))
 
      ((link-blank? link-data)
       (make-list (num-cols column-vector 'rhs-cols) #f))
@@ -498,6 +504,7 @@
          (split->reference posting-split)
          (split->type-str posting-split)
          (splits->desc (list posting-split))
+         #f
          (gnc:make-html-text
           (gnc:html-markup-anchor
            (gnc:split-anchor-text (txn->transfer-split posting-txn))
@@ -537,8 +544,8 @@
                        (gnc:make-html-text
                         (gnc:html-markup-anchor
                          (gnc:split-anchor-text lot-split)
-                         (gnc:make-gnc-monetary currency lot-amt))
-                        " of "
+                         (gnc:make-gnc-monetary currency lot-amt)))
+                       (gnc:make-html-text
                         (gnc:html-markup-anchor
                          (gnc:split-anchor-text tfr-split)
                          (gnc:make-gnc-monetary
@@ -641,8 +648,8 @@
                        (gnc:html-markup-anchor
                         (gnc:split-anchor-text APAR-split)
                         (gnc:make-gnc-monetary
-                         currency (AP-negate (- (xaccSplitGetAmount APAR-split)))))
-                       " of "
+                         currency (AP-negate (- (xaccSplitGetAmount APAR-split))))))
+                      (gnc:make-html-text
                        (gnc:html-markup-anchor
                         (gnc:split-anchor-text tfr-split)
                         (gnc:make-gnc-monetary
diff --git a/gnucash/report/business-reports/test/test-owner-report.scm b/gnucash/report/business-reports/test/test-owner-report.scm
index 94eed7d30..9a9271786 100644
--- a/gnucash/report/business-reports/test/test-owner-report.scm
+++ b/gnucash/report/business-reports/test/test-owner-report.scm
@@ -340,7 +340,7 @@
         ((sxpath `(// (table 3) // tr (td 5) // *text*))
          sxml))
       (test-equal "credit-amounts"
-        '("$11.50" "$7.50" "$8.50" "$4.00" "$200.00" "$6.75" "$8.00")
+        '("$11.50" "$2.00" "$7.50" "$8.50" "$4.00" "$200.00" "$6.75" "$8.00")
         ((sxpath `(// (table 3) // tr (td 6) // *text*))
          sxml))
       (test-equal "debit-amounts"

commit 8e34a7999dbcbfbea937417009505018487488e2
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Thu Jan 23 22:45:19 2020 +0800

    [new-owner-report] LHS invoice->RHS payments show partial amounts

diff --git a/gnucash/report/business-reports/new-owner-report.scm b/gnucash/report/business-reports/new-owner-report.scm
index eb72ebc2f..9a9c839b5 100644
--- a/gnucash/report/business-reports/new-owner-report.scm
+++ b/gnucash/report/business-reports/new-owner-report.scm
@@ -490,20 +490,6 @@
                            ((detailed) (list (make-link-blank))))))
 
   (define (make-invoice->payments-table invoice)
-    (define (tfr-split->row tfr-split)
-      (let* ((pmt-txn (xaccSplitGetParent tfr-split))
-             (tfr-acct (xaccSplitGetAccount tfr-split))
-             (tfr-curr (xaccAccountGetCommodity tfr-acct))
-             (tfr-amt (AP-negate (xaccSplitGetAmount tfr-split))))
-        (make-link-data
-         (qof-print-date (xaccTransGetDate pmt-txn))
-         (split->reference tfr-split)
-         (split->type-str tfr-split)
-         (splits->desc (list tfr-split))
-         (gnc:make-html-text
-          (gnc:html-markup-anchor
-           (gnc:split-anchor-text (txn->transfer-split pmt-txn))
-           (gnc:make-gnc-monetary tfr-curr tfr-amt))))))
     (define (posting-split->row posting-split)
       (let* ((posting-txn (xaccSplitGetParent posting-split))
              (inv (gncInvoiceGetInvoiceFromLot (xaccSplitGetLot posting-split))))
@@ -519,7 +505,6 @@
             currency (AP-negate (xaccSplitGetAmount posting-split))))))))
     (let ((lot (gncInvoiceGetPostedLot invoice)))
       (let lp ((lot-splits (gnc-lot-get-split-list lot))
-               (transfer-splits-seen '())
                (link-splits-seen '())
                (result '()))
         (cond
@@ -538,24 +523,28 @@
          ;; This is the regular payment split. Find Transfer acct
          ;; splits, and if haven't encountered before, add to result rows.
          ((txn-is-payment? (xaccSplitGetParent (car lot-splits)))
-          (let lp1 ((pmt-splits (xaccTransGetPaymentAcctSplitList
-                                 (xaccSplitGetParent (car lot-splits))))
-                    (transfer-splits-seen transfer-splits-seen)
-                    (result result))
-            ;; this is a secondary 'inner loop', looping
-            ;; lot-split->tfr-account-splits.
-            (cond
-             ;; finished tfr-splits. loop main lot-splits.
-             ((null? pmt-splits)
-              (lp (cdr lot-splits) transfer-splits-seen link-splits-seen result))
-             ;; we've encountered this tfr-split before. skip.
-             ((member (car pmt-splits) transfer-splits-seen)
-              (lp1 (cdr pmt-splits) transfer-splits-seen result))
-             ;; new tfr-split. render in original currency.
-             (else
-              (lp1 (cdr pmt-splits)
-                   (cons (car pmt-splits) transfer-splits-seen)
-                   (cons (tfr-split->row (car pmt-splits)) result))))))
+          (lp (cdr lot-splits)
+              link-splits-seen
+              (cons (let* ((lot-split (car lot-splits))
+                           (lot-txn (xaccSplitGetParent lot-split))
+                           (lot-amt (AP-negate (- (xaccSplitGetAmount lot-split))))
+                           (tfr-split (txn->transfer-split lot-txn)))
+                      (make-link-data
+                       (qof-print-date (xaccTransGetDate lot-txn))
+                       (split->reference lot-split)
+                       (split->type-str lot-split)
+                       (splits->desc (list lot-split))
+                       (gnc:make-html-text
+                        (gnc:html-markup-anchor
+                         (gnc:split-anchor-text lot-split)
+                         (gnc:make-gnc-monetary currency lot-amt))
+                        " of "
+                        (gnc:html-markup-anchor
+                         (gnc:split-anchor-text tfr-split)
+                         (gnc:make-gnc-monetary
+                          (xaccAccountGetCommodity (xaccSplitGetAccount tfr-split))
+                          (AP-negate (xaccSplitGetAmount tfr-split)))))))
+                    result)))
 
          ;; This is a lot link split. Find corresponding documents,
          ;; and add to result rows.
@@ -569,7 +558,7 @@
             (cond
              ;; finished peer-splits. loop main lot-splits.
              ((null? link-splits)
-              (lp (cdr lot-splits) transfer-splits-seen link-splits-seen result))
+              (lp (cdr lot-splits) link-splits-seen result))
              ;; peer split is of same sign as lot split. skip.
              ((sign-equal? (xaccSplitGetAmount (car lot-splits))
                            (xaccSplitGetAmount (car link-splits)))
@@ -589,7 +578,7 @@
          ;; This is either the invoice posting transaction, or a
          ;; TXN-TYPE-NONE txn which shouldn't happen. Skip both.
          (else
-          (lp (cdr lot-splits) transfer-splits-seen link-splits-seen result))))))
+          (lp (cdr lot-splits) link-splits-seen result))))))
 
   (define (payment-txn->overpayment-and-invoices txn)
     (let lp ((splits (xaccTransGetAPARAcctSplitList txn #f))

commit cbb743175241a28f888e7cd20f30c6c5f5948c17
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Thu Jan 23 22:05:34 2020 +0800

    [new-owner-report] LHS payment->RHS invoices show partial amounts

diff --git a/gnucash/report/business-reports/new-owner-report.scm b/gnucash/report/business-reports/new-owner-report.scm
index 460b4f57b..eb72ebc2f 100644
--- a/gnucash/report/business-reports/new-owner-report.scm
+++ b/gnucash/report/business-reports/new-owner-report.scm
@@ -607,7 +607,7 @@
                    overpayment
                    (if (member invoice invoices)
                        invoices
-                       (cons invoice invoices)))))))))
+                       (cons (cons invoice split) invoices)))))))))
 
   (define (make-payment->invoices-list txn)
     (list
@@ -615,17 +615,18 @@
       (apply
        gnc:make-html-text
        (map
-        (lambda (inv)
-          (gnc:html-markup-anchor
-           (gnc:invoice-anchor-text inv)
-           (gncInvoiceGetID inv)))
+        (lambda (inv-split-pair)
+          (let ((inv (car inv-split-pair)))
+            (gnc:html-markup-anchor
+             (gnc:invoice-anchor-text inv)
+             (gncInvoiceGetID inv))))
         (cdr (payment-txn->overpayment-and-invoices txn)))))))
 
   (define (make-payment->invoices-table txn)
     (define overpayment-and-invoices (payment-txn->overpayment-and-invoices txn))
-    (let lp ((invoices (cdr overpayment-and-invoices))
+    (let lp ((invoice-split-pairs (cdr overpayment-and-invoices))
              (result '()))
-      (match invoices
+      (match invoice-split-pairs
         (()
          (let ((overpayment (car overpayment-and-invoices)))
            (reverse
@@ -635,7 +636,7 @@
                        (_ "Pre-Payment")
                        (gnc:make-gnc-monetary currency overpayment))
                       result)))))
-        ((inv . rest)
+        (((inv . APAR-split) . rest)
          (let* ((tfr-txn (gncInvoiceGetPostedTxn inv))
                 (tfr-split (txn->transfer-split tfr-txn)))
            (lp rest
@@ -646,11 +647,17 @@
                         (gnc:invoice-anchor-text inv)
                         (gncInvoiceGetID inv)))
                       (gncInvoiceGetTypeString inv)
-                      (splits->desc (txn->assetliab-splits tfr-txn))
+                      (splits->desc (list APAR-split))
                       (gnc:make-html-text
+                       (gnc:html-markup-anchor
+                        (gnc:split-anchor-text APAR-split)
+                        (gnc:make-gnc-monetary
+                         currency (AP-negate (- (xaccSplitGetAmount APAR-split)))))
+                       " of "
                        (gnc:html-markup-anchor
                         (gnc:split-anchor-text tfr-split)
-                        (gnc:make-gnc-monetary currency (invoice->total inv)))))
+                        (gnc:make-gnc-monetary
+                         currency (invoice->total inv)))))
                      result)))))))
 
   (define (invoice->sale invoice)

commit 3866d9bb7c31c80279dbd96dd811a67a9480dee6
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Thu Jan 23 21:31:04 2020 +0800

    [new-owner-report] refactor. separate LHS inv/pmt processing.
    
    1. handle accumulation of totals and printing of balance-b/f row
    earlier
    2. separate LHS processing into invoice and payment.

diff --git a/gnucash/report/business-reports/new-owner-report.scm b/gnucash/report/business-reports/new-owner-report.scm
index 57aea2856..460b4f57b 100644
--- a/gnucash/report/business-reports/new-owner-report.scm
+++ b/gnucash/report/business-reports/new-owner-report.scm
@@ -710,8 +710,22 @@
       (gnc:warn "sanity check fail" txn)
       (lp printed? odd-row? (cdr splits) total debit credit tax sale))
 
+     ;; txn-date < start-date. skip display, accumulate amounts
+     ((< (xaccTransGetDate (xaccSplitGetParent (car splits))) start-date)
+      (let* ((txn (xaccSplitGetParent (car splits)))
+             (value (AP-negate (xaccTransGetAccountAmount txn acc))))
+        (lp printed? odd-row? (cdr splits) (+ total value)
+            debit credit tax sale)))
+
+     ;; if balance row hasn't been rendered, consider
+     ;; adding here.  skip if value=0.
+     ((not printed?)
+      (let ((print? (and (bal-col used-columns) (not (zero? total)))))
+        (if print? (add-balance-row odd-row? total))
+        (lp #t (not print?) splits total debit credit tax sale)))
+
      ;; start printing txns.
-     (else
+     ((txn-is-invoice? (xaccSplitGetParent (car splits)))
       (let* ((split (car splits))
              (txn (xaccSplitGetParent split))
              (date (xaccTransGetDate txn))
@@ -719,52 +733,57 @@
              (value (AP-negate orig-value))
              (invoice (gncInvoiceGetInvoiceFromTxn txn)))
 
-        (cond
-         ;; txn-date < start-date. skip display, accumulate amounts
-         ((< date start-date)
-          (lp printed? odd-row? (cdr splits) (+ total value)
-              debit credit tax sale))
-
-         ;; if balance row hasn't been rendered, consider
-         ;; adding here.  skip if value=0.
-         ((not printed?)
-          (let ((print? (and (bal-col used-columns) (not (zero? total)))))
-            (if print? (add-balance-row odd-row? total))
-            (lp #t (not print?) splits total debit credit tax sale)))
+        (add-row
+         table odd-row? used-columns date (invoice->due-date invoice)
+         (split->reference split)
+         (split->type-str split)
+         (splits->desc (list split))
+         currency (+ total value)
+         (and (< orig-value 0) orig-value)
+         (and (>= orig-value 0) orig-value)
+         (invoice->sale invoice) (invoice->tax invoice)
+         split
+         link-option
+         (case link-option
+           ((simple) (list (list (and (gncInvoiceIsPaid invoice) (_ "Paid")))))
+           ((detailed) (make-invoice->payments-table invoice))
+           (else '(()))))
+
+        (lp printed? (not odd-row?) (cdr splits) (+ total value)
+            (if (< 0 orig-value) (+ debit orig-value) debit)
+            (if (< 0 orig-value) credit (- credit orig-value))
+            (+ tax (or (invoice->tax invoice) 0))
+            (+ sale (or (invoice->sale invoice) 0)))))
+
+     ((txn-is-payment? (xaccSplitGetParent (car splits)))
+      (let* ((split (car splits))
+             (txn (xaccSplitGetParent split))
+             (date (xaccTransGetDate txn))
+             (orig-value (xaccTransGetAccountAmount txn acc))
+             (value (AP-negate orig-value))
+             (invoice (gncInvoiceGetInvoiceFromTxn txn)))
 
-         (else
-          (add-row
-           table odd-row? used-columns date (invoice->due-date invoice)
-           (split->reference split)
-           (split->type-str split)
-           (splits->desc
-            (cond
-             ((txn-is-invoice? txn) (list split))
-             ((txn-is-payment? txn) (txn->assetliab-splits txn))))
-           currency (+ total value)
-           (and (< orig-value 0) orig-value)
-           (and (>= orig-value 0) orig-value)
-           (invoice->sale invoice) (invoice->tax invoice)
-           split
-           link-option
-           (cond
-            ((and (txn-is-invoice? txn) (eq? link-option 'simple))
-             (if (gncInvoiceIsPaid invoice)
-                 (list (list (_ "Paid")))
-                 (list (list #f))))
-            ((and (txn-is-invoice? txn) (eq? link-option 'detailed))
-             (make-invoice->payments-table invoice))
-            ((and (txn-is-payment? txn) (eq? link-option 'simple))
-             (make-payment->invoices-list txn))
-            ((and (txn-is-payment? txn) (eq? link-option 'detailed))
-             (make-payment->invoices-table txn))
-            (else '(()))))
-
-          (lp printed? (not odd-row?) (cdr splits) (+ total value)
-              (if (< 0 orig-value) (+ debit orig-value) debit)
-              (if (< 0 orig-value) credit (- credit orig-value))
-              (+ tax (or (invoice->tax invoice) 0))
-              (+ sale (or (invoice->sale invoice) 0))))))))))
+        (add-row
+         table odd-row? used-columns date (invoice->due-date invoice)
+         (split->reference split)
+         (split->type-str split)
+         (splits->desc (txn->assetliab-splits txn))
+         currency (+ total value)
+         (and (< orig-value 0) orig-value)
+         (and (>= orig-value 0) orig-value)
+         (invoice->sale invoice) (invoice->tax invoice)
+         split
+         link-option
+         (case link-option
+           ((simple) (make-payment->invoices-list txn))
+           ((detailed) (make-payment->invoices-table txn))
+           (else '(()))))
+
+        (lp printed? (not odd-row?) (cdr splits) (+ total value)
+            (if (< 0 orig-value) (+ debit orig-value) debit)
+            (if (< 0 orig-value) credit (- credit orig-value))
+            (+ tax (or (invoice->tax invoice) 0))
+            (+ sale (or (invoice->sale invoice) 0))))))))
 
 (define (options-generator owner-type)
 

commit a033b7b1e94f7e7d5b20c39f9f0ffd0864119f91
Merge: ad612c482 fefe427bf
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Thu Jan 23 18:50:09 2020 +0100

    Merge branch 'bugs_ibi' of https://github.com/ekinonnakapito/gnucash into maint


commit ad612c482bdc760b08b52195a921b92b96565abe
Merge: 4537c1de3 7cd249567
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Thu Jan 23 15:34:11 2020 +0100

    Merge branch 'maint' of https://github.com/loftx/gnucash into maint


commit 4537c1de365880fe89554289c3e2f43edeff53de
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Wed Jan 22 22:40:11 2020 +0100

    Bug 794916 - Fails to find environment file at startup when installation prefix is '/opt'
    
    Update on this bug. Before doing the binreloc dance on various
    paths check if the calculated dynamic prefix is still the same
    as the compile time PREFIX. If so, just stick with the compile
    time path names as this means the application wasn't relocated
    anyway. Only if the dynamic prefix is different, try to
    recalculate the requested paths relative to the dynamic
    prefix.
    Together with the configure time fix to detect /etc/opt is
    outside of the /opt prefix, this eliminates the need for further
    special case handling of the sysconfig directory so that
    special case handling is removed.

diff --git a/libgnucash/core-utils/binreloc.c b/libgnucash/core-utils/binreloc.c
index 741df778f..589e71c6d 100644
--- a/libgnucash/core-utils/binreloc.c
+++ b/libgnucash/core-utils/binreloc.c
@@ -459,7 +459,10 @@ gnc_gbr_find_prefix (const gchar *default_prefix)
  *
  * If compiled_dir exists and is an absolute path then we check the dynamic
  * prefix and if it's NULL fall back first on the passed-in default and then on
- * compiled_dir; otherwise we pass the compiled PREFIX value as a default to
+ * compiled_dir;
+ * otherwise if the dynamic prefix turns out to be the compile time defined PREFIX
+ * just use that
+ * otherwise we pass the compiled PREFIX value as a default to
  * gnc_gbr_find_prefix, remove the PREFIX part (if any) from the compiled_dir
  * and append that to the retrieved prefix.
  */
@@ -471,6 +474,9 @@ find_component_directory (const gchar *default_dir, const gchar* compiled_dir)
     prefix = gnc_gbr_find_prefix (NULL);
     if (prefix == NULL)
         return g_strdup (default_dir ? default_dir : compiled_dir);
+    else if (!g_strcmp0 (prefix, PREFIX))
+        return g_strdup (compiled_dir);
+
     subdir = gnc_file_path_relative_part(PREFIX, compiled_dir);
     if (g_strcmp0 (compiled_dir, subdir) == 0)
     {
@@ -544,7 +550,6 @@ gchar *
 gnc_gbr_find_lib_dir (const gchar *default_lib_dir)
 {
     return find_component_directory (default_lib_dir, LIBDIR);
-
 }
 
 /** Locate the application's configuration files folder.
@@ -563,62 +568,7 @@ gnc_gbr_find_lib_dir (const gchar *default_lib_dir)
 gchar *
 gnc_gbr_find_etc_dir (const gchar *default_etc_dir)
 {
-    gchar *prefix, *dir, *sysconfdir;
-
-    prefix = gnc_gbr_find_prefix (NULL);
-    if (prefix == NULL)
-    {
-        /* BinReloc not initialized. */
-        if (default_etc_dir != NULL)
-            return g_strdup (default_etc_dir);
-        else
-            return NULL;
-    }
-
-    if (g_path_is_absolute (SYSCONFDIR))
-    {
-        sysconfdir = gnc_file_path_relative_part (PREFIX, SYSCONFDIR);
-        if (g_strcmp0 (sysconfdir, SYSCONFDIR) == 0)
-        {
-            g_free (sysconfdir);
-            sysconfdir = gnc_file_path_relative_part("/", SYSCONFDIR);
-        }
-        dir = g_build_filename (prefix, sysconfdir, NULL);
-        g_free (sysconfdir);
-    }
-    else if ((g_strcmp0 (PREFIX, "/opt") == 0) ||
-             (g_str_has_prefix (PREFIX, "/opt/")))
-    {
-        /* If the prefix is "/opt/..." the etc stuff will be installed in
-         * "SYSCONFDIR/opt/...", while the rest will be in "/opt/..."
-         * If this gets relocated after (make install), there will be another
-         * prefix prepended to all of that:
-         * "prefix2/opt/..."
-         * "prefix2/SYSCONFDIR/opt/..."
-         * Note: this most likely won't work on Windows. Don't try a /opt
-         * prefix on that platform...
-         */
-        gchar *std_etc_dir = g_build_filename ("/", SYSCONFDIR, PREFIX, NULL);
-
-        gchar *base_prefix_pos = g_strstr_len (prefix, -1, PREFIX);
-        if (!base_prefix_pos || base_prefix_pos == prefix)
-            dir = g_build_filename ("/", std_etc_dir, NULL);
-        else
-        {
-            gchar *prefix2 = g_strndup (prefix, base_prefix_pos - prefix);
-            dir = g_build_filename (prefix2, std_etc_dir, NULL);
-        }
-        g_free (std_etc_dir);
-
-    }
-    else
-    {
-        sysconfdir = gnc_file_path_relative_part(PREFIX, SYSCONFDIR);
-        dir = g_build_filename (prefix, sysconfdir, NULL);
-        g_free (sysconfdir);
-    }
-    g_free (prefix);
-    return dir;
+    return find_component_directory (default_etc_dir, SYSCONFDIR);
 }
 
 

commit 031d805bb24b1e8bdbfcfb2aa46b2ebe41e0161d
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Wed Jan 22 22:05:20 2020 +0100

    Fix binreloc test for all install paths inside prefix
    
    The FHS standard rules for a /opt based prefix sets a sysconfig dir to
    /etc/opt/... which is outside of /opt. This was however not detected
    properly. It now is.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a1e58c77d..110315aef 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -74,7 +74,7 @@ foreach(install_dir ${CMAKE_INSTALL_FULL_BINDIR}
     ${CMAKE_INSTALL_FULL_SYSCONFDIR} ${CMAKE_INSTALL_FULL_DATAROOTDIR}
     ${CMAKE_INSTALL_FULL_DATADIR} ${CMAKE_INSTALL_FULL_LIBDIR})
   string(FIND ${install_dir} ${CMAKE_INSTALL_PREFIX} in_prefix)
-  if(in_prefix EQUAL -1)
+  if(NOT (in_prefix EQUAL 0))
     set(ENABLE_BINRELOC OFF)
     message(WARNING "${install_dir} is set outside of the intallation prefix ${CMAKE_INSTALL_PREFIX}. That will break relocation so ENABLE_BINRELOC is set to off. With relocation disabled GnuCash will run only in its configured install location. You must set GNC_UNINSTALLED=1 and GNC_BUILDDIR=/path/to/builddir to run from the build directory. GnuCash will not run from a DESTDIR.")
     break()

commit 93ff991b31160a798424a6ea94394b1e3a510330
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sun Jan 19 21:16:36 2020 +0800

    [new-aging] speedup/cleanup. delay txn type filtering of splits
    
    APAR splits were filtered to exclude invalid txn types. Omit
    filtering, and skip (and log) invalid txn types during each account
    splits loop.

diff --git a/gnucash/report/business-reports/new-aging.scm b/gnucash/report/business-reports/new-aging.scm
index 0f1e57d2c..28ecec961 100644
--- a/gnucash/report/business-reports/new-aging.scm
+++ b/gnucash/report/business-reports/new-aging.scm
@@ -168,11 +168,10 @@ exist but have no suitable transactions."))
     (fold-right (lambda (opt elt prev) (if opt (cons elt prev) prev))
                 '() address-list-options result-list)))
 
-(define (txn-is-invoice? txn)
-  (eqv? (xaccTransGetTxnType txn) TXN-TYPE-INVOICE))
-
-(define (txn-is-payment? txn)
-  (eqv? (xaccTransGetTxnType txn) TXN-TYPE-PAYMENT))
+(define (split-is-not-business? split)
+  (let ((type (xaccTransGetTxnType (xaccSplitGetParent split))))
+    (not (or (eqv? type TXN-TYPE-INVOICE)
+             (eqv? type TXN-TYPE-PAYMENT)))))
 
 (define (gnc-owner-equal? a b)
   (string=? (gncOwnerReturnGUID a) (gncOwnerReturnGUID b)))
@@ -269,11 +268,7 @@ exist but have no suitable transactions."))
 
         ;; loop into each APAR account
         (let loop ((accounts accounts)
-                   (splits (filter
-                            (lambda (split)
-                              (or (txn-is-invoice? (xaccSplitGetParent split))
-                                  (txn-is-payment? (xaccSplitGetParent split))))
-                            splits))
+                   (splits splits)
                    (accounts-and-owners '())
                    (invalid-splits '())
                    (tofree '()))
@@ -393,6 +388,16 @@ exist but have no suitable transactions."))
                          invalid-splits
                          tofree))
 
+                  ;; txn type != TXN_TYPE_INVOICE or TXN_TYPE_PAYMENT.
+                  (((? split-is-not-business? this) . rest)
+                   (let ((type (xaccTransGetTxnType (xaccSplitGetParent this))))
+                     (lp rest
+                         acc-totals
+                         (cons (list (format #f (_ "Invalid Txn Type ~a") type) this)
+                               invalid-splits)
+                         tofree
+                         owners-and-aging)))
+
                   ;; some payment splits may have no owner in this
                   ;; account. skip. see bug 797506.
                   (((? split-owner-is-invalid? this) . rest)

commit c29409f45a66dcf4fffe5986682f4081b47c4c2a
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sun Jan 19 19:22:33 2020 +0800

    Bug 797591 - multiperiod b/s and PnL reports: add style sheet 'easy'
    
    Change headers & subtotals row markup to "primary-subheading".

diff --git a/gnucash/report/standard-reports/balsheet-pnl.scm b/gnucash/report/standard-reports/balsheet-pnl.scm
index faa2c0927..bed290824 100644
--- a/gnucash/report/standard-reports/balsheet-pnl.scm
+++ b/gnucash/report/standard-reports/balsheet-pnl.scm
@@ -407,24 +407,28 @@ also show overall period profit & loss."))
   (define (make-narrow-cell)
     (gnc:make-html-table-cell/min-width 1))
 
-  (define (add-indented-row indent label label-markup amount-indent rest)
+  (define (add-indented-row indent label label-markup row-markup amount-indent rest)
     (when (or (not depth-limit) (<= indent depth-limit))
-      (gnc:html-table-append-row!
-       table
-       (append (if disable-account-indent?
-                   '() (make-list-thunk indent make-narrow-cell))
-               (list (if label-markup
-                         (gnc:make-html-table-cell/size/markup
-                          1 (if disable-account-indent? 1 (- maxindent indent))
-                          label-markup label)
-                         (gnc:make-html-table-cell/size
-                          1 (if disable-account-indent? 1 (- maxindent indent))
-                          label)))
-               (gnc:html-make-empty-cells
-                (if amount-indenting? (1- amount-indent) 0))
-               rest
-               (gnc:html-make-empty-cells
-                (if amount-indenting? (- maxindent amount-indent) 0))))))
+      (let* ((account-cell (if label-markup
+                               (gnc:make-html-table-cell/size/markup
+                                1 (if disable-account-indent? 1 (- maxindent indent))
+                                label-markup label)
+                               (gnc:make-html-table-cell/size
+                                1 (if disable-account-indent? 1 (- maxindent indent))
+                                label)))
+             (row (append
+                   (if disable-account-indent?
+                       '()
+                       (make-list-thunk indent make-narrow-cell))
+                   (list account-cell)
+                   (gnc:html-make-empty-cells
+                    (if amount-indenting? (1- amount-indent) 0))
+                   rest
+                   (gnc:html-make-empty-cells
+                    (if amount-indenting? (- maxindent amount-indent) 0)))))
+        (if row-markup
+            (gnc:html-table-append-row/markup! table row-markup row)
+            (gnc:html-table-append-row! table row)))))
 
   (define (monetary+ . monetaries)
     ;; usage: (monetary+ monetary...)
@@ -549,6 +553,7 @@ also show overall period profit & loss."))
                           (if account-style-normal?
                               "text-cell"
                               "total-label-cell")
+                          #f
                           (- maxindent lvl)
                           (map
                            (lambda (col-datum)
@@ -574,6 +579,7 @@ also show overall period profit & loss."))
         (add-indented-row lvl-curr
                           (render-account curr #f)
                           "text-cell"
+                          #f
                           (- maxindent lvl-curr account-indent)
                           (map
                            (lambda (col-datum)
@@ -595,6 +601,7 @@ also show overall period profit & loss."))
       (add-indented-row 0
                         title
                         "total-label-cell"
+                        "primary-subheading"
                         maxindent
                         (if get-col-header-fn
                             (map
@@ -643,6 +650,7 @@ also show overall period profit & loss."))
       (add-indented-row 0
                         (string-append (_ "Total For ") title)
                         "total-label-cell"
+                        "primary-subheading"
                         maxindent
                         (map
                          (lambda (col-datum)

commit 24b46b1c3601bfcfaafa5f3209889520a224ed8a
Author: gnucash-dev <gnucash-dev at LenovoFedora30VM.home>
Date:   Mon Jan 20 17:28:49 2020 -0800

    Update US Income Tax information for 2019.

diff --git a/libgnucash/tax/us/txf.scm b/libgnucash/tax/us/txf.scm
index ef551bea3..250741788 100644
--- a/libgnucash/tax/us/txf.scm
+++ b/libgnucash/tax/us/txf.scm
@@ -125,13 +125,13 @@
     (cons 'N269 #(none "F1040" "Taxable fringe benefits" 1 #f "Taxable fringe" ((2018 "1") (1981 "7") (1980 "8"))))
     (cons 'N487 #(current "F1040" "Dividend, non-taxable" 3 #f "_DivInc TaxFree" ((2018 "2a") (1988 "8b") (1987 "9"))))
     (cons 'N683 #(none "F1040" "Qualified dividend" 3 #f "" ((2018 "3a") (2003 "9b"))))
-    (cons 'N261 #(none "F1040" "Alimony received" 1 #f "Alimony receive" ((2018 "Schedule 1, 11") (1988 "11") (1987 "12") (1986 "11") (1981 "10") (1980 "12"))))
+    (cons 'N261 #(none "F1040" "Alimony received" 1 #f "Alimony receive" ((2019 "Schedule 1, 2a") (2018 "Schedule 1, 11") (1988 "11") (1987 "12") (1986 "11") (1981 "10") (1980 "12"))))
     (cons 'N519 #(none "F1040" "RR retirement income" 1 #f "RR retirement i" ((2018 "5a") (1994 "20a") (1988 "21a") (1987 "20a") (1984 "21a"))))
     (cons 'N520 #(none "F1040" "RR retirement inc, spouse" 1 #f "RR retirement i" ((2018 "5a") (1994 "20a") (1988 "21a") (1987 "20a") (1984 "21a"))))
     (cons 'N266 #(none "F1040" "Soc. Sec. income" 1 #f "Social Security" ((2018 "5a") (1994 "20a") (1988 "21a") (1987 "20a") (1984 "21a"))))
     (cons 'N483 #(none "F1040" "Soc. Sec. income, spouse" 1 #f "Social Security" ((2018 "5a") (1994 "20a") (1988 "21a") (1987 "20a") (1984 "21a"))))
-    (cons 'N257 #(none "F1040" "Other income-misc." 1 #f "Other income, m" ((2018 "Schedule 1, 21") (1994 "21") (1988 "22") (1987 "21") (1984 "22") (1982 "21") (1981 "20") (1980 "21"))))
-    (cons 'N259 #(none "F1040" "Prizes, awards" 1 #f "Prizes, awards" ((2018 "Schedule 1, 21") (1994 "21") (1988 "22") (1987 "21") (1984 "22") (1982 "21") (1981 "20") (1980 "21"))))
+    (cons 'N257 #(none "F1040" "Other income-misc." 1 #f "Other income, m" ((2019 "Schedule 1, 8") (2018 "Schedule 1, 21") (1994 "21") (1988 "22") (1987 "21") (1984 "22") (1982 "21") (1981 "20") (1980 "21"))))
+    (cons 'N259 #(none "F1040" "Prizes, awards" 1 #f "Prizes, awards" ((2019 "Schedule 1, 8") (2018 "Schedule 1, 21") (1994 "21") (1988 "22") (1987 "21") (1984 "22") (1982 "21") (1981 "20") (1980 "21"))))
 
     (cons 'N285 #(not-impl "Sched B" "Schedule B" 1 #f ""))
     (cons 'N287 #(current "Sched B" "Interest income" 3 #f "_IntInc" ((1990 "1") (1982 "2") (1981 "1a") (1980 "1"))))
@@ -254,7 +254,7 @@
     (cons 'N448 #(parent "Sched K-1" "Ordinary income or loss" 1 #t "" ((1990 "1"))))
     (cons 'N449 #(parent "Sched K-1" "Rental RE income or loss" 1 #t "" ((1990 "2"))))
     (cons 'N450 #(parent "Sched K-1" "Other rental income or loss" 1 #t "" ((1990 "3"))))
-    (cons 'N455 #(parent "Sched K-1" "Guaranteed partner payments" 1 #t "" ((2004 "4") (1990 "5"))))
+    (cons 'N455 #(parent "Sched K-1" "Guaranteed partner payments" 1 #t "" ((2019 "4a or 4b") (2004 "4") (1990 "5"))))
     (cons 'N451 #(parent "Sched K-1" "Interest income" 1 #t "" ((2004 "5") (1990 "4a"))))
     (cons 'N452 #(parent "Sched K-1" "Dividends" 1 #t "" ((2004 "6a") (2003 "4b(2)") (1990 "4b"))))
     (cons 'N527 #(parent "Sched K-1" "Royalties" 1 #t "" ((2004 "7") (1990 "4c"))))
@@ -399,7 +399,7 @@
     (cons 'N448 #(parent "Sched K-1" "Ordinary income or loss" 1 #t "" ((1990 "1"))))
     (cons 'N449 #(parent "Sched K-1" "Rental RE income or loss" 1 #t "" ((1990 "2"))))
     (cons 'N450 #(parent "Sched K-1" "Other rental income or loss" 1 #t "" ((1990 "3"))))
-    (cons 'N455 #(parent "Sched K-1" "Guaranteed partner payments" 1 #t "" ((2004 "4") (1990 "5"))))
+    (cons 'N455 #(parent "Sched K-1" "Guaranteed partner payments" 1 #t "" ((2019 "4a or 4b") (2004 "4") (1990 "5"))))
     (cons 'N451 #(parent "Sched K-1" "Interest income" 1 #t "" ((2004 "5") (1990 "4a"))))
     (cons 'N452 #(parent "Sched K-1" "Dividends" 1 #t "" ((2004 "6a") (2003 "4b(2)") (1990 "4b"))))
     (cons 'N527 #(parent "Sched K-1" "Royalties" 1 #t "" ((2004 "7") (1990 "4c"))))
@@ -517,30 +517,30 @@
     (cons 'N000 #(none "" "Tax Report Only - No TXF Export" 0 #f ""))
 
     (cons 'N256 #(not-impl "F1040" "Form 1040" 1 #f ""))
-    (cons 'N680 #(none "F1040" "Educator expenses,self" 1 #f "" ((2018 "Schedule 1, 23") (2007 "23") (2006 "NA - Expired") (2002 "23"))))
-    (cons 'N681 #(none "F1040" "Educator expenses,spouse" 1 #f "" ((2018 "Schedule 1, 23") (2007 "23") (2006 "NA - Expired") (2002 "23"))))
+    (cons 'N680 #(none "F1040" "Educator expenses,self" 1 #f "" ((2019 "Schedule 1, 10") (2018 "Schedule 1, 23") (2007 "23") (2006 "NA - Expired") (2002 "23"))))
+    (cons 'N681 #(none "F1040" "Educator expenses,spouse" 1 #f "" ((2019 "Schedule 1, 10") (2018 "Schedule 1, 23") (2007 "23") (2006 "NA - Expired") (2002 "23"))))
     (cons 'N482 #(none "F1040" "IRA contribution, non-work spouse" 1 #f "" ((1997 "23") (1994 "23b") (1990 "24b") (1989 "25") (1987 "25b") (1985 "26") (1983 "26a") (1982 "25") (1981 "24") (1980 "25")) 2000))
-    (cons 'N607 #(none "F1040" "Med savings contribution, self" 1 #f "Med savings con" ((2018 "Schedule 1, 25") (2005 "25") (2004 "35") (2003 "33") (2002 "27") (1998 "25") (1997 "24"))))
-    (cons 'N608 #(none "F1040" "Med savings contribution, spouse" 1 #f "Med savings con" ((2018 "Schedule 1, 25") (2005 "25") (2004 "35") (2003 "33") (2002 "27") (1998 "25") (1997 "24"))))
-    (cons 'N263 #(none "F1040" "Keogh deduction, self" 1 #f "Keogh deduction" ((2018 "Schedule 1, 28") (2005 "28") (2004 "32") (2003 "30") (2002 "31") (1998 "29") (1997 "28") (1988 "27") (1987 "26") (1984 "27") (1982 "26") (1981 "25") (1980 "26"))))
-    (cons 'N516 #(none "F1040" "Keogh deduction, spouse" 1 #f "Keogh deduction" ((2018 "Schedule 1, 28") (2005 "28") (2004 "32") (2003 "30") (2002 "31") (1998 "29") (1997 "28") (1988 "27") (1987 "26") (1984 "27") (1982 "26") (1981 "25") (1980 "26"))))
-    (cons 'N517 #(none "F1040" "SEP deduction, self" 1 #f "SEP deduction," ((2018 "Schedule 1, 28") (2005 "28") (2004 "32") (2003 "30") (2002 "31") (1998 "29") (1997 "28") (1988 "27") (1987 "26") (1984 "27") (1982 "26") (1981 "25") (1980 "26"))))
-    (cons 'N518 #(none "F1040" "SEP deduction, spouse" 1 #f "SEP deduction," ((2018 "Schedule 1, 28") (2005 "28") (2004 "32") (2003 "30") (2002 "31") (1998 "29") (1997 "28") (1988 "27") (1987 "26") (1984 "27") (1982 "26") (1981 "25") (1980 "26"))))
-    (cons 'N609 #(none "F1040" "SIMPLE contribution, self" 1 #f "SIMPLE contribu" ((2018 "Schedule 1, 28") (2005 "28") (2004 "32") (2003 "30") (2002 "31") (1998 "29") (1997 "28") (1988 "27") (1987 "26") (1984 "27") (1982 "26") (1981 "25") (1980 "26"))))
-    (cons 'N610 #(none "F1040" "SIMPLE contribution, spouse" 1 #f "SIMPLE contribu" ((2018 "Schedule 1, 28") (2005 "28") (2004 "32") (2003 "30") (2002 "31") (1998 "29") (1997 "28") (1988 "27") (1987 "26") (1984 "27") (1982 "26") (1981 "25") (1980 "26"))))
-    (cons 'N265 #(current "F1040" "Early withdrawal penalty" 1 #f "Early withdrawa" ((2018 "Schedule 1, 30") (2005 "30") (2004 "33") (2003 "31") (2002 "32") (1998 "30") (1997 "29") (1988 "28") (1987 "27") (1984 "28") (1982 "27") (1981 "26")(1980 "27"))))
-    (cons 'N264 #(none "F1040" "Alimony paid" 1 #f "Alimony paid" ((2018 "Schedule 1, 31a") (2005 "31a") (2004 "34a") (2003 "32a") (2002 "33a") (1998 "31a") (1997 "30a") (1988 "29") (1987 "28") (1984 "29") (1982 "28") (1981 "27") (1980 "28"))))
-    (cons 'N262 #(none "F1040" "IRA contribution, self" 1 #f "IRA Contrib" ((2018 "Schedule 1, 32") (2005 "32") (2004 "25") (2002 "24") (1997 "23") (1994 "23a") (1990 "24a") (1989 "24") (1987 "25a") (1985 "26") (1983 "26a") (1982 "25") (1981 "24") (1980 "25"))))
-    (cons 'N481 #(none "F1040" "IRA contribution, spouse" 1 #f "" ((2018 "Schedule 1, 32") (2005 "32") (2004 "25") (2002 "24") (1997 "23") (1994 "23b") (1990 "24b") (1989 "25") (1987 "25b") (1983 "26a") (1982 "25") (1981 "24") (1980 "25"))))
-    (cons 'N636 #(none "F1040" "Student loan interest" 1 #f "Student loan in" ((2018 "Schedule 1, 33") (2005 "33") (2004 "26") (2002 "25") (1998 "24"))))
-    (cons 'N613 #(none "F1040" "Fed tax withheld, RR retire, self" 1 #f "Tax:Fed wh, RR" ((2018 "16") (2014 "64") (2011 "62") (2009 "61") (2008 "62") (2005 "64") (2004 "63") (2003 "61") (2002 "62") (2001 "59") (2000 "58") (1998 "57") (1997 "54") (1996 "52") (1995 "55") (1991 "54") (1990 "55") (1989 "56") (1987 "54") (1986 "56") (1983 "57") (1982 "60") (1980 "55"))))
-    (cons 'N614 #(none "F1040" "Fed tax withheld, RR retire, spouse" 1 #f "Tax Spouse:Fed" ((2018 "16") (2014 "64") (2011 "62") (2009 "61") (2008 "62") (2005 "64") (2004 "63") (2003 "61") (2002 "62") (2001 "59") (2000 "58") (1998 "57") (1997 "54") (1996 "52") (1995 "55") (1991 "54") (1990 "55") (1989 "56") (1987 "54") (1986 "56") (1983 "57") (1982 "60") (1980 "55"))))
-    (cons 'N611 #(none "F1040" "Fed tax withheld, Soc. Sec., self" 1 #f "Tax:Fed wh, Soc" ((2018 "16") (2014 "64") (2011 "62") (2009 "61") (2008 "62") (2005 "64") (2004 "63") (2003 "61") (2002 "62") (2001 "59") (2000 "58") (1998 "57") (1997 "54") (1996 "52") (1995 "55") (1991 "54") (1990 "55") (1989 "56") (1987 "54") (1986 "56") (1983 "57") (1982 "60") (1980 "55"))))
-    (cons 'N612 #(none "F1040" "Fed tax withheld, Soc. Sec., spouse" 1 #f "Tax Spouse:Fed" ((2018 "16") (2014 "64") (2011 "62") (2009 "61") (2008 "62") (2005 "64") (2004 "63") (2003 "61") (2002 "62") (2001 "59") (2000 "58") (1998 "57") (1997 "54") (1996 "52") (1995 "55") (1991 "54") (1990 "55") (1989 "56") (1987 "54") (1986 "56") (1983 "57") (1982 "60") (1980 "55"))))
-    (cons 'N615 #(current "F1040" "Fed tax withheld, dividend income" 3 #f "" ((2018 "16") (2014 "64") (2011 "62") (2009 "61") (2008 "62") (2005 "64") (2004 "63") (2003 "61") (2002 "62") (2001 "59") (2000 "58") (1998 "57") (1997 "54") (1996 "52") (1995 "55") (1991 "54") (1990 "55") (1989 "56") (1987 "54") (1986 "56") (1983 "57") (1982 "60") (1980 "55"))))
-    (cons 'N616 #(current "F1040" "Fed tax withheld, interest income" 3 #f "" ((2018 "16") (2014 "64") (2011 "62") (2009 "61") (2008 "62") (2005 "64") (2004 "63") (2003 "61") (2002 "62") (2001 "59") (2000 "58") (1998 "57") (1997 "54") (1996 "52") (1995 "55") (1991 "54") (1990 "55") (1989 "56") (1987 "54") (1986 "56") (1983 "57") (1982 "60") (1980 "55"))))
-    (cons 'N521 #(none "F1040" "Federal estimated tax, qrtrly" 6 #f "Tax:Fed Estimat" ((2018 "Schedule 5, 66") (2014 "65") (2011 "63") (2009 "62") (2008 "63") (2005 "65") (2004 "64") (2003 "62") (2002 "63") (2001 "60") (2000 "59") (1998 "58") (1997 "55") (1996 "53") (1995 "56") (1991 "55") (1990 "56") (1989 "57") (1987 "55") (1986 "57") (1983 "58") (1982 "61") (1980 "56"))))
-    (cons 'N268 #(none "F1040" "Fed. estimated tax" 1 #f "" ((2018 "Schedule 5, 66") (2014 "65") (2011 "63") (2009 "62") (2008 "63") (2005 "65") (2004 "64") (2003 "62") (2002 "63") (2001 "60") (2000 "59") (1998 "58") (1997 "55") (1996 "53") (1995 "56") (1991 "55") (1990 "56") (1989 "57") (1987 "55") (1986 "57") (1983 "58") (1982 "61") (1980 "56"))))
+    (cons 'N607 #(none "F1040" "Med savings contribution, self" 1 #f "Med savings con" ((2019 "Schedule 1, 12") (2018 "Schedule 1, 25") (2005 "25") (2004 "35") (2003 "33") (2002 "27") (1998 "25") (1997 "24"))))
+    (cons 'N608 #(none "F1040" "Med savings contribution, spouse" 1 #f "Med savings con" ((2019 "Schedule 1, 12") (2018 "Schedule 1, 25") (2005 "25") (2004 "35") (2003 "33") (2002 "27") (1998 "25") (1997 "24"))))
+    (cons 'N263 #(none "F1040" "Keogh deduction, self" 1 #f "Keogh deduction" ((2019 "Schedule 1, 15") (2018 "Schedule 1, 28") (2005 "28") (2004 "32") (2003 "30") (2002 "31") (1998 "29") (1997 "28") (1988 "27") (1987 "26") (1984 "27") (1982 "26") (1981 "25") (1980 "26"))))
+    (cons 'N516 #(none "F1040" "Keogh deduction, spouse" 1 #f "Keogh deduction" ((2019 "Schedule 1, 15") (2018 "Schedule 1, 28") (2005 "28") (2004 "32") (2003 "30") (2002 "31") (1998 "29") (1997 "28") (1988 "27") (1987 "26") (1984 "27") (1982 "26") (1981 "25") (1980 "26"))))
+    (cons 'N517 #(none "F1040" "SEP deduction, self" 1 #f "SEP deduction," ((2019 "Schedule 1, 15") (2018 "Schedule 1, 28") (2005 "28") (2004 "32") (2003 "30") (2002 "31") (1998 "29") (1997 "28") (1988 "27") (1987 "26") (1984 "27") (1982 "26") (1981 "25") (1980 "26"))))
+    (cons 'N518 #(none "F1040" "SEP deduction, spouse" 1 #f "SEP deduction," ((2019 "Schedule 1, 15") (2018 "Schedule 1, 28") (2005 "28") (2004 "32") (2003 "30") (2002 "31") (1998 "29") (1997 "28") (1988 "27") (1987 "26") (1984 "27") (1982 "26") (1981 "25") (1980 "26"))))
+    (cons 'N609 #(none "F1040" "SIMPLE contribution, self" 1 #f "SIMPLE contribu" ((2019 "Schedule 1, 15") (2018 "Schedule 1, 28") (2005 "28") (2004 "32") (2003 "30") (2002 "31") (1998 "29") (1997 "28") (1988 "27") (1987 "26") (1984 "27") (1982 "26") (1981 "25") (1980 "26"))))
+    (cons 'N610 #(none "F1040" "SIMPLE contribution, spouse" 1 #f "SIMPLE contribu" ((2019 "Schedule 1, 15") (2018 "Schedule 1, 28") (2005 "28") (2004 "32") (2003 "30") (2002 "31") (1998 "29") (1997 "28") (1988 "27") (1987 "26") (1984 "27") (1982 "26") (1981 "25") (1980 "26"))))
+    (cons 'N265 #(current "F1040" "Early withdrawal penalty" 1 #f "Early withdrawa" ((2019 "Schedule 1, 13") (2018 "Schedule 1, 30") (2005 "30") (2004 "33") (2003 "31") (2002 "32") (1998 "30") (1997 "29") (1988 "28") (1987 "27") (1984 "28") (1982 "27") (1981 "26")(1980 "27"))))
+    (cons 'N264 #(none "F1040" "Alimony paid" 1 #f "Alimony paid" ((2019 "Schedule 1, 18a") (2018 "Schedule 1, 31a") (2005 "31a") (2004 "34a") (2003 "32a") (2002 "33a") (1998 "31a") (1997 "30a") (1988 "29") (1987 "28") (1984 "29") (1982 "28") (1981 "27") (1980 "28"))))
+    (cons 'N262 #(none "F1040" "IRA contribution, self" 1 #f "IRA Contrib" ((2019 "Schedule 1, 19") (2018 "Schedule 1, 32") (2005 "32") (2004 "25") (2002 "24") (1997 "23") (1994 "23a") (1990 "24a") (1989 "24") (1987 "25a") (1985 "26") (1983 "26a") (1982 "25") (1981 "24") (1980 "25"))))
+    (cons 'N481 #(none "F1040" "IRA contribution, spouse" 1 #f "" ((2019 "Schedule 1, 19") (2018 "Schedule 1, 32") (2005 "32") (2004 "25") (2002 "24") (1997 "23") (1994 "23b") (1990 "24b") (1989 "25") (1987 "25b") (1983 "26a") (1982 "25") (1981 "24") (1980 "25"))))
+    (cons 'N636 #(none "F1040" "Student loan interest" 1 #f "Student loan in" ((2019 "Schedule 1, 20") (2018 "Schedule 1, 33") (2005 "33") (2004 "26") (2002 "25") (1998 "24"))))
+    (cons 'N613 #(none "F1040" "Fed tax withheld, RR retire, self" 1 #f "Tax:Fed wh, RR" ((2019 "17") (2018 "16") (2014 "64") (2011 "62") (2009 "61") (2008 "62") (2005 "64") (2004 "63") (2003 "61") (2002 "62") (2001 "59") (2000 "58") (1998 "57") (1997 "54") (1996 "52") (1995 "55") (1991 "54") (1990 "55") (1989 "56") (1987 "54") (1986 "56") (1983 "57") (1982 "60") (1980 "55"))))
+    (cons 'N614 #(none "F1040" "Fed tax withheld, RR retire, spouse" 1 #f "Tax Spouse:Fed" ((2019 "17") (2018 "16") (2014 "64") (2011 "62") (2009 "61") (2008 "62") (2005 "64") (2004 "63") (2003 "61") (2002 "62") (2001 "59") (2000 "58") (1998 "57") (1997 "54") (1996 "52") (1995 "55") (1991 "54") (1990 "55") (1989 "56") (1987 "54") (1986 "56") (1983 "57") (1982 "60") (1980 "55"))))
+    (cons 'N611 #(none "F1040" "Fed tax withheld, Soc. Sec., self" 1 #f "Tax:Fed wh, Soc" ((2019 "17") (2018 "16") (2014 "64") (2011 "62") (2009 "61") (2008 "62") (2005 "64") (2004 "63") (2003 "61") (2002 "62") (2001 "59") (2000 "58") (1998 "57") (1997 "54") (1996 "52") (1995 "55") (1991 "54") (1990 "55") (1989 "56") (1987 "54") (1986 "56") (1983 "57") (1982 "60") (1980 "55"))))
+    (cons 'N612 #(none "F1040" "Fed tax withheld, Soc. Sec., spouse" 1 #f "Tax Spouse:Fed" ((2019 "17") (2018 "16") (2014 "64") (2011 "62") (2009 "61") (2008 "62") (2005 "64") (2004 "63") (2003 "61") (2002 "62") (2001 "59") (2000 "58") (1998 "57") (1997 "54") (1996 "52") (1995 "55") (1991 "54") (1990 "55") (1989 "56") (1987 "54") (1986 "56") (1983 "57") (1982 "60") (1980 "55"))))
+    (cons 'N615 #(current "F1040" "Fed tax withheld, dividend income" 3 #f "" ((2019 "17") (2018 "16") (2014 "64") (2011 "62") (2009 "61") (2008 "62") (2005 "64") (2004 "63") (2003 "61") (2002 "62") (2001 "59") (2000 "58") (1998 "57") (1997 "54") (1996 "52") (1995 "55") (1991 "54") (1990 "55") (1989 "56") (1987 "54") (1986 "56") (1983 "57") (1982 "60") (1980 "55"))))
+    (cons 'N616 #(current "F1040" "Fed tax withheld, interest income" 3 #f "" ((2019 "17") (2018 "16") (2014 "64") (2011 "62") (2009 "61") (2008 "62") (2005 "64") (2004 "63") (2003 "61") (2002 "62") (2001 "59") (2000 "58") (1998 "57") (1997 "54") (1996 "52") (1995 "55") (1991 "54") (1990 "55") (1989 "56") (1987 "54") (1986 "56") (1983 "57") (1982 "60") (1980 "55"))))
+    (cons 'N521 #(none "F1040" "Federal estimated tax, qrtrly" 6 #f "Tax:Fed Estimat" ((2019 "Schedule 3, 8") (2018 "Schedule 5, 66") (2014 "65") (2011 "63") (2009 "62") (2008 "63") (2005 "65") (2004 "64") (2003 "62") (2002 "63") (2001 "60") (2000 "59") (1998 "58") (1997 "55") (1996 "53") (1995 "56") (1991 "55") (1990 "56") (1989 "57") (1987 "55") (1986 "57") (1983 "58") (1982 "61") (1980 "56"))))
+    (cons 'N268 #(none "F1040" "Fed. estimated tax" 1 #f "" ((2019 "Schedule 3, 8") (2018 "Schedule 5, 66") (2014 "65") (2011 "63") (2009 "62") (2008 "63") (2005 "65") (2004 "64") (2003 "62") (2002 "63") (2001 "60") (2000 "59") (1998 "58") (1997 "55") (1996 "53") (1995 "56") (1991 "55") (1990 "56") (1989 "57") (1987 "55") (1986 "57") (1983 "58") (1982 "61") (1980 "56"))))
 
     (cons 'N270 #(not-impl "Sched A" "Schedule A" 1 #f ""))
     (cons 'N273 #(none "Sched A" "Medicine and drugs" 1 #f "Medical:Medicin" ((1990 "1") (1987 "1a") (1982 "1") (1980 "2"))))

commit 7cd2495674935cdb1626e90e291811454a58c830
Author: loftx <dev at loftx.co.uk>
Date:   Mon Jan 20 20:26:53 2020 +0100

    Add Invoice.Unpost() to Python Bindings

diff --git a/bindings/python/gnucash_business.py b/bindings/python/gnucash_business.py
index b4583377d..e3aaa51ce 100644
--- a/bindings/python/gnucash_business.py
+++ b/bindings/python/gnucash_business.py
@@ -327,6 +327,7 @@ methods_return_instance_lists(
     Invoice, { 'GetEntries': Entry })
 
 Invoice.add_method('gncInvoiceRemoveEntry', 'RemoveEntry')
+Invoice.add_method('gncInvoiceUnpost', 'Unpost')
 
 # Bill
 Bill.add_methods_with_prefix('gncBill')

commit e51bc45e588b328728449e03b5ef8f3f9219c661
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun Jan 19 14:05:21 2020 -0800

    Bug 797588 - Gnucash segfaults when using mysql backend with empty password
    
    Log an error and return if any of the required string elements is NULL.

diff --git a/gnucash/gnome-utils/gnc-keyring.c b/gnucash/gnome-utils/gnc-keyring.c
index b88e5eb17..ce0e3b55d 100644
--- a/gnucash/gnome-utils/gnc-keyring.c
+++ b/gnucash/gnome-utils/gnc-keyring.c
@@ -74,6 +74,9 @@ void gnc_keyring_set_password (const gchar *access_method,
     GError* error = NULL;
     gchar* label = NULL;
 
+    g_return_if_fail(access_method != NULL && server != NULL &&
+                     service != NULL && user != NULL && password != NULL);
+
     label = g_strdup_printf("GnuCash password for %s://%s@%s", access_method, user, server);
 
     if (port == 0)
@@ -104,6 +107,9 @@ void gnc_keyring_set_password (const gchar *access_method,
     GnomeKeyringResult  gkr_result;
     guint32 item_id = 0;
 
+    g_return_if_fail(access_method != NULL && server != NULL &&
+                     service != NULL && user != NULL && password != NULL);
+
     gkr_result = gnome_keyring_set_network_password_sync
         (NULL, user, NULL, server, service,
          access_method, NULL, port, password, &item_id);
@@ -119,6 +125,8 @@ void gnc_keyring_set_password (const gchar *access_method,
     OSStatus status;
     SecKeychainItemRef *itemRef = NULL;
 
+    g_return_if_fail(access_method != NULL && server != NULL &&
+                     service != NULL && user != NULL && password != NULL);
     /* mysql and postgres aren't valid protocols on Mac OS X.
      * So we use the security domain parameter to allow us to
      * distinguish between these two.

commit 08fd3e97979f18d703458b53a2f3fcdbc3e99758
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun Jan 19 14:02:36 2020 -0800

    Fix up indentation in gnc-keyring.c.
    
    It was partly gnu-style.

diff --git a/gnucash/gnome-utils/gnc-keyring.c b/gnucash/gnome-utils/gnc-keyring.c
index a3a0ea08c..b88e5eb17 100644
--- a/gnucash/gnome-utils/gnc-keyring.c
+++ b/gnucash/gnome-utils/gnc-keyring.c
@@ -46,18 +46,18 @@ G_GNUC_UNUSED static QofLogModule log_module = GNC_MOD_GUI;
 const SecretSchema* gnucash_get_secret_schema(void) G_GNUC_CONST;
 const SecretSchema* gnucash_get_secret_schema(void)
 {
-  static const SecretSchema secret_schema = {
-    "org.gnucash.password", SECRET_SCHEMA_NONE,
-    {
-      { "protocol", SECRET_SCHEMA_ATTRIBUTE_STRING },
-      { "server", SECRET_SCHEMA_ATTRIBUTE_STRING },
-      { "port", SECRET_SCHEMA_ATTRIBUTE_INTEGER },
-      { "user", SECRET_SCHEMA_ATTRIBUTE_STRING },
-      { "NULL", 0 },
-    }
-  };
+    static const SecretSchema secret_schema = {
+        "org.gnucash.password", SECRET_SCHEMA_NONE,
+        {
+            { "protocol", SECRET_SCHEMA_ATTRIBUTE_STRING },
+            { "server", SECRET_SCHEMA_ATTRIBUTE_STRING },
+            { "port", SECRET_SCHEMA_ATTRIBUTE_INTEGER },
+            { "user", SECRET_SCHEMA_ATTRIBUTE_STRING },
+            { "NULL", 0 },
+        }
+    };
 
-  return &secret_schema;
+    return &secret_schema;
 }
 
 #define SECRET_SCHEMA_GNUCASH gnucash_get_secret_schema()
@@ -71,42 +71,42 @@ void gnc_keyring_set_password (const gchar *access_method,
                                const gchar* password)
 {
 #ifdef HAVE_LIBSECRET
-  GError* error = NULL;
-  gchar* label = NULL;
+    GError* error = NULL;
+    gchar* label = NULL;
 
-  label = g_strdup_printf("GnuCash password for %s://%s@%s", access_method, user, server);
+    label = g_strdup_printf("GnuCash password for %s://%s@%s", access_method, user, server);
 
-  if (port == 0)
-    secret_password_store_sync (SECRET_SCHEMA_GNUCASH, SECRET_COLLECTION_DEFAULT,
-                                label, password, NULL, &error,
-                                "protocol", access_method,
-                                "server", server,
-                                "user", user,
-                                NULL);
-  else
-    secret_password_store_sync (SECRET_SCHEMA_GNUCASH, SECRET_COLLECTION_DEFAULT,
-                                label, password, NULL, &error,
-                                "protocol", access_method,
-                                "server", server,
-                                "port", port,
-                                "user", user,
-                                NULL);
+    if (port == 0)
+        secret_password_store_sync (SECRET_SCHEMA_GNUCASH, SECRET_COLLECTION_DEFAULT,
+                                    label, password, NULL, &error,
+                                    "protocol", access_method,
+                                    "server", server,
+                                    "user", user,
+                                    NULL);
+    else
+        secret_password_store_sync (SECRET_SCHEMA_GNUCASH, SECRET_COLLECTION_DEFAULT,
+                                    label, password, NULL, &error,
+                                    "protocol", access_method,
+                                    "server", server,
+                                    "port", port,
+                                    "user", user,
+                                    NULL);
 
-  g_free(label);
+    g_free(label);
 
-  if (error != NULL)
-  {
-      PWARN ("libsecret error: %s", error->message);
-      PWARN ("The user will be prompted for a password again next time.");
-      g_error_free(error);
-  }
+    if (error != NULL)
+    {
+        PWARN ("libsecret error: %s", error->message);
+        PWARN ("The user will be prompted for a password again next time.");
+        g_error_free(error);
+    }
 #elif HAVE_GNOME_KEYRING
     GnomeKeyringResult  gkr_result;
     guint32 item_id = 0;
 
     gkr_result = gnome_keyring_set_network_password_sync
-                 (NULL, user, NULL, server, service,
-                  access_method, NULL, port, password, &item_id);
+        (NULL, user, NULL, server, service,
+         access_method, NULL, port, password, &item_id);
 
     if (gkr_result != GNOME_KEYRING_RESULT_OK)
     {
@@ -126,22 +126,26 @@ void gnc_keyring_set_password (const gchar *access_method,
     // FIXME I'm not sure this works if a password was already in the keychain
     //       I may have to do a lookup first and if it exists, run some
     //       update function instead
-    status = SecKeychainAddInternetPassword ( NULL, /* keychain */
-             strlen(server), server,                /* servername */
-             strlen(access_method), access_method,  /* securitydomain */
-             strlen(user), user,                    /* acountname */
-             strlen(service), service,              /* path */
-             port,                                  /* port */
-             kSecProtocolTypeAny,                   /* protocol */
-             kSecAuthenticationTypeDefault,         /* auth type */
-             strlen(password), password,            /* passworddata */
-             itemRef );
+    status =
+        SecKeychainAddInternetPassword (NULL, /* keychain */
+                                        strlen(server), server, /* servername */
+                                        strlen(access_method),
+                                        access_method,  /* securitydomain */
+                                        strlen(user), user, /* acountname */
+                                        strlen(service), service, /* path */
+                                        port, /* port */
+                                        kSecProtocolTypeAny, /* protocol */
+                                        kSecAuthenticationTypeDefault, /* auth type */
+                                        strlen(password),
+                                        password, /* passworddata */
+                                        itemRef );
 
     if ( status != noErr )
     {
         CFStringRef osx_resultstring = SecCopyErrorMessageString( status, NULL );
-        const gchar *resultstring = CFStringGetCStringPtr(osx_resultstring,
-                                    GetApplicationTextEncoding());
+        const gchar *resultstring =
+            CFStringGetCStringPtr(osx_resultstring,
+                                  GetApplicationTextEncoding());
         PWARN ( "OS X keychain error: %s", resultstring );
         PWARN ( "The user will be prompted for a password again next time." );
         CFRelease ( osx_resultstring );
@@ -201,17 +205,17 @@ gboolean gnc_keyring_get_password ( GtkWidget *parent,
     /* Note: only use the port attribute if it  was set by the user. */
     if (port == 0)
         libsecret_password = secret_password_lookup_sync (SECRET_SCHEMA_GNUCASH, NULL, &error,
-            "protocol", access_method,
-            "server", server,
-            "user", *user,
-            NULL);
+                                                          "protocol", access_method,
+                                                          "server", server,
+                                                          "user", *user,
+                                                          NULL);
     else
         libsecret_password = secret_password_lookup_sync (SECRET_SCHEMA_GNUCASH, NULL, &error,
-            "protocol", access_method,
-            "server", server,
-            "port", port,
-            "user", *user,
-            NULL);
+                                                          "protocol", access_method,
+                                                          "server", server,
+                                                          "port", port,
+                                                          "user", *user,
+                                                          NULL);
 
     if (libsecret_password != NULL) {
         *password = g_strdup (libsecret_password);
@@ -222,11 +226,11 @@ gboolean gnc_keyring_get_password ( GtkWidget *parent,
     /* No password found yet. Perhaps it was written with a port equal to 0.
      * Gnucash versions prior to 2.6.7 did this unfortunately... */
     libsecret_password = secret_password_lookup_sync (SECRET_SCHEMA_GNUCASH, NULL, &error,
-        "protocol", access_method,
-        "server", server,
-        "port", 0,
-        "user", *user,
-        NULL);
+                                                      "protocol", access_method,
+                                                      "server", server,
+                                                      "port", 0,
+                                                      "user", *user,
+                                                      NULL);
 
     if (libsecret_password != NULL) {
         *password = g_strdup (libsecret_password);
@@ -242,19 +246,19 @@ gboolean gnc_keyring_get_password ( GtkWidget *parent,
        Look for a password stored via gnome-keyring instead */
     if (port == 0)
         libsecret_password = secret_password_lookup_sync (SECRET_SCHEMA_COMPAT_NETWORK, NULL, &error,
-            "protocol", access_method,
-            "server", server,
-            "object", service,
-            "user", *user,
-            NULL);
+                                                          "protocol", access_method,
+                                                          "server", server,
+                                                          "object", service,
+                                                          "user", *user,
+                                                          NULL);
     else
         libsecret_password = secret_password_lookup_sync (SECRET_SCHEMA_COMPAT_NETWORK, NULL, &error,
-            "protocol", access_method,
-            "server", server,
-            "port", port,
-            "object", service,
-            "user", *user,
-            NULL);
+                                                          "protocol", access_method,
+                                                          "server", server,
+                                                          "port", port,
+                                                          "object", service,
+                                                          "user", *user,
+                                                          NULL);
 
     if (libsecret_password != NULL) {
         *password = g_strdup (libsecret_password);
@@ -275,8 +279,8 @@ gboolean gnc_keyring_get_password ( GtkWidget *parent,
 
 #elif HAVE_GNOME_KEYRING
     gkr_result = gnome_keyring_find_network_password_sync
-                    ( *user, NULL, server, service,
-                    access_method, NULL, port, &found_list );
+        ( *user, NULL, server, service,
+          access_method, NULL, port, &found_list );
 
     if (gkr_result == GNOME_KEYRING_RESULT_OK)
     {
@@ -290,7 +294,7 @@ gboolean gnc_keyring_get_password ( GtkWidget *parent,
     /* Something went wrong while attempting to access libsecret
      * Log the error message and carry on... */
     PWARN ("Gnome-keyring access failed: %s.",
-            gnome_keyring_result_to_message(gkr_result));
+           gnome_keyring_result_to_message(gkr_result));
     gnome_keyring_network_password_list_free(found_list);
 #endif /* HAVE_LIBSECRET or HAVE_GNOME_KEYRING */
 
@@ -302,15 +306,15 @@ gboolean gnc_keyring_get_password ( GtkWidget *parent,
     if (*user != NULL)
     {
         status = SecKeychainFindInternetPassword( NULL,
-                 strlen(server), server,
-                 strlen(access_method), access_method,
-                 strlen(*user), *user,
-                 strlen(service), service,
-                 port,
-                 kSecProtocolTypeAny,
-                 kSecAuthenticationTypeDefault,
-                 &password_length, &password_data,
-                 NULL);
+                                                  strlen(server), server,
+                                                  strlen(access_method), access_method,
+                                                  strlen(*user), *user,
+                                                  strlen(service), service,
+                                                  port,
+                                                  kSecProtocolTypeAny,
+                                                  kSecAuthenticationTypeDefault,
+                                                  &password_length, &password_data,
+                                                  NULL);
 
         if ( status == noErr )
         {
@@ -322,7 +326,7 @@ gboolean gnc_keyring_get_password ( GtkWidget *parent,
         {
             CFStringRef osx_resultstring = SecCopyErrorMessageString( status, NULL );
             const gchar *resultstring = CFStringGetCStringPtr(osx_resultstring,
-                                        GetApplicationTextEncoding());
+                                                              GetApplicationTextEncoding());
             PWARN ( "OS X keychain error: %s", resultstring );
             CFRelease ( osx_resultstring );
         }
@@ -330,39 +334,39 @@ gboolean gnc_keyring_get_password ( GtkWidget *parent,
 #endif /* HAVE_OSX_KEYCHAIN */
 
     /* If we got here, either no proper password store is
-        * available on this system, or we couldn't retrieve
-        * a password from it. In both cases, just ask the user
-        * to enter one
-        */
+     * available on this system, or we couldn't retrieve
+     * a password from it. In both cases, just ask the user
+     * to enter one
+     */
 
     if ( port == 0 )
         db_path = g_strdup_printf ( "%s://%s/%s", access_method, server, service );
     else
         db_path = g_strdup_printf ( "%s://%s:%d/%s", access_method, server, port, service );
     heading = g_strdup_printf ( /* Translators: %s is a path to a database or any other url,
-                like mysql://user@server.somewhere/somedb, https://www.somequotes.com/thequotes */
-                    _("Enter a user name and password to connect to: %s"),
-                    db_path );
+                                   like mysql://user@server.somewhere/somedb, https://www.somequotes.com/thequotes */
+        _("Enter a user name and password to connect to: %s"),
+        db_path );
 
     password_found = gnc_get_username_password ( parent, heading,
-                        *user, NULL,
-                        user, password );
+                                                 *user, NULL,
+                                                 user, password );
     g_free ( db_path );
     g_free ( heading );
 
     if ( password_found )
     {
         /* User entered new user/password information
-            * Let's try to add it to a password store.
-            */
+         * Let's try to add it to a password store.
+         */
         gchar *newuser = g_strdup( *user );
         gchar *newpassword = g_strdup( *password );
         gnc_keyring_set_password ( access_method,
-                                    server,
-                                    port,
-                                    service,
-                                    newuser,
-                                    newpassword );
+                                   server,
+                                   port,
+                                   service,
+                                   newuser,
+                                   newpassword );
         g_free ( newuser );
         g_free ( newpassword );
     }

commit 2c45e0ecba111e1435ea623f74c228a9e6b48610
Author: Robert Fewell <14uBobIT at gmail.com>
Date:   Sun Jan 19 13:26:02 2020 +0000

    The clear cached account model should be after the test
     for book and root account

diff --git a/gnucash/gnome-utils/gnc-tree-model-account.c b/gnucash/gnome-utils/gnc-tree-model-account.c
index 90e2dc983..c0044b6d9 100644
--- a/gnucash/gnome-utils/gnc-tree-model-account.c
+++ b/gnucash/gnome-utils/gnc-tree-model-account.c
@@ -1434,10 +1434,6 @@ gnc_tree_model_account_event_handler (QofInstance *entity,
 
     account = GNC_ACCOUNT(entity);
 
-    /* clear the cached model values for account */
-    if (event_type != QOF_EVENT_ADD)
-        gnc_tree_model_account_clear_cached_values (model, account);
-
     if (gnc_account_get_book (account) != priv->book)
     {
         LEAVE("not in this book");
@@ -1448,6 +1444,11 @@ gnc_tree_model_account_event_handler (QofInstance *entity,
         LEAVE("not in this model");
         return;
     }
+
+    /* clear the cached model values for account */
+    if (event_type != QOF_EVENT_ADD)
+        gnc_tree_model_account_clear_cached_values (model, account);
+
     /* What to do, that to do. */
     switch (event_type)
     {

commit 253707e1994a31662c2bfad3af38fea627bd4944
Author: Robert Fewell <14uBobIT at gmail.com>
Date:   Sun Jan 19 13:25:03 2020 +0000

    Fix some account template issues

diff --git a/data/accounts/he/acctchrt_brokerage.gnucash-xea b/data/accounts/he/acctchrt_brokerage.gnucash-xea
index b489bfffd..f3be9d369 100644
--- a/data/accounts/he/acctchrt_brokerage.gnucash-xea
+++ b/data/accounts/he/acctchrt_brokerage.gnucash-xea
@@ -70,7 +70,7 @@
     <cmdty:id>USD</cmdty:id>
   </act:commodity>
   <act:description>השקעות</act:description>
-  <act:parent type="new">c942789c77cfdd65bc6e4c12900f0805</act:parent>
+  <act:parent type="new">1972cce2e2364f95b2b0bc014502661d</act:parent>
   <act:slots>
     <slot>
       <slot:key>placeholder</slot:key>
@@ -300,7 +300,7 @@
     <cmdty:id>USD</cmdty:id>
   </act:commodity>
   <act:description>הכנסות מדיבדנד</act:description>
-  <act:parent type="new">dcf25b179583108b12c1c36f044f2bf7</act:parent>
+  <act:parent type="new">9da3c880bd04b9db49eb7f5b06403bda</act:parent>
 </gnc:account>
 <gnc:account version="2.0.0">
   <act:name>מתנות שנתקבלו</act:name>
@@ -311,7 +311,7 @@
     <cmdty:id>USD</cmdty:id>
   </act:commodity>
   <act:description>מתנות שנתקבלו</act:description>
-  <act:parent type="new">dcf25b179583108b12c1c36f044f2bf7</act:parent>
+  <act:parent type="new">9da3c880bd04b9db49eb7f5b06403bda</act:parent>
 </gnc:account>
 <gnc:account version="2.0.0">
   <act:name>הכנסות ריבית</act:name>
@@ -322,7 +322,7 @@
     <cmdty:id>USD</cmdty:id>
   </act:commodity>
   <act:description>הכנסות ריבית</act:description>
-  <act:parent type="new">dcf25b179583108b12c1c36f044f2bf7</act:parent>
+  <act:parent type="new">9da3c880bd04b9db49eb7f5b06403bda</act:parent>
 </gnc:account>
 <gnc:account version="2.0.0">
   <act:name>ריבית מאג"ח</act:name>
@@ -427,6 +427,6 @@
     <cmdty:id>USD</cmdty:id>
   </act:commodity>
   <act:description>דמי ניהול</act:description>
-  <act:parent type="new">d971e6172c344b6ce569f1af76b5dce1</act:parent>
+  <act:parent type="new">77fdffddc79c662c93c482cefa5a4744</act:parent>
 </gnc:account>
 </gnc-account-example>
diff --git a/data/accounts/hr/acctchrt_car.gnucash-xea b/data/accounts/hr/acctchrt_car.gnucash-xea
index a3d609107..bd85a2a94 100644
--- a/data/accounts/hr/acctchrt_car.gnucash-xea
+++ b/data/accounts/hr/acctchrt_car.gnucash-xea
@@ -91,7 +91,6 @@
   <act:description>Osobno vozilo</act:description>
   <act:parent type="new">8d1440efb8cd42d9a23e606fac6f2870</act:parent>
 </gnc:account>
-
 <gnc:account version="2.0.0">
   <act:name>Obveze</act:name>
   <act:id type="new">cca4bedbdfde4421a586be15765eb072</act:id>
@@ -107,7 +106,7 @@
       <slot:value type="string">true</slot:value>
     </slot>
   </act:slots>
-  <act:parent type="new">5f1a637ad17146839faf0ae35ec06ec4</act:parent>
+  <act:parent type="new">8315c26e871c497c9d192aaa0fc7398d</act:parent>
 </gnc:account>
 <gnc:account version="2.0.0">
   <act:name>Krediti</act:name>
@@ -137,7 +136,6 @@
   <act:description>Kredit za auto</act:description>
   <act:parent type="new">1ec09bc1aeb940d6803026f155862ef6</act:parent>
 </gnc:account>
-
 <gnc:account version="2.0.0">
   <act:name>Rashod</act:name>
   <act:id type="new">62cf4cfb2aa047e7a584dd0c3f8a860a</act:id>
diff --git a/data/accounts/it/acctchrt_otherloan.gnucash-xea b/data/accounts/it/acctchrt_otherloan.gnucash-xea
index eda32042c..f6ee08fe0 100644
--- a/data/accounts/it/acctchrt_otherloan.gnucash-xea
+++ b/data/accounts/it/acctchrt_otherloan.gnucash-xea
@@ -68,7 +68,7 @@
   <act:type>LIABILITY</act:type>
   <act:commodity>
     <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id></cmdty:id>
+    <cmdty:id>EUR</cmdty:id>
   </act:commodity>
   <act:description>Mutui</act:description>
   <act:parent type="new">8ec79e80d9abf58d78ce3129d3fe3365</act:parent>

commit b9601e012c18a72c8ab808a6043203eb255e89cf
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sun Jan 19 03:31:53 2020 +0800

    Bug 797584 - New-owner - bill amount field links to wrong account
    
    Amounts formerly linked to the 'transfer' split which is not reliably
    determined. Link to the APAR split instead.
    
    Note whereby a payment spans multiple invoices, it'll link to the
    first APAR payment split.

diff --git a/gnucash/report/business-reports/new-owner-report.scm b/gnucash/report/business-reports/new-owner-report.scm
index c724dfc68..57aea2856 100644
--- a/gnucash/report/business-reports/new-owner-report.scm
+++ b/gnucash/report/business-reports/new-owner-report.scm
@@ -745,7 +745,7 @@
            (and (< orig-value 0) orig-value)
            (and (>= orig-value 0) orig-value)
            (invoice->sale invoice) (invoice->tax invoice)
-           (txn->transfer-split txn)
+           split
            link-option
            (cond
             ((and (txn-is-invoice? txn) (eq? link-option 'simple))

commit 220eb9529189202bee3fa7c3c290cdfb3569ca40
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat Jan 18 21:10:25 2020 +0800

    [new-aging] speed up by skipping several loops
    
    Consider a list of APAR splits, from N accounts. For each account,
    their splits needed to find unique valid owners.
    
    Previous algorithm would loops splits several times (1) each split
    finds its owner, and log invalid ones, and (2) delete owner
    duplicates.
    
    New algorithm will take the first split's owner, skip if invalid, then
    process all owner-splits, the reloop with other-owners-splits. The
    invalid-splits list is also managed within loops for better stack
    handling.
    
    Also use (ice-9 match) for conciseness.

diff --git a/gnucash/report/business-reports/new-aging.scm b/gnucash/report/business-reports/new-aging.scm
index 2ee5bb945..0f1e57d2c 100644
--- a/gnucash/report/business-reports/new-aging.scm
+++ b/gnucash/report/business-reports/new-aging.scm
@@ -183,6 +183,12 @@ exist but have no suitable transactions."))
     (gncOwnerFree split-owner)
     retval))
 
+(define (split-owner-is-invalid? split)
+  (let* ((owner (split->owner split))
+         (retval (not (gncOwnerIsValid owner))))
+    (gncOwnerFree owner)
+    retval))
+
 (define (split-from-acct? split acct)
   (equal? acct (xaccSplitGetAccount split)))
 
@@ -230,13 +236,8 @@ exist but have no suitable transactions."))
          (show-zeros (op-value gnc:pagename-general optname-show-zeros))
          (date-type (op-value gnc:pagename-general optname-date-driver))
          (query (qof-query-create-for-splits))
-         (invalid-splits '())
          (document (gnc:make-html-document)))
 
-    ;; for sorting and delete-duplicates. compare GUIDs
-    (define (ownerGUID<? a b)
-      (string<? (gncOwnerGetGUID a) (gncOwnerGetGUID b)))
-
     (define (sort-aging<? a b)
       (match-let* (((own1 aging1 aging-total1) a)
                    ((own2 aging2 aging-total2) b)
@@ -274,6 +275,7 @@ exist but have no suitable transactions."))
                                   (txn-is-payment? (xaccSplitGetParent split))))
                             splits))
                    (accounts-and-owners '())
+                   (invalid-splits '())
                    (tofree '()))
           (cond
            ((null? accounts)
@@ -372,61 +374,50 @@ exist but have no suitable transactions."))
 
            (else
             (let* ((account (car accounts))
-                   (splits-acc-others (list-split splits split-from-acct? account))
-                   (acc-splits (car splits-acc-others))
-                   (other-acc-splits (cdr splits-acc-others))
-                   (split-owners
-                    (fold
-                     (lambda (a b)
-                       (let ((owner (split->owner a)))
-                         (cond
-                          ((gncOwnerIsValid owner) (cons owner b))
-                          ;; some payment splits may have no owner in
-                          ;; this account. skip. see bug 797506.
-                          (else
-                           (gnc:warn "split " (gnc:strify a) " has no owner")
-                           (set! invalid-splits
-                             (cons (list (_ "Payment has no owner") a)
-                                   invalid-splits))
-                           (gncOwnerFree owner)
-                           b))))
-                     '() acc-splits))
-                   (acc-owners (sort-and-delete-duplicates
-                                split-owners ownerGUID<? gnc-owner-equal?)))
-
-              ;; loop into each APAR account split
-              (let lp ((acc-owners acc-owners)
-                       (acc-splits acc-splits)
+                   (splits-acc-others (list-split splits split-from-acct? account)))
+
+              (let lp ((acc-splits (car splits-acc-others))
                        (acc-totals (make-list (1+ num-buckets) 0))
+                       (invalid-splits invalid-splits)
+                       (tofree tofree)
                        (owners-and-aging '()))
-                (cond
-                 ((null? acc-owners)
-                  (loop (cdr accounts)
-                        other-acc-splits
-                        (if (null? owners-and-aging)
-                            accounts-and-owners
-                            (cons (list account owners-and-aging acc-totals)
-                                  accounts-and-owners))
-                        (append-reverse tofree split-owners)))
-
-                 (else
-                  (let* ((owner (car acc-owners))
-                         (splits-own-others (list-split acc-splits split-has-owner?
-                                                        owner))
-                         (owner-splits (car splits-own-others))
-                         (other-owner-splits (cdr splits-own-others))
-                         (aging (gnc:owner-splits->aging-list
-                                 owner-splits num-buckets report-date
-                                 date-type receivable))
-                         (aging-total (apply + aging)))
-                    (lp (cdr acc-owners)
-                        other-owner-splits
-                        (map + acc-totals
-                             (reverse (cons aging-total aging)))
-                        (if (or show-zeros (not (every zero? aging)))
-                            (cons (list owner aging aging-total)
-                                  owners-and-aging)
-                            owners-and-aging)))))))))))))
+
+                (match acc-splits
+                  (()
+                   (loop (cdr accounts)
+                         (cdr splits-acc-others)
+                         (if (null? owners-and-aging)
+                             accounts-and-owners
+                             (cons (list account owners-and-aging acc-totals)
+                                   accounts-and-owners))
+                         invalid-splits
+                         tofree))
+
+                  ;; some payment splits may have no owner in this
+                  ;; account. skip. see bug 797506.
+                  (((? split-owner-is-invalid? this) . rest)
+                   (gnc:warn "split " this " has no owner")
+                   (lp rest
+                       acc-totals
+                       (cons (list (_ "Payment has no owner") this) invalid-splits)
+                       tofree
+                       owners-and-aging))
+
+                  ((this . _)
+                   (match-let* ((owner (split->owner this))
+                                ((owner-splits . other-owner-splits)
+                                 (list-split acc-splits split-has-owner? owner))
+                                (aging (gnc:owner-splits->aging-list
+                                        owner-splits num-buckets report-date
+                                        date-type receivable))
+                                (aging-total (apply + aging)))
+                     (lp other-owner-splits
+                         (map + acc-totals (reverse (cons aging-total aging)))
+                         invalid-splits
+                         (cons owner tofree)
+                         (if (or show-zeros (any (negate zero?) aging))
+                             (cons (list owner aging aging-total) owners-and-aging)
+                             owners-and-aging)))))))))))))
     (gnc:report-finished)
     document))
 

commit e788480e34a09e2469b876953c61c2d652245eb9
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sat Jan 18 22:26:58 2020 +0800

    [new-aging] replace split->lot->split->lot with split->lot
    
    remove unnecessary call to get earliest-split

diff --git a/gnucash/report/business-reports/new-aging.scm b/gnucash/report/business-reports/new-aging.scm
index 5dd4b0831..2ee5bb945 100644
--- a/gnucash/report/business-reports/new-aging.scm
+++ b/gnucash/report/business-reports/new-aging.scm
@@ -193,7 +193,7 @@ exist but have no suitable transactions."))
 ;; simpler version of gnc:owner-from-split. must be gncOwnerFree after
 ;; use! see split-has-owner? above...
 (define (split->owner split)
-  (let* ((lot (xaccSplitGetLot (gnc-lot-get-earliest-split (xaccSplitGetLot split))))
+  (let* ((lot (xaccSplitGetLot split))
          (owner (gncOwnerNew))
          (use-lot-owner? (gncOwnerGetOwnerFromLot lot owner)))
     (unless use-lot-owner?

commit d688b6b15f71b5d99891dcc1c4096f0c5b39b108
Author: Ordtrogen <ordtrogen at gmail.com>
Date:   Fri Jan 3 17:06:15 2020 +0100

    L12N:sv_SE: Update account hierarchies according to BAS 2019

diff --git a/data/accounts/sv_SE/CMakeLists.txt b/data/accounts/sv_SE/CMakeLists.txt
index 5d0189268..83180b28d 100644
--- a/data/accounts/sv_SE/CMakeLists.txt
+++ b/data/accounts/sv_SE/CMakeLists.txt
@@ -1,8 +1,9 @@
 set(account_DATA
-	bas_2012.gnucash-xea
+	bas_2019_k1.gnucash-xea
+	bas_2019_k2_grund.gnucash-xea
 	acctchrt_common.gnucash-xea)
 
-set_dist_list(SV_SE_DIST ${account_DATA} README.bas_2012 CMakeLists.txt)
+set_dist_list(SV_SE_DIST ${account_DATA} CMakeLists.txt)
 
 install(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/sv_SE)
 file(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/sv_SE)
diff --git a/data/accounts/sv_SE/README.bas_2012 b/data/accounts/sv_SE/README.bas_2012
deleted file mode 100644
index ccfc4ceba..000000000
--- a/data/accounts/sv_SE/README.bas_2012
+++ /dev/null
@@ -1,15 +0,0 @@
-Account plan for Sweden
------------------------
-
-These notes are taken from
-https://bugs.gnucash.org/show_bug.cgi?id=724427
-and added here in case someone wants to look into some areas the
-original author was unsure of.
-
-* An advanced user with much knowledge about BAS might want to look over the
-  classification of the following accounts (but it should work as is too):
-
-  2510
-  2710--2790
-  8810--8850
-  8910--8999
diff --git a/data/accounts/sv_SE/bas_2012.gnucash-xea b/data/accounts/sv_SE/bas_2012.gnucash-xea
deleted file mode 100644
index 48bb82aa7..000000000
--- a/data/accounts/sv_SE/bas_2012.gnucash-xea
+++ /dev/null
@@ -1,6332 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<gnc-account-example 
-  xmlns="http://www.gnucash.org/XML/"
-  xmlns:act="http://www.gnucash.org/XML/act"
-  xmlns:addr="http://www.gnucash.org/XML/addr"
-  xmlns:bgt="http://www.gnucash.org/XML/bgt"
-  xmlns:billterm="http://www.gnucash.org/XML/billterm"
-  xmlns:book="http://www.gnucash.org/XML/book"
-  xmlns:bt-days="http://www.gnucash.org/XML/bt-days"
-  xmlns:bt-prox="http://www.gnucash.org/XML/bt-prox"
-  xmlns:cd="http://www.gnucash.org/XML/cd"
-  xmlns:cmdty="http://www.gnucash.org/XML/cmdty"
-  xmlns:cust="http://www.gnucash.org/XML/cust"
-  xmlns:employee="http://www.gnucash.org/XML/employee"
-  xmlns:entry="http://www.gnucash.org/XML/entry"
-  xmlns:fs="http://www.gnucash.org/XML/fs"
-  xmlns:gnc="http://www.gnucash.org/XML/gnc"
-  xmlns:gnc-act="http://www.gnucash.org/XML/gnc-act"
-  xmlns:invoice="http://www.gnucash.org/XML/invoice"
-  xmlns:job="http://www.gnucash.org/XML/job"
-  xmlns:lot="http://www.gnucash.org/XML/lot"
-  xmlns:order="http://www.gnucash.org/XML/order"
-  xmlns:owner="http://www.gnucash.org/XML/owner"
-  xmlns:price="http://www.gnucash.org/XML/price"
-  xmlns:recurrence="http://www.gnucash.org/XML/recurrence"
-  xmlns:slot="http://www.gnucash.org/XML/slot"
-  xmlns:split="http://www.gnucash.org/XML/split"
-  xmlns:sx="http://www.gnucash.org/XML/sx"
-  xmlns:taxtable="http://www.gnucash.org/XML/taxtable"
-  xmlns:trn="http://www.gnucash.org/XML/trn"
-  xmlns:ts="http://www.gnucash.org/XML/ts"
-  xmlns:tte="http://www.gnucash.org/XML/tte"
-  xmlns:vendor="http://www.gnucash.org/XML/vendor">
-    <gnc-act:title>
-      Kontoplan BAS 2012
-    </gnc-act:title>
-    <gnc-act:short-description>
-      Kontoplan BAS 2012
-    </gnc-act:short-description>
-    <gnc-act:long-description>
-      Ett urval av BAS 2012-konton som för de flesta företag är tillräckligt för en grundläggande bokföring.
-
-För mer information om BAS kontoplaner se http://www.bas.se/.
-    </gnc-act:long-description>
-<gnc-act:exclude-from-select-all>1</gnc-act:exclude-from-select-all>
-<gnc:account version="2.0.0">
-  <act:name>Root Account</act:name>
-  <act:id type="new">5df07084fb48f599732df308a71d8246</act:id>
-  <act:type>ROOT</act:type>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>Obalans-SEK</act:name>
-  <act:id type="new">8eb26e2d3d7c53a622c5cb88347c240f</act:id>
-  <act:type>BANK</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">#eeee15152f2f</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>Föräldralös-SEK</act:name>
-  <act:id type="new">b1d1cf96cbe3c9c0db5c7fd30ce35d56</act:id>
-  <act:type>BANK</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1030 Patent</act:name>
-  <act:id type="new">239a89c8081087a789d3e787d68e8d7f</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1030</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1039 Ackumulerade avskrivningar på patent</act:name>
-  <act:id type="new">cb36a1dddbc2b4b993c6a7cb0f60fc78</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1039</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-    <slot>
-      <slot:key>last-num</slot:key>
-      <slot:value type="string">1</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1060 Hyresrätter, tomträtter och liknande</act:name>
-  <act:id type="new">82f7eeb17efd2e5557a1dd0c4895750a</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1060</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1069 Ackumulerade avskrivningar på hyresrätter, tomträtter och liknande</act:name>
-  <act:id type="new">7ca11e93423142d20946fc46ba6323f2</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1069</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1110 Byggnader</act:name>
-  <act:id type="new">90a24db16dec9c0f67d0a10a61064e34</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1110</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1119 Ackumulerade avskrivningar på byggnader</act:name>
-  <act:id type="new">b0e67f0df6cfb38beb1d2beba7a0542c</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1119</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1130 Mark</act:name>
-  <act:id type="new">9b1327f0309d862aa49cd35a7cc36feb</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1130</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1150 Markanläggningar</act:name>
-  <act:id type="new">44cfafd593c9946f675800e496066917</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1150</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1159 Ackumulerade avskrivningar på markanläggningar</act:name>
-  <act:id type="new">7555147c7129c5caba1e1876743cdf75</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1159</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1210 Maskiner och andra tekniska anläggningar</act:name>
-  <act:id type="new">47192db2a2f95d877fec1bcdbf3d7863</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1210</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1219 Ackumulerade avskrivningar på maskiner och andra tekniska anläggningar</act:name>
-  <act:id type="new">c8286a9d162c44ef1c35fa7116bcb94c</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1219</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1220 Inventarier och verktyg</act:name>
-  <act:id type="new">fc2b764be2cdc6e2d30b07a7f9ed8d6c</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1220</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1229 Ackumulerade avskrivningar på inventarier och verktyg</act:name>
-  <act:id type="new">1baace30d40af65675f0d70414a5b9ae</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1229</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1240 Bilar och andra transportmedel</act:name>
-  <act:id type="new">1c3b92a0c2cac9e153224720f3e5b8b0</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1240</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1249 Ackumulerade avskrivningar på bilar och andra transportmedel</act:name>
-  <act:id type="new">541c9a36435b436540b0adbb5e3661fb</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1249</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1250 Datorer</act:name>
-  <act:id type="new">466108614a9c0d4cbe44070cd663c8d4</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1250</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1259 Ackumulerade avskrivningar på datorer</act:name>
-  <act:id type="new">89d53716d08b21f3056bd19bdc5f3dfb</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1259</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1290 Övriga materiella anläggningstillgångar</act:name>
-  <act:id type="new">21f72be482e0cb3c744374067d12f443</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1290</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1291 Konst och liknande tillgångar</act:name>
-  <act:id type="new">73f9e270d8f3ee3ded02e5895dea21a0</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1291</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1299 Ackumulerade avskrivningar på övriga materiella anläggningstillgångar</act:name>
-  <act:id type="new">d4deedf7d3d206f7a89255a919582853</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1299</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1350 Andelar och värdepapper i andra företag</act:name>
-  <act:id type="new">a1d0140d8d121321771e1bd5f50b2700</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1350</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1380 Andra långfristiga fordringar</act:name>
-  <act:id type="new">d7b33dcf73e60f63275da4dc35595ed1</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1380</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-    <slot>
-      <slot:key>last-num</slot:key>
-      <slot:value type="string">999999</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1410 Lager av råvaror</act:name>
-  <act:id type="new">d550075ecf06badf04560621ba04da8e</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1410</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1419 Förändring av lager av råvaror</act:name>
-  <act:id type="new">a0121da91161253676c4ada1ffed8bef</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1419</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1440 Produkter i arbete</act:name>
-  <act:id type="new">c3d7ae4506ddf528290d8618ad3eaa0b</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1440</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1449 Förändring av produkter i arbete</act:name>
-  <act:id type="new">3d400959426f185f06555ffa4863b1b6</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1449</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1450 Lager av färdiga varor</act:name>
-  <act:id type="new">262cea1af1b26c79054607b3c885991b</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1450</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1459 Förändring av lager av färdiga varor</act:name>
-  <act:id type="new">46044152a2f7ad7375ce7a6ed3f5f35a</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1459</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1460 Lager av handelsvaror</act:name>
-  <act:id type="new">f897299d07fbb01c405e8401563f56e5</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1460</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1469 Förändring av lager av handelsvaror</act:name>
-  <act:id type="new">53562b216905760e8dbb2ab16c603e7f</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1469</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1470 Pågående arbeten</act:name>
-  <act:id type="new">a226777cba63366f90090e2e0aa2019c</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1470</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1479 Förändring av pågående arbeten</act:name>
-  <act:id type="new">7d83558f7c4deb5fef969055cc84fdfe</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1479</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1480 Förskott för varor och tjänster</act:name>
-  <act:id type="new">e7305e406db41997e91b88c7b6e96363</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1480</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1490 Övriga lagertillgångar</act:name>
-  <act:id type="new">09dc3c24e251fbafc65d46e8a1237d71</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1490</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1510 Kundfordringar</act:name>
-  <act:id type="new">b9e033933cf1ff719f9847a4fe1f5a7a</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1510</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1513 Kundfordringar – delad faktura</act:name>
-  <act:id type="new">cc42ec18c3f15942c797211c3ead2a4b</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1515 Osäkra kundfordringar</act:name>
-  <act:id type="new">38c1c6ebf9a9983aa4e78b1743a3276d</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1519 Nedskrivning av kundfordringar</act:name>
-  <act:id type="new">433584e85721bb71a99cc2853c6a4701</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1580 Fordringar för kontokort och kuponger</act:name>
-  <act:id type="new">2efeb32bfafaa5d7a53c6edd82f86126</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1580</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1610 Kortfristiga fordringar hos anställda</act:name>
-  <act:id type="new">7d87868f24bb0cd8e9653c29c05decfc</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1610</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1630 Avräkning för skatter och avgifter (skattekonto)</act:name>
-  <act:id type="new">2e733c042061584ba780b5b11321ecec</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1630</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1640 Skattefordringar</act:name>
-  <act:id type="new">bd5a2307482ed93ad80a36bd40d78984</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1640</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1650 Momsfordran</act:name>
-  <act:id type="new">cfea3a3b8d526ff282182fc4c40e1d58</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1650</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1680 Andra kortfristiga fordringar</act:name>
-  <act:id type="new">116597f03b095a70e0997b535407276e</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1680</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1710 Förutbetalda hyreskostnader</act:name>
-  <act:id type="new">00a2f44b8fabc6172e62473fc6f04f98</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1710</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1720 Förutbetalda leasingavgifter, kortfristig del</act:name>
-  <act:id type="new">5aa96227d7667bfd469d09f3bd72289a</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1720</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1730 Förutbetalda försäkringspremier</act:name>
-  <act:id type="new">265ae84149ecccc2c9355d341ea86858</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1730</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1740 Förutbetalda räntekostnader</act:name>
-  <act:id type="new">ff291391727056fe4ddb5f535e0dc8a3</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1740</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1750 Upplupna hyresintäkter</act:name>
-  <act:id type="new">60c56b813e5a8a2513972e5f8412a2ed</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1750</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1760 Upplupna ränteintäkter</act:name>
-  <act:id type="new">75af53d6da64c514c0f76819e3d713c8</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1760</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1790 Övriga förutbetalda kostnader och upplupna intäkter</act:name>
-  <act:id type="new">203cc093efcd40660a28de3d3ccf7d03</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1790</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1810 Andelar i börsnoterade företag</act:name>
-  <act:id type="new">1261bc513c1c0b18eba5a5f15ec25318</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1810</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1880 Andra kortfristiga placeringar</act:name>
-  <act:id type="new">6004b2e051c8962ac46b25f881e198de</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1880</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1890 Nedskrivning av kortfristiga placeringar</act:name>
-  <act:id type="new">80bedd1f83d171824ebf5b6906ed8eed</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1890</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1910 Kassa</act:name>
-  <act:id type="new">9dd99a757606bea0d9960f1f7fac5ac9</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1910</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1920 PlusGiro</act:name>
-  <act:id type="new">1e03d5b8a1ef0570d6e8816525d2cb04</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1920</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1930 Företagskonto/checkkonto/affärskonto</act:name>
-  <act:id type="new">9e3889245bc1fe8e60e4ebde71121e55</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1930</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-    <slot>
-      <slot:key>last-num</slot:key>
-      <slot:value type="string">72</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>1940 Övriga bankkonton</act:name>
-  <act:id type="new">c05d3b4fb381ae36f77995fbf36c887a</act:id>
-  <act:type>ASSET</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>1940</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2010 Eget kapital, delägare 1</act:name>
-  <act:id type="new">51f24b40f6b7ab6c9e0b68c8e59682db</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2010</act:code>
-  <act:description>Eget kapital för enskild näringsidkare och delägare 1 i handels- och kommanditbolag</act:description>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2011 Egna varuuttag</act:name>
-  <act:id type="new">c5e508332917d9ebbceb297262dbafe9</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2011</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2012 Avräkning för skatter och avgifter (skattekonto)</act:name>
-  <act:id type="new">aee12bb799a282ede2dd3f94c240afb0</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2012</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2013 Övriga egna uttag</act:name>
-  <act:id type="new">cfb05f3b914af4678e618e1738f738e2</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2013</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-    <slot>
-      <slot:key>last-num</slot:key>
-      <slot:value type="string">121</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2016 Förändring i fond för verkligt värde</act:name>
-  <act:id type="new">c1f1248ed0415cb42e5a5bf8f18481de</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2016</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2017 Ã…rets kapitaltillskott</act:name>
-  <act:id type="new">9c999a847ac3b172840a57263c65ec80</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2017</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2018 Övriga egna insättningar</act:name>
-  <act:id type="new">9a1fba9e087740dab84f57daebff611a</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2018</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-    <slot>
-      <slot:key>last-num</slot:key>
-      <slot:value type="string">109</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2019 Årets resultat, delägare 1</act:name>
-  <act:id type="new">56e05aa775350d8b7607b09c1ccde11f</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2019</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2020 Eget kapital, delägare 2</act:name>
-  <act:id type="new">9c2d120c4d6b45481eb5b8d4b62008a2</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2020</act:code>
-  <act:description>Eget kapital för delägare 2 i handels- och kommanditbolag</act:description>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2030 Eget kapital, delägare 3</act:name>
-  <act:id type="new">bbefcaa9f3f3103ddb062c5e63fe949b</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2030</act:code>
-  <act:description>Eget kapital för delägare 3 i handels- och  kommanditbolag</act:description>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2040 Eget kapital, delägare 4</act:name>
-  <act:id type="new">da65dce36c2e20960d8fd5134ee787ce</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2040</act:code>
-  <act:description>Eget kapital för delägare 4 i handels- och kommanditbolag</act:description>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2060 Eget kapital i ideella föreningar, stiftelser och registrerade trossamfund</act:name>
-  <act:id type="new">d0b5a4945cb8de4bbb5b33b12b980b16</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2060</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2070 Ändamålsbestämda medel</act:name>
-  <act:id type="new">6e0ced09ad9c1dcd5499aef5cd40934e</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2070</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2080 Bundet eget kapital</act:name>
-  <act:id type="new">935bbd2db358dbc20876b7847c20cd80</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2080</act:code>
-  <act:description>Eget kapital i aktiebolag och ekonomiska föreningar</act:description>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-    <slot>
-      <slot:key>placeholder</slot:key>
-      <slot:value type="string">true</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2081 Aktiekapital</act:name>
-  <act:id type="new">ca30071bebc4372750a979b207fb5ed9</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2081</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2083 Medlemsinsatser</act:name>
-  <act:id type="new">39b595f22dfb3095fcab6a6eb2a83f3d</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2083</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2086 Reservfond</act:name>
-  <act:id type="new">03da1698f6791485ae1ddf726dcfd7cd</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2086</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2090 Fritt eget kapital</act:name>
-  <act:id type="new">abcb13e40f4d253ef842e99eb6039ebd</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2090</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2091 Balanserad vinst eller förlust</act:name>
-  <act:id type="new">0bfac2b1933d6a291cbb547b465d8729</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2091</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2098 Vinst eller förlust från föregående år</act:name>
-  <act:id type="new">b07b8baeca79899fef0ab67d68d0d1e4</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2098</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2099 Ã…rets resultat</act:name>
-  <act:id type="new">b65c9d608bd6349ac64f4b595e067b13</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2099</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2110 Periodiseringsfonder</act:name>
-  <act:id type="new">00ed5144cad61dc81681ae8f59b6cada</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-    <slot>
-      <slot:key>placeholder</slot:key>
-      <slot:value type="string">true</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2110 Periodiseringsfond vid 2010 års taxering</act:name>
-  <act:id type="new">9ac3e0bf11f84ab54569815aec50eb44</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2110</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2111 Periodiseringsfond vid 2011 års taxering</act:name>
-  <act:id type="new">4b87bb18e6b28b330c05c3fef332f8fc</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2111</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2112 Periodiseringsfond vid 2012 års taxering</act:name>
-  <act:id type="new">1e957f8ca0762c8d1e5dd3aa66225955</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2112</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2113 Periodiseringsfond vid 2013 års taxering</act:name>
-  <act:id type="new">2d85f76a1a884bc70f7e1227d0ca5d63</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2113</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2114 Periodiseringsfond vid 2014 års taxering</act:name>
-  <act:id type="new">ba324299bd0b5d22ff38eb41c1e34f1f</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2114</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2115 Periodiseringsfond vid 2015 års taxering</act:name>
-  <act:id type="new">5084d99c20dd1b91d47f30e3c0549f89</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2115</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2120 Periodiseringsfonder</act:name>
-  <act:id type="new">2bc0fdee3669189ed7de25df004a846d</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-    <slot>
-      <slot:key>placeholder</slot:key>
-      <slot:value type="string">true</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2125 Periodiseringsfond vid 2005 års taxering</act:name>
-  <act:id type="new">1b37d4728f6b57f06d9f2fb2291453ad</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2125</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2126 Periodiseringsfond vid 2006 års taxering</act:name>
-  <act:id type="new">96b1b033eed9bee5a4a46277716590b4</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2126</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2127 Periodiseringsfond vid 2007 års taxering</act:name>
-  <act:id type="new">cd1a7340b22cf0b5f47c229d56bacb04</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2127</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2128 Periodiseringsfond vid 2008 års taxering</act:name>
-  <act:id type="new">aa524ca31fd0d8b60d26e008884a38df</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2128</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2129 Periodiseringsfond vid 2009 års taxering</act:name>
-  <act:id type="new">24e22041e193b042124b6c663fc20554</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2129</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2150 Ackumulerade överavskrivningar</act:name>
-  <act:id type="new">e7ef20d23cbc4f0ae4f83b024b3e3458</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2150</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2210 Avsättningar för pensioner enligt tryggandelagen</act:name>
-  <act:id type="new">5e0a3a1d80984274068cdb644aa045c8</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2210</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2220 Avsättningar för garantier</act:name>
-  <act:id type="new">c77b3d60e5eb373f6d1e51dcd6eaac43</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2220</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2290 Övriga avsättningar</act:name>
-  <act:id type="new">2626e427abb5146084954ca0a5a5f060</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2290</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2330 Checkräkningskredit</act:name>
-  <act:id type="new">05b6a766fe9b991bf42994848c6fdfdc</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2330</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2350 Andra långfristiga skulder till kreditinstitut</act:name>
-  <act:id type="new">cece56794a5a77829adddcfc9dbd43b1</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2350</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2390 Övriga långfristiga skulder</act:name>
-  <act:id type="new">db6f4b353d24bfaeb239a067181105e8</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2390</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-    <slot>
-      <slot:key>last-num</slot:key>
-      <slot:value type="string">110</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2393 Lån från närstående personer, långfristig del</act:name>
-  <act:id type="new">e6da5142dc9a81201c62b2d60a7ff62e</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2393</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2410 Andra kortfristiga låneskulder till kreditinstitut</act:name>
-  <act:id type="new">0c29fbbc5e200f4ecdf4602800148f55</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2410</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2420 Förskott från kunder</act:name>
-  <act:id type="new">b79d0d57c0801b8b7f46d9314e18d75e</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2420</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2440 Leverantörsskulder</act:name>
-  <act:id type="new">2aacb8080c22ff2e7fb81164b23fd3ba</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2440</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2480 Checkräkningskredit, kortfristig</act:name>
-  <act:id type="new">14689249da5b7d2ba013c7afe355c616</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2480</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2490 Övriga kortfristiga skulder till kreditinstitut, kunder och leverantörer</act:name>
-  <act:id type="new">cec6048b04a3def6c7c81f53d3056c66</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2490</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2510 Skatteskulder</act:name>
-  <act:id type="new">84e88eea68eeb628ab7afb32b5532e73</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2510</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2610 Utgående moms, 25 %</act:name>
-  <act:id type="new">419e71cb06e38ff8b498a51ef0517d36</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2610</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2611 Utgående moms på försäljning inom Sverige, 25 %</act:name>
-  <act:id type="new">43b38510275eb4c4911bcb85da20697f</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2611</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2612 Utgående moms på egna uttag, 25 %</act:name>
-  <act:id type="new">8f7e82b7c0f8b243a677ad29b23bbf07</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2612</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2613 Utgående moms för uthyrning, 25 %</act:name>
-  <act:id type="new">1a8b235b4852f4e22f0db78c04564c27</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2613</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2614 Beräknad utgående moms på tjänsteförvärv från utlandet, 25 %</act:name>
-  <act:id type="new">d84eb5acad93bcf5d21e471dbb2a2cdf</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2614</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2615 Beräknad utgående moms på varuförvärv från annat EU-land, 25 %</act:name>
-  <act:id type="new">1d020cc07964a0b257449401fafa1ae8</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2615</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2616 Utgående moms VMB 25 %</act:name>
-  <act:id type="new">6570e6df2a35f9fb5f1442a9cf4800bc</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2616</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2617 Utgående moms omvänd skattskyldighet varor och tjänster i Sverige, 25 %</act:name>
-  <act:id type="new">c1252a59cc3cdbfd080a202d121254ac</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2617</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2620 Utgående moms, 12 %</act:name>
-  <act:id type="new">9fa1e2ef799836868f1f3d874360b945</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2620</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2621 Utgående moms på försäljning inom Sverige, 12 %</act:name>
-  <act:id type="new">d483108e8771d7129364ac47f737deb2</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2621</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2622 Utgående moms på egna uttag, 12 %</act:name>
-  <act:id type="new">a6c29456caae05125a2d4e18836311d0</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2622</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2623 Utgående moms för uthyrning, 12 %</act:name>
-  <act:id type="new">7479e29f5e85ee0f1c412893f5d3fff1</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2623</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2624 Beräknad utgående moms på tjänsteförvärv från utlandet, 12 %</act:name>
-  <act:id type="new">8b7b2b45df16e77bb062650a7225afd3</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2624</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2625 Beräknad utgående moms på varuförvärv från annat EU-land, 12 %</act:name>
-  <act:id type="new">8305a58e6b9ba96c5616f3261b24ea87</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2625</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2626 Utgående moms VMB 12 %</act:name>
-  <act:id type="new">a35ed354fead421967af155423502249</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2626</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2630 Utgående moms, 6 %</act:name>
-  <act:id type="new">ef916fa4249840372c89fe8e2cd03234</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2630</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2631 Utgående moms på försäljning inom Sverige, 6 %</act:name>
-  <act:id type="new">f8cb4f0a3a53844681d79811d71add1a</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2631</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2632 Utgående moms på egna uttag, 6 %</act:name>
-  <act:id type="new">c2ca29aad57fda80ede6a0d280e65ada</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2632</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2633 Utgående moms för uthyrning, 6 %</act:name>
-  <act:id type="new">5312c41b7d02a323c8e247e454e96df3</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2633</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2634 Beräknad utgående moms på tjänsteförvärv från utlandet, 6 %</act:name>
-  <act:id type="new">d37c1bf20865a636dc2793baab04791a</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2634</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2635 Beräknad utgående moms på varuförvärv från annat EU-land, 6 %</act:name>
-  <act:id type="new">f91bb4507443e417db3f0d356a09f0ae</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2635</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2636 Utgående moms VMB 6 %</act:name>
-  <act:id type="new">df1380f8d086ea79fcb69db76df426a3</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2636</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2640 Ingående moms</act:name>
-  <act:id type="new">27f018f9b9d1fa8a13349c140e669088</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2640</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2641 Debiterad ingående moms</act:name>
-  <act:id type="new">71a93c3019393adbbd3a121babbc6811</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2641</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2642 Debiterad ingående moms i anslutning till frivillig skattskyldighet</act:name>
-  <act:id type="new">9f7f0883959285e0e07dcc80eb9ad22c</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2642</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2645 Beräknad ingående moms på förvärv från utlandet</act:name>
-  <act:id type="new">2871b1aa3cea4f41686c05c22bf9bb72</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2645</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2646 Ingående moms på uthyrning</act:name>
-  <act:id type="new">fd9aeb8d0f875845149730ec4b1a254a</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2646</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2647 Ingående moms omvänd skattskyldighet varor och tjänster i Sverige</act:name>
-  <act:id type="new">59ea2fb6d60a73e53ea464c86d6292a5</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2647</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2648 Vilande ingående moms</act:name>
-  <act:id type="new">b959644b0916a8bd4d4421321f7ab7c7</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2648</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2649 Ingående moms, blandad verksamhet</act:name>
-  <act:id type="new">b95a2e37580e3cc18d3846c9e4b04ff5</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2649</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2650 Redovisningskonto för moms</act:name>
-  <act:id type="new">f7a15f6636d66108c30faf45a621f0b9</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2650</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2710 Personalskatt</act:name>
-  <act:id type="new">271c1e0419852878eb21b17a8704367a</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2710</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2730 Lagstadgade sociala avgifter och särskild löneskatt</act:name>
-  <act:id type="new">2c0b488697fd96d2d494e0c142e9ba4e</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2730</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2740 Avtalade sociala avgifter</act:name>
-  <act:id type="new">d824de8c73d6a6fe89b84970a3b4669b</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2740</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2790 Övriga löneavdrag</act:name>
-  <act:id type="new">8094a5ee6c6d5a0a52acb522ffc85f58</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2790</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2820 Kortfristiga skulder till anställda</act:name>
-  <act:id type="new">2287fb93e424496f0bb781d073844510</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2820</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2840 Kortfristiga låneskulder</act:name>
-  <act:id type="new">d56aa7d1daada99374b7096fc10eb93f</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2840</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2890 Övriga kortfristiga skulder</act:name>
-  <act:id type="new">dddaefbce80928699544e826f8e4aade</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>2890</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2910 Upplupna löner</act:name>
-  <act:id type="new">c1bcd6be8cc9eeabd1bd36ba91483e05</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2920 Upplupna semesterlöner</act:name>
-  <act:id type="new">e6da1c94d0c049ab6adbbccd906fd73f</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2940 Upplupna lagstadgade sociala och andra avgifter</act:name>
-  <act:id type="new">9132fe0c09abe2dde26ae2de9d437647</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2950 Upplupna avtalade sociala avgifter</act:name>
-  <act:id type="new">e6e22a07f2b099c2550b8eb0ab92a4c8</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2960 Upplupna räntekostnader</act:name>
-  <act:id type="new">33dc9d4c941740f1fc317bf3d4db46be</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2970 Förutbetalda intäkter</act:name>
-  <act:id type="new">a40e163d6db2f11eb6902ce563466f15</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2990 Övriga upplupna kostnader och förutbetalda intäkter</act:name>
-  <act:id type="new">8626b12075e3ad1c07e8317170521ea7</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>2999 OBS-konto</act:name>
-  <act:id type="new">985e2bf219dc3214caf342f205a6ed4c</act:id>
-  <act:type>LIABILITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3000 Försäljning inom Sverige</act:name>
-  <act:id type="new">48784eca275d7382341b27121e2a3fec</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3000</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3001 Försäljning inom Sverige, 25 % moms</act:name>
-  <act:id type="new">81bdc4aea5c30c7841a0588ed0030758</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3001</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3002 Försäljning inom Sverige, 12 % moms</act:name>
-  <act:id type="new">364a0c21899978f6b70fc92f98d2ade6</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3002</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3003 Försäljning inom Sverige, 6 % moms</act:name>
-  <act:id type="new">e5da8e848f57e4cc499352977f16aa96</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3003</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3004 Försäljning inom Sverige, momsfri</act:name>
-  <act:id type="new">7b2d211bf32e2d52ba292190f6f37289</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3004</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3100 Försäljning av varor utanför Sverige</act:name>
-  <act:id type="new">a0fc05dadabb86ff3a7f3c8646e6c03c</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3100</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3105 Försäljning varor till land utanför EU</act:name>
-  <act:id type="new">7098aa8d93e95b0f8e1a74a924d2ead1</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3105</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3106 Försäljning varor till annat EU-land, momspliktig</act:name>
-  <act:id type="new">bad41ad35f6b1552ec8b10d0026ca8bb</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3106</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3108 Försäljning varor till annat EU-land, momsfri</act:name>
-  <act:id type="new">9b7e62233b6ec06836724c886c7ea920</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3108</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3200 Försäljning VMB och omvänd moms</act:name>
-  <act:id type="new">95a296b676893507f582699f063a52bd</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3200</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3211 Försäljning positiv VMB 25 %</act:name>
-  <act:id type="new">a417a15117628d394e8192805b6acbad</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3211</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3212 Försäljning negativ VMB 25 %</act:name>
-  <act:id type="new">d691a7f8296985fd78c8109077ce657a</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3212</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3231 Försäljning inom byggsektorn, omvänd skattskyldighet moms</act:name>
-  <act:id type="new">fe5764c7c6d7076138eefb9107811844</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3231</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3300 Försäljning av tjänster utanför Sverige</act:name>
-  <act:id type="new">5a11cb4f37034b934471c5f5af0fa285</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3300</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3305 Försäljning tjänster till land utanför EU</act:name>
-  <act:id type="new">ad491b223e23526682e1e6eaadf04f36</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3305</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3308 Försäljning tjänster till annat EU-land</act:name>
-  <act:id type="new">a0e7cc39e2dea105eda8a3924b55dced</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3308</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3400 Försäljning, egna uttag</act:name>
-  <act:id type="new">e9f78d71f75ee04729d7935b211df697</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3400</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3401 Egna uttag momspliktiga, 25 %</act:name>
-  <act:id type="new">f298daa00929483640a152724d0dca46</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3401</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3402 Egna uttag momspliktiga, 12 %</act:name>
-  <act:id type="new">9c6657b64fa08263491703be973c6e67</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3402</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3403 Egna uttag momspliktiga, 6 %</act:name>
-  <act:id type="new">a29967bd3bc0aa9b8d0fdc854f684cc0</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3403</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3404 Egna uttag, momsfria</act:name>
-  <act:id type="new">e19272a710e1dfa227195afd404b9fae</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3404</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3500 Fakturerade kostnader (gruppkonto)</act:name>
-  <act:id type="new">6db119b8cadd4379f2c86e6b69684c34</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3500</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3510 Fakturerat emballage</act:name>
-  <act:id type="new">622bba74ce1512acad5c24fbea522820</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3510</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3520 Fakturerade frakter</act:name>
-  <act:id type="new">e145e417f31251bc351f105c6e6d921f</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3520</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3521 Fakturerade frakter, EU-land</act:name>
-  <act:id type="new">80d82b79ad2941a1a4a9213f20394d6e</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3521</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3522 Fakturerade frakter, export</act:name>
-  <act:id type="new">021d5412098fe3adbb6d992b72bf143e</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3522</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3530 Fakturerade tull- och speditionskostnader m.m.</act:name>
-  <act:id type="new">8c46999171c098e958ec51eeddaa9781</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3530</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3540 Faktureringsavgifter</act:name>
-  <act:id type="new">b175b76f525ae7dfa231e389cbcc5aa8</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3540</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3541 Faktureringsavgifter, EU-land</act:name>
-  <act:id type="new">003f6367bd375025816c0f736b4630bb</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3541</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3542 Faktureringsavgifter, export</act:name>
-  <act:id type="new">86151dddbad124a851fcc603b0d903b9</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3542</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3600 Rörelsens sidointäkter (gruppkonto)</act:name>
-  <act:id type="new">a8b06af3907a50f675f6939748ab4572</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3600</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3730 Lämnade rabatter</act:name>
-  <act:id type="new">21d37c96ea6e3b8cd6bb90a0aa9141ed</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3730</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3740 Öres- och kronutjämning</act:name>
-  <act:id type="new">a600129f70c88fb84d394d9a01cd9aa6</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3740</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3800 Aktiverat arbete för egen räkning (gruppkonto)</act:name>
-  <act:id type="new">edf2bd8cdaee42a807bb660a2c8db152</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3800</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3900 Övriga rörelseintäkter (gruppkonto)</act:name>
-  <act:id type="new">0e8f3d710aa7ab7e9fd38030b02edda0</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3910 Hyres- och arrendeintäkter</act:name>
-  <act:id type="new">762032df06a0ab24d5bc4a5ee04c9f55</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3911 Hyresintäkter</act:name>
-  <act:id type="new">ea7c386968264156c49cd114ff0d7760</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3911</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3913 Frivilligt momspliktiga hyresintäkter</act:name>
-  <act:id type="new">a35f14cfa4ff5346c5b686a94f0aa5f5</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3913</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3960 Valutakursvinster på fordringar och skulder av rörelsekaraktär</act:name>
-  <act:id type="new">b5780312ed4339f0a89b7d6ad76dd780</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3960</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3970 Vinst vid avyttring av immateriella och materiella anläggningstillgångar</act:name>
-  <act:id type="new">24efa4da075a6b41ea26aa87c0bd9cf0</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3970</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>3980 Erhållna offentliga stöd m.m.</act:name>
-  <act:id type="new">c3ae8606f31a1c678eadc3fe2418a26c</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3980</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4000 Inköp av varor från Sverige</act:name>
-  <act:id type="new">d25ea315a5f4f4e19bf1053c764573af</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4000</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4200 SÃ¥lda varor VMB</act:name>
-  <act:id type="new">9c60add0baa659eadde6378fe60add57</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4200</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4211 SÃ¥lda varor positiv VMB 25 %</act:name>
-  <act:id type="new">06d5142d26f770f21f3e7cdb669ca715</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4211</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4212 SÃ¥lda varor negativ VMB 25 %</act:name>
-  <act:id type="new">03b63cb39501422019779a5bedf8a059</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4212</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4400 Inköpta tjänster i Sverige, omvänd skattskyldighet</act:name>
-  <act:id type="new">b6efa7888cd749893f197ee3b47edc54</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4400</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4425 Inköpta tjänster i Sverige, omvänd skattskyldighet, 25 %</act:name>
-  <act:id type="new">1e5947d26c1903db863991ddcc5de08a</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4425</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4426 Inköpta tjänster i Sverige, omvänd skattskyldighet, 12 %</act:name>
-  <act:id type="new">8992684e282bc358b97a260023f541af</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4426</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4427 Inköpta tjänster i Sverige, omvänd skattskyldighet, 6 %</act:name>
-  <act:id type="new">1ea828fa594139a9cead8e92ad85f7b8</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4427</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4500 Inköp från annat EU-land</act:name>
-  <act:id type="new">38100bb2ccbe51dacc6da86deb4eb75e</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4500</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4515 Inköp av varor från annat EU-land, 25 %</act:name>
-  <act:id type="new">8140a1d14aa6f6dbe5fa21e23bb05dbf</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4515</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4516 Inköp av varor från annat EU-land, 12 %</act:name>
-  <act:id type="new">73629c283fefbdecfab3782e13854d45</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4516</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4517 Inköp av varor från annat EU-land, 6 %</act:name>
-  <act:id type="new">5cd48f8056212281a6a0959b2ee009d9</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4517</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4518 Inköp av varor från annat EU-land, momsfri</act:name>
-  <act:id type="new">ace52485a79685b04d46dcf58c368280</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4518</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4535 Inköp av tjänster från annat EU-land, 25 %</act:name>
-  <act:id type="new">d71982d2024e04a2c0d18292eda1edf0</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4535</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4536 Inköp av tjänster från annat EU-land, 12 %</act:name>
-  <act:id type="new">097e6790118a51ed1945e71d458541b9</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4536</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4537 Inköp av tjänster från annat EU-land, 6 %</act:name>
-  <act:id type="new">51a084be681461c7379135d6393b5d02</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4537</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4538 Inköp av tjänster från annat EU-land, momsfri</act:name>
-  <act:id type="new">c56147b0d940ca59360e8e239910f199</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4538</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4600 Legoarbeten och underentreprenader (gruppkonto)</act:name>
-  <act:id type="new">f78abdfd54fec20fcf2d314fead6a316</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4600</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4700 Reduktion av inköpspriser (gruppkonto)</act:name>
-  <act:id type="new">c86b54b25424b09cf59246301f225de4</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4700</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4900 Förändring av lager (gruppkonto)</act:name>
-  <act:id type="new">5556ffa0ceda660ebf72cc40f7b8d482</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4900</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4910 Förändring av lager av råvaror</act:name>
-  <act:id type="new">93734aa7fde7b0a3769b0fdd64f367c4</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4910</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4920 Förändring av lager av tillsatsmaterial och förnödenheter</act:name>
-  <act:id type="new">a694983ec2d61963ea6e6b547a085765</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4920</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4930 Förändring av lager av halvfabrikat</act:name>
-  <act:id type="new">a54e53537bf74b86e4ab7d2788efa6aa</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4930</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4931 Förändring av lager av köpta halvfabrikat</act:name>
-  <act:id type="new">f141bf3c723d1a545b033c03d9b592a0</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4931</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4932 Förändring av lager av egentillverkade halvfabrikat</act:name>
-  <act:id type="new">177d23a2c1b6c6b764bed7ff77f6988f</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4932</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4940 Förändring av produkter i arbete</act:name>
-  <act:id type="new">32666031c290159096b093e2592bfcdb</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4940</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4950 Förändring av lager av färdiga varor</act:name>
-  <act:id type="new">52e30e4ee391e7b7ed6b0823b378c55b</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4950</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4960 Förändring av lager av handelsvaror</act:name>
-  <act:id type="new">7dbb14b20d98ca55db956f7b7157079b</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4960</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>4970 Förändring av pågående arbeten, nedlagda kostnader</act:name>
-  <act:id type="new">2ead8b6958195efd816f3d867ca8c374</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>4970</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5010 Lokalhyra</act:name>
-  <act:id type="new">6c19c2b038ce141731d9d864eedc85c9</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5010</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5020 El för belysning</act:name>
-  <act:id type="new">12d45845cb7f9fd36328af9a8d9826f2</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5020</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5030 Värme</act:name>
-  <act:id type="new">8d8fef727db86462e1ba159e8162a3a6</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5030</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5040 Vatten och avlopp</act:name>
-  <act:id type="new">4f25a186b746a1693f99819c4388f2a8</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5040</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5060 Städning och renhållning</act:name>
-  <act:id type="new">36200f31e0b63f0041de46f8d9b10593</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5060</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5070 Reparation och underhåll av lokaler</act:name>
-  <act:id type="new">fb760be97b69baaed6595775e579ad86</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5070</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5120 El för belysning</act:name>
-  <act:id type="new">e183aa14c75edce0c23dbd84f8d74e1c</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5120</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5130 Värme</act:name>
-  <act:id type="new">cb01ef89aa3b73ab02162134a41b39f3</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5130</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5140 Vatten och avlopp</act:name>
-  <act:id type="new">b98bd4374150ace2b356458bcac72940</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5140</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5160 Städning och renhållning</act:name>
-  <act:id type="new">5fb9b2f56c3c2da8570ccff12d5ad833</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5160</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5170 Reparation och underhåll av fastighet</act:name>
-  <act:id type="new">71f31e68899e5c9df6409f6a375fe5b9</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5170</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5200 Hyra av anläggningstillgångar (gruppkonto)</act:name>
-  <act:id type="new">6f77b74b971ab873beb344a0b4f9767d</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5200</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5300 Energikostnader (gruppkonto)</act:name>
-  <act:id type="new">c5cb6df0d3e94bb1d221d44bd9e39ee7</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5300</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5410 Förbrukningsinventarier</act:name>
-  <act:id type="new">95ee87eab36f1346c9714e7153aeae27</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5410</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5420 Programvaror</act:name>
-  <act:id type="new">a49ca46c9c4eb0a6ec2d4ef65ffb10c2</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5420</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5460 Förbrukningsmaterial</act:name>
-  <act:id type="new">3ea688960e1782aaea8bf98a0bf823e7</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5460</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5500 Reparation och underhåll (gruppkonto)</act:name>
-  <act:id type="new">ba50af751c0f6beb19095ce689c295ef</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5500</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5600 Kostnader för transportmedel (gruppkonto)</act:name>
-  <act:id type="new">1075a0a0541650a73c7ed15e5d427cf8</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5600</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5610 Personbilskostnader</act:name>
-  <act:id type="new">57f8f326bec8882d8b939ab3c6ad6c03</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5610</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5611 Drivmedel för personbilar</act:name>
-  <act:id type="new">0f12bbdae4c15668d15a99272268c546</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5611</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5612 Försäkring och skatt för personbilar</act:name>
-  <act:id type="new">aee46aef7f0e20c78e16a140e34410f9</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5612</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5613 Reparation och underhåll av personbilar</act:name>
-  <act:id type="new">d5e5c22c93f98cb792fbfd7782df6c05</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5613</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5615 Leasing av personbilar</act:name>
-  <act:id type="new">048357f5da43832cf451cfe3e05864f3</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5615</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5700 Frakter och transporter (gruppkonto)</act:name>
-  <act:id type="new">ff2cb396f88e5bf557378981b2919097</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5700</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5800 Resekostnader (gruppkonto)</act:name>
-  <act:id type="new">e63a708914ad8de60752a78aa8a150e3</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5800</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5810 Biljetter</act:name>
-  <act:id type="new">085cc60a94f0e08e8c4e669663f916f6</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5810</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5820 Hyrbilskostnader</act:name>
-  <act:id type="new">e496b69978648f3965009e40f8715790</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5820</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5830 Kost och logi</act:name>
-  <act:id type="new">9f43f291b1914912da51b25780c2188e</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5830</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-    <slot>
-      <slot:key>placeholder</slot:key>
-      <slot:value type="string">true</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5831 Kost och logi i Sverige</act:name>
-  <act:id type="new">ad4c46a32f41a953e241811f78db9dc6</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5831</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5832 Kost och logi i utlandet</act:name>
-  <act:id type="new">8657eaf090ab53d06cd8b37e58938532</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5832</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>5900 Reklam och PR (gruppkonto)</act:name>
-  <act:id type="new">50f8e0e48ee499637e95fda6a04722b6</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>5900</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6070 Representation</act:name>
-  <act:id type="new">37484c37850fc5a8ea7a900ff3d5f3ee</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6070</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-    <slot>
-      <slot:key>placeholder</slot:key>
-      <slot:value type="string">true</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6071 Representation, avdragsgill</act:name>
-  <act:id type="new">409eec0a10dbd73beab62757ccda1a01</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6071</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6072 Representation, ej avdragsgill</act:name>
-  <act:id type="new">fe9ef5220b2c3a298cb996929212026a</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6072</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6090 Övriga försäljningskostnader</act:name>
-  <act:id type="new">344bf21648e1d1abd5438c288845633a</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6090</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6100 Kontorsmateriel och trycksaker (gruppkonto)</act:name>
-  <act:id type="new">7713ce8b99af44666d63a7fbd9b97cf7</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6100</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6210 Telekommunikation</act:name>
-  <act:id type="new">1f6933e211c801e289443386905040fb</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6210</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6230 Datakommunikation</act:name>
-  <act:id type="new">63368b1f95406bd4c2051a1448dfd6dc</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6230</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6250 Postbefordran</act:name>
-  <act:id type="new">0c59a91cbb07aac8c91f1763396cdacd</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6250</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6310 Företagsförsäkringar</act:name>
-  <act:id type="new">870b7ab4ed3e030596dad4fd19fbfd43</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6310</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6350 Förluster på kundfordringar</act:name>
-  <act:id type="new">949a896b0d2363e2f8d293abf4855c0f</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6350</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6390 Övriga riskkostnader</act:name>
-  <act:id type="new">2be3aafe84a502daf5b848c21fcf77df</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6390</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6410 Styrelsearvoden som inte är lön</act:name>
-  <act:id type="new">9979da63f3772ac64978d4e7f035cc36</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6410</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6420 Ersättningar till revisor</act:name>
-  <act:id type="new">a6bb6471275e6331d64c04a1a6e44e6d</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6420</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6530 Redovisningstjänster</act:name>
-  <act:id type="new">468a419bde528afd56574b05d5d5ba27</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6530</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6540 IT-tjänster</act:name>
-  <act:id type="new">55bbffe0831ead69da2ca93550e9d550</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6540</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6550 Konsultarvoden</act:name>
-  <act:id type="new">f49e6243485bc9ec37ec922e9b7d6696</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6550</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6560 Serviceavgifter till branschorganisationer</act:name>
-  <act:id type="new">eaeec97531f8867b1c0751d50edd292e</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6560</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6570 Bankkostnader</act:name>
-  <act:id type="new">6139e0e3578fceb6653cc061c8d3a431</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6570</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6590 Övriga externa tjänster</act:name>
-  <act:id type="new">f07872e983524a3f21dedf31c9619818</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6590</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6800 Inhyrd personal (gruppkonto)</act:name>
-  <act:id type="new">decec90c44700d30b14b6b6d13abb88c</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6800</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6970 Tidningar, tidskrifter och facklitteratur</act:name>
-  <act:id type="new">0d8dd2bd722c5c73a8c3e8c1a97dc642</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6970</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6980 Föreningsavgifter</act:name>
-  <act:id type="new">ef7ac168aa52644531e7c54e1add94f2</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6980</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6990 Övriga externa kostnader</act:name>
-  <act:id type="new">bf87a3cf9961e369d777e1966669d785</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6990</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-    <slot>
-      <slot:key>placeholder</slot:key>
-      <slot:value type="string">true</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6991 Övriga externa kostnader, avdragsgilla</act:name>
-  <act:id type="new">194bc10e012b904806d33f2f35dd99e7</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6991</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>6992 Övriga externa kostnader, ej avdragsgilla</act:name>
-  <act:id type="new">2f1ecb5b61d66e2b42e3f90dd9d1833d</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>6992</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7010 Löner till kollektivanställda</act:name>
-  <act:id type="new">74979e440d1a3106807910e178cd2891</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7010</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7090 Förändring av semesterlöneskuld</act:name>
-  <act:id type="new">f26f8f6c874ebaaeb8afe420e5615a7a</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7090</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7210 Löner till tjänstemän</act:name>
-  <act:id type="new">7f2084f8bcde3eaaaa272f1b8e1ea548</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7210</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7220 Löner till företagsledare</act:name>
-  <act:id type="new">ecbca3ef2b1f28179b95f30e2b239ecd</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7220</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7240 Styrelsearvoden</act:name>
-  <act:id type="new">5a9aab949b8ea500a7cc72e664991adb</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7240</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7290 Förändring av semesterlöneskuld</act:name>
-  <act:id type="new">358a2c7a35b19fa0c488079de02a39b7</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7290</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7310 Kontanta extraersättningar</act:name>
-  <act:id type="new">60115fba28d3b1852cc748ec8fd6559f</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7310</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7320 Traktamenten vid tjänsteresa</act:name>
-  <act:id type="new">f87f16df81d2d870c6d74737a0a31b84</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7320</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-    <slot>
-      <slot:key>placeholder</slot:key>
-      <slot:value type="string">true</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7321 Skattefria traktamenten, Sverige</act:name>
-  <act:id type="new">e5f51a5bfefa4755d94132ffaefd0435</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7321</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7322 Skattepliktiga traktamenten, Sverige</act:name>
-  <act:id type="new">a908ce388ff545ece0ec16eec2e85370</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7322</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7323 Skattefria traktamenten, utlandet</act:name>
-  <act:id type="new">847e6b86131a54bc001103fb5fe7e2c5</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7323</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7324 Skattepliktiga traktamenten, utlandet</act:name>
-  <act:id type="new">f8f063d669fb921e63083b2646f7673e</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7324</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7330 Bilersättningar</act:name>
-  <act:id type="new">0757144222df9ac68345684133d90ef6</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7330</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-    <slot>
-      <slot:key>placeholder</slot:key>
-      <slot:value type="string">true</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7331 Skattefria bilersättningar</act:name>
-  <act:id type="new">b09b220403b93b72a94c727204d634f8</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7331</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7332 Skattepliktiga bilersättningar</act:name>
-  <act:id type="new">17bcaf40f59a12a5544a50abba6a64dd</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7332</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7380 Kostnader för förmåner till anställda</act:name>
-  <act:id type="new">bdabf0a304f624d5758497bf37f7208f</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7380</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7385 Kostnader för fri bil</act:name>
-  <act:id type="new">427c8f4eda1b605964d66699f723c906</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7385</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7390 Övriga kostnadsersättningar och förmåner</act:name>
-  <act:id type="new">9ca5f10bf4a9ac2fd5616f00e1e9f66e</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7390</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7410 Pensionsförsäkringspremier</act:name>
-  <act:id type="new">222fbdbd33b1d36abd3180d6a5efef0d</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7410</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7490 Övriga pensionskostnader</act:name>
-  <act:id type="new">2b8b8725e182c4b63e4b9966d39a65a5</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7490</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7510 Lagstadgade sociala avgifter</act:name>
-  <act:id type="new">e1c8883b4fe9f7ae2fc70a49b8002168</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7510</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-    <slot>
-      <slot:key>placeholder</slot:key>
-      <slot:value type="string">true</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7511 Sociala avgifter för löner och ersättningar</act:name>
-  <act:id type="new">7f3be1d85288376fa302508d270e9eee</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7511</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7512 Sociala avgifter för förmånsvärden</act:name>
-  <act:id type="new">50c1eca9cae7ee7818e993ce61b73757</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7512</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7519 Sociala avgifter för semester- och löneskulder</act:name>
-  <act:id type="new">347ea753e02d9f21ffb70fead9f1a097</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7519</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7520 Arbetsgivaravgifter (nya pensionssystemet)</act:name>
-  <act:id type="new">bc1276dc96e85730f6475a2e84e12ff3</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7520</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7530 Särskild löneskatt</act:name>
-  <act:id type="new">ceb5d32e3696c218c0b2b3d8c3c84530</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7530</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7560 Arbetsgivaravgifter under 26 år</act:name>
-  <act:id type="new">ee652328782fe011dce51ada49183101</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7560</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7570 Premier för arbetsmarknadsförsäkringar</act:name>
-  <act:id type="new">64c95321f15f8bdb50223fd7b83a0c61</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7570</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7580 Gruppförsäkringspremier</act:name>
-  <act:id type="new">9eca81b0c60f882c0f71cf6854bd0651</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7580</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7590 Övriga sociala och andra avgifter enligt lag och avtal</act:name>
-  <act:id type="new">15793a537170061d89bae98b4a865fc2</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7590</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7600 Övriga personalkostnader (gruppkonto)</act:name>
-  <act:id type="new">f366b8ddeb2ba315b81b9324f4dd724f</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7600</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7610 Utbildning</act:name>
-  <act:id type="new">6d650a6207c528a62f4793d834d751f3</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7610</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7620 Sjuk- och hälsovård</act:name>
-  <act:id type="new">b0f34b504617e560dd9ef565dce44a28</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7620</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-    <slot>
-      <slot:key>placeholder</slot:key>
-      <slot:value type="string">true</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7621 Sjuk- och hälsovård, avdragsgill</act:name>
-  <act:id type="new">598cc2d057385619803406005d794cc8</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7621</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7622 Sjuk- och hälsovård, ej avdragsgill</act:name>
-  <act:id type="new">9067b815e4347866e7266f3b2176e0a7</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7622</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7630 Personalrepresentation</act:name>
-  <act:id type="new">f842b2d7157defc25ae9cc01dc59e54e</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7630</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-    <slot>
-      <slot:key>placeholder</slot:key>
-      <slot:value type="string">true</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7631 Personalrepresentation, avdragsgill</act:name>
-  <act:id type="new">e2e6d7bd934add1021a29c7beff795f7</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7631</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7632 Personalrepresentation, ej avdragsgill</act:name>
-  <act:id type="new">848d8ce6bc730eaebd142a859a2d55c9</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7632</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7720 Nedskrivningar av byggnader och mark</act:name>
-  <act:id type="new">3ccafd5661e6a03fcb99c9cb14cf82e9</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7720</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7730 Nedskrivningar av maskiner och inventarier</act:name>
-  <act:id type="new">217edc669af22f378cf006a9887b0eb4</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7730</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7810 Avskrivningar på immateriella anläggningstillgångar</act:name>
-  <act:id type="new">0a80009d43df89860034b4378d436656</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7810</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7820 Avskrivningar på byggnader och markanläggningar</act:name>
-  <act:id type="new">5c7225cdb859d76f557e39e0bf11ef6b</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7820</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7830 Avskrivningar på maskiner och inventarier</act:name>
-  <act:id type="new">bebfc56c7d9419a6c521be999dc37019</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7830</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7970 Förlust vid avyttring av immateriella och materiella anläggningstillgångar</act:name>
-  <act:id type="new">06a23e13fae83210fc1fea8a51f4c37e</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7970</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>7990 Övriga rörelsekostnader</act:name>
-  <act:id type="new">a3d4b1c646f4d84bb8ece45f93fe704b</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>7990</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>8210 Utdelningar på andelar i andra företag</act:name>
-  <act:id type="new">125b61a6cd908a8a9ff17556c42a3b3b</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>8210</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>8250 Ränteintäkter från långfristiga fordringar hos och värdepapper i andra företag</act:name>
-  <act:id type="new">fbd023a763a744951d91f11538b14652</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>8250</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>8270 Nedskrivningar av innehav av andelar i och långfristiga fordringar hos andra företag</act:name>
-  <act:id type="new">2407dd2ab874a5af59bd933b87d27665</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>8270</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>8310 Ränteintäkter från omsättningstillgångar</act:name>
-  <act:id type="new">a9fef6b809da21c30af803a8469e3024</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>8310</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>8314 Skattefria ränteintäkter</act:name>
-  <act:id type="new">516d6bcea2a670d04fc7744ba11b0794</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>8330 Valutakursdifferenser på kortfristiga fordringar och placeringar</act:name>
-  <act:id type="new">78f52ab1b17fb3fd746bc46716c72c07</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>8330</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>8340 Utdelningar på kortfristiga placeringar</act:name>
-  <act:id type="new">d5847d5f474cee7e4b34041507c71ffb</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>8340</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>8350 Resultat vid försäljning av kortfristiga placeringar</act:name>
-  <act:id type="new">ca867c7b3bf7c5694549984aeb17402c</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>8350</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>8390 Övriga finansiella intäkter</act:name>
-  <act:id type="new">8941547c19d11439a2d1f85f6131ab7d</act:id>
-  <act:type>INCOME</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>8410 Räntekostnader för långfristiga skulder</act:name>
-  <act:id type="new">dafe3e5396a502d12398d6bbcc5832e0</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>8410</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>8420 Räntekostnader för kortfristiga skulder</act:name>
-  <act:id type="new">865397b5066c18d8d2fb5a6f69a97bc3</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>8420</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>8422 Dröjsmålsräntor för leverantörsskulder</act:name>
-  <act:id type="new">092db39da95e4b4308588649227d2864</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>8422</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>8423 Räntekostnader för skatter och avgifter</act:name>
-  <act:id type="new">62eaa49ec9fdc13990ca0385eb93c72e</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>8423</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>8430 Valutakursdifferenser på skulder</act:name>
-  <act:id type="new">a3b3ced560c9c83af255d12985a77cfb</act:id>
-  <act:type>EXPENSE</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>8430</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>8810 Förändring av periodiseringsfond</act:name>
-  <act:id type="new">5721a469fe258ba855b568460d53dd3d</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>3310</act:code>
-  <act:description>Förändring av periodiseringsfonder för juridisk person och enskild näringsidkare</act:description>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-    <slot>
-      <slot:key>placeholder</slot:key>
-      <slot:value type="string">true</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>8811 Avsättning till periodiseringsfond</act:name>
-  <act:id type="new">4f7059935293bd4371269bd5c9ba6b52</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>8811</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>8819 Återföring från periodiseringsfond</act:name>
-  <act:id type="new">e85a03e0c5b9ce1cb35c6a315c61c507</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>8819</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>8850 Förändring av överavskrivningar</act:name>
-  <act:id type="new">cc2759fd88923ff560ed7fda0756368b</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>8850</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>8910 Skatt som belastar årets resultat</act:name>
-  <act:id type="new">35dd5bd9afc46e1a2f4313d0ed1b4798</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>8910</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>8990 Resultat</act:name>
-  <act:id type="new">80e4b8de8f8c363665fcc52248c3b5fa</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>8990</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-<gnc:account version="2.0.0">
-  <act:name>8999 Ã…rets resultat</act:name>
-  <act:id type="new">c923df9ab817e8c857541ff3ffad604c</act:id>
-  <act:type>EQUITY</act:type>
-  <act:commodity>
-    <cmdty:space>ISO4217</cmdty:space>
-    <cmdty:id>SEK</cmdty:id>
-  </act:commodity>
-  <act:commodity-scu>100</act:commodity-scu>
-  <act:code>8999</act:code>
-  <act:slots>
-    <slot>
-      <slot:key>color</slot:key>
-      <slot:value type="string">Not Set</slot:value>
-    </slot>
-  </act:slots>
-  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
-</gnc:account>
-</gnc-account-example>
diff --git a/data/accounts/sv_SE/bas_2019_k1.gnucash-xea b/data/accounts/sv_SE/bas_2019_k1.gnucash-xea
new file mode 100644
index 000000000..cc28685db
--- /dev/null
+++ b/data/accounts/sv_SE/bas_2019_k1.gnucash-xea
@@ -0,0 +1,2932 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<gnc-account-example
+  xmlns="http://www.gnucash.org/XML/"
+  xmlns:act="http://www.gnucash.org/XML/act"
+  xmlns:addr="http://www.gnucash.org/XML/addr"
+  xmlns:bgt="http://www.gnucash.org/XML/bgt"
+  xmlns:billterm="http://www.gnucash.org/XML/billterm"
+  xmlns:book="http://www.gnucash.org/XML/book"
+  xmlns:bt-days="http://www.gnucash.org/XML/bt-days"
+  xmlns:bt-prox="http://www.gnucash.org/XML/bt-prox"
+  xmlns:cd="http://www.gnucash.org/XML/cd"
+  xmlns:cmdty="http://www.gnucash.org/XML/cmdty"
+  xmlns:cust="http://www.gnucash.org/XML/cust"
+  xmlns:employee="http://www.gnucash.org/XML/employee"
+  xmlns:entry="http://www.gnucash.org/XML/entry"
+  xmlns:fs="http://www.gnucash.org/XML/fs"
+  xmlns:gnc="http://www.gnucash.org/XML/gnc"
+  xmlns:gnc-act="http://www.gnucash.org/XML/gnc-act"
+  xmlns:invoice="http://www.gnucash.org/XML/invoice"
+  xmlns:job="http://www.gnucash.org/XML/job"
+  xmlns:lot="http://www.gnucash.org/XML/lot"
+  xmlns:order="http://www.gnucash.org/XML/order"
+  xmlns:owner="http://www.gnucash.org/XML/owner"
+  xmlns:price="http://www.gnucash.org/XML/price"
+  xmlns:recurrence="http://www.gnucash.org/XML/recurrence"
+  xmlns:slot="http://www.gnucash.org/XML/slot"
+  xmlns:split="http://www.gnucash.org/XML/split"
+  xmlns:sx="http://www.gnucash.org/XML/sx"
+  xmlns:taxtable="http://www.gnucash.org/XML/taxtable"
+  xmlns:trn="http://www.gnucash.org/XML/trn"
+  xmlns:ts="http://www.gnucash.org/XML/ts"
+  xmlns:tte="http://www.gnucash.org/XML/tte"
+  xmlns:vendor="http://www.gnucash.org/XML/vendor">
+    <gnc-act:title>
+      Kontoplan BAS 2019 K1
+    </gnc-act:title>
+    <gnc-act:short-description>
+      Kontoplan BAS 2019 K1
+    </gnc-act:short-description>
+    <gnc-act:long-description>
+      För enskilda näringsidkare som upprättar förenklat årsbokslut – K1
+
+      För mer information om BAS kontoplaner se https://www.bas.se/.
+    </gnc-act:long-description>
+    <gnc-act:exclude-from-select-all>1</gnc-act:exclude-from-select-all>
+<gnc:account version="2.0.0">
+  <act:name>Root Account</act:name>
+  <act:id type="new">5df07084fb48f599732df308a71d8246</act:id>
+  <act:type>ROOT</act:type>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1 TILLGÃ…NGAR</act:name>
+  <act:id type="new">03a869e21f475e8e7a0688e32035ee9a</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>10 Immateriella anläggningstillgångar</act:name>
+  <act:id type="new">2624f7c2bf43bda02593c05adec45dc9</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">03a869e21f475e8e7a0688e32035ee9a</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1000 Immateriella anläggningstillgångar</act:name>
+  <act:id type="new">239a89c8081087a789d3e787d68e8d7f</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1000</act:code>
+  <act:parent type="new">2624f7c2bf43bda02593c05adec45dc9</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1009 Årets avskrivningar på immateriella anläggningstillgångar</act:name>
+  <act:id type="new">cb36a1dddbc2b4b993c6a7cb0f60fc78</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1039</act:code>
+  <act:parent type="new">239a89c8081087a789d3e787d68e8d7f</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>11 Byggnader och mark</act:name>
+  <act:id type="new">8ce79ee3346df6cd06ccb1cebead42cb</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">03a869e21f475e8e7a0688e32035ee9a</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1110 Byggnader</act:name>
+  <act:id type="new">90a24db16dec9c0f67d0a10a61064e34</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1110</act:code>
+  <act:parent type="new">8ce79ee3346df6cd06ccb1cebead42cb</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1119 Ackumulerade avskrivningar på byggnader</act:name>
+  <act:id type="new">b0e67f0df6cfb38beb1d2beba7a0542c</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1119</act:code>
+  <act:parent type="new">90a24db16dec9c0f67d0a10a61064e34</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1130 Mark</act:name>
+  <act:id type="new">9b1327f0309d862aa49cd35a7cc36feb</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1130</act:code>
+  <act:parent type="new">8ce79ee3346df6cd06ccb1cebead42cb</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1150 Markanläggningar</act:name>
+  <act:id type="new">44cfafd593c9946f675800e496066917</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1150</act:code>
+  <act:parent type="new">8ce79ee3346df6cd06ccb1cebead42cb</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1159 Ackumulerade avskrivningar på markanläggningar</act:name>
+  <act:id type="new">7555147c7129c5caba1e1876743cdf75</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1159</act:code>
+  <act:parent type="new">44cfafd593c9946f675800e496066917</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1180 Pågående nyanläggningar och förskott för byggnader och mark</act:name>
+  <act:id type="new">36b2409daa78427da527cd38a8b4d0c6</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1180</act:code>
+  <act:parent type="new">8ce79ee3346df6cd06ccb1cebead42cb</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>12 Maskiner och inventarier</act:name>
+  <act:id type="new">492385a54b954bf20b2e420647a75bcc</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">03a869e21f475e8e7a0688e32035ee9a</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>1220 Maskiner och inventarier</act:name>
+  <act:id type="new">fc2b764be2cdc6e2d30b07a7f9ed8d6c</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1220</act:code>
+  <act:parent type="new">492385a54b954bf20b2e420647a75bcc</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1221 Ã…rets nyanskaffning av maskiner och inventarier</act:name>
+  <act:id type="new">fcf6c6b1228e46dca37a58ed2e48280a</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1221</act:code>
+  <act:parent type="new">fc2b764be2cdc6e2d30b07a7f9ed8d6c</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1222 Årets ersättning för maskiner och inventarier</act:name>
+  <act:id type="new">dd81cb1e62ed40c8ad4933617ce0993a</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1222</act:code>
+  <act:parent type="new">fc2b764be2cdc6e2d30b07a7f9ed8d6c</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1229 Årets avskrivningar på maskiner och inventarier</act:name>
+  <act:id type="new">1baace30d40af65675f0d70414a5b9ae</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1229</act:code>
+  <act:parent type="new">fc2b764be2cdc6e2d30b07a7f9ed8d6c</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1230 Byggnads- och markinventarier</act:name>
+  <act:id type="new">63859e6347004c5cabe073bf4b72bca8</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1230</act:code>
+  <act:parent type="new">492385a54b954bf20b2e420647a75bcc</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1231 Ã…rets nyanskaffning av byggnads- och markinventarier</act:name>
+  <act:id type="new">652db6b3f4404d7ea980bff545e48860</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1231</act:code>
+  <act:parent type="new">63859e6347004c5cabe073bf4b72bca8</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1232 Årets ersättning för byggnads- och markinventarier</act:name>
+  <act:id type="new">9f4dced1dfa64d268f0e9d766e7da8e2</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1232</act:code>
+  <act:parent type="new">63859e6347004c5cabe073bf4b72bca8</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1239 Årets avskrivningar på byggnads- och markinventarier</act:name>
+  <act:id type="new">285527803a614551926df8115fc376e6</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1239</act:code>
+  <act:parent type="new">63859e6347004c5cabe073bf4b72bca8</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1240 Bilar och andra transportmedel</act:name>
+  <act:id type="new">1c3b92a0c2cac9e153224720f3e5b8b0</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1240</act:code>
+  <act:parent type="new">492385a54b954bf20b2e420647a75bcc</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1241 Ã…rets nyanskaffning av bilar och andra transportmedel</act:name>
+  <act:id type="new">80cb227723074363b11a6bf07b8b31f1</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1241</act:code>
+  <act:parent type="new">1c3b92a0c2cac9e153224720f3e5b8b0</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1242 Årets ersättning för bilar och andra transportmedel</act:name>
+  <act:id type="new">37cc7a92889d476488a9edca25216ad9</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1242</act:code>
+  <act:parent type="new">1c3b92a0c2cac9e153224720f3e5b8b0</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1249 Årets avskrivningar på bilar och andra transportmedel</act:name>
+  <act:id type="new">541c9a36435b436540b0adbb5e3661fb</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1249</act:code>
+  <act:parent type="new">1c3b92a0c2cac9e153224720f3e5b8b0</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>13 Övriga anläggningstillgångar</act:name>
+  <act:id type="new">b56290719d0a8fe11675ff31f6c22235</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">03a869e21f475e8e7a0688e32035ee9a</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1300 Andelar</act:name>
+  <act:id type="new">a1d0140d8d121321771e1bd5f50b2700</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1300</act:code>
+  <act:parent type="new">b56290719d0a8fe11675ff31f6c22235</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>14 Lager</act:name>
+  <act:id type="new">fffa8cc2b98304e1540b7dc12f14cc91</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">03a869e21f475e8e7a0688e32035ee9a</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1400 Lager</act:name>
+  <act:id type="new">aea558c9642f4614965537ffafd2e858</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1400</act:code>
+  <act:parent type="new">fffa8cc2b98304e1540b7dc12f14cc91</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>15 Kundfordringar</act:name>
+  <act:id type="new">ea4a0d0c8593641e278035a174cc3f1a</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">03a869e21f475e8e7a0688e32035ee9a</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1500 Kundfordringar</act:name>
+  <act:id type="new">b9e033933cf1ff719f9847a4fe1f5a7a</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1500</act:code>
+  <act:parent type="new">ea4a0d0c8593641e278035a174cc3f1a</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>16 Övriga fordringar</act:name>
+  <act:id type="new">4a545cb3bbba64a424b782cff8fc1090</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">03a869e21f475e8e7a0688e32035ee9a</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1600 Övriga fordringar</act:name>
+  <act:id type="new">7d87868f24bb0cd8e9653c29c05decfc</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1600</act:code>
+  <act:parent type="new">4a545cb3bbba64a424b782cff8fc1090</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1650 Momsfordran</act:name>
+  <act:id type="new">cfea3a3b8d526ff282182fc4c40e1d58</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1650</act:code>
+  <act:parent type="new">4a545cb3bbba64a424b782cff8fc1090</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>17 Förskott till leverantörer</act:name>
+  <act:id type="new">a6ddd0038008f72c3641d3f8a10a6e44</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">03a869e21f475e8e7a0688e32035ee9a</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1700 Förskott till leverantörer</act:name>
+  <act:id type="new">00a2f44b8fabc6172e62473fc6f04f98</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1700</act:code>
+  <act:parent type="new">a6ddd0038008f72c3641d3f8a10a6e44</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>19 Kassa och bank</act:name>
+  <act:id type="new">df5eca40bc7e9bb8fac067d26a15b2fa</act:id>
+  <act:type>ASSET</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">03a869e21f475e8e7a0688e32035ee9a</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1910 Kassa</act:name>
+  <act:id type="new">9dd99a757606bea0d9960f1f7fac5ac9</act:id>
+  <act:type>CASH</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1910</act:code>
+  <act:parent type="new">df5eca40bc7e9bb8fac067d26a15b2fa</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1920 PlusGiro</act:name>
+  <act:id type="new">1e03d5b8a1ef0570d6e8816525d2cb04</act:id>
+  <act:type>BANK</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1920</act:code>
+  <act:parent type="new">df5eca40bc7e9bb8fac067d26a15b2fa</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1930 Företagskonto/checkkonto/affärskonto</act:name>
+  <act:id type="new">9e3889245bc1fe8e60e4ebde71121e55</act:id>
+  <act:type>BANK</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1930</act:code>
+  <act:parent type="new">df5eca40bc7e9bb8fac067d26a15b2fa</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1940 Övriga bankkonton</act:name>
+  <act:id type="new">c05d3b4fb381ae36f77995fbf36c887a</act:id>
+  <act:type>BANK</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1940</act:code>
+  <act:parent type="new">df5eca40bc7e9bb8fac067d26a15b2fa</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>1970 Särskilda bankkonton</act:name>
+  <act:id type="new">58eda267ec774ea496bfb8b3bf9eb432</act:id>
+  <act:type>BANK</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>1970</act:code>
+  <act:parent type="new">df5eca40bc7e9bb8fac067d26a15b2fa</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>2 EGET KAPITAL OCH SKULDER</act:name>
+  <act:id type="new">3f9e37a71410baf409c19d761a821efa</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>20 Eget kapital</act:name>
+  <act:id type="new">9602fd8bd0ef942b260b68d649b1105d</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">3f9e37a71410baf409c19d761a821efa</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>2010 Eget kapital, delägare 1</act:name>
+  <act:id type="new">51f24b40f6b7ab6c9e0b68c8e59682db</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2010</act:code>
+  <act:parent type="new">9602fd8bd0ef942b260b68d649b1105d</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2011 Egna varuuttag</act:name>
+  <act:id type="new">c5e508332917d9ebbceb297262dbafe9</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2011</act:code>
+  <act:parent type="new">51f24b40f6b7ab6c9e0b68c8e59682db</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2012 Avräkning för skatter och avgifter (skattekonto)</act:name>
+  <act:id type="new">aee12bb799a282ede2dd3f94c240afb0</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2012</act:code>
+  <act:parent type="new">51f24b40f6b7ab6c9e0b68c8e59682db</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2013 Övriga egna uttag</act:name>
+  <act:id type="new">cfb05f3b914af4678e618e1738f738e2</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2013</act:code>
+  <act:parent type="new">51f24b40f6b7ab6c9e0b68c8e59682db</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2014 Uttag förmåner</act:name>
+  <act:id type="new">4ce81ad6a20a4d449ba81dc9d4e32374</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2014</act:code>
+  <act:parent type="new">51f24b40f6b7ab6c9e0b68c8e59682db</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2017 Egna insättningar</act:name>
+  <act:id type="new">9c999a847ac3b172840a57263c65ec80</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2017</act:code>
+  <act:parent type="new">51f24b40f6b7ab6c9e0b68c8e59682db</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2019 Årets resultat, delägare 1</act:name>
+  <act:id type="new">56e05aa775350d8b7607b09c1ccde11f</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2019</act:code>
+  <act:parent type="new">51f24b40f6b7ab6c9e0b68c8e59682db</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>2020 Eget kapital, delägare 2</act:name>
+  <act:id type="new">9c2d120c4d6b45481eb5b8d4b62008a2</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2020</act:code>
+  <act:parent type="new">9602fd8bd0ef942b260b68d649b1105d</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2030 Eget kapital, delägare 3</act:name>
+  <act:id type="new">bbefcaa9f3f3103ddb062c5e63fe949b</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2030</act:code>
+  <act:parent type="new">9602fd8bd0ef942b260b68d649b1105d</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2040 Eget kapital, delägare 4</act:name>
+  <act:id type="new">da65dce36c2e20960d8fd5134ee787ce</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2040</act:code>
+  <act:parent type="new">9602fd8bd0ef942b260b68d649b1105d</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2050 Avsättning till expansionsfond</act:name>
+  <act:id type="new">295cd0961c8d444a96d1a2ed3f54e445</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2050</act:code>
+  <act:parent type="new">9602fd8bd0ef942b260b68d649b1105d</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2060 Ersättningsfond</act:name>
+  <act:id type="new">d0b5a4945cb8de4bbb5b33b12b980b16</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2060</act:code>
+  <act:parent type="new">9602fd8bd0ef942b260b68d649b1105d</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2070 Insatsemissioner, avbetalningsplan på skog, skogskonto, upphovsmannakonto</act:name>
+  <act:id type="new">6e0ced09ad9c1dcd5499aef5cd40934e</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2070</act:code>
+  <act:parent type="new">9602fd8bd0ef942b260b68d649b1105d</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>2080 Periodiseringsfonder</act:name>
+  <act:id type="new">935bbd2db358dbc20876b7847c20cd80</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2080</act:code>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">9602fd8bd0ef942b260b68d649b1105d</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>2083 Periodiseringsfond vid 2012 års taxering</act:name>
+  <act:id type="new">32724794d3eb49f9870eed08a4d9adfe</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2083</act:code>
+  <act:parent type="new">935bbd2db358dbc20876b7847c20cd80</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2084 Periodiseringsfond vid 2013 års taxering</act:name>
+  <act:id type="new">06b7fce2805c4a2a9170755f4cfc5954</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2084</act:code>
+  <act:parent type="new">935bbd2db358dbc20876b7847c20cd80</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2085 Periodiseringsfond 2013</act:name>
+  <act:id type="new">01801b0658694733b96c8807871c8cdf</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2085</act:code>
+  <act:parent type="new">935bbd2db358dbc20876b7847c20cd80</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2086 Periodiseringsfond 2014</act:name>
+  <act:id type="new">78a599d77ad647328813d663bcb43e7f</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2086</act:code>
+  <act:slots>
+  </act:slots>
+  <act:parent type="new">935bbd2db358dbc20876b7847c20cd80</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2087 Periodiseringsfond 2015</act:name>
+  <act:id type="new">4384c7d3d39f43b8ada16206fd0c0100</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2087</act:code>
+  <act:parent type="new">935bbd2db358dbc20876b7847c20cd80</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2088 Periodiseringsfond 2016</act:name>
+  <act:id type="new">d359e3b1bbec49a593c8f38ee01d068d</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2088</act:code>
+  <act:parent type="new">935bbd2db358dbc20876b7847c20cd80</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2089 Periodiseringsfond 2017</act:name>
+  <act:id type="new">e364946feeb64310ad422b65bff0de77</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2089</act:code>
+  <act:parent type="new">935bbd2db358dbc20876b7847c20cd80</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>2090 Utjämningskonto upplysningar 1-4</act:name>
+  <act:id type="new">abcb13e40f4d253ef842e99eb6039ebd</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2090</act:code>
+  <act:parent type="new">9602fd8bd0ef942b260b68d649b1105d</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>23 LÃ¥neskulder</act:name>
+  <act:id type="new">b5151c31646cd499850ef318abd46590</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">3f9e37a71410baf409c19d761a821efa</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2330 Checkräkningskredit</act:name>
+  <act:id type="new">05b6a766fe9b991bf42994848c6fdfdc</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2330</act:code>
+  <act:parent type="new">b5151c31646cd499850ef318abd46590</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2350 Skulder till kreditinstitut</act:name>
+  <act:id type="new">cece56794a5a77829adddcfc9dbd43b1</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2350</act:code>
+  <act:parent type="new">b5151c31646cd499850ef318abd46590</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2390 Övriga låneskulder</act:name>
+  <act:id type="new">db6f4b353d24bfaeb239a067181105e8</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2390</act:code>
+  <act:parent type="new">b5151c31646cd499850ef318abd46590</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>24 Skulder till leverantörer</act:name>
+  <act:id type="new">d354f1f76b4aed575a3ed4cacd835203</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">3f9e37a71410baf409c19d761a821efa</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2440 Leverantörsskulder</act:name>
+  <act:id type="new">2aacb8080c22ff2e7fb81164b23fd3ba</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2440</act:code>
+  <act:parent type="new">d354f1f76b4aed575a3ed4cacd835203</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>26 Moms och särskilda punktskatter</act:name>
+  <act:id type="new">7df80aaf19a12c74a87eb5970f41098a</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">3f9e37a71410baf409c19d761a821efa</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2610 Utgående moms, 25 %</act:name>
+  <act:id type="new">419e71cb06e38ff8b498a51ef0517d36</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2610</act:code>
+  <act:parent type="new">7df80aaf19a12c74a87eb5970f41098a</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2611 Utgående moms på försäljning inom Sverige, 25 %</act:name>
+  <act:id type="new">43b38510275eb4c4911bcb85da20697f</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2611</act:code>
+  <act:parent type="new">419e71cb06e38ff8b498a51ef0517d36</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2612 Utgående moms på egna uttag, 25 %</act:name>
+  <act:id type="new">8f7e82b7c0f8b243a677ad29b23bbf07</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2612</act:code>
+  <act:parent type="new">419e71cb06e38ff8b498a51ef0517d36</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2613 Utgående moms för uthyrning, 25 %</act:name>
+  <act:id type="new">1a8b235b4852f4e22f0db78c04564c27</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2613</act:code>
+  <act:parent type="new">419e71cb06e38ff8b498a51ef0517d36</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2614 Utgående moms omvänd skattskyldighet, 25 %</act:name>
+  <act:id type="new">d84eb5acad93bcf5d21e471dbb2a2cdf</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2614</act:code>
+  <act:parent type="new">419e71cb06e38ff8b498a51ef0517d36</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2615 Utgående moms import av varor, 25 %</act:name>
+  <act:id type="new">1d020cc07964a0b257449401fafa1ae8</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2615</act:code>
+  <act:parent type="new">419e71cb06e38ff8b498a51ef0517d36</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2618 Vilande utgående moms, 25 %</act:name>
+  <act:id type="new">6570e6df2a35f9fb5f1442a9cf4800bc</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2618</act:code>
+  <act:parent type="new">419e71cb06e38ff8b498a51ef0517d36</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2620 Utgående moms, 12 %</act:name>
+  <act:id type="new">9fa1e2ef799836868f1f3d874360b945</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2620</act:code>
+  <act:parent type="new">7df80aaf19a12c74a87eb5970f41098a</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2621 Utgående moms på försäljning inom Sverige, 12 %</act:name>
+  <act:id type="new">d483108e8771d7129364ac47f737deb2</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2621</act:code>
+  <act:parent type="new">9fa1e2ef799836868f1f3d874360b945</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2622 Utgående moms på egna uttag, 12 %</act:name>
+  <act:id type="new">a6c29456caae05125a2d4e18836311d0</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2622</act:code>
+  <act:parent type="new">9fa1e2ef799836868f1f3d874360b945</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2623 Utgående moms för uthyrning, 12 %</act:name>
+  <act:id type="new">7479e29f5e85ee0f1c412893f5d3fff1</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2623</act:code>
+  <act:parent type="new">9fa1e2ef799836868f1f3d874360b945</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2624 Utgående moms omvänd skattskyldighet, 12 %</act:name>
+  <act:id type="new">8b7b2b45df16e77bb062650a7225afd3</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2624</act:code>
+  <act:parent type="new">9fa1e2ef799836868f1f3d874360b945</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2625 Utgående moms import av varor, 12 %</act:name>
+  <act:id type="new">8305a58e6b9ba96c5616f3261b24ea87</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2625</act:code>
+  <act:parent type="new">9fa1e2ef799836868f1f3d874360b945</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2628 Vilande utgående moms, 12 %</act:name>
+  <act:id type="new">4b127da3254b4982ac768c36cdd87479</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2628</act:code>
+  <act:parent type="new">9fa1e2ef799836868f1f3d874360b945</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2630 Utgående moms, 6 %</act:name>
+  <act:id type="new">ef916fa4249840372c89fe8e2cd03234</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2630</act:code>
+  <act:parent type="new">7df80aaf19a12c74a87eb5970f41098a</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2631 Utgående moms på försäljning inom Sverige, 6 %</act:name>
+  <act:id type="new">f8cb4f0a3a53844681d79811d71add1a</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2631</act:code>
+  <act:parent type="new">ef916fa4249840372c89fe8e2cd03234</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2632 Utgående moms på egna uttag, 6 %</act:name>
+  <act:id type="new">c2ca29aad57fda80ede6a0d280e65ada</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2632</act:code>
+  <act:parent type="new">ef916fa4249840372c89fe8e2cd03234</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2633 Utgående moms för uthyrning, 6 %</act:name>
+  <act:id type="new">5312c41b7d02a323c8e247e454e96df3</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2633</act:code>
+  <act:parent type="new">ef916fa4249840372c89fe8e2cd03234</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2634 Utgående moms omvänd skattskyldighet, 6 %</act:name>
+  <act:id type="new">d37c1bf20865a636dc2793baab04791a</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2634</act:code>
+  <act:parent type="new">ef916fa4249840372c89fe8e2cd03234</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2635 Utgående moms import av varor, 6 %</act:name>
+  <act:id type="new">f91bb4507443e417db3f0d356a09f0ae</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2635</act:code>
+  <act:parent type="new">ef916fa4249840372c89fe8e2cd03234</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2638 Vilande utgående moms, 6 %</act:name>
+  <act:id type="new">daaaa545396c4c7c9ebfa3ad0078519e</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2638</act:code>
+  <act:parent type="new">ef916fa4249840372c89fe8e2cd03234</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2640 Ingående moms</act:name>
+  <act:id type="new">27f018f9b9d1fa8a13349c140e669088</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2640</act:code>
+  <act:parent type="new">7df80aaf19a12c74a87eb5970f41098a</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2641 Debiterad ingående moms</act:name>
+  <act:id type="new">71a93c3019393adbbd3a121babbc6811</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2641</act:code>
+  <act:parent type="new">27f018f9b9d1fa8a13349c140e669088</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2642 Debiterad ingående moms i anslutning till frivillig skattskyldighet</act:name>
+  <act:id type="new">9f7f0883959285e0e07dcc80eb9ad22c</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2642</act:code>
+  <act:parent type="new">27f018f9b9d1fa8a13349c140e669088</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2645 Beräknad ingående moms på förvärv från utlandet</act:name>
+  <act:id type="new">2871b1aa3cea4f41686c05c22bf9bb72</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2645</act:code>
+  <act:parent type="new">27f018f9b9d1fa8a13349c140e669088</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2646 Ingående moms på uthyrning</act:name>
+  <act:id type="new">fd9aeb8d0f875845149730ec4b1a254a</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2646</act:code>
+  <act:parent type="new">27f018f9b9d1fa8a13349c140e669088</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2648 Vilande ingående moms</act:name>
+  <act:id type="new">b959644b0916a8bd4d4421321f7ab7c7</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2648</act:code>
+  <act:parent type="new">27f018f9b9d1fa8a13349c140e669088</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2649 Ingående moms, blandad verksamhet</act:name>
+  <act:id type="new">b95a2e37580e3cc18d3846c9e4b04ff5</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2649</act:code>
+  <act:parent type="new">27f018f9b9d1fa8a13349c140e669088</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2650 Redovisningskonto för moms</act:name>
+  <act:id type="new">f7a15f6636d66108c30faf45a621f0b9</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2650</act:code>
+  <act:parent type="new">7df80aaf19a12c74a87eb5970f41098a</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2660 Särskilda punktskatter</act:name>
+  <act:id type="new">41fc76ba75c348d8b40fbf27baafee34</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2660</act:code>
+  <act:parent type="new">7df80aaf19a12c74a87eb5970f41098a</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>27 Personalens skatter, avgifter och löneavdrag</act:name>
+  <act:id type="new">3b664b5bd2464be623414bc7006d1bff</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">3f9e37a71410baf409c19d761a821efa</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2710 Personalskatt</act:name>
+  <act:id type="new">271c1e0419852878eb21b17a8704367a</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2710</act:code>
+  <act:parent type="new">3b664b5bd2464be623414bc7006d1bff</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2730 Lagstadgade/avtalade sociala avgifter och särskild löneskatt</act:name>
+  <act:id type="new">2c0b488697fd96d2d494e0c142e9ba4e</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2730</act:code>
+  <act:parent type="new">3b664b5bd2464be623414bc7006d1bff</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>29 Övriga skulder</act:name>
+  <act:id type="new">de6fe9710408157e5f24d1ea87cd0999</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">3f9e37a71410baf409c19d761a821efa</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>2900 Övriga skulder</act:name>
+  <act:id type="new">c1bcd6be8cc9eeabd1bd36ba91483e05</act:id>
+  <act:type>LIABILITY</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>2900</act:code>
+  <act:parent type="new">de6fe9710408157e5f24d1ea87cd0999</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>3 RÖRELSENS INKOMSTER/INTÄKTER</act:name>
+  <act:id type="new">304e26b5f79253ee3abd1a9ad7efa70f</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>30–34 Huvudintäkter</act:name>
+  <act:id type="new">fef105cdfcaba2396588c82ecf5ebf45</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">304e26b5f79253ee3abd1a9ad7efa70f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>3000 Försäljning och utfört arbete samt övriga momspliktiga intäkter</act:name>
+  <act:id type="new">48784eca275d7382341b27121e2a3fec</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>3000</act:code>
+  <act:parent type="new">fef105cdfcaba2396588c82ecf5ebf45</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>3100 Momsfria intäkter</act:name>
+  <act:id type="new">a0fc05dadabb86ff3a7f3c8646e6c03c</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>3100</act:code>
+  <act:parent type="new">fef105cdfcaba2396588c82ecf5ebf45</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>3200 Bil- och bostadsförmån m.m.</act:name>
+  <act:id type="new">95a296b676893507f582699f063a52bd</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>3200</act:code>
+  <act:parent type="new">fef105cdfcaba2396588c82ecf5ebf45</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>3300 Försäljning av tjänster utanför Sverige</act:name>
+  <act:id type="new">d0fd861e53684bbd8e891954dc178650</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>3000</act:code>
+  <act:parent type="new">fef105cdfcaba2396588c82ecf5ebf45</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>35 Fakturerade kostnader</act:name>
+  <act:id type="new">f33b546190f5608863daf185241cd82d</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">304e26b5f79253ee3abd1a9ad7efa70f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>3500 Fakturerade kostnader</act:name>
+  <act:id type="new">6db119b8cadd4379f2c86e6b69684c34</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>3500</act:code>
+  <act:parent type="new">f33b546190f5608863daf185241cd82d</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>37 Intäktskorrigeringar</act:name>
+  <act:id type="new">cfb26d1a7f1c6650e64b34b41181c8b9</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">304e26b5f79253ee3abd1a9ad7efa70f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>3700 Lämnade rabatter, bonus, etc.</act:name>
+  <act:id type="new">21d37c96ea6e3b8cd6bb90a0aa9141ed</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>3700</act:code>
+  <act:parent type="new">cfb26d1a7f1c6650e64b34b41181c8b9</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>39 Övriga rörelseintäkter</act:name>
+  <act:id type="new">7e9adb7a36e1248bd5c9eedd5596daa0</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">304e26b5f79253ee3abd1a9ad7efa70f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>3900 Övriga rörelseintäkter</act:name>
+  <act:id type="new">0e8f3d710aa7ab7e9fd38030b02edda0</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>3900</act:code>
+  <act:parent type="new">7e9adb7a36e1248bd5c9eedd5596daa0</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>3970 Vinst vid avyttring av immateriella och materiella anläggningstillgångar</act:name>
+  <act:id type="new">24efa4da075a6b41ea26aa87c0bd9cf0</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>3970</act:code>
+  <act:parent type="new">7e9adb7a36e1248bd5c9eedd5596daa0</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>3980 Erhållna bidrag</act:name>
+  <act:id type="new">c3ae8606f31a1c678eadc3fe2418a26c</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>3980</act:code>
+  <act:parent type="new">7e9adb7a36e1248bd5c9eedd5596daa0</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>4 UTGIFTER/KOSTNADER FÖR VAROR, MATERIAL OCH VISSA KÖPTA TJÄNSTER</act:name>
+  <act:id type="new">e60ff13ba85f36e5ff013f2245c56a23</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>40–45 Inköp av varor och material</act:name>
+  <act:id type="new">2fd4dc2c72a0d51c7a3b54f61be5bd4e</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">e60ff13ba85f36e5ff013f2245c56a23</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>4000 Varor</act:name>
+  <act:id type="new">d25ea315a5f4f4e19bf1053c764573af</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>4000</act:code>
+  <act:parent type="new">2fd4dc2c72a0d51c7a3b54f61be5bd4e</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>46 Legoarbeten, underentreprenader</act:name>
+  <act:id type="new">19836cee2a9b0ba93035d1d51dfa63db</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">e60ff13ba85f36e5ff013f2245c56a23</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>4600 Legoarbeten och underentreprenader</act:name>
+  <act:id type="new">f78abdfd54fec20fcf2d314fead6a316</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>4600</act:code>
+  <act:parent type="new">19836cee2a9b0ba93035d1d51dfa63db</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>47 Reduktion av inköpspriser</act:name>
+  <act:id type="new">f2e3421559c217e636e34553be7047e2</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">e60ff13ba85f36e5ff013f2245c56a23</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>4700 Erhållna rabatter, bonus etc.</act:name>
+  <act:id type="new">c86b54b25424b09cf59246301f225de4</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>4700</act:code>
+  <act:parent type="new">f2e3421559c217e636e34553be7047e2</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>49 Förändring av lager</act:name>
+  <act:id type="new">fb93020f8515aa485282518945534233</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">e60ff13ba85f36e5ff013f2245c56a23</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>4900 Förändring av lager</act:name>
+  <act:id type="new">5556ffa0ceda660ebf72cc40f7b8d482</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>4900</act:code>
+  <act:parent type="new">fb93020f8515aa485282518945534233</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>5–6 ÖVRIGA EXTERNA RÖRELSEUTGIFTER/KOSTNADER</act:name>
+  <act:id type="new">d4050fa5794ead1a138cca64f22ff22f</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>50 Lokalkostnader</act:name>
+  <act:id type="new">65b1c6ec7f07a8252235e191b69aee2e</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">d4050fa5794ead1a138cca64f22ff22f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>5000 Lokalkostnader</act:name>
+  <act:id type="new">6c19c2b038ce141731d9d864eedc85c9</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>5000</act:code>
+  <act:parent type="new">65b1c6ec7f07a8252235e191b69aee2e</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>51 Fastighetskostnader</act:name>
+  <act:id type="new">d15302427553c8b89c07a5f77ccbc226</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">d4050fa5794ead1a138cca64f22ff22f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>5100 Fastighetskostnader</act:name>
+  <act:id type="new">e183aa14c75edce0c23dbd84f8d74e1c</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>5100</act:code>
+  <act:parent type="new">d15302427553c8b89c07a5f77ccbc226</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>52 Hyra av anläggningstillgångar</act:name>
+  <act:id type="new">15765a16995b11a12331fc8ba3df1d93</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">d4050fa5794ead1a138cca64f22ff22f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>5200 Hyra av anläggningstillgångar</act:name>
+  <act:id type="new">6f77b74b971ab873beb344a0b4f9767d</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>5200</act:code>
+  <act:parent type="new">15765a16995b11a12331fc8ba3df1d93</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>54 Förbrukningsinventarier och förbrukningsmaterial</act:name>
+  <act:id type="new">174ce570da1803d21dc4427a118752db</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">d4050fa5794ead1a138cca64f22ff22f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>5400 Förbrukningsinventarier och förbrukningsmaterial</act:name>
+  <act:id type="new">95ee87eab36f1346c9714e7153aeae27</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>5400</act:code>
+  <act:parent type="new">174ce570da1803d21dc4427a118752db</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>55 Reparation och underhåll</act:name>
+  <act:id type="new">5977ffe944910809524c416d1b598d0d</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">d4050fa5794ead1a138cca64f22ff22f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>5500 Reparation och underhåll</act:name>
+  <act:id type="new">ba50af751c0f6beb19095ce689c295ef</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>5500</act:code>
+  <act:parent type="new">5977ffe944910809524c416d1b598d0d</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>56 Kostnader för transportmedel</act:name>
+  <act:id type="new">c60ea041e268a87a402ec8f84e635d59</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">d4050fa5794ead1a138cca64f22ff22f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>5600 Kostnader för transportmedel</act:name>
+  <act:id type="new">1075a0a0541650a73c7ed15e5d427cf8</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>5600</act:code>
+  <act:parent type="new">c60ea041e268a87a402ec8f84e635d59</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>5610 Personbilskostnader</act:name>
+  <act:id type="new">57f8f326bec8882d8b939ab3c6ad6c03</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>5610</act:code>
+  <act:parent type="new">c60ea041e268a87a402ec8f84e635d59</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>5611 Drivmedel för personbilar</act:name>
+  <act:id type="new">0f12bbdae4c15668d15a99272268c546</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>5611</act:code>
+  <act:parent type="new">57f8f326bec8882d8b939ab3c6ad6c03</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>5612 Försäkring och skatt för personbilar</act:name>
+  <act:id type="new">aee46aef7f0e20c78e16a140e34410f9</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>5612</act:code>
+  <act:parent type="new">57f8f326bec8882d8b939ab3c6ad6c03</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>5613 Reparation och underhåll av personbilar</act:name>
+  <act:id type="new">d5e5c22c93f98cb792fbfd7782df6c05</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>5613</act:code>
+  <act:parent type="new">57f8f326bec8882d8b939ab3c6ad6c03</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>5615 Leasing av personbilar</act:name>
+  <act:id type="new">048357f5da43832cf451cfe3e05864f3</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>5615</act:code>
+  <act:parent type="new">57f8f326bec8882d8b939ab3c6ad6c03</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>5618 Schablonmässig milkostnad privat personbil</act:name>
+  <act:id type="new">edd3d90d4d1741e7bd0f48b70bf67244</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>5618</act:code>
+  <act:parent type="new">57f8f326bec8882d8b939ab3c6ad6c03</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>5619 Övriga personbilskostnader</act:name>
+  <act:id type="new">6d6c7d1a9d2448eab0f89dcc786a8e7b</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>5619</act:code>
+  <act:parent type="new">57f8f326bec8882d8b939ab3c6ad6c03</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>5620 Lastbilskostnader</act:name>
+  <act:id type="new">bb05957c-bf30-47c0-b06f-ddad995d</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>5620</act:code>
+  <act:parent type="new">c60ea041e268a87a402ec8f84e635d59</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>57 Frakter och transporter</act:name>
+  <act:id type="new">5152a3aa26e912bca990d9aaad75c789</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">d4050fa5794ead1a138cca64f22ff22f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>5700 Frakter och transporter</act:name>
+  <act:id type="new">ff2cb396f88e5bf557378981b2919097</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>5700</act:code>
+  <act:parent type="new">5152a3aa26e912bca990d9aaad75c789</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>58 Resekostnader</act:name>
+  <act:id type="new">651599ea802bd71906ebefeedf7fc3fd</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">d4050fa5794ead1a138cca64f22ff22f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>5800 Resekostnader</act:name>
+  <act:id type="new">e63a708914ad8de60752a78aa8a150e3</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>5800</act:code>
+  <act:parent type="new">651599ea802bd71906ebefeedf7fc3fd</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>59 Reklam och PR</act:name>
+  <act:id type="new">5fafc6c85ed1f9476772d954282ccaf5</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">d4050fa5794ead1a138cca64f22ff22f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>5900 Reklam och PR</act:name>
+  <act:id type="new">50f8e0e48ee499637e95fda6a04722b6</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>5900</act:code>
+  <act:parent type="new">5fafc6c85ed1f9476772d954282ccaf5</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>60 Övriga försäljningskostnader</act:name>
+  <act:id type="new">fe681ef4b1cb94ee9a45459989606d97</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">d4050fa5794ead1a138cca64f22ff22f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>6000 Övriga försäljningskostnader</act:name>
+  <act:id type="new">344bf21648e1d1abd5438c288845633a</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>6000</act:code>
+  <act:parent type="new">fe681ef4b1cb94ee9a45459989606d97</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>6070 Representation</act:name>
+  <act:id type="new">37484c37850fc5a8ea7a900ff3d5f3ee</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>6070</act:code>
+  <act:parent type="new">fe681ef4b1cb94ee9a45459989606d97</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>6071 Representation, avdragsgill</act:name>
+  <act:id type="new">409eec0a10dbd73beab62757ccda1a01</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>6071</act:code>
+  <act:parent type="new">37484c37850fc5a8ea7a900ff3d5f3ee</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>6072 Representation, ej avdragsgill</act:name>
+  <act:id type="new">fe9ef5220b2c3a298cb996929212026a</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>6072</act:code>
+  <act:parent type="new">37484c37850fc5a8ea7a900ff3d5f3ee</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>61 Kontorsmateriel och trycksaker</act:name>
+  <act:id type="new">b1be8dc4a0fe37b6716f0bba64b82503</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">d4050fa5794ead1a138cca64f22ff22f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>6100 Kontorsmateriel och trycksaker</act:name>
+  <act:id type="new">7713ce8b99af44666d63a7fbd9b97cf7</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>6100</act:code>
+  <act:parent type="new">b1be8dc4a0fe37b6716f0bba64b82503</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>62 Tele och post</act:name>
+  <act:id type="new">0f7d8d465d24a66ff273a97c9c4d32d5</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">d4050fa5794ead1a138cca64f22ff22f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>6200 Tele och post</act:name>
+  <act:id type="new">1f6933e211c801e289443386905040fb</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>6200</act:code>
+  <act:parent type="new">0f7d8d465d24a66ff273a97c9c4d32d5</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>63 Företagsförsäkringar och övriga riskkostnader</act:name>
+  <act:id type="new">ff3845e8e8f4b32c1b062d42c50ddcee</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">d4050fa5794ead1a138cca64f22ff22f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>6300 Företagsförsäkringar och övriga riskkostnader</act:name>
+  <act:id type="new">870b7ab4ed3e030596dad4fd19fbfd43</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>6300</act:code>
+  <act:parent type="new">ff3845e8e8f4b32c1b062d42c50ddcee</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>6310 Företagsförsäkringar</act:name>
+  <act:id type="new">949a896b0d2363e2f8d293abf4855c0f</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>6310</act:code>
+  <act:parent type="new">ff3845e8e8f4b32c1b062d42c50ddcee</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>65 Övriga externa tjänster</act:name>
+  <act:id type="new">d6814a1b83873474e28875f0a2027454</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">d4050fa5794ead1a138cca64f22ff22f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>6500 Övriga externa tjänster</act:name>
+  <act:id type="new">f07872e983524a3f21dedf31c9619818</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>6500</act:code>
+  <act:parent type="new">d6814a1b83873474e28875f0a2027454</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>68 Inhyrd personal</act:name>
+  <act:id type="new">d2bf43f19eeaee925de5897bfae30bd1</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">d4050fa5794ead1a138cca64f22ff22f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>6800 Inhyrd personal</act:name>
+  <act:id type="new">decec90c44700d30b14b6b6d13abb88c</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>6800</act:code>
+  <act:parent type="new">d2bf43f19eeaee925de5897bfae30bd1</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>69 Övriga kostnader</act:name>
+  <act:id type="new">a1ec7c5d4746cc880d983978648f5f18</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">d4050fa5794ead1a138cca64f22ff22f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>6900 Övriga kostnader</act:name>
+  <act:id type="new">bf87a3cf9961e369d777e1966669d785</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>6900</act:code>
+  <act:parent type="new">a1ec7c5d4746cc880d983978648f5f18</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>6980 Föreningsavgifter</act:name>
+  <act:id type="new">ef7ac168aa52644531e7c54e1add94f2</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>6980</act:code>
+  <act:parent type="new">a1ec7c5d4746cc880d983978648f5f18</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>7 UTGIFTER/KOSTNADER FÖR PERSONAL, AVSKRIVNINGAR M.M.</act:name>
+  <act:id type="new">4337b5c87fc4c5b494a505c1268e3078</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>70 Löner till anställda</act:name>
+  <act:id type="new">13e61b9ddadcea4005a86fb9109c715d</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">4337b5c87fc4c5b494a505c1268e3078</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>7000 Löner till anställda</act:name>
+  <act:id type="new">74979e440d1a3106807910e178cd2891</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>7000</act:code>
+  <act:parent type="new">13e61b9ddadcea4005a86fb9109c715d</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>73 Kostnadsersättningar och förmåner</act:name>
+  <act:id type="new">62081d8b6a9f2a4bf744c5647739e8c5</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">4337b5c87fc4c5b494a505c1268e3078</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>7300 Kostnadsersättningar och förmåner</act:name>
+  <act:id type="new">9ca5f10bf4a9ac2fd5616f00e1e9f66e</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>7300</act:code>
+  <act:parent type="new">62081d8b6a9f2a4bf744c5647739e8c5</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>74 Pensionskostnader</act:name>
+  <act:id type="new">8e050fe19cfd9a779d2ca2b9bdd61067</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">4337b5c87fc4c5b494a505c1268e3078</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>7400 Pensionskostnader</act:name>
+  <act:id type="new">222fbdbd33b1d36abd3180d6a5efef0d</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>7400</act:code>
+  <act:parent type="new">8e050fe19cfd9a779d2ca2b9bdd61067</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>75 Sociala och andra avgifter enligt lag och avtal</act:name>
+  <act:id type="new">ce35a8e8884f339372c6dcdfe9cc2281</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">4337b5c87fc4c5b494a505c1268e3078</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>7500 Sociala och andra avgifter enligt lag och avtal</act:name>
+  <act:id type="new">e1c8883b4fe9f7ae2fc70a49b8002168</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>7500</act:code>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">ce35a8e8884f339372c6dcdfe9cc2281</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>76 Övriga personalkostnader</act:name>
+  <act:id type="new">964d63e516a866305acd66870dd7753a</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">4337b5c87fc4c5b494a505c1268e3078</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>7600 Övriga personalkostnader</act:name>
+  <act:id type="new">f366b8ddeb2ba315b81b9324f4dd724f</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>7600</act:code>
+  <act:parent type="new">964d63e516a866305acd66870dd7753a</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>7631 Personalrepresentation, avdragsgill</act:name>
+  <act:id type="new">e2e6d7bd934add1021a29c7beff795f7</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>7631</act:code>
+  <act:parent type="new">f366b8ddeb2ba315b81b9324f4dd724f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>7632 Personalrepresentation, ej avdragsgill</act:name>
+  <act:id type="new">848d8ce6bc730eaebd142a859a2d55c9</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>7632</act:code>
+  <act:parent type="new">f366b8ddeb2ba315b81b9324f4dd724f</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>77 Nedskrivningar och återföring av nedskrivningar</act:name>
+  <act:id type="new">b4749dee29139481b09b438dcc391e5d</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">4337b5c87fc4c5b494a505c1268e3078</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>7700 Nedskrivningar</act:name>
+  <act:id type="new">3ccafd5661e6a03fcb99c9cb14cf82e9</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>7700</act:code>
+  <act:parent type="new">b4749dee29139481b09b438dcc391e5d</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>78 Avskrivningar</act:name>
+  <act:id type="new">506613151e8e83915efd53d750ac5850</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">4337b5c87fc4c5b494a505c1268e3078</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>7810 Avskrivningar på immateriella anläggningstillgångar</act:name>
+  <act:id type="new">0a80009d43df89860034b4378d436656</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>7810</act:code>
+  <act:parent type="new">506613151e8e83915efd53d750ac5850</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>7820 Avskrivningar på byggnader och markanläggningar</act:name>
+  <act:id type="new">5c7225cdb859d76f557e39e0bf11ef6b</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>7820</act:code>
+  <act:parent type="new">506613151e8e83915efd53d750ac5850</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>7830 Avskrivningar på maskiner och inventarier</act:name>
+  <act:id type="new">bebfc56c7d9419a6c521be999dc37019</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>7830</act:code>
+  <act:parent type="new">506613151e8e83915efd53d750ac5850</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>79 Övriga rörelsekostnader</act:name>
+  <act:id type="new">913bbbbf9939836b2c7d1ff368b748ba</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">4337b5c87fc4c5b494a505c1268e3078</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>7970 Förlust vid avyttring av immateriella och materiella anläggningstillgångar</act:name>
+  <act:id type="new">06a23e13fae83210fc1fea8a51f4c37e</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>7970</act:code>
+  <act:parent type="new">913bbbbf9939836b2c7d1ff368b748ba</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>7980 Ersättningsfonder</act:name>
+  <act:id type="new">a3d4b1c646f4d84bb8ece45f93fe704b</act:id>
+  <act:type>EXPENSE</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>7980</act:code>
+  <act:parent type="new">913bbbbf9939836b2c7d1ff368b748ba</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>8 FINANSIELLA OCH ANDRA INKOMSTER/INTÄKTER OCH UTGIFTER/KOSTNADER</act:name>
+  <act:id type="new">5eb03e1a55b0797531168a162149cc8f</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">5df07084fb48f599732df308a71d8246</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>83 Övriga ränteintäkter och liknande resultatposter</act:name>
+  <act:id type="new">b5df992121ac4871d2cf519895f7461e</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">5eb03e1a55b0797531168a162149cc8f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>8310 Ränteintäkter och utdelningar</act:name>
+  <act:id type="new">a9fef6b809da21c30af803a8469e3024</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>8310</act:code>
+  <act:parent type="new">b5df992121ac4871d2cf519895f7461e</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>8314 Skattefria ränteintäkter</act:name>
+  <act:id type="new">516d6bcea2a670d04fc7744ba11b0794</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>8314</act:code>
+  <act:parent type="new">a9fef6b809da21c30af803a8469e3024</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>8330 Valutakursdifferenser på fordringar och placeringar</act:name>
+  <act:id type="new">78f52ab1b17fb3fd746bc46716c72c07</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>8330</act:code>
+  <act:parent type="new">b5df992121ac4871d2cf519895f7461e</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>84 Räntekostnader och liknande resultatposter</act:name>
+  <act:id type="new">19adda4bc889ecc05678e1173360fdb8</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">5eb03e1a55b0797531168a162149cc8f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>8410 Räntekostnader för skulder</act:name>
+  <act:id type="new">dafe3e5396a502d12398d6bbcc5832e0</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>8410</act:code>
+  <act:parent type="new">19adda4bc889ecc05678e1173360fdb8</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>8430 Valutakursdifferenser på skulder</act:name>
+  <act:id type="new">a3b3ced560c9c83af255d12985a77cfb</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>8430</act:code>
+  <act:parent type="new">19adda4bc889ecc05678e1173360fdb8</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>88 Bokslutsdispositioner</act:name>
+  <act:id type="new">b6070711ca82c6add708fb16519e2c7b</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">5eb03e1a55b0797531168a162149cc8f</act:parent>
+</gnc:account>
+
+<gnc:account version="2.0.0">
+  <act:name>89 Ã…rets resultat</act:name>
+  <act:id type="new">d728f7338cffbc52156aa786c7904000</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:slots>
+    <slot>
+      <slot:key>placeholder</slot:key>
+      <slot:value type="string">true</slot:value>
+    </slot>
+  </act:slots>
+  <act:parent type="new">5eb03e1a55b0797531168a162149cc8f</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>8990 Resultat</act:name>
+  <act:id type="new">80e4b8de8f8c363665fcc52248c3b5fa</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>8990</act:code>
+  <act:parent type="new">d728f7338cffbc52156aa786c7904000</act:parent>
+</gnc:account>
+<gnc:account version="2.0.0">
+  <act:name>8999 Ã…rets resultat</act:name>
+  <act:id type="new">c923df9ab817e8c857541ff3ffad604c</act:id>
+  <act:type>INCOME</act:type>
+  <act:commodity>
+    <cmdty:space>ISO4217</cmdty:space>
+    <cmdty:id>SEK</cmdty:id>
+  </act:commodity>
+  <act:commodity-scu>100</act:commodity-scu>
+  <act:code>8999</act:code>
+  <act:parent type="new">80e4b8de8f8c363665fcc52248c3b5fa</act:parent>
+</gnc:account>
+
+</gnc-account-example>
diff --git a/data/accounts/sv_SE/bas_2019_k2_grund.gnucash-xea b/data/accounts/sv_SE/bas_2019_k2_grund.gnucash-xea
new file mode 100644
index 000000000..cb723abe1
--- /dev/null
+++ b/data/accounts/sv_SE/bas_2019_k2_grund.gnucash-xea
@@ -0,0 +1,5293 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<gnc-account-example
+  xmlns="http://www.gnucash.org/XML/"
+  xmlns:act="http://www.gnucash.org/XML/act"
+  xmlns:addr="http://www.gnucash.org/XML/addr"
+  xmlns:bgt="http://www.gnucash.org/XML/bgt"
+  xmlns:billterm="http://www.gnucash.org/XML/billterm"
+  xmlns:book="http://www.gnucash.org/XML/book"
+  xmlns:bt-days="http://www.gnucash.org/XML/bt-days"
+  xmlns:bt-prox="http://www.gnucash.org/XML/bt-prox"
+  xmlns:cd="http://www.gnucash.org/XML/cd"
+  xmlns:cmdty="http://www.gnucash.org/XML/cmdty"
+  xmlns:cust="http://www.gnucash.org/XML/cust"
+  xmlns:employee="http://www.gnucash.org/XML/employee"
+  xmlns:entry="http://www.gnucash.org/XML/entry"
+  xmlns:fs="http://www.gnucash.org/XML/fs"
+  xmlns:gnc="http://www.gnucash.org/XML/gnc"
+  xmlns:gnc-act="http://www.gnucash.org/XML/gnc-act"
+  xmlns:invoice="http://www.gnucash.org/XML/invoice"
+  xmlns:job="http://www.gnucash.org/XML/job"
+  xmlns:lot="http://www.gnucash.org/XML/lot"
+  xmlns:order="http://www.gnucash.org/XML/order"
+  xmlns:owner="http://www.gnucash.org/XML/owner"
+  xmlns:price="http://www.gnucash.org/XML/price"
+  xmlns:recurrence="http://www.gnucash.org/XML/recurrence"
+  xmlns:slot="http://www.gnucash.org/XML/slot"
+  xmlns:split="http://www.gnucash.org/XML/split"
+  xmlns:sx="http://www.gnucash.org/XML/sx"
+  xmlns:taxtable="http://www.gnucash.org/XML/taxtable"
+  xmlns:trn="http://www.gnucash.org/XML/trn"
+  xmlns:ts="http://www.gnucash.org/XML/ts"
+  xmlns:tte="http://www.gnucash.org/XML/tte"
+  xmlns:vendor="http://www.gnucash.org/XML/vendor">
+    <gnc-act:title>
+      Kontoplan BAS 2019 Grundläggande K2
+    </gnc-act:title>
+    <gnc-act:short-description>
+      Kontoplan BAS 2019 Grundläggande K2
+    </gnc-act:short-description>
+    <gnc-act:long-description>
+      Kontoplan BAS 2019 med grundläggande konton för företag som tillämpar K2-regler
+
+      För mer information om BAS kontoplaner se https://www.bas.se/.
+    </gnc-act:long-description>
+    <gnc-act:exclude-from-select-all>1</gnc-act:exclude-from-select-all>
+  <gnc:account version="2.0.0">
+    <act:name>Root Account</act:name>
+    <act:id type="new">533732cce5294d02ad2b9f41aa6fab80</act:id>
+    <act:type>ROOT</act:type>
+    <act:commodity-scu>0</act:commodity-scu>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1 TILLGÃ…NGAR</act:name>
+    <act:id type="new">df1311c6e9ac40ae993575c229996511</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">533732cce5294d02ad2b9f41aa6fab80</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>10 Immateriella anläggningstillgångar</act:name>
+    <act:id type="new">da9c965f8ece48cc94adb42e5cad1641</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">df1311c6e9ac40ae993575c229996511</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1030 Patent</act:name>
+    <act:id type="new">1fe8a29f7de34ad0bc6486e91259d622</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1030</act:code>
+    <act:parent type="new">da9c965f8ece48cc94adb42e5cad1641</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1039 Ackumulerade avskrivningar på patent</act:name>
+    <act:id type="new">ef444e65019d403abef196a58954dab1</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1039</act:code>
+    <act:parent type="new">1fe8a29f7de34ad0bc6486e91259d622</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1060 Hyresrätter, tomträtter och liknande</act:name>
+    <act:id type="new">948f2f50613f443386d58591cc47aa2d</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1060</act:code>
+    <act:parent type="new">da9c965f8ece48cc94adb42e5cad1641</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1069 Ackumulerade avskrivningar på hyresrätter, tomträtter och liknande</act:name>
+    <act:id type="new">04b96825abbb4dacb4aa7c9e07010a45</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1069</act:code>
+    <act:parent type="new">948f2f50613f443386d58591cc47aa2d</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>11 Byggnader och mark</act:name>
+    <act:id type="new">af69a64e503040ff8075b9bf8ff99de8</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">df1311c6e9ac40ae993575c229996511</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1110 Byggnader</act:name>
+    <act:id type="new">ebe3095cea2e4f62a399354e45c31e78</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1110</act:code>
+    <act:parent type="new">af69a64e503040ff8075b9bf8ff99de8</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1119 Ackumulerade avskrivningar på byggnader</act:name>
+    <act:id type="new">d254e1b8d2ed4f08a1b18fa619bf5a8c</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1119</act:code>
+    <act:parent type="new">ebe3095cea2e4f62a399354e45c31e78</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1130 Mark</act:name>
+    <act:id type="new">7aa254b2282940bba3b95888256748aa</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1130</act:code>
+    <act:parent type="new">af69a64e503040ff8075b9bf8ff99de8</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1150 Markanläggningar</act:name>
+    <act:id type="new">d15f776892dc492eb8a9406a42775326</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1150</act:code>
+    <act:parent type="new">af69a64e503040ff8075b9bf8ff99de8</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1159 Ackumulerade avskrivningar på markanläggningar</act:name>
+    <act:id type="new">69da0836e07c40d5b9c29ad20cbd76f3</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1159</act:code>
+    <act:parent type="new">d15f776892dc492eb8a9406a42775326</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>12 Maskiner och inventarier</act:name>
+    <act:id type="new">1bff908fa4354859bd5e09076e709f6a</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">df1311c6e9ac40ae993575c229996511</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1210 Maskiner och andra tekniska anläggningar</act:name>
+    <act:id type="new">1c217a512e2c480a881239cc66533959</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1210</act:code>
+    <act:parent type="new">1bff908fa4354859bd5e09076e709f6a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1219 Ackumulerade avskrivningar på maskiner och andra tekniska anläggningar</act:name>
+    <act:id type="new">c2adbee909b84b878600796f35fe8d59</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1219</act:code>
+    <act:parent type="new">1c217a512e2c480a881239cc66533959</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1220 Inventarier och verktyg</act:name>
+    <act:id type="new">973c7a7c6ab848a8a9dd5288873823d7</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1220</act:code>
+    <act:parent type="new">1bff908fa4354859bd5e09076e709f6a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1229 Ackumulerade avskrivningar på inventarier och verktyg</act:name>
+    <act:id type="new">67a8db6e19494f2fa88ed7b9e8abb2e8</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1229</act:code>
+    <act:parent type="new">973c7a7c6ab848a8a9dd5288873823d7</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1240 Bilar och andra transportmedel</act:name>
+    <act:id type="new">d8ff8d0806e444da95cb242b13c809c3</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1240</act:code>
+    <act:parent type="new">1bff908fa4354859bd5e09076e709f6a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1249 Ackumulerade avskrivningar på bilar och andra transportmedel</act:name>
+    <act:id type="new">88054caf0b174d9a8bd517d853e9dae3</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1249</act:code>
+    <act:parent type="new">d8ff8d0806e444da95cb242b13c809c3</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1250 Datorer</act:name>
+    <act:id type="new">eec101a97c5340bdb963ccd4287cfec7</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1250</act:code>
+    <act:parent type="new">1bff908fa4354859bd5e09076e709f6a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1259 Ackumulerade avskrivningar på datorer</act:name>
+    <act:id type="new">a5670cedf42543c098cc51f23d3f71af</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1259</act:code>
+    <act:parent type="new">eec101a97c5340bdb963ccd4287cfec7</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1290 Övriga materiella anläggningstillgångar</act:name>
+    <act:id type="new">313ff418888540b1bbe03986c1a50d1e</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1290</act:code>
+    <act:parent type="new">1bff908fa4354859bd5e09076e709f6a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1291 Konst och liknande tillgångar</act:name>
+    <act:id type="new">f71628bee84e4a1e8650dbc86e7dbf3c</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1291</act:code>
+    <act:parent type="new">313ff418888540b1bbe03986c1a50d1e</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1299 Ackumulerade avskrivningar på övriga materiella anläggningstillgångar</act:name>
+    <act:id type="new">230cef5f01cb44b18e421979e6ba4ccb</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1299</act:code>
+    <act:parent type="new">313ff418888540b1bbe03986c1a50d1e</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>13 Finansiella anläggningstillgångar</act:name>
+    <act:id type="new">2a2030bff6f2414db9dc1f97738a9f75</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">df1311c6e9ac40ae993575c229996511</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1350 Andelar och värdepapper i andra företag</act:name>
+    <act:id type="new">4d94c457cf3241b7988198acfa77f34d</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1350</act:code>
+    <act:parent type="new">2a2030bff6f2414db9dc1f97738a9f75</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1380 Andra långfristiga fordringar</act:name>
+    <act:id type="new">f6d080cea71d428c81eb9ab04b1f2239</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1380</act:code>
+    <act:parent type="new">2a2030bff6f2414db9dc1f97738a9f75</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>14 Lager, produkter i arbete och pågående arbeten</act:name>
+    <act:id type="new">be0ab02f0d2940bbbf92785b113bf08e</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">df1311c6e9ac40ae993575c229996511</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1410 Lager av råvaror</act:name>
+    <act:id type="new">542d8dc8dd8a469484befaa74b08e353</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1410</act:code>
+    <act:parent type="new">be0ab02f0d2940bbbf92785b113bf08e</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1419 Förändring av lager av råvaror</act:name>
+    <act:id type="new">d06e7109c1fb490f92571fdfc81a694d</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1419</act:code>
+    <act:parent type="new">542d8dc8dd8a469484befaa74b08e353</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1440 Produkter i arbete</act:name>
+    <act:id type="new">7d7111dfed604f75b3b1ef0e1de10a48</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1440</act:code>
+    <act:parent type="new">be0ab02f0d2940bbbf92785b113bf08e</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1449 Förändring av produkter i arbete</act:name>
+    <act:id type="new">341cc081bc8248cab3495f12c63c71d5</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1449</act:code>
+    <act:parent type="new">7d7111dfed604f75b3b1ef0e1de10a48</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1450 Lager av färdiga varor</act:name>
+    <act:id type="new">c88fc92375a04d528f31591914566756</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1450</act:code>
+    <act:parent type="new">be0ab02f0d2940bbbf92785b113bf08e</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1459 Förändring av lager av färdiga varor</act:name>
+    <act:id type="new">fa2aeacf0b94491587f0e570bd71e30d</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1459</act:code>
+    <act:parent type="new">c88fc92375a04d528f31591914566756</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1460 Lager av handelsvaror</act:name>
+    <act:id type="new">99aaedce44fb48b6b33939e1b86c159c</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1460</act:code>
+    <act:parent type="new">be0ab02f0d2940bbbf92785b113bf08e</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1469 Förändring av lager av handelsvaror</act:name>
+    <act:id type="new">253a8b64801040078c12ed1647a43aae</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1469</act:code>
+    <act:parent type="new">99aaedce44fb48b6b33939e1b86c159c</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1470 Pågående arbeten</act:name>
+    <act:id type="new">667494c67f8c46cfa0bcd4f0d2ba50d7</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1470</act:code>
+    <act:parent type="new">be0ab02f0d2940bbbf92785b113bf08e</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1479 Förändring av pågående arbeten</act:name>
+    <act:id type="new">a5989daed2f444249373d6548984c6ad</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1479</act:code>
+    <act:parent type="new">667494c67f8c46cfa0bcd4f0d2ba50d7</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1480 Förskott för varor och tjänster</act:name>
+    <act:id type="new">f3714fa358e94bed930354051e18fa47</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1480</act:code>
+    <act:parent type="new">be0ab02f0d2940bbbf92785b113bf08e</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1490 Övriga lagertillgångar</act:name>
+    <act:id type="new">b86ca963b16840e28642da18d871df83</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1490</act:code>
+    <act:parent type="new">be0ab02f0d2940bbbf92785b113bf08e</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>15 Kundfordringar</act:name>
+    <act:id type="new">f44cbe2341e345aa8f31e940157c35b7</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">df1311c6e9ac40ae993575c229996511</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1510 Kundfordringar</act:name>
+    <act:id type="new">eadc2dc5c49c401c9e3c9bb70f2698e0</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1510</act:code>
+    <act:parent type="new">f44cbe2341e345aa8f31e940157c35b7</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1513 Kundfordringar - delad faktura</act:name>
+    <act:id type="new">d1ba34ecc6bd4456ac9c1a2be1a277b4</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1513</act:code>
+    <act:parent type="new">eadc2dc5c49c401c9e3c9bb70f2698e0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1519 Nedskrivning av kundfordringar</act:name>
+    <act:id type="new">b36c90c483304e6e876fee927251062e</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1519</act:code>
+    <act:parent type="new">eadc2dc5c49c401c9e3c9bb70f2698e0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1580 Fordringar för kontokort och kuponger</act:name>
+    <act:id type="new">84fbf4ec5c8f44d7b42cdccba03912c5</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1580</act:code>
+    <act:parent type="new">f44cbe2341e345aa8f31e940157c35b7</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>16 Övriga kortfristiga fordringar</act:name>
+    <act:id type="new">69de75bafb63449f8f8eadb5b3ecab90</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">df1311c6e9ac40ae993575c229996511</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1610 Kortfristiga fordringar hos anställda</act:name>
+    <act:id type="new">23d04e28bb584078a1c28e0d468a0b26</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1610</act:code>
+    <act:parent type="new">69de75bafb63449f8f8eadb5b3ecab90</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1630 Avräkning för skatter och avgifter (skattekonto)</act:name>
+    <act:id type="new">3d3157c20d5a414db12009e79d7cd6eb</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1630</act:code>
+    <act:parent type="new">69de75bafb63449f8f8eadb5b3ecab90</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1640 Skattefordringar</act:name>
+    <act:id type="new">52bf630c7e3e4fb79da2a9246c0208f2</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1640</act:code>
+    <act:parent type="new">69de75bafb63449f8f8eadb5b3ecab90</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1650 Momsfordran</act:name>
+    <act:id type="new">d580e77bee0e4e3dabf7609514597ed0</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1650</act:code>
+    <act:parent type="new">69de75bafb63449f8f8eadb5b3ecab90</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1680 Andra kortfristiga fordringar</act:name>
+    <act:id type="new">b309d6f164334f6aa93d9f1290ff63b2</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1680</act:code>
+    <act:parent type="new">69de75bafb63449f8f8eadb5b3ecab90</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>17 Förutbetalda kostnader och upplupna intäkter</act:name>
+    <act:id type="new">2b3d37f5569d4a7b9449762061e717db</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">df1311c6e9ac40ae993575c229996511</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1710 Förutbetalda hyreskostnader</act:name>
+    <act:id type="new">fe7d3dd1dc3b4c3683a82961c29dfcd7</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1710</act:code>
+    <act:parent type="new">2b3d37f5569d4a7b9449762061e717db</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1720 Förutbetalda leasingavgifter, kortfristig del</act:name>
+    <act:id type="new">c19df1166b4f418ba95b808f144393c4</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1720</act:code>
+    <act:parent type="new">2b3d37f5569d4a7b9449762061e717db</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1730 Förutbetalda försäkringspremier</act:name>
+    <act:id type="new">fdef8806007349b2b2d5b896cb111552</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1730</act:code>
+    <act:parent type="new">2b3d37f5569d4a7b9449762061e717db</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1740 Förutbetalda räntekostnader</act:name>
+    <act:id type="new">a3b8dec1b501404ab7ecfb13b2803cf2</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1740</act:code>
+    <act:parent type="new">2b3d37f5569d4a7b9449762061e717db</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1750 Upplupna hyresintäkter</act:name>
+    <act:id type="new">2f400b5b9fdb4ed88dd989207f0e94c9</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1750</act:code>
+    <act:parent type="new">2b3d37f5569d4a7b9449762061e717db</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1760 Upplupna ränteintäkter</act:name>
+    <act:id type="new">0f663da1a2954e4faf5d60555995a29f</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1760</act:code>
+    <act:parent type="new">2b3d37f5569d4a7b9449762061e717db</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1790 Övriga förutbetalda kostnader och upplupna intäkter</act:name>
+    <act:id type="new">21643d4cdc504e0b84bdbe8211804f21</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1790</act:code>
+    <act:parent type="new">2b3d37f5569d4a7b9449762061e717db</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>18 Kortfristiga placeringar</act:name>
+    <act:id type="new">e704693c2c0545ba8b58eb55a42da92d</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">df1311c6e9ac40ae993575c229996511</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1810 Andelar i börsnoterade företag</act:name>
+    <act:id type="new">3102aefa05bc493ea2b3feae173c9ca6</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1810</act:code>
+    <act:parent type="new">e704693c2c0545ba8b58eb55a42da92d</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1880 Andra kortfristiga placeringar</act:name>
+    <act:id type="new">e4f9b26c79f848bab416907755d634ce</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1880</act:code>
+    <act:parent type="new">e704693c2c0545ba8b58eb55a42da92d</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1890 Nedskrivning av kortfristiga placeringar</act:name>
+    <act:id type="new">13060f488c714a018cafbd323e0f4d7d</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1890</act:code>
+    <act:parent type="new">e704693c2c0545ba8b58eb55a42da92d</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>19 Kassa och bank</act:name>
+    <act:id type="new">d1ae3fb34d534d9098a23bac9e157159</act:id>
+    <act:type>ASSET</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">df1311c6e9ac40ae993575c229996511</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1910 Kassa</act:name>
+    <act:id type="new">74f2566214e844bfa2e9324d55993a20</act:id>
+    <act:type>CASH</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1910</act:code>
+    <act:parent type="new">d1ae3fb34d534d9098a23bac9e157159</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1920 PlusGiro</act:name>
+    <act:id type="new">c650e43e5a6b4b3ba199ed8d984b4f47</act:id>
+    <act:type>BANK</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1920</act:code>
+    <act:parent type="new">d1ae3fb34d534d9098a23bac9e157159</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1930 Företagskonto/checkkonto/affärskonto</act:name>
+    <act:id type="new">bafa84ae51394829a76ae6c2ead6acf5</act:id>
+    <act:type>BANK</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1930</act:code>
+    <act:parent type="new">d1ae3fb34d534d9098a23bac9e157159</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>1940 Övriga bankkonton</act:name>
+    <act:id type="new">1f536a847bab4ccf97bd1f76efe8eb3d</act:id>
+    <act:type>BANK</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>1940</act:code>
+    <act:parent type="new">d1ae3fb34d534d9098a23bac9e157159</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2 EGET KAPITAL OCH SKULDER</act:name>
+    <act:id type="new">2715f861f51a4d9fa5b21760e0885b7a</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">533732cce5294d02ad2b9f41aa6fab80</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>20 Eget kapital</act:name>
+    <act:id type="new">2fa69ba96b2a4d7b894d7989bd1c532a</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">2715f861f51a4d9fa5b21760e0885b7a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2010 Eget kapital, delägare 1</act:name>
+    <act:id type="new">b7937d364fb14bbdae25bc7ddc2627cb</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2010</act:code>
+    <act:parent type="new">2fa69ba96b2a4d7b894d7989bd1c532a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2011 Egna varuuttag</act:name>
+    <act:id type="new">6d3daa8a26db420bbe3bf7f35eb07d8d</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2011</act:code>
+    <act:parent type="new">b7937d364fb14bbdae25bc7ddc2627cb</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2013 Övriga egna uttag</act:name>
+    <act:id type="new">e746167854be41eda7a15cb6e35f3324</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2013</act:code>
+    <act:parent type="new">b7937d364fb14bbdae25bc7ddc2627cb</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2017 Ã…rets kapitaltillskott</act:name>
+    <act:id type="new">6600f571faf04c6c946876915bc0e97c</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2017</act:code>
+    <act:parent type="new">b7937d364fb14bbdae25bc7ddc2627cb</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2018 Övriga egna insättningar</act:name>
+    <act:id type="new">286f5e62556b4382b35237d05e2b11ef</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2018</act:code>
+    <act:parent type="new">b7937d364fb14bbdae25bc7ddc2627cb</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2019 Årets resultat, delägare 1</act:name>
+    <act:id type="new">e163d567bf0441319b2b8a2446374243</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2019</act:code>
+    <act:parent type="new">b7937d364fb14bbdae25bc7ddc2627cb</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2020 Eget kapital, delägare 2</act:name>
+    <act:id type="new">999ca6f25d6448af94575bf31c5dabc2</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2020</act:code>
+    <act:parent type="new">2fa69ba96b2a4d7b894d7989bd1c532a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2030 Eget kapital, delägare 3</act:name>
+    <act:id type="new">dabcf8c9ebfe4cf99cbf99eca42be0fc</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2030</act:code>
+    <act:parent type="new">2fa69ba96b2a4d7b894d7989bd1c532a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2040 Eget kapital, delägare 4</act:name>
+    <act:id type="new">89878b26c6b540e2bb6f559b121e9886</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2040</act:code>
+    <act:parent type="new">2fa69ba96b2a4d7b894d7989bd1c532a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2060 Eget kapital i ideella föreningar, stiftelser och registrerade trossamfund</act:name>
+    <act:id type="new">93dfa195c77e4446adaea4c6882f4a01</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2060</act:code>
+    <act:parent type="new">2fa69ba96b2a4d7b894d7989bd1c532a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2070 Ändamålsbestämda medel</act:name>
+    <act:id type="new">589391f7a3c34bf3a1376ca16aba32bb</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2070</act:code>
+    <act:parent type="new">2fa69ba96b2a4d7b894d7989bd1c532a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2080 Bundet eget kapital</act:name>
+    <act:id type="new">4026c727635d4c6f9a1793dee5075e79</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2080</act:code>
+    <act:parent type="new">2fa69ba96b2a4d7b894d7989bd1c532a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2081 Aktiekapital</act:name>
+    <act:id type="new">3538113c472c4a30968bf1aec3feb8e2</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2081</act:code>
+    <act:parent type="new">4026c727635d4c6f9a1793dee5075e79</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2083 Medlemsinsatser</act:name>
+    <act:id type="new">ceb75ea41cbd45dd903fe1d73166dc91</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2083</act:code>
+    <act:parent type="new">4026c727635d4c6f9a1793dee5075e79</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2086 Reservfond</act:name>
+    <act:id type="new">c140d5cb50a64815974da7f8afc6b80f</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2086</act:code>
+    <act:parent type="new">4026c727635d4c6f9a1793dee5075e79</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2090 Fritt eget kapital</act:name>
+    <act:id type="new">6b33f4f66a2c4383bc0f8daba2a463d1</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2090</act:code>
+    <act:parent type="new">2fa69ba96b2a4d7b894d7989bd1c532a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2091 Balanserad vinst eller förlust</act:name>
+    <act:id type="new">c15d3b3eb0714a818ab896b329b2bf20</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2091</act:code>
+    <act:parent type="new">6b33f4f66a2c4383bc0f8daba2a463d1</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2098 Vinst eller förlust från föregående år</act:name>
+    <act:id type="new">b2d35e29e1d14e12bdd358cf08a99598</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2098</act:code>
+    <act:parent type="new">6b33f4f66a2c4383bc0f8daba2a463d1</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2099 Ã…rets resultat</act:name>
+    <act:id type="new">9913b0c3b5544d5aa7ba971a07bdb9bb</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2099</act:code>
+    <act:parent type="new">6b33f4f66a2c4383bc0f8daba2a463d1</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>21 Obeskattade reserver</act:name>
+    <act:id type="new">f4ed5c652ba64e4e8940c3220296661f</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">2715f861f51a4d9fa5b21760e0885b7a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2110 Periodiseringsfonder</act:name>
+    <act:id type="new">9322ce216eeb40d6ba83e0001a7eae07</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2110</act:code>
+    <act:parent type="new">f4ed5c652ba64e4e8940c3220296661f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2113 Periodiseringsfond vid 2013 års taxering</act:name>
+    <act:id type="new">e040ef50735846e69f4bac27b1f3af65</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2113</act:code>
+    <act:parent type="new">9322ce216eeb40d6ba83e0001a7eae07</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2120 Periodiseringsfonder</act:name>
+    <act:id type="new">8d6f40045541408a930eb90ee3d06636</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2120</act:code>
+    <act:parent type="new">f4ed5c652ba64e4e8940c3220296661f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2123 Periodiseringsfond 2013</act:name>
+    <act:id type="new">ada5800eee464179998151b09115d358</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2123</act:code>
+    <act:parent type="new">8d6f40045541408a930eb90ee3d06636</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2124 Periodiseringsfond 2014</act:name>
+    <act:id type="new">fcd6f7d996f54ee4affec33572e2ba3c</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2124</act:code>
+    <act:parent type="new">8d6f40045541408a930eb90ee3d06636</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2125 Periodiseringsfond 2015</act:name>
+    <act:id type="new">2d79fe2f3bb94b85a7ad4d192e41ebb9</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2125</act:code>
+    <act:parent type="new">8d6f40045541408a930eb90ee3d06636</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2126 Periodiseringsfond 2016</act:name>
+    <act:id type="new">25ec0e96d0944331b061e38bc1e198de</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2126</act:code>
+    <act:parent type="new">8d6f40045541408a930eb90ee3d06636</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2127 Periodiseringsfond 2017</act:name>
+    <act:id type="new">818f02432cd545f3b96557484e63c384</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2127</act:code>
+    <act:parent type="new">8d6f40045541408a930eb90ee3d06636</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2128 Periodiseringsfond 2018</act:name>
+    <act:id type="new">5f60558222ca4075b0d28a63275e6e8f</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2128</act:code>
+    <act:parent type="new">8d6f40045541408a930eb90ee3d06636</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2129 Periodiseringsfond 2019</act:name>
+    <act:id type="new">bd315d5c5ccd4553a53f8fcbe8686917</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2129</act:code>
+    <act:parent type="new">8d6f40045541408a930eb90ee3d06636</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2150 Ackumulerade överavskrivningar</act:name>
+    <act:id type="new">c224183b82c642499e79296cdc79a4e8</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2150</act:code>
+    <act:parent type="new">f4ed5c652ba64e4e8940c3220296661f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>22 Avsättningar</act:name>
+    <act:id type="new">dd19682cd1ec44338a76708bc58c52b8</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">2715f861f51a4d9fa5b21760e0885b7a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2210 Avsättningar för pensioner enligt tryggandelagen</act:name>
+    <act:id type="new">2c8cc5e071e24a5ea4c7bdb0ff3cf937</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2210</act:code>
+    <act:parent type="new">dd19682cd1ec44338a76708bc58c52b8</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2220 Avsättningar för garantier</act:name>
+    <act:id type="new">9ac59ece98ac48ef999d72776ad2a8b1</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2220</act:code>
+    <act:parent type="new">dd19682cd1ec44338a76708bc58c52b8</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2290 Övriga avsättningar</act:name>
+    <act:id type="new">8e7dcf84a5de45fe8d0a141ede19a741</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2290</act:code>
+    <act:parent type="new">dd19682cd1ec44338a76708bc58c52b8</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>23 LÃ¥ngfristiga skulder</act:name>
+    <act:id type="new">31b49d727c9646feac747f0680fb39a2</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">2715f861f51a4d9fa5b21760e0885b7a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2330 Checkräkningskredit</act:name>
+    <act:id type="new">04e4e33eca264afc8298e27a42ad2b16</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2330</act:code>
+    <act:parent type="new">31b49d727c9646feac747f0680fb39a2</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2350 Andra långfristiga skulder till kreditinstitut</act:name>
+    <act:id type="new">f0b264f9f34947fd87664340fc411fd2</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2350</act:code>
+    <act:parent type="new">31b49d727c9646feac747f0680fb39a2</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2390 Övriga långfristiga skulder</act:name>
+    <act:id type="new">ee693d0cf5b44a0ab68009f51c94b1af</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2390</act:code>
+    <act:parent type="new">31b49d727c9646feac747f0680fb39a2</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2393 Lån från närstående personer, långfristig del</act:name>
+    <act:id type="new">f254a48448b7465eb0592b3f6bdeb38b</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2393</act:code>
+    <act:parent type="new">ee693d0cf5b44a0ab68009f51c94b1af</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>24 Kortfristiga skulder till kreditinstitut, kunder och leverantörer</act:name>
+    <act:id type="new">9ee36304c65b4f25b51e5e2b3ebb238d</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">2715f861f51a4d9fa5b21760e0885b7a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2410 Andra kortfristiga låneskulder till kreditinstitut</act:name>
+    <act:id type="new">a7242352dbba49aaa37c96dc675dac85</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2410</act:code>
+    <act:parent type="new">9ee36304c65b4f25b51e5e2b3ebb238d</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2420 Förskott från kunder</act:name>
+    <act:id type="new">81df57a89dbe4eb0886b986059b4baf7</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2420</act:code>
+    <act:parent type="new">9ee36304c65b4f25b51e5e2b3ebb238d</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2440 Leverantörsskulder</act:name>
+    <act:id type="new">5fb58ddcaa1942c9a8dfc7c707448379</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2440</act:code>
+    <act:parent type="new">9ee36304c65b4f25b51e5e2b3ebb238d</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2480 Checkräkningskredit, kortfristig</act:name>
+    <act:id type="new">e0fbe40a12df482a92bb25b586dd676c</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2480</act:code>
+    <act:parent type="new">9ee36304c65b4f25b51e5e2b3ebb238d</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2490 Övriga kortfristiga skulder till kreditinstitut, kunder och leverantörer</act:name>
+    <act:id type="new">8d4c4d39fbbf4b8b91a4a4215e8c06fb</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2490</act:code>
+    <act:parent type="new">9ee36304c65b4f25b51e5e2b3ebb238d</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>25 Skatteskulder</act:name>
+    <act:id type="new">c93383fe1351459dbf48cd9357b1425d</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">2715f861f51a4d9fa5b21760e0885b7a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2510 Skatteskulder</act:name>
+    <act:id type="new">33e4ed59e3194707a7b09f19ab89f77d</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2510</act:code>
+    <act:parent type="new">c93383fe1351459dbf48cd9357b1425d</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>26 Moms och särskilda punktskatter</act:name>
+    <act:id type="new">af9614063f3941018a7e7e474b5a6fe7</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">2715f861f51a4d9fa5b21760e0885b7a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2610 Utgående moms, 25 %</act:name>
+    <act:id type="new">15b4b8e1d0234af4b15b3e7f96a17c59</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2610</act:code>
+    <act:parent type="new">af9614063f3941018a7e7e474b5a6fe7</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2611 Utgående moms på försäljning inom Sverige, 25 %</act:name>
+    <act:id type="new">6d6dc4d434dd474f83df92545a4d31e6</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2611</act:code>
+    <act:parent type="new">15b4b8e1d0234af4b15b3e7f96a17c59</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2612 Utgående moms på egna uttag, 25 %</act:name>
+    <act:id type="new">9406adc8c84442348e080cab5c80ded2</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2612</act:code>
+    <act:parent type="new">15b4b8e1d0234af4b15b3e7f96a17c59</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2613 Utgående moms för uthyrning, 25 %</act:name>
+    <act:id type="new">d7bba35b490c4df487b8586136740d79</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2613</act:code>
+    <act:parent type="new">15b4b8e1d0234af4b15b3e7f96a17c59</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2614 Utgående moms omvänd skattskyldighet, 25 %</act:name>
+    <act:id type="new">50865ae782114203863c934b2f595f23</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2614</act:code>
+    <act:parent type="new">15b4b8e1d0234af4b15b3e7f96a17c59</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2615 Utgående moms import av varor, 25 %</act:name>
+    <act:id type="new">cec85de694104fca9f018646a62e8942</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2615</act:code>
+    <act:parent type="new">15b4b8e1d0234af4b15b3e7f96a17c59</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2616 Utgående moms VMB 25 %</act:name>
+    <act:id type="new">aea7ecd69908483cbc89ddd3121478fd</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2616</act:code>
+    <act:parent type="new">15b4b8e1d0234af4b15b3e7f96a17c59</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2620 Utgående moms, 12 %</act:name>
+    <act:id type="new">4ad916bdb68a485a94eeceb39e9cd2a4</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2620</act:code>
+    <act:parent type="new">af9614063f3941018a7e7e474b5a6fe7</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2621 Utgående moms på försäljning inom Sverige, 12 %</act:name>
+    <act:id type="new">c1397c9aa0e8495cb7d8798f4699feec</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2621</act:code>
+    <act:parent type="new">4ad916bdb68a485a94eeceb39e9cd2a4</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2622 Utgående moms på egna uttag, 12 %</act:name>
+    <act:id type="new">e163e97eb5f5456d9215d5d45e7c49ec</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2622</act:code>
+    <act:parent type="new">4ad916bdb68a485a94eeceb39e9cd2a4</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2623 Utgående moms för uthyrning, 12 %</act:name>
+    <act:id type="new">2485c17f0b4b43b2956010dabb354276</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2623</act:code>
+    <act:parent type="new">4ad916bdb68a485a94eeceb39e9cd2a4</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2624 Utgående moms omvänd skattskyldighet, 12 %</act:name>
+    <act:id type="new">8ab99c6164854932b8e9b855c5bacb9d</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2624</act:code>
+    <act:parent type="new">4ad916bdb68a485a94eeceb39e9cd2a4</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2625 Utgående moms import av varor, 12 %</act:name>
+    <act:id type="new">797c4e0d7b5e40c6a464ab9942624d4e</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2625</act:code>
+    <act:parent type="new">4ad916bdb68a485a94eeceb39e9cd2a4</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2626 Utgående moms VMB 12 %</act:name>
+    <act:id type="new">b880f83e36a1427ca033483455f6163b</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2626</act:code>
+    <act:parent type="new">4ad916bdb68a485a94eeceb39e9cd2a4</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2630 Utgående moms, 6 %</act:name>
+    <act:id type="new">fa17c5fd955b4832b54fb6f084b4c7c6</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2630</act:code>
+    <act:parent type="new">af9614063f3941018a7e7e474b5a6fe7</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2631 Utgående moms på försäljning inom Sverige, 6 %</act:name>
+    <act:id type="new">8ac4f5b5806348c98a082d0dc49d1d57</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2631</act:code>
+    <act:parent type="new">fa17c5fd955b4832b54fb6f084b4c7c6</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2632 Utgående moms på egna uttag, 6 %</act:name>
+    <act:id type="new">e2f6594896f84e3bb254e5eb5bf2cc5e</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2632</act:code>
+    <act:parent type="new">fa17c5fd955b4832b54fb6f084b4c7c6</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2633 Utgående moms för uthyrning, 6 %</act:name>
+    <act:id type="new">537c4c6aaa08492c867f4e5b61c24541</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2633</act:code>
+    <act:parent type="new">fa17c5fd955b4832b54fb6f084b4c7c6</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2634 Utgående moms omvänd skattskyldighet, 6 %</act:name>
+    <act:id type="new">39d0d7a6880b436380b520264e8cab01</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2634</act:code>
+    <act:parent type="new">fa17c5fd955b4832b54fb6f084b4c7c6</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2635 Utgående moms import av varor, 6 %</act:name>
+    <act:id type="new">369ec4f8bcda48ca9358e2105e0bb4e0</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2635</act:code>
+    <act:parent type="new">fa17c5fd955b4832b54fb6f084b4c7c6</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2636 Utgående moms VMB 6 %</act:name>
+    <act:id type="new">eaa5975652c943b794428168d080271d</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2636</act:code>
+    <act:parent type="new">fa17c5fd955b4832b54fb6f084b4c7c6</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2640 Ingående moms</act:name>
+    <act:id type="new">db11dcb1448b4af583a573b598283278</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2640</act:code>
+    <act:parent type="new">af9614063f3941018a7e7e474b5a6fe7</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2641 Debiterad ingående moms</act:name>
+    <act:id type="new">d0386fb6d27745c6bbd510a01325d0ab</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2641</act:code>
+    <act:parent type="new">db11dcb1448b4af583a573b598283278</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2642 Debiterad ingående moms i anslutning till frivillig skattskyldighet</act:name>
+    <act:id type="new">e8d896827f0841edb499c6424bdf06d4</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2642</act:code>
+    <act:parent type="new">db11dcb1448b4af583a573b598283278</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2645 Beräknad ingående moms på förvärv från utlandet</act:name>
+    <act:id type="new">b1f35385b2304630a5f6d4a1999d3460</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2645</act:code>
+    <act:parent type="new">db11dcb1448b4af583a573b598283278</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2646 Ingående moms på uthyrning</act:name>
+    <act:id type="new">5ed7dbbc90964f2b88164015fe0d1ae2</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2646</act:code>
+    <act:parent type="new">db11dcb1448b4af583a573b598283278</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2647 Ingående moms omvänd skattskyldighet varor och tjänster i Sverige</act:name>
+    <act:id type="new">fb5eee4f6d2748f296ddf8ef18673f94</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2647</act:code>
+    <act:parent type="new">db11dcb1448b4af583a573b598283278</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2648 Vilande ingående moms</act:name>
+    <act:id type="new">91ca8dcd8957438693a70b36dd05787f</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2648</act:code>
+    <act:parent type="new">db11dcb1448b4af583a573b598283278</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2649 Ingående moms, blandad verksamhet</act:name>
+    <act:id type="new">1c43e6507eaa402284d3558e879fbe09</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2649</act:code>
+    <act:parent type="new">db11dcb1448b4af583a573b598283278</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2650 Redovisningskonto för moms</act:name>
+    <act:id type="new">f2a7fd2caef842d18628e2e29f64eeb4</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2650</act:code>
+    <act:parent type="new">af9614063f3941018a7e7e474b5a6fe7</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>27 Personalens skatter, avgifter och löneavdrag</act:name>
+    <act:id type="new">71c199dd1a5a4feeacaaaf3a1f01e495</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">2715f861f51a4d9fa5b21760e0885b7a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2710 Personalskatt</act:name>
+    <act:id type="new">d5b584847cd74dc4a30cf7e1adf5ce33</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2710</act:code>
+    <act:parent type="new">71c199dd1a5a4feeacaaaf3a1f01e495</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2730 Lagstadgade sociala avgifter och särskild löneskatt</act:name>
+    <act:id type="new">9f77012e4f094682a8befda3055bf179</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2730</act:code>
+    <act:parent type="new">71c199dd1a5a4feeacaaaf3a1f01e495</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2740 Avtalade sociala avgifter</act:name>
+    <act:id type="new">c8123b55ce43447bb52dea47aaf70cee</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2740</act:code>
+    <act:parent type="new">71c199dd1a5a4feeacaaaf3a1f01e495</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2790 Övriga löneavdrag</act:name>
+    <act:id type="new">4ba2a1b5913e4c61b4a474068bdaf31d</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2790</act:code>
+    <act:parent type="new">71c199dd1a5a4feeacaaaf3a1f01e495</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>28 Övriga kortfristiga skulder</act:name>
+    <act:id type="new">8cc0c6e65fea406297e1c46e0ac04fb3</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">2715f861f51a4d9fa5b21760e0885b7a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2820 Kortfristiga skulder till anställda</act:name>
+    <act:id type="new">80d1e8d9b2d74c019501f74763887dc8</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2820</act:code>
+    <act:parent type="new">8cc0c6e65fea406297e1c46e0ac04fb3</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2840 Kortfristiga låneskulder</act:name>
+    <act:id type="new">adafb70594fd402caff67b4755e3b633</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2840</act:code>
+    <act:parent type="new">8cc0c6e65fea406297e1c46e0ac04fb3</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2890 Övriga kortfristiga skulder</act:name>
+    <act:id type="new">1ea065dc94654d578adce90ce4a12ca2</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2890</act:code>
+    <act:parent type="new">8cc0c6e65fea406297e1c46e0ac04fb3</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>29 Upplupna kostnader och förutbetalda intäkter</act:name>
+    <act:id type="new">fdfe02d79b98475a99d18fe341b9b463</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">2715f861f51a4d9fa5b21760e0885b7a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2910 Upplupna löner</act:name>
+    <act:id type="new">483c8ad37a724a51a2903c2653bd2d2e</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2910</act:code>
+    <act:parent type="new">fdfe02d79b98475a99d18fe341b9b463</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2920 Upplupna semesterlöner</act:name>
+    <act:id type="new">9b5812673fc944b2bab7da9bd9e21118</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2920</act:code>
+    <act:parent type="new">fdfe02d79b98475a99d18fe341b9b463</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2940 Upplupna lagstadgade sociala och andra avgifter</act:name>
+    <act:id type="new">6efd42e92b2f40ccb70eb4cec64185de</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2940</act:code>
+    <act:parent type="new">fdfe02d79b98475a99d18fe341b9b463</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2950 Upplupna avtalade sociala avgifter</act:name>
+    <act:id type="new">6e9629d1472d4ccdb73761b52f71c97e</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2950</act:code>
+    <act:parent type="new">fdfe02d79b98475a99d18fe341b9b463</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2960 Upplupna räntekostnader</act:name>
+    <act:id type="new">e75e57432cbe44b2ba992d2862d7e327</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2960</act:code>
+    <act:parent type="new">fdfe02d79b98475a99d18fe341b9b463</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2970 Förutbetalda intäkter</act:name>
+    <act:id type="new">8eba23c5bc9a4eb0be83c6bee7241955</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2970</act:code>
+    <act:parent type="new">fdfe02d79b98475a99d18fe341b9b463</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2990 Övriga upplupna kostnader och förutbetalda intäkter</act:name>
+    <act:id type="new">79e96182aa3f488da3d0f9de61f17c88</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2990</act:code>
+    <act:parent type="new">fdfe02d79b98475a99d18fe341b9b463</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>2999 OBS-konto</act:name>
+    <act:id type="new">478834f3af194b72a969884da67f00f3</act:id>
+    <act:type>LIABILITY</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>2999</act:code>
+    <act:parent type="new">79e96182aa3f488da3d0f9de61f17c88</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3 RÖRELSENS INKOMSTER/INTÄKTER</act:name>
+    <act:id type="new">59120315604445ec92a28d7a39111f41</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">533732cce5294d02ad2b9f41aa6fab80</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>30–34 Huvudintäkter</act:name>
+    <act:id type="new">4158a3a8bb7f44afa66d30dd4e0ad679</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">59120315604445ec92a28d7a39111f41</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3000 Försäljning inom Sverige</act:name>
+    <act:id type="new">63f51e7eaf194d828c8a0163f57ccd37</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3000</act:code>
+    <act:parent type="new">4158a3a8bb7f44afa66d30dd4e0ad679</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3001 Försäljning inom Sverige, 25 % moms</act:name>
+    <act:id type="new">24b7477079d14f35a88e26097ac20b38</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3001</act:code>
+    <act:parent type="new">63f51e7eaf194d828c8a0163f57ccd37</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3002 Försäljning inom Sverige, 12 % moms</act:name>
+    <act:id type="new">98412fd125b14d00b315d666a4cadc39</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3002</act:code>
+    <act:parent type="new">63f51e7eaf194d828c8a0163f57ccd37</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3003 Försäljning inom Sverige, 6 % moms</act:name>
+    <act:id type="new">b909129642c1436ba5e38aabfc391d22</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3003</act:code>
+    <act:parent type="new">63f51e7eaf194d828c8a0163f57ccd37</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3004 Försäljning inom Sverige, momsfri</act:name>
+    <act:id type="new">31eca01a21ea41799b205fefceae97d0</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3004</act:code>
+    <act:parent type="new">63f51e7eaf194d828c8a0163f57ccd37</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3100 Försäljning av varor utanför Sverige</act:name>
+    <act:id type="new">ee6550adaaa14099902976e4aa5bcce9</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3100</act:code>
+    <act:parent type="new">4158a3a8bb7f44afa66d30dd4e0ad679</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3105 Försäljning varor till land utanför EU</act:name>
+    <act:id type="new">3d173bcfc4794931a23ce5ec9c5c1950</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3105</act:code>
+    <act:parent type="new">ee6550adaaa14099902976e4aa5bcce9</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3106 Försäljning varor till annat EU-land, momspliktig</act:name>
+    <act:id type="new">cd7af7480df04a2892aa6e7d21682074</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3106</act:code>
+    <act:parent type="new">ee6550adaaa14099902976e4aa5bcce9</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3108 Försäljning varor till annat EU-land, momsfri</act:name>
+    <act:id type="new">c036a21ebb66424a89ae33ea7415452e</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3108</act:code>
+    <act:parent type="new">ee6550adaaa14099902976e4aa5bcce9</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3200 Försäljning VMB och omvänd moms</act:name>
+    <act:id type="new">cfb609656784410ebda8d4ed0e071ad0</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3200</act:code>
+    <act:parent type="new">4158a3a8bb7f44afa66d30dd4e0ad679</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3211 Försäljning positiv VMB 25 %</act:name>
+    <act:id type="new">0dc4d785230c40b490e0c8ba3b8b2830</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3211</act:code>
+    <act:parent type="new">cfb609656784410ebda8d4ed0e071ad0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3212 Försäljning negativ VMB 25 %</act:name>
+    <act:id type="new">1c51ee00e81c4b8c994f4036f76bf400</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3212</act:code>
+    <act:parent type="new">cfb609656784410ebda8d4ed0e071ad0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3231 Försäljning inom byggsektorn, omvänd skattskyldighet moms</act:name>
+    <act:id type="new">cdbd162c82ab458990960285853f73e4</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3231</act:code>
+    <act:parent type="new">cfb609656784410ebda8d4ed0e071ad0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3300 Försäljning av tjänster utanför Sverige</act:name>
+    <act:id type="new">7e2ea6e99ef445509d781a75de685daf</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3300</act:code>
+    <act:parent type="new">4158a3a8bb7f44afa66d30dd4e0ad679</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3305 Försäljning tjänster till land utanför EU</act:name>
+    <act:id type="new">01d19008253c4f2e8c89779929d6c0f0</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3305</act:code>
+    <act:parent type="new">7e2ea6e99ef445509d781a75de685daf</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3308 Försäljning tjänster till annat EU-land</act:name>
+    <act:id type="new">f48efc1306f04a4596a959cdbf6a3c42</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3308</act:code>
+    <act:parent type="new">7e2ea6e99ef445509d781a75de685daf</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3400 Försäljning, egna uttag</act:name>
+    <act:id type="new">0e21e5ec2c8c416a8d62c998462cfbbe</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3400</act:code>
+    <act:parent type="new">4158a3a8bb7f44afa66d30dd4e0ad679</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3401 Egna uttag momspliktiga, 25 %</act:name>
+    <act:id type="new">9dded38143e7479f92262bbe148efa5f</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3401</act:code>
+    <act:parent type="new">0e21e5ec2c8c416a8d62c998462cfbbe</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3402 Egna uttag momspliktiga, 12 %</act:name>
+    <act:id type="new">ba63b73ae98948b89455acd648fb45b4</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3402</act:code>
+    <act:parent type="new">0e21e5ec2c8c416a8d62c998462cfbbe</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3403 Egna uttag momspliktiga, 6 %</act:name>
+    <act:id type="new">a50ee9b92e0a4f9cb7bde62f085f2b84</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3403</act:code>
+    <act:parent type="new">0e21e5ec2c8c416a8d62c998462cfbbe</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3404 Egna uttag, momsfria</act:name>
+    <act:id type="new">669e8d96484b43d09d01921a0daaef73</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3404</act:code>
+    <act:parent type="new">0e21e5ec2c8c416a8d62c998462cfbbe</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>35 Fakturerade kostnader</act:name>
+    <act:id type="new">fc079c6715034496856eff69966077df</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">59120315604445ec92a28d7a39111f41</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3500 Fakturerade kostnader (gruppkonto)</act:name>
+    <act:id type="new">fee62bf32de948028c0cd1587809c9db</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3500</act:code>
+    <act:parent type="new">fc079c6715034496856eff69966077df</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3510 Fakturerat emballage</act:name>
+    <act:id type="new">b4fbe092f012419e8f2781e7524f60af</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3510</act:code>
+    <act:parent type="new">fc079c6715034496856eff69966077df</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3520 Fakturerade frakter</act:name>
+    <act:id type="new">791d1ea572a44476bc9ab36e896e60ed</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3520</act:code>
+    <act:parent type="new">fc079c6715034496856eff69966077df</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3521 Fakturerade frakter, EU-land</act:name>
+    <act:id type="new">2b325fb8e9ce44d8addc88656892e43e</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3521</act:code>
+    <act:parent type="new">791d1ea572a44476bc9ab36e896e60ed</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3522 Fakturerade frakter, export</act:name>
+    <act:id type="new">de199df7c8ca4dc99e91ad37fdf2a03d</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3522</act:code>
+    <act:parent type="new">791d1ea572a44476bc9ab36e896e60ed</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3530 Fakturerade tull- och speditionskostnader m.m.</act:name>
+    <act:id type="new">419e06ce50f04b209ac1e8c140d83798</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3530</act:code>
+    <act:parent type="new">fc079c6715034496856eff69966077df</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3540 Faktureringsavgifter</act:name>
+    <act:id type="new">2c223d9ccacf47a5b7a1d404dcd7ea73</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3540</act:code>
+    <act:parent type="new">fc079c6715034496856eff69966077df</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3541 Faktureringsavgifter, EU-land</act:name>
+    <act:id type="new">3989806f76fc4665b0857c879b9ed084</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3541</act:code>
+    <act:parent type="new">2c223d9ccacf47a5b7a1d404dcd7ea73</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3542 Faktureringsavgifter, export</act:name>
+    <act:id type="new">27296d045e9141819af53f63bc4586b8</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3542</act:code>
+    <act:parent type="new">2c223d9ccacf47a5b7a1d404dcd7ea73</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>36 Rörelsens sidointäkter</act:name>
+    <act:id type="new">7cc288687d5f41c1adf01fa0de227d82</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">59120315604445ec92a28d7a39111f41</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3600 Rörelsens sidointäkter (gruppkonto)</act:name>
+    <act:id type="new">56a4a71b18bd4a35904b085d42210100</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3600</act:code>
+    <act:parent type="new">7cc288687d5f41c1adf01fa0de227d82</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>37 Intäktskorrigeringar</act:name>
+    <act:id type="new">93c7166d97984a549c2c5dbe7749b2ae</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">59120315604445ec92a28d7a39111f41</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3730 Lämnade rabatter</act:name>
+    <act:id type="new">8e12cdc5635d4981bc6dce2e4723ece9</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3730</act:code>
+    <act:parent type="new">93c7166d97984a549c2c5dbe7749b2ae</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3740 Öres- och kronutjämning</act:name>
+    <act:id type="new">2627ba2a4aff49f68fc6c7b2f6ead96e</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3740</act:code>
+    <act:parent type="new">93c7166d97984a549c2c5dbe7749b2ae</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>38 Aktiverat arbete för egen räkning</act:name>
+    <act:id type="new">8b92442e27ab4da8b7de21cf64fd3800</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">59120315604445ec92a28d7a39111f41</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3800 Aktiverat arbete för egen räkning (gruppkonto)</act:name>
+    <act:id type="new">d87e46d011364b0e9367005058452a8a</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3800</act:code>
+    <act:parent type="new">8b92442e27ab4da8b7de21cf64fd3800</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>39 Övriga rörelseintäkter</act:name>
+    <act:id type="new">b4560db57a4d4727b4388821264a9751</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">59120315604445ec92a28d7a39111f41</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3900 Övriga rörelseintäkter (gruppkonto)</act:name>
+    <act:id type="new">e8cd3fbb8d2946afbd2b2afb075a45af</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3900</act:code>
+    <act:parent type="new">b4560db57a4d4727b4388821264a9751</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3910 Hyres- och arrendeintäkter</act:name>
+    <act:id type="new">25e5bc499314434f848e0bdd96198ecb</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3910</act:code>
+    <act:parent type="new">b4560db57a4d4727b4388821264a9751</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3913 Frivilligt momspliktiga hyresintäkter</act:name>
+    <act:id type="new">547df23fca4e4a6f9dafafa2db0c8d1f</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3913</act:code>
+    <act:parent type="new">25e5bc499314434f848e0bdd96198ecb</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3960 Valutakursvinster på fordringar och skulder av rörelsekaraktär</act:name>
+    <act:id type="new">cffadb3830f74471b112878eba3cedac</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3960</act:code>
+    <act:parent type="new">b4560db57a4d4727b4388821264a9751</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3970 Vinst vid avyttring av immateriella och materiella anläggningstillgångar</act:name>
+    <act:id type="new">20a2cc19d1a24479b8eabded12adeeb2</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3970</act:code>
+    <act:parent type="new">b4560db57a4d4727b4388821264a9751</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>3980 Erhållna offentliga stöd m.m.</act:name>
+    <act:id type="new">b1fd48fc414b40f5bb3577ce1e614e76</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>3980</act:code>
+    <act:parent type="new">b4560db57a4d4727b4388821264a9751</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4 UTGIFTER/KOSTNADER FÖR VAROR, MATERIAL OCH VISSA KÖPTA TJÄNSTER</act:name>
+    <act:id type="new">5741e1fb7bcd47ed98f1008f823443ec</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">533732cce5294d02ad2b9f41aa6fab80</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>40–45 Inköp av varor och material</act:name>
+    <act:id type="new">b136160965d840b0b963ba9ba4f44c63</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">5741e1fb7bcd47ed98f1008f823443ec</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4000 Inköp av varor från Sverige</act:name>
+    <act:id type="new">9dce8a84ae7c4547a37f458ae4a9a1c6</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4000</act:code>
+    <act:parent type="new">b136160965d840b0b963ba9ba4f44c63</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4200 SÃ¥lda varor VMB</act:name>
+    <act:id type="new">4c55ad8235964c7c9c6537ae4abfc522</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4200</act:code>
+    <act:parent type="new">b136160965d840b0b963ba9ba4f44c63</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4211 SÃ¥lda varor positiv VMB 25 %</act:name>
+    <act:id type="new">552e4d9182f04eae8a91f5019ce60a79</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4211</act:code>
+    <act:parent type="new">4c55ad8235964c7c9c6537ae4abfc522</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4212 SÃ¥lda varor negativ VMB 25 %</act:name>
+    <act:id type="new">aaac733e39ec451ebb2c0f2b127769d7</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4212</act:code>
+    <act:parent type="new">4c55ad8235964c7c9c6537ae4abfc522</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4400 Momspliktiga inköp i Sverige</act:name>
+    <act:id type="new">3265599316134e2982d9d3e5b8dfa6ae</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4400</act:code>
+    <act:parent type="new">b136160965d840b0b963ba9ba4f44c63</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4415 Inköpta varor i Sverige, omvänd skattskyldighet, 25 % moms</act:name>
+    <act:id type="new">84d27930ca2c49da8a4b6bec90abea45</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4415</act:code>
+    <act:parent type="new">3265599316134e2982d9d3e5b8dfa6ae</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4426 Inköpta tjänster i Sverige, omvänd skattskyldighet, 12 %</act:name>
+    <act:id type="new">e44e4c00cd184acfb534133104e4158c</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4426</act:code>
+    <act:parent type="new">3265599316134e2982d9d3e5b8dfa6ae</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4427 Inköpta tjänster i Sverige, omvänd skattskyldighet, 6 %</act:name>
+    <act:id type="new">e94e8739fdf0419082eec4991a4d8438</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4427</act:code>
+    <act:parent type="new">3265599316134e2982d9d3e5b8dfa6ae</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4500 Övriga momspliktiga inköp</act:name>
+    <act:id type="new">4bca762c30a2455db28af7223ea4d3f0</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4500</act:code>
+    <act:parent type="new">b136160965d840b0b963ba9ba4f44c63</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4515 Inköp av varor från annat EU-land, 25 %</act:name>
+    <act:id type="new">0b70943a529548409e91c26e1f6c25d0</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4515</act:code>
+    <act:parent type="new">4bca762c30a2455db28af7223ea4d3f0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4516 Inköp av varor från annat EU-land, 12 %</act:name>
+    <act:id type="new">370dcb175cbf4fc1a319c6f76c77a2c9</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4516</act:code>
+    <act:parent type="new">4bca762c30a2455db28af7223ea4d3f0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4517 Inköp av varor från annat EU-land, 6 %</act:name>
+    <act:id type="new">b870cfe0c1114ee48cb59a012092e626</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4517</act:code>
+    <act:parent type="new">4bca762c30a2455db28af7223ea4d3f0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4518 Inköp av varor från annat EU-land, momsfri</act:name>
+    <act:id type="new">96108822fd594cfcbc9a2a09454ffa31</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4518</act:code>
+    <act:parent type="new">4bca762c30a2455db28af7223ea4d3f0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4531 Inköp av tjänster från ett land utanför EU, 25 % moms</act:name>
+    <act:id type="new">f76afe3c622b45278d850d0c69694a2d</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4531</act:code>
+    <act:parent type="new">4bca762c30a2455db28af7223ea4d3f0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4532 Inköp av tjänster från ett land utanför EU, 12 % moms</act:name>
+    <act:id type="new">76de2f885bc244dfa845b9500b40824d</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4532</act:code>
+    <act:parent type="new">4bca762c30a2455db28af7223ea4d3f0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4533 Inköp av tjänster från ett land utanför EU, 6 % moms</act:name>
+    <act:id type="new">52df0be3da314175a1970f6d22651802</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4533</act:code>
+    <act:parent type="new">4bca762c30a2455db28af7223ea4d3f0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4535 Inköp av tjänster från annat EU-land, 25 %</act:name>
+    <act:id type="new">52a3dad1f364456591bad99b35437bde</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4535</act:code>
+    <act:parent type="new">4bca762c30a2455db28af7223ea4d3f0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4536 Inköp av tjänster från annat EU-land, 12 %</act:name>
+    <act:id type="new">8aedee280d044ab7919aea96c7582f2b</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4536</act:code>
+    <act:parent type="new">4bca762c30a2455db28af7223ea4d3f0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4537 Inköp av tjänster från annat EU-land, 6 %</act:name>
+    <act:id type="new">be3845ae23dc4754bf984aff9ad1dc49</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4537</act:code>
+    <act:parent type="new">4bca762c30a2455db28af7223ea4d3f0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4538 Inköp av tjänster från annat EU-land, momsfri</act:name>
+    <act:id type="new">3020143a90364298a2217a539b41320a</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4538</act:code>
+    <act:parent type="new">4bca762c30a2455db28af7223ea4d3f0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4545 Import av varor, 25 % moms</act:name>
+    <act:id type="new">691f98a0892e438e86e67080391e9f25</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4545</act:code>
+    <act:parent type="new">4bca762c30a2455db28af7223ea4d3f0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4546 Import av varor, 12 % moms</act:name>
+    <act:id type="new">d99e20af47a9423b98e638ec177c2f5a</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4546</act:code>
+    <act:parent type="new">4bca762c30a2455db28af7223ea4d3f0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4547 Import av varor, 6 % moms</act:name>
+    <act:id type="new">2af8dfafe6f24174998aca175080e183</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4547</act:code>
+    <act:parent type="new">4bca762c30a2455db28af7223ea4d3f0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>46 Legoarbeten, underentreprenader</act:name>
+    <act:id type="new">285263e8e88549d099b5966ed70c72ef</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">5741e1fb7bcd47ed98f1008f823443ec</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4600 Legoarbeten och underentreprenader (gruppkonto)</act:name>
+    <act:id type="new">250f9dcb384b4ec6a57fd9d7698dc5bf</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4600</act:code>
+    <act:parent type="new">285263e8e88549d099b5966ed70c72ef</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>47 Reduktion av inköpspriser</act:name>
+    <act:id type="new">6933a41ddf1b40179d5362f64c8710f3</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">5741e1fb7bcd47ed98f1008f823443ec</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4700 Reduktion av inköpspriser (gruppkonto)</act:name>
+    <act:id type="new">c544a6c2d1e54753ad3d16a54442a9fe</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4700</act:code>
+    <act:parent type="new">6933a41ddf1b40179d5362f64c8710f3</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>49 Förändring av lager, produkter i arbete och pågående arbeten</act:name>
+    <act:id type="new">7ed8621f5564415f87ee924ee302e397</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">5741e1fb7bcd47ed98f1008f823443ec</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4900 Förändring av lager (gruppkonto)</act:name>
+    <act:id type="new">007898c69d2f4492b4b1a8e93bb9745a</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4900</act:code>
+    <act:parent type="new">7ed8621f5564415f87ee924ee302e397</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4910 Förändring av lager av råvaror</act:name>
+    <act:id type="new">6e3cef3bfe244de48c8c9c3e59f61e17</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4910</act:code>
+    <act:parent type="new">7ed8621f5564415f87ee924ee302e397</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4920 Förändring av lager av tillsatsmaterial och förnödenheter</act:name>
+    <act:id type="new">fdb4ff30587a4278aaa78bdfa17868fc</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4920</act:code>
+    <act:parent type="new">7ed8621f5564415f87ee924ee302e397</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4940 Förändring av produkter i arbete</act:name>
+    <act:id type="new">2a21b8c0d82f418bb39f30b79e104975</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4940</act:code>
+    <act:parent type="new">7ed8621f5564415f87ee924ee302e397</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4950 Förändring av lager av färdiga varor</act:name>
+    <act:id type="new">a5792f864a4b4f11a837c0e726dd3469</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4950</act:code>
+    <act:parent type="new">7ed8621f5564415f87ee924ee302e397</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4960 Förändring av lager av handelsvaror</act:name>
+    <act:id type="new">6bcab3a2f94e45649e9aca877e537e70</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4960</act:code>
+    <act:parent type="new">7ed8621f5564415f87ee924ee302e397</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>4970 Förändring av pågående arbeten, nedlagda kostnader</act:name>
+    <act:id type="new">1a41dac0bd7a4fc8b3405d94978380de</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>4970</act:code>
+    <act:parent type="new">7ed8621f5564415f87ee924ee302e397</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5–6 ÖVRIGA EXTERNA RÖRELSEUTGIFTER/KOSTNADER</act:name>
+    <act:id type="new">61879fcc2b744936a7f335fe8801e009</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">533732cce5294d02ad2b9f41aa6fab80</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>50 Lokalkostnader</act:name>
+    <act:id type="new">0270cca0199e4598859cca85cad768db</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">61879fcc2b744936a7f335fe8801e009</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5010 Lokalhyra</act:name>
+    <act:id type="new">912b7be26e74467cba24920683f0809e</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5010</act:code>
+    <act:parent type="new">0270cca0199e4598859cca85cad768db</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5020 El för belysning</act:name>
+    <act:id type="new">70c5fa33b89543618d85a75d88592387</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5020</act:code>
+    <act:parent type="new">0270cca0199e4598859cca85cad768db</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5030 Värme</act:name>
+    <act:id type="new">a57e0de17ef749c7972ce523397e59a4</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5030</act:code>
+    <act:parent type="new">0270cca0199e4598859cca85cad768db</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5040 Vatten och avlopp</act:name>
+    <act:id type="new">f5e2267f52a44cc7aa26f3a89102d4cc</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5040</act:code>
+    <act:parent type="new">0270cca0199e4598859cca85cad768db</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5060 Städning och renhållning</act:name>
+    <act:id type="new">b50a17cbe7474733a854535f72f41d5f</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5060</act:code>
+    <act:parent type="new">0270cca0199e4598859cca85cad768db</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5070 Reparation och underhåll av lokaler</act:name>
+    <act:id type="new">a7eff48d9cf34c7792653744eb99a475</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5070</act:code>
+    <act:parent type="new">0270cca0199e4598859cca85cad768db</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>51 Fastighetskostnader</act:name>
+    <act:id type="new">4c91f5297b8d4a37a4e786f5366ffc9e</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">61879fcc2b744936a7f335fe8801e009</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5120 El för belysning</act:name>
+    <act:id type="new">81f6eaae08554818ac94178f1ae960dd</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5120</act:code>
+    <act:parent type="new">4c91f5297b8d4a37a4e786f5366ffc9e</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5130 Värme</act:name>
+    <act:id type="new">71791f0bae7d4728b643430d98444d9c</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5130</act:code>
+    <act:parent type="new">4c91f5297b8d4a37a4e786f5366ffc9e</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5140 Vatten och avlopp</act:name>
+    <act:id type="new">5e0b9dd4afc74924a72fef542f319b22</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5140</act:code>
+    <act:parent type="new">4c91f5297b8d4a37a4e786f5366ffc9e</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5160 Städning och renhållning</act:name>
+    <act:id type="new">0361b771e562456d95bcda7d310440f6</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5160</act:code>
+    <act:parent type="new">4c91f5297b8d4a37a4e786f5366ffc9e</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5170 Reparation och underhåll av fastighet</act:name>
+    <act:id type="new">6d6c03beae1246daab3af3ef147da801</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5170</act:code>
+    <act:parent type="new">4c91f5297b8d4a37a4e786f5366ffc9e</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>52 Hyra av anläggningstillgångar</act:name>
+    <act:id type="new">10273d120f044b6a907ba91fc4cbf844</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">61879fcc2b744936a7f335fe8801e009</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5200 Hyra av anläggningstillgångar (gruppkonto)</act:name>
+    <act:id type="new">0c3e931c240b4d5eb491abd4c713a20b</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5200</act:code>
+    <act:parent type="new">10273d120f044b6a907ba91fc4cbf844</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>53 Energikostnader</act:name>
+    <act:id type="new">20fdc34c8e024a48a3ac474454fcbed2</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">61879fcc2b744936a7f335fe8801e009</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5300 Energikostnader (gruppkonto)</act:name>
+    <act:id type="new">54c1c2b8ff5c4519810fe52c68fcee14</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5300</act:code>
+    <act:parent type="new">20fdc34c8e024a48a3ac474454fcbed2</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>54 Förbrukningsinventarier och förbrukningsmaterial</act:name>
+    <act:id type="new">3f2a7d2865674e9f88e669d514cf257b</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">61879fcc2b744936a7f335fe8801e009</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5410 Förbrukningsinventarier</act:name>
+    <act:id type="new">f6076ebf2e734b0e8721b64640ac1c22</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5410</act:code>
+    <act:parent type="new">3f2a7d2865674e9f88e669d514cf257b</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5420 Programvaror</act:name>
+    <act:id type="new">f9c83a00c1a74d28b78fb24a9318a1c6</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5420</act:code>
+    <act:parent type="new">3f2a7d2865674e9f88e669d514cf257b</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5460 Förbrukningsmaterial</act:name>
+    <act:id type="new">a1528f30766c4becb8a0d343cf8497c4</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5460</act:code>
+    <act:parent type="new">3f2a7d2865674e9f88e669d514cf257b</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>55 Reparation och underhåll</act:name>
+    <act:id type="new">6b9e3f2ce7854a908cdd5837d7b002a9</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">61879fcc2b744936a7f335fe8801e009</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5500 Reparation och underhåll (gruppkonto)</act:name>
+    <act:id type="new">53d8f85d26154e57826c7f2ef7511d1a</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5500</act:code>
+    <act:parent type="new">6b9e3f2ce7854a908cdd5837d7b002a9</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>56 Kostnader för transportmedel</act:name>
+    <act:id type="new">8a06b656ae2246578f5562bdcfaa2785</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">61879fcc2b744936a7f335fe8801e009</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5600 Kostnader för transportmedel (gruppkonto)</act:name>
+    <act:id type="new">010a114c5a4949799d9a746b95278b03</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5600</act:code>
+    <act:parent type="new">8a06b656ae2246578f5562bdcfaa2785</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5610 Personbilskostnader</act:name>
+    <act:id type="new">cf3a493eb8654bd9bb3f63858a55c17c</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5610</act:code>
+    <act:parent type="new">8a06b656ae2246578f5562bdcfaa2785</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5611 Drivmedel för personbilar</act:name>
+    <act:id type="new">4d992928bc0345abac3c0ed25b621d54</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5611</act:code>
+    <act:parent type="new">cf3a493eb8654bd9bb3f63858a55c17c</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5612 Försäkring och skatt för personbilar</act:name>
+    <act:id type="new">9547de57d0d943039262a803b2c02c64</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5612</act:code>
+    <act:parent type="new">cf3a493eb8654bd9bb3f63858a55c17c</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5613 Reparation och underhåll av personbilar</act:name>
+    <act:id type="new">aec0b419f33240d78781e63816bf42c4</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5613</act:code>
+    <act:parent type="new">cf3a493eb8654bd9bb3f63858a55c17c</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5615 Leasing av personbilar</act:name>
+    <act:id type="new">c585a2fbf71c4705a87dc7ef32584b69</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5615</act:code>
+    <act:parent type="new">cf3a493eb8654bd9bb3f63858a55c17c</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>57 Frakter och transporter</act:name>
+    <act:id type="new">22cae32391f849a6935ce2eb01a12bb6</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">61879fcc2b744936a7f335fe8801e009</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5700 Frakter och transporter (gruppkonto)</act:name>
+    <act:id type="new">9727ec91551e478a9a7b0c98fa583c21</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5700</act:code>
+    <act:parent type="new">22cae32391f849a6935ce2eb01a12bb6</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>58 Resekostnader</act:name>
+    <act:id type="new">c0ea2870e67d478cb04c0e8582c6a4ba</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">61879fcc2b744936a7f335fe8801e009</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5800 Resekostnader (gruppkonto)</act:name>
+    <act:id type="new">e2d9a1367191468cb80b5432411d3596</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5800</act:code>
+    <act:parent type="new">c0ea2870e67d478cb04c0e8582c6a4ba</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5810 Biljetter</act:name>
+    <act:id type="new">d1e40bdfceec4c989e3db016a4414383</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5810</act:code>
+    <act:parent type="new">c0ea2870e67d478cb04c0e8582c6a4ba</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5820 Hyrbilskostnader</act:name>
+    <act:id type="new">ac429a0dda6644e6b05f198ffd8b1a48</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5820</act:code>
+    <act:parent type="new">c0ea2870e67d478cb04c0e8582c6a4ba</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5830 Kost och logi</act:name>
+    <act:id type="new">27eeb988b2e84201b2fef14f1792feb9</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5830</act:code>
+    <act:parent type="new">c0ea2870e67d478cb04c0e8582c6a4ba</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5831 Kost och logi i Sverige</act:name>
+    <act:id type="new">811e4e81e6bb46c2b34c9582ecccbd93</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5831</act:code>
+    <act:parent type="new">27eeb988b2e84201b2fef14f1792feb9</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5832 Kost och logi i utlandet</act:name>
+    <act:id type="new">615061dafffc44d29d89f2fa4caa31ff</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5832</act:code>
+    <act:parent type="new">27eeb988b2e84201b2fef14f1792feb9</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>59 Reklam och PR</act:name>
+    <act:id type="new">b05c40eb240e45328b566168219447fd</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">61879fcc2b744936a7f335fe8801e009</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>5900 Reklam och PR (gruppkonto)</act:name>
+    <act:id type="new">22aecd0f751346859b7b48a358ced4b2</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>5900</act:code>
+    <act:parent type="new">b05c40eb240e45328b566168219447fd</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>60 Övriga försäljningskostnader</act:name>
+    <act:id type="new">e921aaa17c704d668fb6017aa5f2f826</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">61879fcc2b744936a7f335fe8801e009</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6070 Representation</act:name>
+    <act:id type="new">b2a3a52e85864c6d8d91f88eeae3f1f6</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6070</act:code>
+    <act:parent type="new">e921aaa17c704d668fb6017aa5f2f826</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6071 Representation, avdragsgill</act:name>
+    <act:id type="new">e6e62f2573ee43bfa79299cc9b21c51a</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6071</act:code>
+    <act:parent type="new">b2a3a52e85864c6d8d91f88eeae3f1f6</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6072 Representation, ej avdragsgill</act:name>
+    <act:id type="new">6b731eecf8344584afc371b3a3ded3b3</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6072</act:code>
+    <act:parent type="new">b2a3a52e85864c6d8d91f88eeae3f1f6</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6090 Övriga försäljningskostnader</act:name>
+    <act:id type="new">422a00bd4d344f0889a4ba2100ac30eb</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6090</act:code>
+    <act:parent type="new">e921aaa17c704d668fb6017aa5f2f826</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>61 Kontorsmateriel och trycksaker</act:name>
+    <act:id type="new">9cdbacbe5b4041829777c6caaa449da5</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">61879fcc2b744936a7f335fe8801e009</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6100 Kontorsmateriel och trycksaker (gruppkonto)</act:name>
+    <act:id type="new">1b350518c2c24c46b52bc821678040fc</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6100</act:code>
+    <act:parent type="new">9cdbacbe5b4041829777c6caaa449da5</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>62 Tele och post</act:name>
+    <act:id type="new">9dc14e203e664a65b8bdb03f09eaae8f</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">61879fcc2b744936a7f335fe8801e009</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6210 Telekommunikation</act:name>
+    <act:id type="new">cc2b4b6a55634ea9ac53b09929b0b4a1</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6210</act:code>
+    <act:parent type="new">9dc14e203e664a65b8bdb03f09eaae8f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6250 Postbefordran</act:name>
+    <act:id type="new">cb37eb23708e4b6db5584a3378237916</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6250</act:code>
+    <act:parent type="new">9dc14e203e664a65b8bdb03f09eaae8f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>63 Företagsförsäkringar och övriga riskkostnader</act:name>
+    <act:id type="new">1db7e7b9342f44d3a912ba4b861c1799</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">61879fcc2b744936a7f335fe8801e009</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6310 Företagsförsäkringar</act:name>
+    <act:id type="new">e4420d5f054440a3b84e9d9f5f431cb0</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6310</act:code>
+    <act:parent type="new">1db7e7b9342f44d3a912ba4b861c1799</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6350 Förluster på kundfordringar</act:name>
+    <act:id type="new">2271fd55814642b9b89ab116c448e84a</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6350</act:code>
+    <act:parent type="new">1db7e7b9342f44d3a912ba4b861c1799</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6390 Övriga riskkostnader</act:name>
+    <act:id type="new">ec95098829db49828821045e9b1981fa</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6390</act:code>
+    <act:parent type="new">1db7e7b9342f44d3a912ba4b861c1799</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>64 Förvaltningskostnader</act:name>
+    <act:id type="new">2c1648d1f3214a0594cc1852b03de61f</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">61879fcc2b744936a7f335fe8801e009</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6410 Styrelsearvoden som inte är lön</act:name>
+    <act:id type="new">11a9d9f859fa4e3bad81c5647549a29f</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6410</act:code>
+    <act:parent type="new">2c1648d1f3214a0594cc1852b03de61f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6420 Ersättningar till revisor</act:name>
+    <act:id type="new">eb33ea0668be4bdc9adb9ecdf49ee127</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6420</act:code>
+    <act:parent type="new">2c1648d1f3214a0594cc1852b03de61f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>65 Övriga externa tjänster</act:name>
+    <act:id type="new">594cac21856c4effaf91250e4c0c0205</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">61879fcc2b744936a7f335fe8801e009</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6530 Redovisningstjänster</act:name>
+    <act:id type="new">b5846ac7c0be4151bf469df0f21bdbb1</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6530</act:code>
+    <act:parent type="new">594cac21856c4effaf91250e4c0c0205</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6540 IT-tjänster</act:name>
+    <act:id type="new">b37c03be20b44a8a809aa119d5d07665</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6540</act:code>
+    <act:parent type="new">594cac21856c4effaf91250e4c0c0205</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6550 Konsultarvoden</act:name>
+    <act:id type="new">c3132d33046b492f84e5652e84da0ec8</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6550</act:code>
+    <act:parent type="new">594cac21856c4effaf91250e4c0c0205</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6560 Serviceavgifter till branschorganisationer</act:name>
+    <act:id type="new">9b3ac29b51694410bfa7f955436d3e1f</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6560</act:code>
+    <act:parent type="new">594cac21856c4effaf91250e4c0c0205</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6570 Bankkostnader</act:name>
+    <act:id type="new">ff28a07974ea4b5787f0f523f273e247</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6570</act:code>
+    <act:parent type="new">594cac21856c4effaf91250e4c0c0205</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6590 Övriga externa tjänster</act:name>
+    <act:id type="new">41e4b1656b17429aa07b5d30e657bf24</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6590</act:code>
+    <act:parent type="new">594cac21856c4effaf91250e4c0c0205</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>68 Inhyrd personal</act:name>
+    <act:id type="new">f0a7d803bcbd47c687993d11e4f1c9b7</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">61879fcc2b744936a7f335fe8801e009</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6800 Inhyrd personal (gruppkonto)</act:name>
+    <act:id type="new">0b9cf4ab51674b229eb455e857d196c1</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6800</act:code>
+    <act:parent type="new">f0a7d803bcbd47c687993d11e4f1c9b7</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>69 Övriga externa kostnader</act:name>
+    <act:id type="new">fcaa4b3dfdad48ab9d8ef3cee1a7a42b</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">61879fcc2b744936a7f335fe8801e009</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6970 Tidningar, tidskrifter och facklitteratur</act:name>
+    <act:id type="new">efc296b149454bc4abe5d7f6cb988f60</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6970</act:code>
+    <act:parent type="new">fcaa4b3dfdad48ab9d8ef3cee1a7a42b</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6980 Föreningsavgifter</act:name>
+    <act:id type="new">61f93d65a1214404b4658557bd0943eb</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6980</act:code>
+    <act:parent type="new">fcaa4b3dfdad48ab9d8ef3cee1a7a42b</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6990 Övriga externa kostnader</act:name>
+    <act:id type="new">2132ef24d26d401f87421bad3b6c46a0</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6990</act:code>
+    <act:parent type="new">fcaa4b3dfdad48ab9d8ef3cee1a7a42b</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6991 Övriga externa kostnader, avdragsgilla</act:name>
+    <act:id type="new">30c96a4dbe784cbfbff1c8d0d57712da</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6991</act:code>
+    <act:parent type="new">2132ef24d26d401f87421bad3b6c46a0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>6992 Övriga externa kostnader, ej avdragsgilla</act:name>
+    <act:id type="new">8c20d65c902640e9bae7c09e3ab52b38</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>6992</act:code>
+    <act:parent type="new">2132ef24d26d401f87421bad3b6c46a0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7 UTGIFTER/KOSTNADER FÖR PERSONAL, AVSKRIVNINGAR M.M.</act:name>
+    <act:id type="new">5b4170bdac1046c9a4fb49eee10f3ffb</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">533732cce5294d02ad2b9f41aa6fab80</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>70 Löner till kollektivanställda</act:name>
+    <act:id type="new">b7066d7ba5b44369afd2b8027ac6898a</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">5b4170bdac1046c9a4fb49eee10f3ffb</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7010 Löner till kollektivanställda</act:name>
+    <act:id type="new">808b2cc8b1974cf38b838655f3b44536</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7010</act:code>
+    <act:parent type="new">b7066d7ba5b44369afd2b8027ac6898a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7090 Förändring av semesterlöneskuld</act:name>
+    <act:id type="new">bc73eb70a6324ff996bbb2a9f823eeb1</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7090</act:code>
+    <act:parent type="new">b7066d7ba5b44369afd2b8027ac6898a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>72 Löner till tjänstemän och företagsledare</act:name>
+    <act:id type="new">77d4cb43b8b747058a9104920527376f</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">5b4170bdac1046c9a4fb49eee10f3ffb</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7210 Löner till tjänstemän</act:name>
+    <act:id type="new">35a97cc112b64c4793e6925ea2a41bf2</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7210</act:code>
+    <act:parent type="new">77d4cb43b8b747058a9104920527376f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7220 Löner till företagsledare</act:name>
+    <act:id type="new">d239ab2866c046a5b815b07ae468ab5a</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7220</act:code>
+    <act:parent type="new">77d4cb43b8b747058a9104920527376f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7240 Styrelsearvoden</act:name>
+    <act:id type="new">b322edd7392140868686c0981c2e39f4</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7240</act:code>
+    <act:parent type="new">77d4cb43b8b747058a9104920527376f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7290 Förändring av semesterlöneskuld</act:name>
+    <act:id type="new">ae16eb95915c4b12a2613bb7468c58dd</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7290</act:code>
+    <act:parent type="new">77d4cb43b8b747058a9104920527376f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>73 Kostnadsersättningar och förmåner</act:name>
+    <act:id type="new">7bad69e803c245acb9ccaaa3b85e9ace</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">5b4170bdac1046c9a4fb49eee10f3ffb</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7310 Kontanta extraersättningar</act:name>
+    <act:id type="new">53762aaca28e46199fa9b9894963d0d4</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7310</act:code>
+    <act:parent type="new">7bad69e803c245acb9ccaaa3b85e9ace</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7320 Traktamenten vid tjänsteresa</act:name>
+    <act:id type="new">2ea9aefe81f14f32a4facb65438eec1f</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7320</act:code>
+    <act:parent type="new">7bad69e803c245acb9ccaaa3b85e9ace</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7321 Skattefria traktamenten, Sverige</act:name>
+    <act:id type="new">f70ec90f661b4615a7ed9a174f0e1c76</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7321</act:code>
+    <act:parent type="new">2ea9aefe81f14f32a4facb65438eec1f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7322 Skattepliktiga traktamenten, Sverige</act:name>
+    <act:id type="new">157e9d7c8f484dd493174fc54208922b</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7322</act:code>
+    <act:parent type="new">2ea9aefe81f14f32a4facb65438eec1f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7323 Skattefria traktamenten, utlandet</act:name>
+    <act:id type="new">79e7dd9b73e84df2a9c6aff3b08ae694</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7323</act:code>
+    <act:parent type="new">2ea9aefe81f14f32a4facb65438eec1f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7324 Skattepliktiga traktamenten, utlandet</act:name>
+    <act:id type="new">f0dcf023fb55426aa0b1c91df744975b</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7324</act:code>
+    <act:parent type="new">2ea9aefe81f14f32a4facb65438eec1f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7330 Bilersättningar</act:name>
+    <act:id type="new">13e45568cd3a47ddaced5dc91ab35752</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7330</act:code>
+    <act:parent type="new">7bad69e803c245acb9ccaaa3b85e9ace</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7331 Skattefria bilersättningar</act:name>
+    <act:id type="new">28915a0a63ac41eea159eeee90ccfafb</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7331</act:code>
+    <act:parent type="new">13e45568cd3a47ddaced5dc91ab35752</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7332 Skattepliktiga bilersättningar</act:name>
+    <act:id type="new">828b4138d653433381ffec0d3fae697d</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7332</act:code>
+    <act:parent type="new">13e45568cd3a47ddaced5dc91ab35752</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7380 Kostnader för förmåner till anställda</act:name>
+    <act:id type="new">601007b927a94c54a6e29c2637c8c913</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7380</act:code>
+    <act:parent type="new">7bad69e803c245acb9ccaaa3b85e9ace</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7385 Kostnader för fri bil</act:name>
+    <act:id type="new">6531af9bce414b228b343b36b77f09b9</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7385</act:code>
+    <act:parent type="new">601007b927a94c54a6e29c2637c8c913</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7390 Övriga kostnadsersättningar och förmåner</act:name>
+    <act:id type="new">ec385f9519b4402ab601a9f9f78af77e</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7390</act:code>
+    <act:parent type="new">7bad69e803c245acb9ccaaa3b85e9ace</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>74 Pensionskostnader</act:name>
+    <act:id type="new">ecd2ef71512e41c3a41acba2ed3aa8dd</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">5b4170bdac1046c9a4fb49eee10f3ffb</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7410 Pensionsförsäkringspremier</act:name>
+    <act:id type="new">599384aa0bd64affa1eb119b5383da3a</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7410</act:code>
+    <act:parent type="new">ecd2ef71512e41c3a41acba2ed3aa8dd</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7490 Övriga pensionskostnader</act:name>
+    <act:id type="new">9cd893d910a04762a5feb25c394195d5</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7490</act:code>
+    <act:parent type="new">ecd2ef71512e41c3a41acba2ed3aa8dd</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>75 Sociala och andra avgifter enligt lag och avtal</act:name>
+    <act:id type="new">64e752fa1a09498a96246d303a07318f</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">5b4170bdac1046c9a4fb49eee10f3ffb</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7510 Arbetsgivaravgifter 31,42 %</act:name>
+    <act:id type="new">9655c58623414b068e1211db87edc603</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7510</act:code>
+    <act:parent type="new">64e752fa1a09498a96246d303a07318f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7511 Arbetsgivaravgifter för löner och ersättningar</act:name>
+    <act:id type="new">9e1d7bfcc6e14671bd013c2b059edd2c</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7511</act:code>
+    <act:parent type="new">9655c58623414b068e1211db87edc603</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7512 Arbetsgivaravgifter för förmånsvärden</act:name>
+    <act:id type="new">07f7c896dade4b7d9ec9604f4a353986</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7512</act:code>
+    <act:parent type="new">9655c58623414b068e1211db87edc603</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7519 Arbetsgivaravgifter för semester- och löneskulder</act:name>
+    <act:id type="new">188338fc7cd34a80929062e4b924820a</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7519</act:code>
+    <act:parent type="new">9655c58623414b068e1211db87edc603</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7520 Avgifter 16,36 %</act:name>
+    <act:id type="new">14b0e1a1fa4745a19c98570eaaab2e5e</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7520</act:code>
+    <act:parent type="new">64e752fa1a09498a96246d303a07318f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7530 Särskild löneskatt</act:name>
+    <act:id type="new">14adf4919b1844eeb7bc43441030886e</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7530</act:code>
+    <act:parent type="new">64e752fa1a09498a96246d303a07318f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7550 Avkastningsskatt på pensionsmedel</act:name>
+    <act:id type="new">51e10979728540b5804a31d26c4336a8</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7550</act:code>
+    <act:parent type="new">64e752fa1a09498a96246d303a07318f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7570 Premier för arbetsmarknadsförsäkringar</act:name>
+    <act:id type="new">c08d05fc8ac84bb3ab7cae5926fa43b1</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7570</act:code>
+    <act:parent type="new">64e752fa1a09498a96246d303a07318f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7580 Gruppförsäkringspremier</act:name>
+    <act:id type="new">b25b812f05254d9db5aba1749e98f73d</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7580</act:code>
+    <act:parent type="new">64e752fa1a09498a96246d303a07318f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7590 Övriga sociala och andra avgifter enligt lag och avtal</act:name>
+    <act:id type="new">885aa6cae4be48dd809b2aef57752a32</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7590</act:code>
+    <act:parent type="new">64e752fa1a09498a96246d303a07318f</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>76 Övriga personalkostnader</act:name>
+    <act:id type="new">ffc8af2deb83494eacee1c60e73c5378</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">5b4170bdac1046c9a4fb49eee10f3ffb</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7600 Övriga personalkostnader (gruppkonto)</act:name>
+    <act:id type="new">c808f03ff903461dbe0f75923e1c9836</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7600</act:code>
+    <act:parent type="new">ffc8af2deb83494eacee1c60e73c5378</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7610 Utbildning</act:name>
+    <act:id type="new">8d558449f4754726b49c80acb4ea36b0</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7610</act:code>
+    <act:parent type="new">ffc8af2deb83494eacee1c60e73c5378</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7620 Sjuk- och hälsovård</act:name>
+    <act:id type="new">bcf596394e3f46e49ebc93df8a55c56a</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7620</act:code>
+    <act:parent type="new">ffc8af2deb83494eacee1c60e73c5378</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7621 Sjuk- och hälsovård, avdragsgill</act:name>
+    <act:id type="new">5635de28f90647d895f8f738f9d0e823</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7621</act:code>
+    <act:parent type="new">bcf596394e3f46e49ebc93df8a55c56a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7622 Sjuk- och hälsovård, ej avdragsgill</act:name>
+    <act:id type="new">4b5dd4cf9eda4deb8711ddb12833d178</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7622</act:code>
+    <act:parent type="new">bcf596394e3f46e49ebc93df8a55c56a</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7630 Personalrepresentation</act:name>
+    <act:id type="new">526ae85fd22b451cbe08c98da54c5ce9</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7630</act:code>
+    <act:parent type="new">ffc8af2deb83494eacee1c60e73c5378</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7631 Personalrepresentation, avdragsgill</act:name>
+    <act:id type="new">76b8fcfd7f7540efa0f8ef00831a3376</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7631</act:code>
+    <act:parent type="new">526ae85fd22b451cbe08c98da54c5ce9</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7632 Personalrepresentation, ej avdragsgill</act:name>
+    <act:id type="new">65daadadc380439aa65833177db2851b</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7632</act:code>
+    <act:parent type="new">526ae85fd22b451cbe08c98da54c5ce9</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>77 Nedskrivningar och återföring av nedskrivningar</act:name>
+    <act:id type="new">0178eee07db44ae0b7cf799918d926c2</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">5b4170bdac1046c9a4fb49eee10f3ffb</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7720 Nedskrivningar av byggnader och mark</act:name>
+    <act:id type="new">c24cb005593d446fb268a1a029494340</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7720</act:code>
+    <act:parent type="new">0178eee07db44ae0b7cf799918d926c2</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7730 Nedskrivningar av maskiner och inventarier</act:name>
+    <act:id type="new">0c72f6d789b4414092f3cd7aad3abea3</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7730</act:code>
+    <act:parent type="new">0178eee07db44ae0b7cf799918d926c2</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>78 Avskrivningar enligt plan</act:name>
+    <act:id type="new">edf3422faa5d491e92e5dae1df4319eb</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">5b4170bdac1046c9a4fb49eee10f3ffb</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7810 Avskrivningar på immateriella anläggningstillgångar</act:name>
+    <act:id type="new">40c0fbba7dea42ea9b2cfe10fab3c40b</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7810</act:code>
+    <act:parent type="new">edf3422faa5d491e92e5dae1df4319eb</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7820 Avskrivningar på byggnader och markanläggningar</act:name>
+    <act:id type="new">886015db7ab5433d9026b2cb2515861d</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7820</act:code>
+    <act:parent type="new">edf3422faa5d491e92e5dae1df4319eb</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7830 Avskrivningar på maskiner och inventarier</act:name>
+    <act:id type="new">534257aa6467471fb855fd588ef0808d</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7830</act:code>
+    <act:parent type="new">edf3422faa5d491e92e5dae1df4319eb</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>79 Övriga rörelsekostnader</act:name>
+    <act:id type="new">4a1433bb9e254c83accde63e1fea95f2</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">5b4170bdac1046c9a4fb49eee10f3ffb</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7970 Förlust vid avyttring av immateriella och materiella anläggningstillgångar</act:name>
+    <act:id type="new">86e5d2e2058149a39f38283e9ebff44a</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7970</act:code>
+    <act:parent type="new">4a1433bb9e254c83accde63e1fea95f2</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>7990 Övriga rörelsekostnader</act:name>
+    <act:id type="new">ce36928c84c74bc1bb1221aaffce7b49</act:id>
+    <act:type>EXPENSE</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>7990</act:code>
+    <act:parent type="new">4a1433bb9e254c83accde63e1fea95f2</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8 FINANSIELLA OCH ANDRA INKOMSTER/INTÄKTER OCH UTGIFTER/KOSTNADER</act:name>
+    <act:id type="new">caab208c45fd4c2aac8156092d18f3c0</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">533732cce5294d02ad2b9f41aa6fab80</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>82 Resultat från övriga värdepapper och långfristiga fordringar (anläggningstillgångar)</act:name>
+    <act:id type="new">788bd58427bc42a58bf6ffab3c99f920</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">caab208c45fd4c2aac8156092d18f3c0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8210 Utdelningar på andelar i andra företag</act:name>
+    <act:id type="new">a83c17f34d4d45e9b5039066160fadb4</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8210</act:code>
+    <act:parent type="new">788bd58427bc42a58bf6ffab3c99f920</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8220 Resultat vid försäljning av värdepapper i och långfristiga fordringar hos andra företag</act:name>
+    <act:id type="new">365217f6932c4086911b6e794ae23787</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8220</act:code>
+    <act:parent type="new">788bd58427bc42a58bf6ffab3c99f920</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8250 Ränteintäkter från långfristiga fordringar hos och värdepapper i andra företag</act:name>
+    <act:id type="new">1f1e7b39922a47f497f85455fe613e88</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8250</act:code>
+    <act:parent type="new">788bd58427bc42a58bf6ffab3c99f920</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8270 Nedskrivningar av innehav av andelar i och långfristiga fordringar hos andra företag</act:name>
+    <act:id type="new">1efa54b80e094408854b87a9be3b5abe</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8270</act:code>
+    <act:parent type="new">788bd58427bc42a58bf6ffab3c99f920</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>83 Övriga ränteintäkter och liknande resultatposter</act:name>
+    <act:id type="new">1ca62ce64a5f42fe9f437eef2b10155c</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">caab208c45fd4c2aac8156092d18f3c0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8310 Ränteintäkter från omsättningstillgångar</act:name>
+    <act:id type="new">8bbb49f240114d2caa9e9eb32c36d827</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8310</act:code>
+    <act:parent type="new">1ca62ce64a5f42fe9f437eef2b10155c</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8314 Skattefria ränteintäkter</act:name>
+    <act:id type="new">87874850c6fd48fa98e003c5698fd14d</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8314</act:code>
+    <act:parent type="new">8bbb49f240114d2caa9e9eb32c36d827</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8330 Valutakursdifferenser på kortfristiga fordringar och placeringar</act:name>
+    <act:id type="new">9586295ae0804f8c97e2f07ba3324753</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8330</act:code>
+    <act:parent type="new">1ca62ce64a5f42fe9f437eef2b10155c</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8340 Utdelningar på kortfristiga placeringar</act:name>
+    <act:id type="new">0e45b178f08f45bdb2bcd4a00ad4d3ea</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8340</act:code>
+    <act:parent type="new">1ca62ce64a5f42fe9f437eef2b10155c</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8350 Resultat vid försäljning av kortfristiga placeringar</act:name>
+    <act:id type="new">6060b2d6e4a94648aeb0750b8b7631c4</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8350</act:code>
+    <act:parent type="new">1ca62ce64a5f42fe9f437eef2b10155c</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8390 Övriga finansiella intäkter</act:name>
+    <act:id type="new">8787530c7eb94cf0ba954269932d9a07</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8390</act:code>
+    <act:parent type="new">1ca62ce64a5f42fe9f437eef2b10155c</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>84 Räntekostnader och liknande resultatposter</act:name>
+    <act:id type="new">3d4b55d2865147649b4ad633fcf950c7</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">caab208c45fd4c2aac8156092d18f3c0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8410 Räntekostnader för långfristiga skulder</act:name>
+    <act:id type="new">ea706a0fa55f49b1a4f0bcf024efe611</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8410</act:code>
+    <act:parent type="new">3d4b55d2865147649b4ad633fcf950c7</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8420 Räntekostnader för kortfristiga skulder</act:name>
+    <act:id type="new">eac865d44fa8467a98c2c3a2ec43623b</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8420</act:code>
+    <act:parent type="new">3d4b55d2865147649b4ad633fcf950c7</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8422 Dröjsmålsräntor för leverantörsskulder</act:name>
+    <act:id type="new">ca4c9d1e5f954116a6cbde0b104c36d6</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8422</act:code>
+    <act:parent type="new">eac865d44fa8467a98c2c3a2ec43623b</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8423 Räntekostnader för skatter och avgifter</act:name>
+    <act:id type="new">f4b413828125485aa43352c9f7802e4a</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8423</act:code>
+    <act:parent type="new">eac865d44fa8467a98c2c3a2ec43623b</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8430 Valutakursdifferenser på skulder</act:name>
+    <act:id type="new">a194addfce6647719c18fe456793060f</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8430</act:code>
+    <act:parent type="new">3d4b55d2865147649b4ad633fcf950c7</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>88 Bokslutsdispositioner</act:name>
+    <act:id type="new">e4e26d22565b463aa57803a08dd4393b</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">caab208c45fd4c2aac8156092d18f3c0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8810 Förändring av periodiseringsfond</act:name>
+    <act:id type="new">9d39157e73c14334b864ad334f48fb29</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8810</act:code>
+    <act:parent type="new">e4e26d22565b463aa57803a08dd4393b</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8811 Avsättning till periodiseringsfond</act:name>
+    <act:id type="new">d1f6b83b28d24327a0c0484ae23f9206</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8811</act:code>
+    <act:parent type="new">9d39157e73c14334b864ad334f48fb29</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8819 Återföring från periodiseringsfond</act:name>
+    <act:id type="new">da89798a161c4b4db92039d579c6ad94</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8819</act:code>
+    <act:parent type="new">9d39157e73c14334b864ad334f48fb29</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8850 Förändring av överavskrivningar</act:name>
+    <act:id type="new">b0d45efe5b364f8ba2d2502f0bc063ef</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8850</act:code>
+    <act:parent type="new">e4e26d22565b463aa57803a08dd4393b</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>89 Skatter och årets resultat</act:name>
+    <act:id type="new">2ad77a81af4f474c85572dfbe5f034e0</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:slots>
+      <slot>
+        <slot:key>placeholder</slot:key>
+        <slot:value type="string">true</slot:value>
+      </slot>
+    </act:slots>
+    <act:parent type="new">caab208c45fd4c2aac8156092d18f3c0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8910 Skatt som belastar årets resultat</act:name>
+    <act:id type="new">7ebf8e8ec7a749b6baa9d20b96c63415</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8910</act:code>
+    <act:parent type="new">2ad77a81af4f474c85572dfbe5f034e0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8990 Resultat</act:name>
+    <act:id type="new">99e44f2aede743459e32e5cc3e1a9475</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8990</act:code>
+    <act:parent type="new">2ad77a81af4f474c85572dfbe5f034e0</act:parent>
+  </gnc:account>
+  <gnc:account version="2.0.0">
+    <act:name>8999 Ã…rets resultat</act:name>
+    <act:id type="new">3e4dcb46ca2d43f4b8175c0c6afc54d3</act:id>
+    <act:type>INCOME</act:type>
+    <act:commodity>
+      <cmdty:space>ISO4217</cmdty:space>
+      <cmdty:id>SEK</cmdty:id>
+    </act:commodity>
+    <act:commodity-scu>100</act:commodity-scu>
+    <act:code>8999</act:code>
+    <act:parent type="new">99e44f2aede743459e32e5cc3e1a9475</act:parent>
+  </gnc:account>
+</gnc-account-example>

commit fefe427bf15c76966be69d51ccc56683227c8fd2
Author: Rob Laan <rob.laan at chello.nl>
Date:   Sun Jul 7 13:28:12 2019 +0200

    Import Bills & Invoices: Report all errors instead of just the first error of an invoice.

diff --git a/gnucash/import-export/bi-import/dialog-bi-import.c b/gnucash/import-export/bi-import/dialog-bi-import.c
index 3c97f4b02..d6b3fd610 100644
--- a/gnucash/import-export/bi-import/dialog-bi-import.c
+++ b/gnucash/import-export/bi-import/dialog-bi-import.c
@@ -246,7 +246,7 @@ gnc_bi_import_read_file (const gchar * filename, const gchar * parser_regexp,
  
  Validates the import data; any error causes all rows of the same invoice
  to be deleted from the import data:
- - id is not set
+ - id is not set, and there is no previous id
  - owner_id is not set, or customer/vendor does not exist
  - date_posted is not valid
  - account_posted does not exist
@@ -277,7 +277,7 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * n_rows_fixed, guint * n_row
     GString *running_id;
     Account *acc = NULL;
     guint dummy;
-    gint row = 1, fixed_for_invoice = 0;
+    gint row = 1, fixed_for_invoice = 0, invoice_line = 0;
     const gchar* date_format_string = qof_date_format_get_string (qof_date_format_get()); // Get the user set date format string
 
     DEBUG("date_format_string: %s",date_format_string);
@@ -301,6 +301,7 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * n_rows_fixed, guint * n_row
     valid = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (store), &iter);
     while (valid)
     {
+        ++invoice_line;
         row_fixed = FALSE;
 
         //  If this is a row for a new invoice id, validate header values.
@@ -320,112 +321,118 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * n_rows_fixed, guint * n_row
             // Validate the invoice id.
             if (strlen (id) == 0)
             {
-                // The id in the first row of an invoice is blank, ignore the invoice
+                // If there was an earlier valid id, then it replaces an empty id when the next row is read at the end of the loop.
+                // So an empty id error can only happen on the first row of an import file.
                 ignore_invoice = TRUE;
                 g_string_append_printf (info,
-                                        _("Row %d: invoice ignored, invoice ID not set.\n"), row);
+                                        _("Row %d: no invoice ID in first row of import file.\n"), row);
             }
 
             // Validate customer or vendor.
-            if (!ignore_invoice && strlen (owner_id) == 0)
+            if (strlen (owner_id) == 0)
             {
                 ignore_invoice = TRUE;
                 g_string_append_printf (info,
-                                        _("Row %d: invoice %s ignored, owner not set.\n"),
-                                        row, id);
+                                        _("Row %d, invoice %s/%u: owner not set.\n"),
+                                        row, id, invoice_line);
             }
             // Verify that customer or vendor exists.
-            if (!ignore_invoice)
+            if (g_ascii_strcasecmp (type, "BILL") == 0)
             {
-                if (g_ascii_strcasecmp (type, "BILL") == 0)
+                if (!gnc_search_vendor_on_id
+                    (gnc_get_current_book (), owner_id))
                 {
-                    if (!gnc_search_vendor_on_id
-                        (gnc_get_current_book (), owner_id))
-                    {
-                        // Vendor not found.
-                        ignore_invoice = TRUE;
-                        g_string_append_printf (info,
-                                                _("Row %d: invoice %s ignored, vendor %s does not exist.\n"),
-                                                row, id, owner_id);
-                    }
+                    // Vendor not found.
+                    ignore_invoice = TRUE;
+                    g_string_append_printf (info,
+                                            _("Row %d, invoice %s/%u: vendor %s does not exist.\n"),
+                                            row, id, invoice_line, owner_id);
                 }
-                else if (g_ascii_strcasecmp (type, "INVOICE") == 0)
+            }
+            else if (g_ascii_strcasecmp (type, "INVOICE") == 0)
+            {
+                if (!gnc_search_customer_on_id
+                    (gnc_get_current_book (), owner_id))
                 {
-                    if (!gnc_search_customer_on_id
-                        (gnc_get_current_book (), owner_id))
-                    {
-                        // Customer not found.
-                        ignore_invoice = TRUE;
-                        g_string_append_printf (info,
-                                                _("Row %d: invoice %s ignored, customer %s does not exist.\n"),
-                                                row, id, owner_id);
-                    }
+                    // Customer not found.
+                    ignore_invoice = TRUE;
+                    g_string_append_printf (info,
+                                            _("Row %d, invoice %s/%u: customer %s does not exist.\n"),
+                                            row, id, invoice_line, owner_id);
                 }
             }
             
-            if (!ignore_invoice && strlen(date_posted) != 0)
+            if (strlen(date_posted) != 0)
             {
-                // Validate the date posted.
+                // Validate the date posted and due date.
                 if (!isDateValid(date_posted))
                 {
                     // Invalid date posted in first row of invoice, ignore the invoice
                     ignore_invoice = TRUE;
                     g_string_append_printf (info,
-                                            _("Row %d: invoice %s ignored, %s is not a valid posting date.\n"),
-                                            row, id, date_posted);
+                                            _("Row %d, invoice %s/%u: %s is not a valid posting date.\n"),
+                                            row, id, invoice_line, date_posted);
+                    
+                    // Verify the due date.
+                    if (!isDateValid(due_date))
+                    {
+                        // Invalid due date in first row of invoice, without valid posting date to substitute.
+                        g_string_append_printf (info,
+                                                _("Row %d, invoice %s/%u: %s is not a valid due date.\n"),
+                                                row, id, invoice_line, due_date);
+                    }
                 }
-                
-                // Validate account posted.
-                // Account should exists, and should be of type A/R for invoices, A/P for bills.
-                if (!ignore_invoice)
+                else
                 {
-                    acc = gnc_account_lookup_for_register
-                    (gnc_get_current_root_account (), account_posted);
-                    if (acc == NULL)
+                    // Verify the due date.
+                    if (!isDateValid(due_date))
                     {
-                        ignore_invoice = TRUE;
-                        g_string_append_printf (info,
-                                                _("Row %d: invoice %s ignored, account %s does not exist.\n"),
-                                                row, id,account_posted);
+                        // Fix this by using the date posted.
+                        gtk_list_store_set (store, &iter, DUE_DATE,
+                                            date_posted, -1);
+                        row_fixed = TRUE;
                     }
-                    else
+                }
+                
+            // Validate account posted.
+            // Account should exists, and should be of type A/R for invoices, A/P for bills.
+                 acc = gnc_account_lookup_for_register
+                (gnc_get_current_root_account (), account_posted);
+                if (acc == NULL)
+                {
+                    ignore_invoice = TRUE;
+                    g_string_append_printf (info,
+                                            _("Row %d, invoice %s/%u: account %s does not exist.\n"),
+                                            row, id, invoice_line, account_posted);
+                }
+                else
+                {
+                    if (g_ascii_strcasecmp (type, "BILL") == 0)
                     {
-                        if (g_ascii_strcasecmp (type, "BILL") == 0)
+                        
+                        if (xaccAccountGetType (acc) != ACCT_TYPE_PAYABLE)
                         {
-                            
-                            if (xaccAccountGetType (acc) != ACCT_TYPE_PAYABLE)
-                            {
-                                ignore_invoice = TRUE;
-                                g_string_append_printf (info,
-                                                        _("Row %d: invoice %s ignored, account %s is not of type Accounts Payable.\n"),
-                                                        row, id, account_posted);
-                            }
+                            ignore_invoice = TRUE;
+                            g_string_append_printf (info,
+                                                    _("Row %d, invoice %s/%u: account %s is not of type Accounts Payable.\n"),
+                                                    row, id, invoice_line, account_posted);
                         }
-                        else if (g_ascii_strcasecmp (type, "INVOICE") == 0)
+                    }
+                    else if (g_ascii_strcasecmp (type, "INVOICE") == 0)
+                    {
+                        if (xaccAccountGetType (acc) != ACCT_TYPE_RECEIVABLE)
                         {
-                            if (xaccAccountGetType (acc) != ACCT_TYPE_RECEIVABLE)
-                            {
-                                ignore_invoice = TRUE;
-                                g_string_append_printf (info,
-                                                        _("Row %d: invoice %s ignored, account %s is not of type Accounts Receivable.\n"),
-                                                        row, id, account_posted);
-                            }
+                            ignore_invoice = TRUE;
+                            g_string_append_printf (info,
+                                                    _("Row %d, invoice %s/%u: account %s is not of type Accounts Receivable.\n"),
+                                                    row, id, invoice_line, account_posted);
                         }
                     }
                 }
-                
-                // Verify the due date.
-                if (!ignore_invoice && !isDateValid(due_date))
-                {
-                    // Fix this by using the date posted.
-                    gtk_list_store_set (store, &iter, DUE_DATE,
-                                        date_posted, -1);
-                    row_fixed = TRUE;
-                }
             }
             
             // Verify the date opened.
-            if(!ignore_invoice && !isDateValid(date_opened))
+            if(!isDateValid(date_opened))
             {
                 // Fix this by using the current date.
                 gchar temp[20];
@@ -439,7 +446,7 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * n_rows_fixed, guint * n_row
             }
         }
         
-        // Validate and fix item date for each row.
+        // Validate and fix item data for each row.
         
         // Get item data.
         gtk_tree_model_get (GTK_TREE_MODEL (store), &iter,
@@ -455,22 +462,19 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * n_rows_fixed, guint * n_row
             // No valid price, delete the row
             ignore_invoice = TRUE;
             g_string_append_printf (info,
-                                    _("Row %d: invoice %s ignored, price not set.\n"),
-                                    row, id);
+                                    _("Row %d, invoice %s/%u: price not set.\n"),
+                                    row, id, invoice_line);
         }
 
         // Validate the account
-        if (!ignore_invoice)
+        acc = gnc_account_lookup_for_register (gnc_get_current_root_account (),
+                                               account);
+        if (acc == NULL)
         {
-            acc = gnc_account_lookup_for_register (gnc_get_current_root_account (),
-                                                   account);
-            if (acc == NULL)
-            {
-                ignore_invoice = TRUE;
-                g_string_append_printf (info,
-                                        _("Row %d: invoice %s ignored, account %s does not exist.\n"),
-                                        row, id,account);
-            }
+            ignore_invoice = TRUE;
+            g_string_append_printf (info,
+                                    _("Row %d, invoice %s/%u: account %s does not exist.\n"),
+                                    row, id, invoice_line, account);
         }
         
         // Fix item data.
@@ -497,29 +501,10 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * n_rows_fixed, guint * n_row
         }
         if (row_fixed) ++fixed_for_invoice;
         
-        // Move to the next row, skipping all rows of the current invoice if it has a row with an error.
-        if (ignore_invoice)
-        {
-            // Skip all rows of the current invoice.
-            // Get the next row and its id.
-            iter = first_row_of_invoice;
-            while (valid && g_strcmp0 (id, running_id->str) == 0)
-            {
-                (*n_rows_ignored)++;
-                valid = gtk_list_store_remove (store, &iter);
-                if (valid) gtk_tree_model_get (GTK_TREE_MODEL (store), &iter, ID, &id, -1);
-            }
-            // Fixes for ignored invoices don't count in the statistics.
-            fixed_for_invoice = 0;
-            
-            ignore_invoice = FALSE;
-        }
-        else
-        {
-            // Get the next row and its id.
-            valid = gtk_tree_model_iter_next (GTK_TREE_MODEL (store), &iter);
-            if (valid) gtk_tree_model_get (GTK_TREE_MODEL (store), &iter, ID, &id, -1);
-        }
+        // Get the next row and its id.
+        valid = gtk_tree_model_iter_next (GTK_TREE_MODEL (store), &iter);
+        if (valid) gtk_tree_model_get (GTK_TREE_MODEL (store), &iter, ID, &id, -1);
+
         
         // If the id of the next row is blank, it takes the id of the previous row.
         if (valid && strlen(id) == 0)
@@ -531,9 +516,40 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * n_rows_fixed, guint * n_row
         // If this row was the last row of the invoice...
         if (!valid || (valid && g_strcmp0 (id, running_id->str) != 0))
         {
+            // If invoice should be ignored, remove all rows of this invoice.
+            if (ignore_invoice)
+            {
+                iter = first_row_of_invoice;
+                do
+                {
+                    (*n_rows_ignored)++;
+                    valid = gtk_list_store_remove (store, &iter);
+                    if (valid) gtk_tree_model_get (GTK_TREE_MODEL (store), &iter, ID, &id, -1);
+                }
+                while (valid && (g_strcmp0 (id, running_id->str) == 0));
+                
+                if (running_id->len != 0)
+                {
+                    g_string_append_printf (info,
+                                            _("Error(s) in invoice %s, all rows of this invoice ignored.\n"),
+                                            running_id->str);
+                }
+                else
+                {
+                    g_string_append_printf (info,
+                                            _("Error(s) in invoice without id, all rows of this invoice ignored.\n"));
+                }
+                    
+                // Fixes for ignored invoices don't count in the statistics.
+                fixed_for_invoice = 0;
+                
+                ignore_invoice = FALSE;
+            }
+            
             on_first_row_of_invoice = TRUE;
             (*n_rows_fixed) += fixed_for_invoice;
             fixed_for_invoice = 0;
+            invoice_line = 0;
             
             g_free (id);
             g_free (date_opened);
@@ -664,9 +680,9 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
             g_string_assign(running_id, id);
             first_row_of_invoice = iter;
         
-            if (g_ascii_strcasecmp (type, "BILL") == 0)  // A comment to distract compare
+            if (g_ascii_strcasecmp (type, "BILL") == 0)
                 invoice = gnc_search_bill_on_id (book, id);
-            else if (g_ascii_strcasecmp (type, "INVOICE") == 0) // A comment to distract compare
+            else if (g_ascii_strcasecmp (type, "INVOICE") == 0)
                 invoice = gnc_search_invoice_on_id (book, id);
             DEBUG( "Existing %s ID: %s\n", type, gncInvoiceGetID(invoice));
 

commit 13add9c44d001ed20c3651df842b1a9d9c12a65e
Author: Rob Laan <rob.laan at chello.nl>
Date:   Mon Feb 11 20:32:24 2019 +0100

    Import Bills & Invoices: improve doxygen data, remove obsolete comments

diff --git a/gnucash/import-export/bi-import/dialog-bi-import-gui.c b/gnucash/import-export/bi-import/dialog-bi-import-gui.c
index 05697cb08..125d61f5c 100644
--- a/gnucash/import-export/bi-import/dialog-bi-import-gui.c
+++ b/gnucash/import-export/bi-import/dialog-bi-import-gui.c
@@ -25,6 +25,7 @@
  * @brief GUI handling for bi-import plugin
  * @author Copyright (C) 2009 Sebastian Held <sebastian.held at gmx.de>
  * @author Mike Evans <mikee at saxicola.co.uk>
+ * @author Rob Laan <rob.laan at chello.nl>
  */
 
 #ifdef HAVE_CONFIG_H
diff --git a/gnucash/import-export/bi-import/dialog-bi-import.c b/gnucash/import-export/bi-import/dialog-bi-import.c
index 0ddc0dd98..3c97f4b02 100644
--- a/gnucash/import-export/bi-import/dialog-bi-import.c
+++ b/gnucash/import-export/bi-import/dialog-bi-import.c
@@ -25,9 +25,7 @@
  * @brief core import functions for invoice import plugin
  * @author Copyright (C) 2009 Sebastian Held <sebastian.held at gmx.de>
  * @author Mike Evans <mikee at saxicola.co.uk>
- * @todo Create an option to import a pre-formed regex when it is present
- * to enable the use of custom output csv formats.
- * @todo Open the newly created invoice(es).
+ * @author Rob Laan <rob.laan at chello.nl>
  */
 
 #ifdef HAVE_CONFIG_H
@@ -75,6 +73,27 @@
 
 static QofLogModule log_module = G_LOG_DOMAIN; //G_LOG_BUSINESS;
 static char * un_escape(char *str);
+
+/** \brief Imports a csv file with invoice data into a GtkListStore.
+ 
+ Opens the csv file and attempts to match each row with the regular
+ expression provided in parser_regexp. This is a regular expression
+ that matches each field of the import row and the user selected field
+ separators (, or ;), optionally with the fields enclosed in quotes.
+ 
+ If the match is succesful, the fields of the import row are transferred to
+ a row in the GtkListStore store. If the the match is not succesful, the
+ row is ignored. Maintains information about number of rows imported,
+ the number of rows ignored, and the actual ignored rows.
+ 
+ @param filename      The csv filename to read
+ @param parser_regexp The regular expression with which to match the import rows
+ @param store         To store the matched data
+ @param max_rows      The maximum number of rows to import; use 0 for no maximum.
+ @param stats         Return information about matched and non-matched rows. Use NULL if the information is not required.
+ 
+ */
+
 bi_import_result
 gnc_bi_import_read_file (const gchar * filename, const gchar * parser_regexp,
                          GtkListStore * store, guint max_rows,
@@ -217,12 +236,36 @@ gnc_bi_import_read_file (const gchar * filename, const gchar * parser_regexp,
 }
 
 
-//! \brief try to fix some common errors in the csv representation of invoices
-//! * corrects the date format
-//! * corrects ambiguous values in multi line invoices
-//! * ensures customer exists
-//! * if quantity is unset, set to 1
-//! * if price is unset, delete row.
+/** \brief Adjusts and validates invoice import data.
+ 
+ Replaces missing or invalid data with defaults:
+ - if quantity is not set, default to 1
+ - if date_opened is not set or invalid, default to today
+ - if date is not set or invalid, default to date_opened
+ - if due date is not set or invalid, default to date_posted
+ 
+ Validates the import data; any error causes all rows of the same invoice
+ to be deleted from the import data:
+ - id is not set
+ - owner_id is not set, or customer/vendor does not exist
+ - date_posted is not valid
+ - account_posted does not exist
+ - account posted is not the applicable type, A/P or A/R
+ - price is not set
+ - account does not exist
+ 
+ Adjustment and validation for header fields is only done for the first row of an invoice,
+ which is assumed to hold the header data for all items of the same invoice.
+ Currency related validation is done in subsqequent processing by gnc_bi_import_create_bis.
+ 
+ @param store Holds the rows of invoice import data
+ @param n_rows_fixed Increased for every data row that is adjusted in this function
+ @param n_rows_ignored Increased for every data row that is deleted in this function
+ @param info Updated with the error messages from this function
+ @param type The type of the import data, BILL or INVOICE
+ 
+ */
+
 void
 gnc_bi_import_fix_bis (GtkListStore * store, guint * n_rows_fixed, guint * n_rows_ignored,
                        GString * info, gchar *type)
@@ -237,9 +280,6 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * n_rows_fixed, guint * n_row
     gint row = 1, fixed_for_invoice = 0;
     const gchar* date_format_string = qof_date_format_get_string (qof_date_format_get()); // Get the user set date format string
 
-
-    //date_format_string = qof_date_format_get_string (qof_date_format_get());
-
     DEBUG("date_format_string: %s",date_format_string);
     // allow the call to this function with only GtkListeStore* specified
     if (!n_rows_fixed)
@@ -518,14 +558,27 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * n_rows_fixed, guint * n_row
 }
 
 
-/***********************************************************************
- * @todo Maybe invoice checking should be done in gnc_bi_import_fix_bis (...)
- * rather than in here?  But that is more concerned with ensuring the csv is consistent.
- * @param GtkListStore *store
- * @param guint *n_invoices_created
- * @param guint *n_invoices_updated
- * @return void
- ***********************************************************************/
+/** \brief Creates and updates invoices from validated import data.
+ 
+ Loops through the import data to create and update invoices.
+ The first data row for an invoice is assumed to hold the header data.
+ 
+ If an invoice already exists, the user is asked, once per import,
+ to confirm that invoices should be updated.
+ If not confirmed, any rows for existing invoices are ignored.
+ If confirmed, entries are added to existing invoices.
+ Posted invoices, however, are never updated.
+ 
+ If the field date_posted is set, the system will
+ attempt to also post the invoice. The system will not
+ post the invoice if the entries of the invoice hold different currencies,
+ or if the currency of the invoice differs from the currency of the account_posted.
+ 
+ As per user selection, the system displays tabs for either all affected invoices,
+ all affected invoices not yet posted, or no invoices at all.
+ 
+ */
+
 void
 gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
                           guint * n_invoices_created,
@@ -605,14 +658,6 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
                             TAXABLE, &taxable,
                             TAXINCLUDED, &taxincluded,
                             TAX_TABLE, &tax_table, -1);
-
-        // TODO:  Assign a new invoice number if one is absent.  BUT we don't want to assign a new invoice for every line!!
-        // so we'd have to flag this up somehow or add an option in the import GUI.  The former implies that we make
-        // an assumption about what the importer (person) wants to do.  It seems reasonable that a CSV file full of items with
-        // If an invoice exists then we add to it in this current schema.
-        // no predefined invoice number is a new invoice that's in need of a new number.
-        // This was  not designed to satisfy the need for repeat invoices however, so maybe we need a another method for this, after all
-        // It should be easier to copy an invoice with a new ID than to go through all this malarky.
         
         if (on_first_row_of_invoice)
         {
@@ -730,7 +775,6 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
         gnc_exp_parser_parse (quantity, &value, NULL);
         // Need to set the denom appropriately else we get stupid rounding errors.
         value = gnc_numeric_convert (value, denom * 100, GNC_HOW_RND_NEVER);
-        //DEBUG("qty = %s",gnc_num_dbg_to_string(value));
         gncEntrySetQuantity (entry, value);
         acc = gnc_account_lookup_for_register (gnc_get_current_root_account (),
                                                account);
@@ -754,7 +798,6 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
             value = gnc_numeric_zero();
             gnc_exp_parser_parse (price, &value, NULL);
             value = gnc_numeric_convert (value, denom * 100, GNC_HOW_RND_NEVER);
-            //DEBUG("price = %s",gnc_num_dbg_to_string(value));
             gncEntrySetInvPrice (entry, value);
             gncEntrySetInvTaxable (entry, text2bool (taxable));
             gncEntrySetInvTaxIncluded (entry, text2bool (taxincluded));
diff --git a/gnucash/import-export/bi-import/dialog-bi-import.h b/gnucash/import-export/bi-import/dialog-bi-import.h
index 2407edc8d..f1f53a0a8 100644
--- a/gnucash/import-export/bi-import/dialog-bi-import.h
+++ b/gnucash/import-export/bi-import/dialog-bi-import.h
@@ -26,6 +26,7 @@
  * @brief core import functions for invoice import plugin
  * @author Copyright (C) 2009 Sebastian Held <sebastian.held at gmx.de>
  * @author Mike Evans <mikee at saxicola.co.uk>
+ * @author Rob Laan <rob.laan at chello.nl>
  */
 
 #ifndef GNC_PLUGIN_BI_IMPORT_H

commit 0423fd72ea8e11eb990ccd1549f0cb43e67cfe23
Author: Rob Laan <rob.laan at chello.nl>
Date:   Mon Feb 11 10:28:56 2019 +0100

    Import Bills & Invoices: Improve feedback to user

diff --git a/gnucash/import-export/bi-import/dialog-bi-import-gui.c b/gnucash/import-export/bi-import/dialog-bi-import-gui.c
index 66e362f58..05697cb08 100644
--- a/gnucash/import-export/bi-import/dialog-bi-import-gui.c
+++ b/gnucash/import-export/bi-import/dialog-bi-import-gui.c
@@ -216,12 +216,13 @@ gnc_bi_import_gui_ok_cb (GtkWidget *widget, gpointer data)
     if (res == RESULT_OK)
     {
         gnc_bi_import_fix_bis (gui->store, &n_fixed, &n_deleted, info, gui->type);
-        gnc_bi_import_create_bis (gui->store, gui->book, &n_invoices_created, &n_invoices_updated,
+        gnc_bi_import_create_bis (gui->store, gui->book, &n_invoices_created, &n_invoices_updated, &n_deleted,
                                   gui->type, gui->open_mode, info, gui->parent);
         if (info->len > 0)
             gnc_info_dialog (GTK_WINDOW (gui->dialog), "%s", info->str);
         g_string_free( info, TRUE );
-        gnc_info_dialog (GTK_WINDOW (gui->dialog), _("Import results:\n%i lines were ignored\n%i lines imported:\n   %u fixes\n   %u ignored (not fixable)\n\n   %u created\n   %u updated (based on id)"), stats.n_ignored, stats.n_imported, n_fixed, n_deleted, n_invoices_created, n_invoices_updated);
+        gnc_info_dialog (GTK_WINDOW (gui->dialog), _("Import:\n- rows ignored: %i\n- rows imported: %i\n\nValidation & processing:\n- rows fixed: %u\n- rows ignored: %u\n- invoices created: %u\n- invoices updated: %u"),
+                         stats.n_ignored, stats.n_imported, n_fixed, n_deleted, n_invoices_created, n_invoices_updated);
         if (stats.n_ignored > 0)
             gnc_info2_dialog (gui->dialog, _("These lines were ignored during import"), stats.ignored_lines->str);
 
diff --git a/gnucash/import-export/bi-import/dialog-bi-import.c b/gnucash/import-export/bi-import/dialog-bi-import.c
index 91b1cef33..0ddc0dd98 100644
--- a/gnucash/import-export/bi-import/dialog-bi-import.c
+++ b/gnucash/import-export/bi-import/dialog-bi-import.c
@@ -224,7 +224,7 @@ gnc_bi_import_read_file (const gchar * filename, const gchar * parser_regexp,
 //! * if quantity is unset, set to 1
 //! * if price is unset, delete row.
 void
-gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
+gnc_bi_import_fix_bis (GtkListStore * store, guint * n_rows_fixed, guint * n_rows_ignored,
                        GString * info, gchar *type)
 {
     GtkTreeIter iter, first_row_of_invoice;
@@ -242,18 +242,20 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
 
     DEBUG("date_format_string: %s",date_format_string);
     // allow the call to this function with only GtkListeStore* specified
-    if (!fixed)
-        fixed = &dummy;
-    if (!deleted)
-        deleted = &dummy;
+    if (!n_rows_fixed)
+        n_rows_fixed = &dummy;
+    if (!n_rows_ignored)
+        n_rows_ignored = &dummy;
 
-    *fixed = 0;
-    *deleted = 0;
+    *n_rows_fixed = 0;
+    *n_rows_ignored = 0;
     
     // Init control variables
     running_id = g_string_new("");
     ignore_invoice = FALSE;
     on_first_row_of_invoice = TRUE;
+    
+    g_string_append_printf (info, _("Validation...\n") );
 
     // Walk through the list, reading each row.
     valid = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (store), &iter);
@@ -463,7 +465,7 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
             iter = first_row_of_invoice;
             while (valid && g_strcmp0 (id, running_id->str) == 0)
             {
-                (*deleted)++;
+                (*n_rows_ignored)++;
                 valid = gtk_list_store_remove (store, &iter);
                 if (valid) gtk_tree_model_get (GTK_TREE_MODEL (store), &iter, ID, &id, -1);
             }
@@ -490,8 +492,9 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
         if (!valid || (valid && g_strcmp0 (id, running_id->str) != 0))
         {
             on_first_row_of_invoice = TRUE;
-            (*fixed) += fixed_for_invoice;
+            (*n_rows_fixed) += fixed_for_invoice;
             fixed_for_invoice = 0;
+            
             g_free (id);
             g_free (date_opened);
             g_free (date_posted);
@@ -500,7 +503,7 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
             g_free (owner_id);
         }
         else on_first_row_of_invoice = FALSE;
-
+        
         g_free (date);
         g_free (account);
         g_free (quantity);
@@ -527,6 +530,7 @@ void
 gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
                           guint * n_invoices_created,
                           guint * n_invoices_updated,
+                          guint * n_rows_ignored,
                           gchar * type, gchar * open_mode, GString * info,
                           GtkWindow *parent)
 {
@@ -572,6 +576,8 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
     on_first_row_of_invoice = TRUE;
     running_id = g_string_new("");
     
+    g_string_append_printf (info, _("\nProcessing...\n") );
+    
     valid = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (store), &iter);
     while (valid)
     {
@@ -673,6 +679,7 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
                     g_string_append_printf (info,_("Invoice %s not updated because it already exists.\n"),id);
                     while (valid && g_strcmp0 (id, running_id->str) == 0)
                     {
+                        (*n_rows_ignored)++;
                         valid = gtk_tree_model_iter_next (GTK_TREE_MODEL (store), &iter);
                         if (valid)
                             gtk_tree_model_get (GTK_TREE_MODEL (store), &iter, ID, &id, -1);
@@ -687,6 +694,7 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
                     g_string_append_printf (info,_("Invoice %s not updated because it is already posted.\n"),id);
                     while (valid && g_strcmp0 (id, running_id->str) == 0)
                     {
+                        (*n_rows_ignored)++;
                         valid = gtk_tree_model_iter_next (GTK_TREE_MODEL (store), &iter);
                         if (valid)
                             gtk_tree_model_get (GTK_TREE_MODEL (store), &iter, ID, &id, -1);
@@ -849,11 +857,15 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
                 iw =  gnc_ui_invoice_edit (parent, invoice);
                 gnc_plugin_page_invoice_new (iw);
             }
-            
+        
             // The next row will be for a new invoice.
             on_first_row_of_invoice = TRUE;
         }
     }
+    
+    if (*n_invoices_updated + *n_invoices_created == 0)
+        g_string_append_printf (info, _("Nothing to process.\n"));
+    
     // cleanup
     g_free (id);
     g_free (date_opened);
diff --git a/gnucash/import-export/bi-import/dialog-bi-import.h b/gnucash/import-export/bi-import/dialog-bi-import.h
index 649b29067..2407edc8d 100644
--- a/gnucash/import-export/bi-import/dialog-bi-import.h
+++ b/gnucash/import-export/bi-import/dialog-bi-import.h
@@ -69,7 +69,7 @@ gnc_bi_import_fix_bis (GtkListStore *store, guint *fixed, guint *deleted, GStrin
 
 void
 gnc_bi_import_create_bis (GtkListStore *store, QofBook *book, guint *n_invoices_created,
-                          guint *n_invoices_updated,	gchar *type, gchar *open_mode, GString * info,
+                          guint *n_invoices_updated, guint *n_rows_ignored,	gchar *type, gchar *open_mode, GString * info,
                           GtkWindow *parent);
 
 

commit 8c31b1c99ac62e05b20670ecc0d55ef8519167cc
Author: Rob Laan <rob.laan at chello.nl>
Date:   Sun Feb 10 20:22:52 2019 +0100

    Fix bug 797023 Import Bills & Invoices: no user confirmation requested for update of invoices, if new invoice is created first

diff --git a/gnucash/import-export/bi-import/dialog-bi-import.c b/gnucash/import-export/bi-import/dialog-bi-import.c
index e082f9dc1..91b1cef33 100644
--- a/gnucash/import-export/bi-import/dialog-bi-import.c
+++ b/gnucash/import-export/bi-import/dialog-bi-import.c
@@ -230,7 +230,7 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
     GtkTreeIter iter, first_row_of_invoice;
     gboolean valid, row_fixed, on_first_row_of_invoice, ignore_invoice;
     gchar *id = NULL, *date_opened = NULL, *date_posted = NULL, *due_date = NULL, *account_posted = NULL,
-    *owner_id = NULL, *date = NULL, *account = NULL, *quantity = NULL, *price = NULL;
+        *owner_id = NULL, *date = NULL, *account = NULL, *quantity = NULL, *price = NULL;
     GString *running_id;
     Account *acc = NULL;
     guint dummy;
@@ -492,7 +492,6 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
             on_first_row_of_invoice = TRUE;
             (*fixed) += fixed_for_invoice;
             fixed_for_invoice = 0;
-            
             g_free (id);
             g_free (date_opened);
             g_free (date_posted);
@@ -546,7 +545,7 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
     gnc_numeric value;
     GncOwner *owner;
     Account *acc = NULL;
-    enum update {YES = GTK_RESPONSE_YES, NO = GTK_RESPONSE_NO} update;
+    enum update {YES = GTK_RESPONSE_YES, NO = GTK_RESPONSE_NO, NOT_ASKED = GTK_RESPONSE_NONE} update;
     GtkWidget *dialog;
     time64 today;
     InvoiceWindow *iw;
@@ -569,7 +568,7 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
     *n_invoices_updated = 0;
 
     invoice = NULL;
-    update = NO;
+    update = NOT_ASKED;
     on_first_row_of_invoice = TRUE;
     running_id = g_string_new("");
     
@@ -613,100 +612,94 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
         {
             g_string_assign(running_id, id);
             first_row_of_invoice = iter;
-        }
         
-        if (g_ascii_strcasecmp (type, "BILL") == 0)
-            invoice = gnc_search_bill_on_id (book, id);
-        else if (g_ascii_strcasecmp (type, "INVOICE") == 0)
-            invoice = gnc_search_invoice_on_id (book, id);
-        DEBUG( "Existing %s ID: %s\n", type, gncInvoiceGetID(invoice));
-
-        // If the search is empty then there is no existing invoice so make a new one
-        if (invoice == NULL)
-        {
-             DEBUG( "Creating a new : %s\n", type );
-            // new invoice
-            invoice = gncInvoiceCreate (book);
-            /* Protect against thrashing the DB and trying to write the invoice
-             * record prematurely */
-            gncInvoiceBeginEdit (invoice);
-            gncInvoiceSetID (invoice, id);
-            owner = gncOwnerNew ();
-            if (g_ascii_strcasecmp (type, "BILL") == 0)
-                gncOwnerInitVendor (owner,
-                                    gnc_search_vendor_on_id (book, owner_id));
-            else if (g_ascii_strcasecmp (type, "INVOICE") == 0)
-                gncOwnerInitCustomer (owner,
-                                      gnc_search_customer_on_id (book, owner_id));
-            gncInvoiceSetOwner (invoice, owner);
-            gncInvoiceSetCurrency (invoice, gncOwnerGetCurrency (owner));	// Set the invoice currency based on the owner
-            qof_scan_date (date_opened, &day, &month, &year);
-            gncInvoiceSetDateOpened (invoice,
-                                     gnc_dmy2time64 (day, month, year));
-            gncInvoiceSetBillingID (invoice, billing_id ? billing_id : "");
-            notes = un_escape(notes);
-            gncInvoiceSetNotes (invoice, notes ? notes : "");
-            gncInvoiceSetActive (invoice, TRUE);
-            //if (g_ascii_strcasecmp(type,"INVOICE"))gncInvoiceSetBillTo( invoice, billto );
-            (*n_invoices_created)++;
-            update = YES;
-
-            gncInvoiceCommitEdit (invoice);
-        }
-// I want to warn the user that an existing billvoice exists, but not every
-// time.
-// An import can contain many lines usually referring to the same invoice.
-// NB: Posted invoices are NEVER updated.
-        else			// if invoice exists
-        {
-            if (gncInvoiceIsPosted (invoice))	// Is it already posted?
+            if (g_ascii_strcasecmp (type, "BILL") == 0)  // A comment to distract compare
+                invoice = gnc_search_bill_on_id (book, id);
+            else if (g_ascii_strcasecmp (type, "INVOICE") == 0) // A comment to distract compare
+                invoice = gnc_search_invoice_on_id (book, id);
+            DEBUG( "Existing %s ID: %s\n", type, gncInvoiceGetID(invoice));
+
+            // If the search is empty then there is no existing invoice so make a new one
+            if (invoice == NULL)
             {
-                valid =
-                    gtk_tree_model_iter_next (GTK_TREE_MODEL (store), &iter);
-                continue;		// If already posted then never import
+                 DEBUG( "Creating a new : %s\n", type );
+                // new invoice
+                invoice = gncInvoiceCreate (book);
+                /* Protect against thrashing the DB and trying to write the invoice
+                 * record prematurely */
+                gncInvoiceBeginEdit (invoice);
+                gncInvoiceSetID (invoice, id);
+                owner = gncOwnerNew ();
+                if (g_ascii_strcasecmp (type, "BILL") == 0)
+                    gncOwnerInitVendor (owner,
+                                        gnc_search_vendor_on_id (book, owner_id));
+                else if (g_ascii_strcasecmp (type, "INVOICE") == 0)
+                    gncOwnerInitCustomer (owner,
+                                          gnc_search_customer_on_id (book, owner_id));
+                gncInvoiceSetOwner (invoice, owner);
+                gncInvoiceSetCurrency (invoice, gncOwnerGetCurrency (owner));	// Set the invoice currency based on the owner
+                qof_scan_date (date_opened, &day, &month, &year);
+                gncInvoiceSetDateOpened (invoice,
+                                         gnc_dmy2time64 (day, month, year));
+                gncInvoiceSetBillingID (invoice, billing_id ? billing_id : "");
+                notes = un_escape(notes);
+                gncInvoiceSetNotes (invoice, notes ? notes : "");
+                gncInvoiceSetActive (invoice, TRUE);
+                //if (g_ascii_strcasecmp(type,"INVOICE"))gncInvoiceSetBillTo( invoice, billto );
+                (*n_invoices_created)++;
+                g_string_append_printf (info, _("Invoice %s created.\n"),id);
+                
+                gncInvoiceCommitEdit (invoice);
             }
-            if (update != YES)	// Pop up a dialog to ask if updates are the expected action
+            else			// Dealing with an existing invoice.
             {
-                dialog = gtk_message_dialog_new (parent,
-                                                 GTK_DIALOG_MODAL,
-                                                 GTK_MESSAGE_ERROR,
-                                                 GTK_BUTTONS_YES_NO,
-                                                 "%s",
-                                                 _("Are you sure you have bills/invoices to update?"));
-                update = gtk_dialog_run (GTK_DIALOG (dialog));
-                gtk_widget_destroy (dialog);
+                // For the first existing invoice in the import file,
+                // ask the user to confirm update of existing invoices.
+                if (update == NOT_ASKED)
+                {
+                    dialog = gtk_message_dialog_new (parent,
+                                                     GTK_DIALOG_MODAL,
+                                                     GTK_MESSAGE_ERROR,
+                                                     GTK_BUTTONS_YES_NO,
+                                                     "%s",
+                                                     _("Do you want to update existing bills/invoices?"));
+                    update = gtk_dialog_run (GTK_DIALOG (dialog));
+                    gtk_widget_destroy (dialog);
+                }
+                
                 if (update == NO)
                 {
-                    // Cleanup and leave
-                    g_free (id);
-                    g_free (date_opened);
-                    g_free (owner_id);
-                    g_free (billing_id);
-                    g_free (notes);
-                    g_free (date);
-                    g_free (desc);
-                    g_free (action);
-                    g_free (account);
-                    g_free (quantity);
-                    g_free (price);
-                    g_free (disc_type);
-                    g_free (disc_how);
-                    g_free (discount);
-                    g_free (taxable);
-                    g_free (taxincluded);
-                    g_free (tax_table);
-                    g_free (date_posted);
-                    g_free (due_date);
-                    g_free (account_posted);
-                    g_free (memo_posted);
-                    g_free (accumulatesplits);
-                    return;
+                    // If the user does not want to update existing invoices, ignore all rows of the invoice.
+                    g_string_append_printf (info,_("Invoice %s not updated because it already exists.\n"),id);
+                    while (valid && g_strcmp0 (id, running_id->str) == 0)
+                    {
+                        valid = gtk_tree_model_iter_next (GTK_TREE_MODEL (store), &iter);
+                        if (valid)
+                            gtk_tree_model_get (GTK_TREE_MODEL (store), &iter, ID, &id, -1);
+                    }
+                    on_first_row_of_invoice = TRUE;
+                    continue;
                 }
+                
+                if (gncInvoiceIsPosted (invoice))
+                {
+                    // If the invoice is already posted, ignore all rows of the invoice.
+                    g_string_append_printf (info,_("Invoice %s not updated because it is already posted.\n"),id);
+                    while (valid && g_strcmp0 (id, running_id->str) == 0)
+                    {
+                        valid = gtk_tree_model_iter_next (GTK_TREE_MODEL (store), &iter);
+                        if (valid)
+                            gtk_tree_model_get (GTK_TREE_MODEL (store), &iter, ID, &id, -1);
+                    }
+                    on_first_row_of_invoice = TRUE;
+                    continue;
+                }
+
+                (*n_invoices_updated)++;
+                g_string_append_printf (info, _("Invoice %s updated.\n"),id);
             }
-            (*n_invoices_updated)++;
         }
 
-
         // Add entry to invoice/bill
         entry = gncEntryCreate (book);
         gncEntryBeginEdit(entry);

commit 66950e630b3df07652c3e24bfed9c0d5ee9f6e55
Author: Rob Laan <rob.laan at chello.nl>
Date:   Sun Feb 10 17:30:11 2019 +0100

    Fix bug 796984 Import Bills & Invoices: date of line item is not validated; can lead to unexpected results

diff --git a/gnucash/import-export/bi-import/dialog-bi-import.c b/gnucash/import-export/bi-import/dialog-bi-import.c
index b1706f33f..e082f9dc1 100644
--- a/gnucash/import-export/bi-import/dialog-bi-import.c
+++ b/gnucash/import-export/bi-import/dialog-bi-import.c
@@ -230,7 +230,7 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
     GtkTreeIter iter, first_row_of_invoice;
     gboolean valid, row_fixed, on_first_row_of_invoice, ignore_invoice;
     gchar *id = NULL, *date_opened = NULL, *date_posted = NULL, *due_date = NULL, *account_posted = NULL,
-        *owner_id = NULL, *date = NULL, *account = NULL, *quantity = NULL, *price = NULL;
+    *owner_id = NULL, *date = NULL, *account = NULL, *quantity = NULL, *price = NULL;
     GString *running_id;
     Account *acc = NULL;
     guint dummy;
@@ -255,26 +255,23 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
     ignore_invoice = FALSE;
     on_first_row_of_invoice = TRUE;
 
+    // Walk through the list, reading each row.
     valid = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (store), &iter);
     while (valid)
     {
         row_fixed = FALSE;
 
-        // Walk through the list, reading each row
-        gtk_tree_model_get (GTK_TREE_MODEL (store), &iter,
-                            ID, &id,
-                            DATE_OPENED, &date_opened,
-                            DATE_POSTED, &date_posted,
-                            DUE_DATE, &due_date,
-                            ACCOUNT_POSTED, &account_posted,
-                            OWNER_ID, &owner_id,
-                            DATE, &date,
-                            ACCOUNT, &account,
-                            QUANTITY, &quantity, PRICE, &price, -1);
-        
         //  If this is a row for a new invoice id, validate header values.
         if (on_first_row_of_invoice)
         {
+            gtk_tree_model_get (GTK_TREE_MODEL (store), &iter,
+                                ID, &id,
+                                DATE_OPENED, &date_opened,
+                                DATE_POSTED, &date_posted,
+                                DUE_DATE, &due_date,
+                                ACCOUNT_POSTED, &account_posted,
+                                OWNER_ID, &owner_id, -1);
+            
             g_string_assign (running_id, id);
             first_row_of_invoice = iter;
             
@@ -400,6 +397,16 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
             }
         }
         
+        // Validate and fix item date for each row.
+        
+        // Get item data.
+        gtk_tree_model_get (GTK_TREE_MODEL (store), &iter,
+                            DATE, &date,
+                            ACCOUNT, &account,
+                            QUANTITY, &quantity,
+                            PRICE, &price, -1);
+
+        
         // Validate the price.
         if (strlen (price) == 0)
         {
@@ -435,6 +442,16 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
                 gtk_list_store_set (store, &iter, QUANTITY, "1", -1);
                 row_fixed = TRUE;
             }
+            
+            // Verify the item date
+            if(!isDateValid(date))
+            {
+                // Invalid item date, replace with date opened
+                gtk_list_store_set (store, &iter, DATE,
+                                    date_opened, -1);
+                row_fixed = TRUE;
+            }
+
         }
         if (row_fixed) ++fixed_for_invoice;
         
@@ -475,15 +492,16 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
             on_first_row_of_invoice = TRUE;
             (*fixed) += fixed_for_invoice;
             fixed_for_invoice = 0;
+            
+            g_free (id);
+            g_free (date_opened);
+            g_free (date_posted);
+            g_free (due_date);
+            g_free (account_posted);
+            g_free (owner_id);
         }
         else on_first_row_of_invoice = FALSE;
 
-        g_free (id);
-        g_free (date_opened);
-        g_free (date_posted);
-        g_free (due_date);
-        g_free (account_posted);
-        g_free (owner_id);
         g_free (date);
         g_free (account);
         g_free (quantity);
@@ -689,31 +707,19 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
         }
 
 
-        // add entry to invoice/bill
+        // Add entry to invoice/bill
         entry = gncEntryCreate (book);
         gncEntryBeginEdit(entry);
         currency = gncInvoiceGetCurrency(invoice);
         if (currency) denom = gnc_commodity_get_fraction(currency);
-        // FIXME: Must check for the return value of qof_scan_date!
         qof_scan_date (date, &day, &month, &year);
         {
             GDate *date = g_date_new_dmy(day, month, year);
             gncEntrySetDateGDate (entry, date);
             g_date_free (date);
         }
-        today = gnc_time (NULL);	// set today to the current date
-        if (strlen (date) != 0)	// If a date is specified in CSV
-        {
-            GDate *date = g_date_new_dmy(day, month, year);
-            gncEntrySetDateGDate(entry, date);
-            gncEntrySetDateEntered(entry, gnc_dmy2time64 (day, month, year));
-        }
-        else
-        {
-            GDate *date = gnc_g_date_new_today();
-            gncEntrySetDateGDate(entry, date);
-            gncEntrySetDateEntered(entry, today);
-        }
+        today = gnc_time (NULL);
+        gncEntrySetDateEntered(entry, today);
         // Remove escaped quotes
         desc = un_escape(desc);
         notes = un_escape(notes);

commit 53aec754e3d76140647ae7665f992019bf66f91a
Author: Rob Laan <rob.laan at chello.nl>
Date:   Sun Feb 10 17:24:35 2019 +0100

    Fix bug 79698 Import Bills & Invoices: option 'open not yet posted docs in tab' does not open tab if invoice could not be posted

diff --git a/gnucash/import-export/bi-import/dialog-bi-import.c b/gnucash/import-export/bi-import/dialog-bi-import.c
index 7c0af7793..b1706f33f 100644
--- a/gnucash/import-export/bi-import/dialog-bi-import.c
+++ b/gnucash/import-export/bi-import/dialog-bi-import.c
@@ -513,7 +513,7 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
                           gchar * type, gchar * open_mode, GString * info,
                           GtkWindow *parent)
 {
-    gboolean valid, on_first_row_of_invoice;
+    gboolean valid, on_first_row_of_invoice, invoice_posted;
     GtkTreeIter iter, first_row_of_invoice;
     gchar *id = NULL, *date_opened = NULL, *owner_id = NULL, *billing_id = NULL, *notes = NULL;
     gchar *date = NULL, *desc = NULL, *action = NULL, *account = NULL, *quantity = NULL,
@@ -783,6 +783,7 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
                                 ACCOUNT_POSTED, &account_posted,
                                 MEMO_POSTED, &memo_posted,
                                 ACCU_SPLITS, &accumulatesplits, -1);
+            invoice_posted = FALSE;
 
             if (strlen(date_posted) != 0)
             {
@@ -820,7 +821,8 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
                                              text2bool (accumulatesplits),
                                              auto_pay);
                         PWARN("Invoice %s posted",id);
-                         g_string_append_printf (info, _("Invoice %s posted.\n"),id);
+                        invoice_posted = TRUE;
+                        g_string_append_printf (info, _("Invoice %s posted.\n"),id);
                     }
                     else // No match! Don't post it.
                     {
@@ -843,7 +845,7 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
             // open new bill / invoice in a tab, if requested
             if (g_ascii_strcasecmp(open_mode, "ALL") == 0
                     || (g_ascii_strcasecmp(open_mode, "NOT_POSTED") == 0
-                        && strlen(date_posted) == 0))
+                        && !invoice_posted))
             {
                 iw =  gnc_ui_invoice_edit (parent, invoice);
                 gnc_plugin_page_invoice_new (iw);

commit 75d45653095b18b4ba4ab88cf0486779ecc248c1
Author: Rob Laan <rob.laan at chello.nl>
Date:   Sun Feb 10 17:14:38 2019 +0100

    Fix bug 797025 Import Bills & Invoices: the type of the post to account is not validated - enabling A/P and A/R postings on regular accounts

diff --git a/gnucash/import-export/bi-import/dialog-bi-import.c b/gnucash/import-export/bi-import/dialog-bi-import.c
index bb791a92c..7c0af7793 100644
--- a/gnucash/import-export/bi-import/dialog-bi-import.c
+++ b/gnucash/import-export/bi-import/dialog-bi-import.c
@@ -229,7 +229,7 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
 {
     GtkTreeIter iter, first_row_of_invoice;
     gboolean valid, row_fixed, on_first_row_of_invoice, ignore_invoice;
-    gchar *id = NULL, *date_opened = NULL, *date_posted = NULL, *due_date = NULL,
+    gchar *id = NULL, *date_opened = NULL, *date_posted = NULL, *due_date = NULL, *account_posted = NULL,
         *owner_id = NULL, *date = NULL, *account = NULL, *quantity = NULL, *price = NULL;
     GString *running_id;
     Account *acc = NULL;
@@ -266,6 +266,7 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
                             DATE_OPENED, &date_opened,
                             DATE_POSTED, &date_posted,
                             DUE_DATE, &due_date,
+                            ACCOUNT_POSTED, &account_posted,
                             OWNER_ID, &owner_id,
                             DATE, &date,
                             ACCOUNT, &account,
@@ -335,6 +336,45 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
                                             row, id, date_posted);
                 }
                 
+                // Validate account posted.
+                // Account should exists, and should be of type A/R for invoices, A/P for bills.
+                if (!ignore_invoice)
+                {
+                    acc = gnc_account_lookup_for_register
+                    (gnc_get_current_root_account (), account_posted);
+                    if (acc == NULL)
+                    {
+                        ignore_invoice = TRUE;
+                        g_string_append_printf (info,
+                                                _("Row %d: invoice %s ignored, account %s does not exist.\n"),
+                                                row, id,account_posted);
+                    }
+                    else
+                    {
+                        if (g_ascii_strcasecmp (type, "BILL") == 0)
+                        {
+                            
+                            if (xaccAccountGetType (acc) != ACCT_TYPE_PAYABLE)
+                            {
+                                ignore_invoice = TRUE;
+                                g_string_append_printf (info,
+                                                        _("Row %d: invoice %s ignored, account %s is not of type Accounts Payable.\n"),
+                                                        row, id, account_posted);
+                            }
+                        }
+                        else if (g_ascii_strcasecmp (type, "INVOICE") == 0)
+                        {
+                            if (xaccAccountGetType (acc) != ACCT_TYPE_RECEIVABLE)
+                            {
+                                ignore_invoice = TRUE;
+                                g_string_append_printf (info,
+                                                        _("Row %d: invoice %s ignored, account %s is not of type Accounts Receivable.\n"),
+                                                        row, id, account_posted);
+                            }
+                        }
+                    }
+                }
+                
                 // Verify the due date.
                 if (!ignore_invoice && !isDateValid(due_date))
                 {
@@ -442,6 +482,7 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
         g_free (date_opened);
         g_free (date_posted);
         g_free (due_date);
+        g_free (account_posted);
         g_free (owner_id);
         g_free (date);
         g_free (account);
@@ -767,32 +808,24 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
                 {
                     acc = gnc_account_lookup_for_register
                           (gnc_get_current_root_account (), account_posted);
-                    if(acc != NULL) // Is the account real?
-                    {                        
-                        // Check if the currencies match
-                        if(gncInvoiceGetCurrency(invoice) == gnc_account_get_currency_or_parent(acc))
-                        {
-                            qof_scan_date (date_posted, &day, &month, &year);
-                            p_date = gnc_dmy2time64 (day, month, year);
-                            qof_scan_date (due_date, &day, &month, &year);
-                            d_date = gnc_dmy2time64 (day, month, year);
-                            gncInvoicePostToAccount (invoice, acc, p_date, d_date,
-                                                 memo_posted,
-                                                 text2bool (accumulatesplits),
-                                                 auto_pay);
-                            PWARN("Invoice %s posted",id);
-                             g_string_append_printf (info, _("Invoice %s posted.\n"),id);
-                        }
-                        else // No match! Don't post it.
-                        {
-                            PWARN("Invoice %s NOT posted because currencies don't match", id);
-                            g_string_append_printf (info,_("Invoice %s NOT posted because currencies don't match.\n"), id);
-                        }
+                    // Check if the currencies match
+                    if(gncInvoiceGetCurrency(invoice) == gnc_account_get_currency_or_parent(acc))
+                    {
+                        qof_scan_date (date_posted, &day, &month, &year);
+                        p_date = gnc_dmy2time64 (day, month, year);
+                        qof_scan_date (due_date, &day, &month, &year);
+                        d_date = gnc_dmy2time64 (day, month, year);
+                        gncInvoicePostToAccount (invoice, acc, p_date, d_date,
+                                             memo_posted,
+                                             text2bool (accumulatesplits),
+                                             auto_pay);
+                        PWARN("Invoice %s posted",id);
+                         g_string_append_printf (info, _("Invoice %s posted.\n"),id);
                     }
-                    else
+                    else // No match! Don't post it.
                     {
-                        PWARN("Cannot post invoice %s because account name \"%s\" is invalid!",id,account_posted);
-                        g_string_append_printf (info,_("Cannot post invoice %s because account name \"%s\" is invalid!\n"),id,account_posted);
+                        PWARN("Invoice %s NOT posted because currencies don't match", id);
+                        g_string_append_printf (info,_("Invoice %s NOT posted because currencies don't match.\n"), id);
                     }
                 }
                 else

commit 94a4d7620e82f1d98a5f7f479bfd14d38f9bd0ab
Author: Rob Laan <rob.laan at chello.nl>
Date:   Sun Feb 10 17:05:13 2019 +0100

    Fix bug 79702 Import Bills & Invoices: expense/income account is not validated - leads to one-sided posting if account is invalid

diff --git a/gnucash/import-export/bi-import/dialog-bi-import.c b/gnucash/import-export/bi-import/dialog-bi-import.c
index 7dbfae929..bb791a92c 100644
--- a/gnucash/import-export/bi-import/dialog-bi-import.c
+++ b/gnucash/import-export/bi-import/dialog-bi-import.c
@@ -230,8 +230,9 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
     GtkTreeIter iter, first_row_of_invoice;
     gboolean valid, row_fixed, on_first_row_of_invoice, ignore_invoice;
     gchar *id = NULL, *date_opened = NULL, *date_posted = NULL, *due_date = NULL,
-        *owner_id = NULL, *date = NULL, *quantity = NULL, *price = NULL;
+        *owner_id = NULL, *date = NULL, *account = NULL, *quantity = NULL, *price = NULL;
     GString *running_id;
+    Account *acc = NULL;
     guint dummy;
     gint row = 1, fixed_for_invoice = 0;
     const gchar* date_format_string = qof_date_format_get_string (qof_date_format_get()); // Get the user set date format string
@@ -267,6 +268,7 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
                             DUE_DATE, &due_date,
                             OWNER_ID, &owner_id,
                             DATE, &date,
+                            ACCOUNT, &account,
                             QUANTITY, &quantity, PRICE, &price, -1);
         
         //  If this is a row for a new invoice id, validate header values.
@@ -368,6 +370,20 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
                                     row, id);
         }
 
+        // Validate the account
+        if (!ignore_invoice)
+        {
+            acc = gnc_account_lookup_for_register (gnc_get_current_root_account (),
+                                                   account);
+            if (acc == NULL)
+            {
+                ignore_invoice = TRUE;
+                g_string_append_printf (info,
+                                        _("Row %d: invoice %s ignored, account %s does not exist.\n"),
+                                        row, id,account);
+            }
+        }
+        
         // Fix item data.
         if (!ignore_invoice)
         {
@@ -428,6 +444,7 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
         g_free (due_date);
         g_free (owner_id);
         g_free (date);
+        g_free (account);
         g_free (quantity);
         g_free (price);
 

commit 91f68e94641ed8545184d5ef7ac7128dc9c07818
Author: Rob Laan <rob.laan at chello.nl>
Date:   Sun Feb 10 16:55:10 2019 +0100

    Fix bug 796986 Import Bills & Invoices: in case of invalid posting date in import file, invoice is posted with unexpected date

diff --git a/gnucash/import-export/bi-import/dialog-bi-import.c b/gnucash/import-export/bi-import/dialog-bi-import.c
index a65dfe585..7dbfae929 100644
--- a/gnucash/import-export/bi-import/dialog-bi-import.c
+++ b/gnucash/import-export/bi-import/dialog-bi-import.c
@@ -321,6 +321,28 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
                 }
             }
             
+            if (!ignore_invoice && strlen(date_posted) != 0)
+            {
+                // Validate the date posted.
+                if (!isDateValid(date_posted))
+                {
+                    // Invalid date posted in first row of invoice, ignore the invoice
+                    ignore_invoice = TRUE;
+                    g_string_append_printf (info,
+                                            _("Row %d: invoice %s ignored, %s is not a valid posting date.\n"),
+                                            row, id, date_posted);
+                }
+                
+                // Verify the due date.
+                if (!ignore_invoice && !isDateValid(due_date))
+                {
+                    // Fix this by using the date posted.
+                    gtk_list_store_set (store, &iter, DUE_DATE,
+                                        date_posted, -1);
+                    row_fixed = TRUE;
+                }
+            }
+            
             // Verify the date opened.
             if(!ignore_invoice && !isDateValid(date_opened))
             {
@@ -334,7 +356,6 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
                                     temp, -1);
                 row_fixed = TRUE;
             }
-
         }
         
         // Validate the price.
@@ -404,6 +425,7 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
         g_free (id);
         g_free (date_opened);
         g_free (date_posted);
+        g_free (due_date);
         g_free (owner_id);
         g_free (date);
         g_free (quantity);
@@ -726,14 +748,6 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
                 // Only auto-post if there's a single currency involved
                 if(curr_count == 0)
                 {
-                    p_date = gnc_dmy2time64 (day, month, year);
-                    // Check for the return value of qof_scan_date
-                    if(qof_scan_date (due_date, &day, &month, &year)) // obtains the due date, or leaves it at date_posted
-                    {	
-                        d_date = gnc_dmy2time64 (day, month, year);
-                    }
-                    else
-                        d_date = p_date;
                     acc = gnc_account_lookup_for_register
                           (gnc_get_current_root_account (), account_posted);
                     if(acc != NULL) // Is the account real?
@@ -741,6 +755,10 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
                         // Check if the currencies match
                         if(gncInvoiceGetCurrency(invoice) == gnc_account_get_currency_or_parent(acc))
                         {
+                            qof_scan_date (date_posted, &day, &month, &year);
+                            p_date = gnc_dmy2time64 (day, month, year);
+                            qof_scan_date (due_date, &day, &month, &year);
+                            d_date = gnc_dmy2time64 (day, month, year);
                             gncInvoicePostToAccount (invoice, acc, p_date, d_date,
                                                  memo_posted,
                                                  text2bool (accumulatesplits),

commit ffd92534cc7353113bc3fe969a4cb6c31d154867
Author: Rob Laan <rob.laan at chello.nl>
Date:   Sun Feb 10 16:39:12 2019 +0100

    Import Bills & Invoices: in case of error on import row, ignore full invoice instead of just that row
    
    Prevents invoices and bills with incorrect total values.
    Considerably simplifies follow up for the user, after an import with error data rows.

diff --git a/gnucash/import-export/bi-import/dialog-bi-import.c b/gnucash/import-export/bi-import/dialog-bi-import.c
index 8732160bd..a65dfe585 100644
--- a/gnucash/import-export/bi-import/dialog-bi-import.c
+++ b/gnucash/import-export/bi-import/dialog-bi-import.c
@@ -222,18 +222,18 @@ gnc_bi_import_read_file (const gchar * filename, const gchar * parser_regexp,
 //! * corrects ambiguous values in multi line invoices
 //! * ensures customer exists
 //! * if quantity is unset, set to 1
-//! * if price is unset, delete row
+//! * if price is unset, delete row.
 void
 gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
                        GString * info, gchar *type)
 {
-    GtkTreeIter iter;
-    gboolean valid, row_deleted, row_fixed, on_first_row_of_invoice;
+    GtkTreeIter iter, first_row_of_invoice;
+    gboolean valid, row_fixed, on_first_row_of_invoice, ignore_invoice;
     gchar *id = NULL, *date_opened = NULL, *date_posted = NULL, *due_date = NULL,
         *owner_id = NULL, *date = NULL, *quantity = NULL, *price = NULL;
     GString *running_id;
     guint dummy;
-    gint row = 1;
+    gint row = 1, fixed_for_invoice = 0;
     const gchar* date_format_string = qof_date_format_get_string (qof_date_format_get()); // Get the user set date format string
 
 
@@ -251,12 +251,12 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
     
     // Init control variables
     running_id = g_string_new("");
+    ignore_invoice = FALSE;
     on_first_row_of_invoice = TRUE;
 
     valid = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (store), &iter);
     while (valid)
     {
-        row_deleted = FALSE;
         row_fixed = FALSE;
 
         // Walk through the list, reading each row
@@ -273,27 +273,27 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
         if (on_first_row_of_invoice)
         {
             g_string_assign (running_id, id);
+            first_row_of_invoice = iter;
             
             // Validate the invoice id.
             if (strlen (id) == 0)
             {
-                valid = gtk_list_store_remove (store, &iter);
-                row_deleted = TRUE;
+                // The id in the first row of an invoice is blank, ignore the invoice
+                ignore_invoice = TRUE;
                 g_string_append_printf (info,
-                                        _("ROW %d DELETED, ID_NOT_SET\n"), row);
+                                        _("Row %d: invoice ignored, invoice ID not set.\n"), row);
             }
 
             // Validate customer or vendor.
-            if (!row_deleted && strlen (owner_id) == 0)
+            if (!ignore_invoice && strlen (owner_id) == 0)
             {
-                valid = gtk_list_store_remove (store, &iter);
-                row_deleted = TRUE;
+                ignore_invoice = TRUE;
                 g_string_append_printf (info,
-                                        _("ROW %d DELETED, OWNER_NOT_SET: id=%s\n"),
+                                        _("Row %d: invoice %s ignored, owner not set.\n"),
                                         row, id);
             }
             // Verify that customer or vendor exists.
-            if (!row_deleted)
+            if (!ignore_invoice)
             {
                 if (g_ascii_strcasecmp (type, "BILL") == 0)
                 {
@@ -301,11 +301,10 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
                         (gnc_get_current_book (), owner_id))
                     {
                         // Vendor not found.
-                        valid = gtk_list_store_remove (store, &iter);
-                        row_deleted = TRUE;
+                        ignore_invoice = TRUE;
                         g_string_append_printf (info,
-                                                _("ROW %d DELETED, VENDOR_DOES_NOT_EXIST: id=%s\n"),
-                                                row, id);
+                                                _("Row %d: invoice %s ignored, vendor %s does not exist.\n"),
+                                                row, id, owner_id);
                     }
                 }
                 else if (g_ascii_strcasecmp (type, "INVOICE") == 0)
@@ -314,17 +313,16 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
                         (gnc_get_current_book (), owner_id))
                     {
                         // Customer not found.
-                        valid = gtk_list_store_remove (store, &iter);
-                        row_deleted = TRUE;
+                        ignore_invoice = TRUE;
                         g_string_append_printf (info,
-                                                _("ROW %d DELETED, CUSTOMER_DOES_NOT_EXIST: id=%s\n"),
-                                                row, id);
+                                                _("Row %d: invoice %s ignored, customer %s does not exist.\n"),
+                                                row, id, owner_id);
                     }
                 }
             }
             
             // Verify the date opened.
-            if(!row_deleted && !isDateValid(date_opened))
+            if(!ignore_invoice && !isDateValid(date_opened))
             {
                 // Fix this by using the current date.
                 gchar temp[20];
@@ -339,40 +337,54 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
 
         }
         
-        // Validate and fix item data.
-        if (!row_deleted)
+        // Validate the price.
+        if (strlen (price) == 0)
+        {
+            // No valid price, delete the row
+            ignore_invoice = TRUE;
+            g_string_append_printf (info,
+                                    _("Row %d: invoice %s ignored, price not set.\n"),
+                                    row, id);
+        }
+
+        // Fix item data.
+        if (!ignore_invoice)
         {
-            // Validate the price.
-            if (strlen (price) == 0)
-            {
-                // No valid price, delete the row
-                valid = gtk_list_store_remove (store, &iter);
-                row_deleted = TRUE;
-                g_string_append_printf (info,
-                                        _("ROW %d DELETED, PRICE_NOT_SET: id=%s\n"),
-                                        row, id);
-            }
             
             // Verify the quantity.
-            if (!row_deleted && strlen (quantity) == 0)
+            if (strlen (quantity) == 0)
             {
                 // The quantity is not set, default to 1.
                 gtk_list_store_set (store, &iter, QUANTITY, "1", -1);
                 row_fixed = TRUE;
             }
         }
-
-        if (row_deleted)
+        if (row_fixed) ++fixed_for_invoice;
+        
+        // Move to the next row, skipping all rows of the current invoice if it has a row with an error.
+        if (ignore_invoice)
         {
-            (*deleted)++;
+            // Skip all rows of the current invoice.
+            // Get the next row and its id.
+            iter = first_row_of_invoice;
+            while (valid && g_strcmp0 (id, running_id->str) == 0)
+            {
+                (*deleted)++;
+                valid = gtk_list_store_remove (store, &iter);
+                if (valid) gtk_tree_model_get (GTK_TREE_MODEL (store), &iter, ID, &id, -1);
+            }
+            // Fixes for ignored invoices don't count in the statistics.
+            fixed_for_invoice = 0;
+            
+            ignore_invoice = FALSE;
         }
-        else if (row_fixed)
-            (*fixed)++;
-
-        if (!row_deleted)
+        else
+        {
+            // Get the next row and its id.
             valid = gtk_tree_model_iter_next (GTK_TREE_MODEL (store), &iter);
-        if (valid) gtk_tree_model_get (GTK_TREE_MODEL (store), &iter, ID, &id, -1);
-
+            if (valid) gtk_tree_model_get (GTK_TREE_MODEL (store), &iter, ID, &id, -1);
+        }
+        
         // If the id of the next row is blank, it takes the id of the previous row.
         if (valid && strlen(id) == 0)
         {
@@ -384,14 +396,10 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
         if (!valid || (valid && g_strcmp0 (id, running_id->str) != 0))
         {
             on_first_row_of_invoice = TRUE;
+            (*fixed) += fixed_for_invoice;
+            fixed_for_invoice = 0;
         }
-        else
-        {
-            // The next row has the same id, so it is not the first row of an invoice.
-            // But if the first row of an invoice was deleted, the next row is again the first row of the invoice.
-            if (!(row_deleted && on_first_row_of_invoice))
-                on_first_row_of_invoice = FALSE;
-        }
+        else on_first_row_of_invoice = FALSE;
 
         g_free (id);
         g_free (date_opened);
@@ -403,15 +411,10 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
 
         row++;
     }
-
-    if (info && (info->len > 0))
-    {
-        g_string_prepend (info, "\n\n");
-        g_string_prepend (info, _("These rows were deleted:"));
-    }
     
     // Deallocate strings.
     g_string_free (running_id, TRUE);
+
 }
 
 
@@ -539,7 +542,6 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
                                       gnc_search_customer_on_id (book, owner_id));
             gncInvoiceSetOwner (invoice, owner);
             gncInvoiceSetCurrency (invoice, gncOwnerGetCurrency (owner));	// Set the invoice currency based on the owner
-
             qof_scan_date (date_opened, &day, &month, &year);
             gncInvoiceSetDateOpened (invoice,
                                      gnc_dmy2time64 (day, month, year));

commit 31f234041070db81845501e20dbde35193dce921
Author: Rob Laan <rob.laan at chello.nl>
Date:   Sun Feb 10 12:01:59 2019 +0100

    Fix bug 796987 Import Bills & Invoices: fixing import items only works in special case
    
    Removed dependencies of data field values on previous data rows.
    The import takes the header data for an invoice from the first data row, so passing header data to subsequent rows is not useful.
    And the previous functionality worked only if the id of the current row was blank, which further limited its usefulness.
    
    Import Bills & Invoices: validate header fields only for the first data row of an invoice
    
    As the function takes the header data from the first data row of an invoice,
    it is not necessary to validate the header data in subsequent rows.

diff --git a/gnucash/import-export/bi-import/dialog-bi-import.c b/gnucash/import-export/bi-import/dialog-bi-import.c
index 399e34266..8732160bd 100644
--- a/gnucash/import-export/bi-import/dialog-bi-import.c
+++ b/gnucash/import-export/bi-import/dialog-bi-import.c
@@ -228,10 +228,10 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
                        GString * info, gchar *type)
 {
     GtkTreeIter iter;
-    gboolean valid, row_deleted, row_fixed;
+    gboolean valid, row_deleted, row_fixed, on_first_row_of_invoice;
     gchar *id = NULL, *date_opened = NULL, *date_posted = NULL, *due_date = NULL,
         *owner_id = NULL, *date = NULL, *quantity = NULL, *price = NULL;
-    GString *prev_id, *prev_date_opened, *prev_date_posted, *prev_owner_id, *prev_date;	// needed to fix multi line invoices
+    GString *running_id;
     guint dummy;
     gint row = 1;
     const gchar* date_format_string = qof_date_format_get_string (qof_date_format_get()); // Get the user set date format string
@@ -248,13 +248,10 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
 
     *fixed = 0;
     *deleted = 0;
-
-    // init strings
-    prev_id = g_string_new ("");
-    prev_date_opened = g_string_new ("");
-    prev_date_posted = g_string_new ("");
-    prev_owner_id = g_string_new ("");
-    prev_date = g_string_new ("");
+    
+    // Init control variables
+    running_id = g_string_new("");
+    on_first_row_of_invoice = TRUE;
 
     valid = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (store), &iter);
     while (valid)
@@ -271,184 +268,129 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
                             OWNER_ID, &owner_id,
                             DATE, &date,
                             QUANTITY, &quantity, PRICE, &price, -1);
-
-        if (strlen (price) == 0)
-        {
-            // invalid row (no price given)
-            // no fix possible -> delete row
-            valid = gtk_list_store_remove (store, &iter);
-            row_deleted = TRUE;
-            g_string_append_printf (info,
-                                    _("ROW %d DELETED, PRICE_NOT_SET: id=%s\n"),
-                                    row, id);
-        }
-        // TODO: QTY get set to 1 later if field is empty.  Delete this section?
-        else if (strlen (quantity) == 0)
+        
+        //  If this is a row for a new invoice id, validate header values.
+        if (on_first_row_of_invoice)
         {
-            // invalid row (no quantity given)
-            // no fix possible -> delete row
-            valid = gtk_list_store_remove (store, &iter);
-            row_deleted = TRUE;
-            g_string_append_printf (info, _("ROW %d DELETED, QTY_NOT_SET: id=%s\n"),
-                                    row, id);
-        }
-        else
-        {   // TODO: If id is empty get the next one in the series.  Bug 731105
+            g_string_assign (running_id, id);
+            
+            // Validate the invoice id.
             if (strlen (id) == 0)
             {
-                // no invoice id specified
-                if (prev_id->len == 0)
-                {
-                    // cannot fix -> delete row
-                    valid = gtk_list_store_remove (store, &iter);
-                    row_deleted = TRUE;
-                    g_string_append_printf (info,
-                                            _("ROW %d DELETED, ID_NOT_SET\n"), row);
-                }
-                else
-                {
-                    // this is a fixable multi line invoice
-                    gtk_list_store_set (store, &iter, ID, prev_id->str, -1);
-                    row_fixed = TRUE;
-                }
-            }
-            else
-            {
-                // remember invoice id (to be able to fix multi line invoices)
-                g_string_assign (prev_id, id);
-                // new invoice => reset all other fixable entries
-                g_string_assign (prev_date_opened, "");
-                g_string_assign (prev_date_posted, "");
-                g_string_assign (prev_owner_id, "");
-                g_string_assign (prev_date, "");
+                valid = gtk_list_store_remove (store, &iter);
+                row_deleted = TRUE;
+                g_string_append_printf (info,
+                                        _("ROW %d DELETED, ID_NOT_SET\n"), row);
             }
-        }
-
-        if (!row_deleted)
-        {
-            // the row is valid (price and id are valid)
 
-            if(!isDateValid(date_opened))
+            // Validate customer or vendor.
+            if (!row_deleted && strlen (owner_id) == 0)
             {
-                if (prev_date_opened->len == 0)
-                {
-                    // fix this by using the current date
-                    gchar temp[20];
-                    GDate date;
-                    g_date_clear (&date, 1);
-                    gnc_gdate_set_today (&date);
-                    g_date_strftime (temp, 20, date_format_string, &date);	// Create a user specified date string.
-                    g_string_assign (prev_date_opened, temp);
-                }
-                // fix this by using the previous date_opened value (multi line invoice)
-                gtk_list_store_set (store, &iter, DATE_OPENED,
-                                    prev_date_opened->str, -1);
-                row_fixed = TRUE;
+                valid = gtk_list_store_remove (store, &iter);
+                row_deleted = TRUE;
+                g_string_append_printf (info,
+                                        _("ROW %d DELETED, OWNER_NOT_SET: id=%s\n"),
+                                        row, id);
             }
-            else
+            // Verify that customer or vendor exists.
+            if (!row_deleted)
             {
-                // remember date_opened (to be able to fix multi line invoices)
-                g_string_assign (prev_date_opened, date_opened);
-            }
-
-            // date_opened is valid
-
-             if(!isDateValid(date_posted))
-             {
-                if (prev_date_posted->len == 0)
+                if (g_ascii_strcasecmp (type, "BILL") == 0)
                 {
-                    // this invoice will have to get posted manually
+                    if (!gnc_search_vendor_on_id
+                        (gnc_get_current_book (), owner_id))
+                    {
+                        // Vendor not found.
+                        valid = gtk_list_store_remove (store, &iter);
+                        row_deleted = TRUE;
+                        g_string_append_printf (info,
+                                                _("ROW %d DELETED, VENDOR_DOES_NOT_EXIST: id=%s\n"),
+                                                row, id);
+                    }
                 }
-                else
+                else if (g_ascii_strcasecmp (type, "INVOICE") == 0)
                 {
-                    // multi line invoice => fix it
-                    gtk_list_store_set (store, &iter, DATE_POSTED,
-                                        prev_date_posted->str, -1);
-                    row_fixed = TRUE;
+                    if (!gnc_search_customer_on_id
+                        (gnc_get_current_book (), owner_id))
+                    {
+                        // Customer not found.
+                        valid = gtk_list_store_remove (store, &iter);
+                        row_deleted = TRUE;
+                        g_string_append_printf (info,
+                                                _("ROW %d DELETED, CUSTOMER_DOES_NOT_EXIST: id=%s\n"),
+                                                row, id);
+                    }
                 }
             }
-            else
+            
+            // Verify the date opened.
+            if(!row_deleted && !isDateValid(date_opened))
             {
-                // remember date_opened (to be able to fix multi line invoices)
-                g_string_assign (prev_date_posted, date_posted);
+                // Fix this by using the current date.
+                gchar temp[20];
+                GDate date;
+                g_date_clear (&date, 1);
+                gnc_gdate_set_today (&date);
+                g_date_strftime (temp, 20, date_format_string, &date);    // Create a user specified date string.
+                gtk_list_store_set (store, &iter, DATE_OPENED,
+                                    temp, -1);
+                row_fixed = TRUE;
             }
 
-            // date_posted is valid
-            /*
-            // Check if due date is valid.  Set it to date_posted if not valid or missing.
-            if(!isDateValid(due_date))
+        }
+        
+        // Validate and fix item data.
+        if (!row_deleted)
+        {
+            // Validate the price.
+            if (strlen (price) == 0)
             {
-                gtk_list_store_set (store, &iter, DUE_DATE,
-                                        date_posted, -1);
-                row_fixed = TRUE;
-
+                // No valid price, delete the row
+                valid = gtk_list_store_remove (store, &iter);
+                row_deleted = TRUE;
+                g_string_append_printf (info,
+                                        _("ROW %d DELETED, PRICE_NOT_SET: id=%s\n"),
+                                        row, id);
             }
-
-            // due_date is valid
-            */
-            if (strlen (quantity) == 0)
+            
+            // Verify the quantity.
+            if (!row_deleted && strlen (quantity) == 0)
             {
-                // quantity is unset => set to 1
+                // The quantity is not set, default to 1.
                 gtk_list_store_set (store, &iter, QUANTITY, "1", -1);
                 row_fixed = TRUE;
             }
+        }
 
+        if (row_deleted)
+        {
+            (*deleted)++;
+        }
+        else if (row_fixed)
+            (*fixed)++;
 
-            // quantity is valid
-
-            if (strlen (owner_id) == 0)
-            {
-                if (prev_owner_id->len == 0)
-                {
-                    // no customer given and not fixable => delete row
-                    valid = gtk_list_store_remove (store, &iter);
-                    row_deleted = TRUE;
-                    g_string_append_printf (info,
-                                            _("ROW %d DELETED, OWNER_NOT_SET: id=%s\n"),
-                                            row, id);
-                }
-                else
-                {
-                    gtk_list_store_set (store, &iter, owner_id,
-                                        prev_owner_id->str, -1);
-                    row_fixed = TRUE;
-                }
-            }
-            else
-            {
-                // remember owner_id
-                g_string_assign (prev_owner_id, owner_id);
-            }
-            if (g_ascii_strcasecmp (type, "BILL") == 0)
-            {
-                // BILL: check, if vendor exists
-                if (!gnc_search_vendor_on_id
-                        (gnc_get_current_book (), prev_owner_id->str))
-                {
-                    // vendor not found => delete row
-                    valid = gtk_list_store_remove (store, &iter);
-                    row_deleted = TRUE;
-                    g_string_append_printf (info,
-                                            _("ROW %d DELETED, VENDOR_DOES_NOT_EXIST: id=%s\n"),
-                                            row, id);
-                }
-            }
-            else if (g_ascii_strcasecmp (type, "INVOICE") == 0)
-            {
-                // INVOICE: check, if customer exists
-                if (!gnc_search_customer_on_id
-                        (gnc_get_current_book (), prev_owner_id->str))
-                {
-                    // customer not found => delete row
-                    valid = gtk_list_store_remove (store, &iter);
-                    row_deleted = TRUE;
-                    g_string_append_printf (info,
-                                            _("ROW %d DELETED, CUSTOMER_DOES_NOT_EXIST: id=%s\n"),
-                                            row, id);
-                }
-            }
+        if (!row_deleted)
+            valid = gtk_tree_model_iter_next (GTK_TREE_MODEL (store), &iter);
+        if (valid) gtk_tree_model_get (GTK_TREE_MODEL (store), &iter, ID, &id, -1);
 
-            // owner_id is valid
+        // If the id of the next row is blank, it takes the id of the previous row.
+        if (valid && strlen(id) == 0)
+        {
+            strcpy( id, running_id->str);
+            gtk_list_store_set (store, &iter, ID, id, -1);
+        }
+        
+        // If this row was the last row of the invoice...
+        if (!valid || (valid && g_strcmp0 (id, running_id->str) != 0))
+        {
+            on_first_row_of_invoice = TRUE;
+        }
+        else
+        {
+            // The next row has the same id, so it is not the first row of an invoice.
+            // But if the first row of an invoice was deleted, the next row is again the first row of the invoice.
+            if (!(row_deleted && on_first_row_of_invoice))
+                on_first_row_of_invoice = FALSE;
         }
 
         g_free (id);
@@ -458,37 +400,18 @@ gnc_bi_import_fix_bis (GtkListStore * store, guint * fixed, guint * deleted,
         g_free (date);
         g_free (quantity);
         g_free (price);
-        if (row_deleted)
-        {
-            (*deleted)++;
-            // reset all remembered values
-            g_string_assign (prev_id, "");
-            g_string_assign (prev_date_opened, "");
-            g_string_assign (prev_date_posted, "");
-            g_string_assign (prev_owner_id, "");
-            g_string_assign (prev_date, "");
-        }
-        else if (row_fixed)
-            (*fixed)++;
-
-        if (!row_deleted)
-            valid = gtk_tree_model_iter_next (GTK_TREE_MODEL (store), &iter);
 
         row++;
     }
 
-    // deallocate strings
-    g_string_free (prev_id, TRUE);
-    g_string_free (prev_date_opened, TRUE);
-    g_string_free (prev_date_posted, TRUE);
-    g_string_free (prev_owner_id, TRUE);
-    g_string_free (prev_date, TRUE);
-
     if (info && (info->len > 0))
     {
         g_string_prepend (info, "\n\n");
         g_string_prepend (info, _("These rows were deleted:"));
     }
+    
+    // Deallocate strings.
+    g_string_free (running_id, TRUE);
 }
 
 
@@ -616,18 +539,10 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
                                       gnc_search_customer_on_id (book, owner_id));
             gncInvoiceSetOwner (invoice, owner);
             gncInvoiceSetCurrency (invoice, gncOwnerGetCurrency (owner));	// Set the invoice currency based on the owner
-            if (strlen (date_opened) != 0)	// If a date is specified in CSV
-            {
-                // FIXME: Must check for the return value of qof_scan_date!
-                qof_scan_date (date_opened, &day, &month, &year);
-                gncInvoiceSetDateOpened (invoice,
-                                         gnc_dmy2time64 (day, month, year));
-            }
-            else			// If no date in CSV
-            {
-                time64 now = gnc_time (NULL);
-                gncInvoiceSetDateOpened (invoice, now);
-            }
+
+            qof_scan_date (date_opened, &day, &month, &year);
+            gncInvoiceSetDateOpened (invoice,
+                                     gnc_dmy2time64 (day, month, year));
             gncInvoiceSetBillingID (invoice, billing_id ? billing_id : "");
             notes = un_escape(notes);
             gncInvoiceSetNotes (invoice, notes ? notes : "");

commit eab9f19beff5da7e635406caa2d6f9bb936dc6c5
Author: Rob Laan <rob.laan at chello.nl>
Date:   Sun Jan 20 18:56:18 2019 +0100

    Import Bills & Invoices: get header data consistently from the first row of an invoice/bill
    
    Previously, the posting data would be from the last row of an invoice, other header data from the first row.

diff --git a/gnucash/import-export/bi-import/dialog-bi-import.c b/gnucash/import-export/bi-import/dialog-bi-import.c
index 3ecb42e80..399e34266 100644
--- a/gnucash/import-export/bi-import/dialog-bi-import.c
+++ b/gnucash/import-export/bi-import/dialog-bi-import.c
@@ -507,8 +507,8 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
                           gchar * type, gchar * open_mode, GString * info,
                           GtkWindow *parent)
 {
-    gboolean valid;
-    GtkTreeIter iter;
+    gboolean valid, on_first_row_of_invoice;
+    GtkTreeIter iter, first_row_of_invoice;
     gchar *id = NULL, *date_opened = NULL, *owner_id = NULL, *billing_id = NULL, *notes = NULL;
     gchar *date = NULL, *desc = NULL, *action = NULL, *account = NULL, *quantity = NULL,
           *price = NULL, *disc_type = NULL, *disc_how = NULL, *discount = NULL, *taxable = NULL,
@@ -526,9 +526,9 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
     GtkWidget *dialog;
     time64 today;
     InvoiceWindow *iw;
-    gchar *new_id = NULL;
     gint64 denom = 0;
     gnc_commodity *currency;
+    GString *running_id;
 
     // these arguments are needed
     g_return_if_fail (store && book);
@@ -546,7 +546,9 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
 
     invoice = NULL;
     update = NO;
-
+    on_first_row_of_invoice = TRUE;
+    running_id = g_string_new("");
+    
     valid = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (store), &iter);
     while (valid)
     {
@@ -582,6 +584,13 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
         // no predefined invoice number is a new invoice that's in need of a new number.
         // This was  not designed to satisfy the need for repeat invoices however, so maybe we need a another method for this, after all
         // It should be easier to copy an invoice with a new ID than to go through all this malarky.
+        
+        if (on_first_row_of_invoice)
+        {
+            g_string_assign(running_id, id);
+            first_row_of_invoice = iter;
+        }
+        
         if (g_ascii_strcasecmp (type, "BILL") == 0)
             invoice = gnc_search_bill_on_id (book, id);
         else if (g_ascii_strcasecmp (type, "INVOICE") == 0)
@@ -757,14 +766,27 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
         gncEntryCommitEdit(entry);
         valid = gtk_tree_model_iter_next (GTK_TREE_MODEL (store), &iter);
         // handle auto posting of invoices
-        
-        new_id = NULL;
        
         if (valid)
-            gtk_tree_model_get (GTK_TREE_MODEL (store), &iter, ID, &new_id, -1);
-        if (g_strcmp0 (id, new_id) != 0)
+            gtk_tree_model_get (GTK_TREE_MODEL (store), &iter, ID, &id, -1);
+        else
+            id = NULL;
+        
+        if (g_strcmp0 (id, running_id->str) == 0) // The next row is for the same invoice.
         {
-            // the next invoice id is different => try to autopost this invoice
+            on_first_row_of_invoice = FALSE;
+        }
+        else // The next row is for a new invoice; try to post the invoice.
+        {
+            // Use posting values from the first row of this invoice.
+            gtk_tree_model_get (GTK_TREE_MODEL (store), &first_row_of_invoice,
+                                ID, &id,
+                                DATE_POSTED, &date_posted,
+                                DUE_DATE, &due_date,
+                                ACCOUNT_POSTED, &account_posted,
+                                MEMO_POSTED, &memo_posted,
+                                ACCU_SPLITS, &accumulatesplits, -1);
+
             if (strlen(date_posted) != 0)
             {
                 // autopost this invoice
@@ -832,20 +854,21 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
             {
                 PWARN("Invoice %s is NOT marked for posting",id);
             }
+        
+            // open new bill / invoice in a tab, if requested
+            if (g_ascii_strcasecmp(open_mode, "ALL") == 0
+                    || (g_ascii_strcasecmp(open_mode, "NOT_POSTED") == 0
+                        && strlen(date_posted) == 0))
+            {
+                iw =  gnc_ui_invoice_edit (parent, invoice);
+                gnc_plugin_page_invoice_new (iw);
+            }
+            
+            // The next row will be for a new invoice.
+            on_first_row_of_invoice = TRUE;
         }
-        // open new bill / invoice in a tab, if requested
-        if (g_ascii_strcasecmp(open_mode, "ALL") == 0
-                || (g_ascii_strcasecmp(open_mode, "NOT_POSTED") == 0
-                    && strlen(date_posted) == 0))
-        {
-            iw =  gnc_ui_invoice_edit (parent, invoice);
-            gnc_plugin_page_invoice_new (iw);
-        }
-
-
     }
     // cleanup
-    g_free (new_id);
     g_free (id);
     g_free (date_opened);
     g_free (owner_id);
@@ -869,7 +892,7 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
     g_free (memo_posted);
     g_free (accumulatesplits);
     
-
+    g_string_free (running_id, TRUE);
 }
 
 /* Change any escaped quotes ("") to (")

commit 57a554d606b7893f96ae7f15d8da15e08726ac05
Author: Rob Laan <rob.laan at chello.nl>
Date:   Sun Jan 20 16:56:01 2019 +0100

    Fix bug 797024 Import Bills & Invoices: import matches csv data rows with too few separators

diff --git a/gnucash/import-export/bi-import/dialog-bi-import-gui.c b/gnucash/import-export/bi-import/dialog-bi-import-gui.c
index ef35c74cd..66e362f58 100644
--- a/gnucash/import-export/bi-import/dialog-bi-import-gui.c
+++ b/gnucash/import-export/bi-import/dialog-bi-import-gui.c
@@ -124,7 +124,7 @@ gnc_plugin_bi_import_showGUI (GtkWindow *parent)
 
     gui->book = gnc_get_current_book();
 
-    gui->regexp = g_string_new ( "^(\\x{FEFF})?(?<id>[^;]*);(?<date_opened>[^;]*);(?<owner_id>[^;]*);(?<billing_id>[^;]*);?(?<notes>[^;]*);?(?<date>[^;]*);?(?<desc>[^;]*);?(?<action>[^;]*);?(?<account>[^;]*);?(?<quantity>[^;]*);?(?<price>[^;]*);?(?<disc_type>[^;]*);?(?<disc_how>[^;]*);?(?<discount>[^;]*);?(?<taxable>[^;]*);?(?<taxincluded>[^;]*);?(?<tax_table>[^;]*);(?<date_posted>[^;]*);(?<due_date>[^;]*);(?<account_posted>[^;]*);(?<memo_posted>[^;]*);(?<accu_splits>[^;]*)$");
+    gui->regexp = g_string_new ( "^(\\x{FEFF})?(?<id>[^;]*);(?<date_opened>[^;]*);(?<owner_id>[^;]*);(?<billing_id>[^;]*);(?<notes>[^;]*);(?<date>[^;]*);(?<desc>[^;]*);(?<action>[^;]*);(?<account>[^;]*);(?<quantity>[^;]*);(?<price>[^;]*);(?<disc_type>[^;]*);(?<disc_how>[^;]*);(?<discount>[^;]*);(?<taxable>[^;]*);(?<taxincluded>[^;]*);(?<tax_table>[^;]*);(?<date_posted>[^;]*);(?<due_date>[^;]*);(?<account_posted>[^;]*);(?<memo_posted>[^;]*);(?<accu_splits>[^;]*)$");
 
     // create model and bind to view
     gui->store = gtk_list_store_new (N_COLUMNS,
@@ -309,7 +309,7 @@ void gnc_bi_import_gui_option1_cb (GtkWidget *widget, gpointer data)
     BillImportGui *gui = data;
     if (!gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(widget) ))
         return;
-    g_string_assign (gui->regexp, "^(\\x{FEFF})?(?<id>[^;]*);(?<date_opened>[^;]*);(?<owner_id>[^;]*);(?<billing_id>[^;]*);?(?<notes>[^;]*);?(?<date>[^;]*);?(?<desc>[^;]*);?(?<action>[^;]*);?(?<account>[^;]*);?(?<quantity>[^;]*);?(?<price>[^;]*);?(?<disc_type>[^;]*);?(?<disc_how>[^;]*);?(?<discount>[^;]*);?(?<taxable>[^;]*);?(?<taxincluded>[^;]*);?(?<tax_table>[^;]*);(?<date_posted>[^;]*);(?<due_date>[^;]*);(?<account_posted>[^;]*);(?<memo_posted>[^;]*);(?<accu_splits>[^;]*)$");
+    g_string_assign (gui->regexp, "^(\\x{FEFF})?(?<id>[^;]*);(?<date_opened>[^;]*);(?<owner_id>[^;]*);(?<billing_id>[^;]*);(?<notes>[^;]*);(?<date>[^;]*);(?<desc>[^;]*);(?<action>[^;]*);(?<account>[^;]*);(?<quantity>[^;]*);(?<price>[^;]*);(?<disc_type>[^;]*);(?<disc_how>[^;]*);(?<discount>[^;]*);(?<taxable>[^;]*);(?<taxincluded>[^;]*);(?<tax_table>[^;]*);(?<date_posted>[^;]*);(?<due_date>[^;]*);(?<account_posted>[^;]*);(?<memo_posted>[^;]*);(?<accu_splits>[^;]*)$");
     gnc_bi_import_gui_filenameChanged_cb (gui->entryFilename, gui);
 }
 
@@ -319,7 +319,7 @@ void gnc_bi_import_gui_option2_cb (GtkWidget *widget, gpointer data)
     BillImportGui *gui = data;
     if (!gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(widget) ))
         return;
-    g_string_assign (gui->regexp, "^(\\x{FEFF})?(?<id>[^,]*),(?<date_opened>[^,]*),(?<owner_id>[^,]*),(?<billing_id>[^,]*),?(?<notes>[^,]*),?(?<date>[^,]*),?(?<desc>[^,]*),?(?<action>[^,]*),?(?<account>[^,]*),?(?<quantity>[^,]*),?(?<price>[^,]*),?(?<disc_type>[^,]*),?(?<disc_how>[^,]*),?(?<discount>[^,]*),?(?<taxable>[^,]*),?(?<taxincluded>[^,]*),?(?<tax_table>[^,]*),(?<date_posted>[^,]*),(?<due_date>[^,]*),(?<account_posted>[^,]*),(?<memo_posted>[^,]*),(?<accu_splits>[^,]*)$");
+    g_string_assign (gui->regexp, "^(\\x{FEFF})?(?<id>[^,]*),(?<date_opened>[^,]*),(?<owner_id>[^,]*),(?<billing_id>[^,]*),(?<notes>[^,]*),(?<date>[^,]*),(?<desc>[^,]*),(?<action>[^,]*),(?<account>[^,]*),(?<quantity>[^,]*),(?<price>[^,]*),(?<disc_type>[^,]*),(?<disc_how>[^,]*),(?<discount>[^,]*),(?<taxable>[^,]*),(?<taxincluded>[^,]*),(?<tax_table>[^,]*),(?<date_posted>[^,]*),(?<due_date>[^,]*),(?<account_posted>[^,]*),(?<memo_posted>[^,]*),(?<accu_splits>[^,]*)$");
     gnc_bi_import_gui_filenameChanged_cb (gui->entryFilename, gui);
 }
 



Summary of changes:
 CMakeLists.txt                                     |    2 +-
 bindings/business-core.i                           |    3 +
 bindings/python/gnucash_business.py                |    1 +
 data/accounts/he/acctchrt_brokerage.gnucash-xea    |   10 +-
 data/accounts/hr/acctchrt_car.gnucash-xea          |    4 +-
 data/accounts/it/acctchrt_otherloan.gnucash-xea    |    2 +-
 data/accounts/sv_SE/CMakeLists.txt                 |    5 +-
 data/accounts/sv_SE/README.bas_2012                |   15 -
 data/accounts/sv_SE/bas_2012.gnucash-xea           | 6332 --------------------
 data/accounts/sv_SE/bas_2019_k1.gnucash-xea        | 2932 +++++++++
 data/accounts/sv_SE/bas_2019_k2_grund.gnucash-xea  | 5293 ++++++++++++++++
 gnucash/gnome-utils/gnc-keyring.c                  |  220 +-
 gnucash/gnome-utils/gnc-tree-model-account.c       |    9 +-
 gnucash/gnome/gnc-plugin-account-tree.c            |   39 -
 gnucash/gnome/gnc-plugin-budget.c                  |   39 -
 gnucash/gnome/gnc-plugin-page-account-tree.c       |   26 +
 gnucash/gnome/gnc-plugin-page-budget.c             |   27 +
 gnucash/gnome/gnc-plugin-page-invoice.c            |   17 +-
 gnucash/gnome/gnc-plugin-page-owner-tree.c         |   17 +-
 gnucash/gnome/gnc-plugin-page-register.c           |   42 +
 gnucash/gnome/gnc-plugin-page-report.c             |   20 +-
 gnucash/gnome/gnc-plugin-page-sx-list.c            |   17 +-
 gnucash/gnome/gnc-plugin-register.c                |   25 -
 gnucash/gnome/gnc-split-reg.c                      |    8 +
 gnucash/gnome/gnc-split-reg.h                      |    1 +
 .../import-export/bi-import/dialog-bi-import-gui.c |   12 +-
 gnucash/import-export/bi-import/dialog-bi-import.c |  844 +--
 gnucash/import-export/bi-import/dialog-bi-import.h |    3 +-
 gnucash/import-export/import-main-matcher.c        |    2 -
 gnucash/register/register-gnome/gnucash-sheet.c    |   15 +-
 gnucash/register/register-gnome/gnucash-sheet.h    |    2 +
 gnucash/register/register-gnome/gnucash-sheetP.h   |    2 +
 gnucash/report/html-fonts.scm                      |    1 +
 gnucash/report/report-utilities.scm                |   16 +-
 gnucash/report/report.scm                          |    1 +
 gnucash/report/reports/CMakeLists.txt              |    1 +
 gnucash/report/reports/standard/balsheet-pnl.scm   |   42 +-
 gnucash/report/reports/standard/lot-viewer.scm     |  206 +
 gnucash/report/reports/standard/new-aging.scm      |  134 +-
 .../report/reports/standard/new-owner-report.scm   |  625 +-
 .../reports/standard/test/test-owner-report.scm    |    2 +-
 libgnucash/core-utils/binreloc.c                   |   66 +-
 libgnucash/tax/us/txf.scm                          |   56 +-
 po/POTFILES.in                                     |    1 +
 44 files changed, 9689 insertions(+), 7448 deletions(-)
 delete mode 100644 data/accounts/sv_SE/README.bas_2012
 delete mode 100644 data/accounts/sv_SE/bas_2012.gnucash-xea
 create mode 100644 data/accounts/sv_SE/bas_2019_k1.gnucash-xea
 create mode 100644 data/accounts/sv_SE/bas_2019_k2_grund.gnucash-xea
 create mode 100644 gnucash/report/reports/standard/lot-viewer.scm



More information about the gnucash-changes mailing list