Commit Graph

23260 Commits

Author SHA1 Message Date
Christopher Lam
3b312e7548 [report-utilities] more dump data functions
Two API to dump splits in whole book:
* gnc:dump-book             - splits grouped by account
* gnc:dump-all-transactions - splits grouped by transaction
* gnc:dump-split - dumps single split

Example output -- note (gnc:dump-book) dumps each account followed by
its splits, then account balance. (gnc:dump-all-transactions) dumps all
transactions in date order, each followed by its splits.

(gnc:dump-book)

Account 8e56ef54: <Expense> Comm<USD> Type<Expense>
n Split 5dd1c0a9: 05/11/19 Amt<$200.00> $200.00 Desc<vend1> Memo<AP>
n Split f9cb052f: 05/11/19 Amt<$20.00> $20.00 Desc<emp1> Memo<vouch1>
n Split daafc64b: 05/11/19 Amt<$69.00> $69.00 Desc<vend1> Memo<job-bill>
n Split 5e6af9fe: 14/11/19 Amt<$86.00> $86.00 Desc<emp1> Memo<emp-voucher>
n Split 6d636ea2: 14/11/19 Amt<$46.00> $46.00 Desc<vend1>
n Split e618644b: 14/12/19 Amt<-$100.00> -$100.00 Desc<Vend-USD>
n Split 8be19fbd: 25/12/19 Amt<-$46.00> -$46.00 Desc<Vend-USD> Memo<CN$100-desc>
n Split ee4fe250: 01/04/20 Amt<$32.00> $32.00 Desc<Cell phone>
n Split 2cb02dac: 09/05/20 Amt<-$307.00> -$307.00
         Balance: $0.00 Cleared: $0.00 Reconciled: $0.00

Account 6f39f557: <Closing> Comm<USD> Type<Equity>
n Split 13916652: 09/05/20 Amt<$307.00> $307.00
         Balance: $307.00 Cleared: $0.00 Reconciled: $0.00

Account fa6507e1: <Closing:GBP> Comm<GBP> Type<Equity>
n Split 34ce3c03: 09/05/20 Amt<-£1,293.00> -£1,293.00
         Balance: -£1,293.00 Cleared: £0.00 Reconciled: £0.00

(gnc:dump-all-transactions)

  Trans cfbbc2a4: 12/07/19 Curr GBP  Desc<Customer-GBP>
n Split d12f74b2: 12/07/19 Acc<AR-GBP> Amt<£120.00> £120.00 Desc<Customer-GBP> Memo<due 91+>
n Split 3880e99c: 12/07/19 Acc<Standard Sales> Amt<-£20.00> -£20.00 Desc<Customer-GBP> Memo<due 91+>
n Split 6bd9c7e4: 12/07/19 Acc<Income-GBP> Amt<-£100.00> -£100.00 Desc<Customer-GBP> Memo<due 91+>

  Trans 60344bab: 09/10/19 Curr GBP  Desc<Customer-GBP>
n Split aaca8ee0: 09/10/19 Acc<AR-GBP> Amt<£225.00> £225.00 Desc<Customer-GBP> Memo<due 2-3 months ago>
n Split ee49bde8: 09/10/19 Acc<Standard Sales> Amt<-£20.00> -£20.00 Desc<Customer-GBP> Memo<due 2-3 months ago>
n Split e989e863: 09/10/19 Acc<Reduced Sales> Amt<-£5.00> -£5.00 Desc<Customer-GBP> Memo<due 2-3 months ago>
n Split 91d6cadd: 09/10/19 Acc<Income-GBP> Amt<-£200.00> -£200.00 Desc<Customer-GBP> Memo<due 2-3 months ago
2020-08-23 21:00:12 +08:00
John Ralls
c210ceb3cb Fix Windows build.
MinGW doesn't implement strsep, use strtok instead.
2020-08-22 12:59:14 -07:00
Christopher Lam
98c8b23351 Merge branch 'maint-797852-bis' into maint #776 2020-08-19 07:19:42 +08:00
Christopher Lam
cbbca47013 [test-engine-extras] Use more efficient gnc:list-flatten 2020-08-19 07:19:38 +08:00
Geert Janssens
ef2db1ed0f Update Dutch glossary 2020-08-18 17:45:52 +02:00
Christopher Lam
2fd2b7bb64 Bug 797852 - Error in Accounts Payable Aging re cut off dates
Finally the proper fix in aging-report.

The aging-report must consider only activity in the report period
specified. If an invoice is paid after the report period, it is
considered unpaid.
2020-08-18 22:27:03 +08:00
Christopher Lam
5bf57260ae [business-urls] link to owner report with enddate 2020-08-18 22:19:46 +08:00
Christopher Lam
17c0c42e0b [dialog-invoice] gnc_business_call_owner_report_with_enddate 2020-08-18 22:19:46 +08:00
Christopher Lam
6c4edf94ce [aging] call owner-report-text with end-date 2020-08-18 22:19:46 +08:00
Christopher Lam
4aafa1752f [new-aging] create owner report with end-date 2020-08-18 22:19:46 +08:00
Christopher Lam
5e0340560a [html-utilities] gnc:owner-report-text can accepts enddate 2020-08-18 22:19:46 +08:00
Christopher Lam
9ec5c86f55 [new-owner-report][api] owner-report-create-with-enddate
similar to owner-report-create, accepts enddate argument
2020-08-18 22:19:46 +08:00
Geert Janssens
809ea8dbf9 Mark Dutch translation as non-TP managed 2020-08-18 15:30:03 +02:00
Geert Janssens
56210de9a2 Rename report option for consistency
In English each word in option and menu names starts with a capital letter.
Also eliminates a redundant translatable string.
2020-08-18 15:28:51 +02:00
triyanwn
03ef88839b L10N🆔 New glossary for Bahasa Indonesia
Indonesian translation for glossary and update to include Bahasa
Indonesia on CMakeLists.txt
PR #775
2020-08-18 08:18:16 +02:00
Frank H. Ellenberger
6deecfd376 Merge branch 'pr_773' into maint 2020-08-18 00:51:55 +02:00
Frank H. Ellenberger
2dd576fa0a I18N:nb: Merge recent pot 2020-08-18 00:47:01 +02:00
John Erling Blad
be7b261fdb L10N: nb: partial updated translation 2020-08-17 18:55:16 +02:00
Christopher Lam
d149042d74 [net-charts] CSV export uses ISO dates
* also add CSV export-error if no export-string
2020-08-17 23:39:06 +08:00
Christopher Lam
3296da001c [category-barchart] add CSV export for table data 2020-08-17 23:39:06 +08:00
Christopher Lam
f8e976e913 [category-barchart] simplify table constructor 2020-08-17 23:39:06 +08:00
Christopher Lam
582ded3996 [price-scatter] compact code, add more interval options
fixes longstanding unreported bug - quarter/halfyear were not being
handled!
2020-08-17 23:38:41 +08:00
John Ralls
6d44d0675e Reduce random transactions and iterations on test-lots.cpp.
No point in generating 320 transactions or running the test 10 times
for a simple does-it-crash test. Do it once with 32 transactions so
it takes less than one second instead of 16.
2020-08-16 16:05:15 -07:00
Hong Xu
f662935990 Etype might have not been initialized when used
It is used here:

    g_strdup_printf (_("Entity type does not match %s: %s"), etype, location);

But previous it might not have been initialized.
2020-08-17 05:24:11 +08:00
John Erling Blad
58bf438ac8 L10N:nb: update glossary for norwegian bokmal
(rebased version of PR #771)
2020-08-16 23:16:19 +02:00
Christopher Lam
f769999ffd [trep-engine] export gnc:lists->csv properly
error 94c61e15f
2020-08-16 22:44:34 +08:00
Christopher Lam
79a273545c [net-charts] export table as CSV
table can be exported
2020-08-16 21:57:59 +08:00
Christopher Lam
94c61e15f3 [trep-engine] export gnc:lists->csv
converts a list of lists to CSV string.
2020-08-16 21:51:07 +08:00
Christopher Lam
088a386dc7 [gnc-plugin-page-register.c] sanity check invoices_from_transaction
prevent segfault if trans is NULL. would crash when deleting a split.
2020-08-16 17:56:00 +08:00
Christopher Lam
00efc1696a [Transaction.c] sanity check xaccTransGetAPARAcctSplitList
prevent segfault if trans is NULL
2020-08-16 17:55:57 +08:00
Christopher Lam
3e0eda4b15 Merge branch 'maint-C-exports' into maint #768 2020-08-16 08:27:30 +08:00
Christopher Lam
3eaeda39fa [gnc-plugin-page-report] handle invalid renderer output
- renderer doesn't return an html-document object
- or, the html-document has no export-string nor export-error
2020-08-16 08:26:48 +08:00
Christopher Lam
21925c18be [gnucash-commands] handle invalid renderer return
- renderer doesn't return an html-document object
- or, the html-document has no export-string nor export-error
2020-08-16 08:25:50 +08:00
Christopher Lam
a237505501 Merge branch 'maint-797852' into maint #760 2020-08-16 08:08:21 +08:00
Giuseppe Foti
c3e1a07f43 L10Nit 5551 messaggi tradotti. 2020-08-15 14:05:08 -07:00
Christopher Lam
68c980baf2 [business-urls] parse enddate=time64-number
enddate=number is parsed if it exists. it is not yet used in
owner-report generation.
2020-08-15 23:14:59 +08:00
Christopher Lam
6d217a7bcf [gnc-plugin-page-report] remove compatibility path 2020-08-15 18:37:38 +08:00
Christopher Lam
469ef58026 [gnucash-commands] remove compatibility path 2020-08-15 18:37:38 +08:00
Christopher Lam
4de646b1c7 [report-core] remove output-file in gnc:cmdline-* fns 2020-08-15 18:37:38 +08:00
Christopher Lam
e84b404b74 [income-gst-statement] deprecate file-name argument in renderer 2020-08-15 18:25:22 +08:00
Christopher Lam
fee142b27a [trep-engine] deprecate #:filename argument in renderer 2020-08-15 18:24:57 +08:00
Christopher Lam
99f2e0db23 [business-urls] macro common code 2020-08-15 16:22:22 +08:00
Christopher Lam
a1d396e11a [business-urls] slightly better url query parsing 2020-08-15 14:33:13 +08:00
Christopher Lam
c5e5bdf8c1 Addendum previous: rename "invoice"->"document" 2020-08-15 13:49:59 +08:00
Christopher Lam
ca6e5528bd Bug 787295 - Allow UI jump from Business accounts to their relevant invoice/bill/voucher 2020-08-15 13:46:47 +08:00
Christopher Lam
aa9602f0ed [gnucash-commands] use export-string/error 2020-08-15 10:54:53 +08:00
Christopher Lam
37c1bd47de [gnc-plugin-page-report] use export-string/error 2020-08-15 10:54:42 +08:00
Christopher Lam
31185c963a [taxtxf_de] set export-string for export-type='csv 2020-08-15 10:54:38 +08:00
Christopher Lam
b0ab79bed7 [taxtxf] set export-string for export-type='csv 2020-08-15 10:54:29 +08:00
Christopher Lam
0891e117c9 [trep-engine] set export-string or export-error for export-type 'csv 2020-08-15 10:53:42 +08:00