Commit Graph

21981 Commits

Author SHA1 Message Date
Daniel Dittmann
5c478713d6 test_gnc_setlocale: add missing whitespaces to diagnostic message 2019-12-30 00:38:09 +01:00
John Ralls
53ed90862c Bug 797536 - cmake errors out because it cannot find GncPkgConfig (cmake 3.5.2) 2019-12-29 12:35:13 -08:00
Christian Stimming
73a673e5b2 Re-apply 67b508ba: Improve translations by scriptedly removing the removed colon suffix.
The trailing colons have been removed in the source e.g.
here 6897f13e ff, but this created a lot of fuzzy translations.
With the po/remove-suffix.sh script, those changes are
adapted in all po files in order to make translators' life
easier.
2019-12-29 10:12:04 +01:00
Christian Stimming
d6d4307ab4 Update recently updated translation files with gnucash.pot template
(to prepare for merging commit 67b508ba)
2019-12-29 10:11:09 +01:00
John Ralls
211c1119f3 Release GnuCash 3.8. 2019-12-28 13:38:13 -08:00
John Ralls
d51b4d7f08 Bug 797532 - Crash/Coredump Lots
Replace the asserts in cap-gains.c with g_return_val_if_fail. There's
nothing about cap-gains.c that justifies crashing the program.
2019-12-28 13:36:11 -08:00
John Ralls
3bab92367a Improve bug-fix detection and reformatting in release-notes script. 2019-12-28 13:35:51 -08:00
Christopher Lam
85058f8278 [stylesheet-css] a user-customisable CSS based stylesheet
New stylesheet. Exposes a single text box for full CSS customisability.
2019-12-28 17:21:45 +07:00
John Ralls
3e3a553163 Latest translations from the Translation Project 2019-12-27 16:54:38 -08:00
Geert Janssens
cd8698321d Bug 797482 - Can't edit date when using Edit Payment function 2019-12-27 18:38:55 +01:00
Geert Janssens
3be7f993ac Allow account selection by typing into the post-to field of the payment window 2019-12-27 18:19:13 +01:00
Geert Janssens
1dc595589e Bug 796530 - [txn csv importer] usability suggestions
Fix account selection by typing in the base account combo box text field
The typing triggered the combobox' changed event. That triggered a repopulation
of the csv data treeview (due to possibly having to unset an account column).
That then in the end retriggered setting the base account. However while typing
in the combo box there may not be a valid account selected in the combo box.
So break this short circuit by testing for a change in the last-known base account
compared to what the combo box believes is the proper account. This last-known
account nore the combo box' internal state will change while typing allowing
proper user input.
2019-12-27 18:19:13 +01:00
Geert Janssens
77ddaf91ab Bug 796530 - [txn csv importer] usability suggestions
Do the same for the price csv importer
2019-12-27 18:19:13 +01:00
Geert Janssens
41b4faf5eb Bug 796530 - [txn csv importer] usability suggestions
Add note to tooltips for 'Save Settings' and 'Delete Settings' regarding
reserved save names
2019-12-27 18:19:13 +01:00
Robert Fewell
9291ad23d6 Take account of some columns in the register having 'Tot' added.
In the journal register and when using auto split some register columns
have 'Tot added to them like 'Tot Debit' depending on where the cursor
is so if you tried to size that column with a double click on the
header it would be based on the short name. This changes fixes that.
2019-12-27 16:08:42 +00:00
Robert Fewell
28718689dc Take account for the pop up button border in the register.
If the pop up button border is specified in CSS, the default size of
the button needs to change so retrieve the border and add it to the
default button size. Also only add the button margin when cells have
the button.
2019-12-27 16:07:46 +00:00
Robert Fewell
ff10aa24f1 Change the date sample so it has the maximum text width possible 2019-12-27 16:06:43 +00:00
Christopher Lam
b7b81699c9 [new-owner-report] bugfix: balance row needs variable linked cols 2019-12-27 07:13:44 +07:00
Christian Stimming
7629a0185e Update German translation.
5311 translated, 52 fuzzy, 43 untranslated.
2019-12-26 18:36:02 +01:00
Christian Stimming
67b508babe Improve translations by scriptedly removing the removed colon suffix.
The trailing colons have been removed in the source e.g.
here 6897f13e ff, but this created a lot of fuzzy translations.
With the po/remove-suffix.sh script, those changes are
adapted in all po files in order to make translators' life
easier.
2019-12-26 18:23:07 +01:00
Christian Stimming
54f06df2a9 Update all translation files with most recent gnucash.pot template
(... to prepare for some scripted message de-fuzzification...)
2019-12-26 18:23:02 +01:00
Christopher Lam
b65863019a [new-owner-report] insert narrow-cell to split LHS and RHS cleanly
add narrow-cell to cleanly delineate LHS owner-report and RHS links.

also fix some detail visibility whereby some columns are switched off
in options.
2019-12-26 22:56:39 +07:00
Christopher Lam
fc69269664 [new-owner-report] improve maintainability - rename vars
1. rename vars to better reflect meaning (num to ref, memo to desc,
value-col to bal-col)
2. reindent
3. final gnc-get-num-action swap to gncInvoiceGetID
2019-12-26 22:55:39 +07:00
Christopher Lam
12705e4fbf Bug 797521 Receivable Aging (beta): prepayments logic doesn't work, appears to use incorrect absolute value logic
Final changes after feedback.

* LHS rows now have rowspan as many as linked rows.
* use gncInvoiceGetID instead of xaccSplitGetMemo
* use gncInvoiceGetType instead of gnc-get-action-num to find txn type
which is unreliable
* swap type/description to reference/type columns
* reuse strings
* URLs generally:

  document -> document-editor

  monetary -> register; all anchors point to non-APAR account. this
  reinforces the view that APAR account is an implementation detail,
  and most invoice posting/payment activity belong in the Transfer
  account.
2019-12-25 23:38:29 +07:00
Christopher Lam
8fb73c7ed1 [gnc-lot.h] amend description for gnc_lot_get_earliest_split
this function doesn't necessarily point to the lot opening split.
2019-12-24 16:43:55 +07:00
Christopher Lam
f583bc6d86 [test-owner-report] amend to test different descriptions 2019-12-24 11:12:12 +07:00
Christopher Lam
5ebbb74435 [new-owner-report] invoice->payments displays lot links
Change of algorithm to display invoice->payments.

Previously: invoice->lot->splitlist; filtered to payments; retrieve
splits->parent->xaccPaymentAcctSplitList This would find payment
splits in originating currency.

But this fails for lot-link txns whose PaymentAcctSplitList is null.

New algorithm:

- invoice->lot->split-list, each lot-split analysed

- TXN-TYPE-PAYMENT lot-splits will query TransferAcct and each will be
rendered in the originating currency, if they haven't been encountered
before in this invoice.

- TXN-TYPE-LINK lot-splits are rendered as a generic 'Offset
Documents' link to lot-link splits. This helps link invoice to the
link transaction to locate the corresponding credit-note. It is not
possible to link to the corresponding credit-note because a
link-transaction can group many invoices to many credit-notes.

Also:

Increase right-hand-side links from 3 to 4 columns. I think it's quite
useful to add 'Credit Note' 'Invoice' 'Payment' as a separate
column.
2019-12-24 10:55:26 +07:00
Robert Fewell
5a7c8eca89 Change Invoice Entries in dialog-invoice.glade
Change 'Invoice Entries' to just 'Entries' which can be used for all
types Invoice, Bills and Vouchers
2019-12-23 16:21:47 +00:00
Geert Janssens
9f1603d3bb Merge branch 'fix_bug_743943' of https://github.com/mauritslamers/gnucash into maint 2019-12-23 13:32:43 +01:00
Maurits Lamers
da42966629 add { NULL, NULL } markers at the end of the arrays and remove translation markers for placeholder texts. 2019-12-23 11:51:17 +01:00
Maurits Lamers
15c7aacb02 I18N: Make capitalization consistent in tooltip texts 2019-12-23 11:51:17 +01:00
Maurits Lamers
48fef49e3b add include to gncInvoice.h to make sure the
GncInvoiceType enum is available
2019-12-23 11:51:17 +01:00
Maurits Lamers
61792d9bd9 Bug #743943 - "Edit->Post Invoice" is ambiguous
Read invoice type and set label and tooltip texts to
the translations of static definitions.
Remove unnecessary list counts.
2019-12-23 11:51:03 +01:00
Christopher Lam
92509761a5 sort-and-delete-duplicates: change < function to ensure dedupe works
sort-and-delete-duplicates require that the < proc can sort elements
properly.

In new-owner-report, previous used split->parent->posted_date for
sorting during call to sort-and-delete-duplicates. This does not
guarantee equal elements will be adjacent. Using xaccSplitOrder
satisfies that guarantee, and splits will be deduped properly.

Also account and commodity comparison functions similarly defined to
have consistent code.

This change will modify the output in some tests (e.g. balsheet-pnl
will now group currencies and commodities together due to
string-comparison using gnc-commodity-get-full-name) which must be
modified.
2019-12-18 06:31:15 +08:00
Robert Fewell
984fe65822 Move the adding of the register state file comment
The adding of the register comment to the state file is at the start
of the gnc_table_save_state function but this only gets added if the
state_section already exists and on first register save it does not so
move it to after the register column widths are added so the
state_section will exist.
2019-12-16 14:54:31 +00:00
Robert Fewell
3d2e2c2348 Allow room for the border on the item_edit button 2019-12-16 14:52:55 +00:00
Robert Fewell
b7f67bb387 Bug 796736 - Register cell pop up columns width to narrow
On first start up, cells with a pop up were initialised with the sample
text plus the cell height. This worked most of the time but with small
fonts the height could be smaller than the minimum button width so the
cell was too small. Add a function to retrieve the button width which
can not be less than the minimum button width and add this to be the
sample text width.

Also when you double clicked on the header of a pop up cell column to
auto size the cell width it did not take into account the button width
and so was too narrow, this is also fixed by getting the button width.
2019-12-16 14:52:48 +00:00
Christopher Lam
75dba61255 Bug 797521 - Receivable Aging (beta): invoice->payments refined
* filter payments from lot's splits by split-is-payment?
* dedupe payments
* sort by payment posted date
2019-12-16 12:55:18 +08:00
Christopher Lam
5e7c295471 Bug 797521 - Receivable Aging (beta): omit duplicate invoices
924fee2f3 redux, unfortunately gncInvoiceGetGUID isn't actually
available from scheme so we use the O(N^2) accumulator instead.
2019-12-16 02:35:58 +08:00
Christopher Lam
924fee2f3e Bug 797521 - Receivable Aging (beta): omit duplicate invoices
When processing payment->invoices, don't show duplicate invoices. This
is an unusual case documented in the bug.

Note: Instead of sort-and-delete-duplicates the invoices, we could
replace the invoice accumulator with the O(N^2) version:

(if (member invoice invoices) invoices (cons invoice invoices))
2019-12-16 02:09:00 +08:00
Christopher Lam
43fab24e2c Bug 797521 - Receivable Aging (beta): include earliest split
When processing invoice->payments, we used gnc-lot-get-earliest-split
to find the lot opening-split to skip it.

However it does not always return the lot opening-split, because a
lot-reducing split may be dated earlier than the lot opening-split.

This change means that the posting-split is processed together with
the payment splits, but its PaymentAcctSplitList is null, so it does
not add any row to the result.
2019-12-16 02:08:19 +08:00
Christopher Lam
7cd6591c77 [new-owner-report] fix args to make-payment->invoices-table
It should receive 1 arg instead of 2.

guile-2.2 allows internal defines to be called with a higher number of
args.  This may be a guile bug.  Follow-up tracking at
https://lists.gnu.org/archive/html/bug-guile/2019-12/msg00011.html

guile-2.0 (IMHO correctly) does not allow this invalid call.
2019-12-15 10:03:05 +08:00
Christopher Lam
a513140e15 [new-owner-report] use gnc-lot API for searching business links
Previous would search invoices->payments and payment->invoices during
the report by analysing each posting and payment txn.

This change will remove the splits searching and use gnc-lot API to
find these links.

* also use ice-9 match for easier matching
* also use global gnc:multiline-to-html-text
* also remove some duplicate sanity checks
2019-12-14 17:20:29 +08:00
Christopher Lam
cbb0c36ad4 [test-owner-report] properly test link amounts
Previous test wasn't comprehensive; due to variable row lengths,
the (td 11) wouldn't consistently select the link amount. using
(td -1) will select the last <td> element in the row.

Moreover also test the class-name to target the link amounts otherwise
other elements (eg the aging-list) will also be returned.
2019-12-14 12:39:58 +08:00
Christopher Lam
b372f28829 [test-owner-report] initial tests new-owner-report
mainly tests amounts being displayed are correct
2019-12-12 22:27:24 +08:00
Christopher Lam
670811455d [report-utilities] bugfix: aging-list was incorrect. off-by-1 error.
off-by-1 error in aging-list dates.
2019-12-12 22:27:24 +08:00
Christopher Lam
1c605a6b10 [report-utilities] bugfix: overpayment works for AP accounts
and fix comment from 5f6b9946d.
2019-12-12 22:27:09 +08:00
Robert Fewell
cac155a97c Swap the buttons around on the Budget Open dialogue
Swap the OK and Cancel buttons so they conform to the normal layout.
2019-12-11 15:16:48 +00:00
Robert Fewell
8e155bfccf Change the spacing in files gnc-plugin-page-budget.* 2019-12-11 15:16:48 +00:00
Robert Fewell
1320b79dc7 Change the spacing in files gnc-plugin-budget.* 2019-12-11 15:16:48 +00:00