Commit Graph

23203 Commits

Author SHA1 Message Date
John Ralls
843282f583 Merge John Ralls's 'assoc_title' into maint. 2020-09-11 11:41:42 -07:00
John Ralls
bca039de78 Merge Frank Ellenbergers 'assoc_title' into John Ralls's 'assoc_title. 2020-09-11 11:39:09 -07:00
John Ralls
7addd1fcfb Fix the horizontal scrollbar in the linked docs window.
Setting a listview column to expand before the window is realized causes
the sizer to allocate too much width so that the horizontal scrollbar is
required. Move setting the expand column to after gtk_widget_show_all.
2020-09-11 11:34:32 -07:00
John Ralls
db626de68a Rename all Transaction and Invoice Association identifiers to DocLink.
To better reflect the purpose and for consistency with other software
(e.g. Libre Office).
2020-09-11 11:34:32 -07:00
John Ralls
50bf59d62e Rename Transaction and Invoice Associations to Document Links.
More clearly describes the actions and is more consistent with other
software (e.g. Libre Office).

This commit primarily changes the translatable strings, though it also
removes the Remove menu item because that can be done in the Manage
dialog box.
2020-09-11 11:34:31 -07:00
Robert Fewell
d0309b39d9 Bug 797935 - Strange formal register headers
The headers were made up from two parts, 'Tot' which was translated and
'Debit/Credit' which was not. Traced to some missing brackets around
the returned dflt_acct_debit_str and dflt_acct_credit_str.
2020-09-11 15:23:27 +01:00
Robert Fewell
6997f0057e Bug 797936 - Lot viewer notes field too narrow
Change the horizontal alignment of the notes text view to fill space
and change the scrollbars to be automatic.
2020-09-11 14:26:15 +01:00
Christopher Lam
3537415889 [register.scm] prevent crash on running report on empty book 2020-09-11 18:50:28 +08:00
Christopher Lam
c7b0aca44a [register.scm] show progressbar when building report 2020-09-11 18:21:05 +08:00
Frank H. Ellenberger
444d954116 Fix a typo in a translator comment 2020-09-11 03:16:01 +02:00
Frank H. Ellenberger
694540435c Merge branch PR #783 into maint
2028 translated messages, 2139 fuzzy translations, 1384 untranslated
messages.
2020-09-11 02:56:17 +02:00
Frank H. Ellenberger
6d898f6e81 L10N🆔 Fix copyright line
The file was created before commit 3f8ab26.
2020-09-11 02:43:21 +02:00
Frank H. Ellenberger
2f8028c01c Fix help_label of dialog-doclink.glade
Additonal remove question mark from Available
and insert missing spaces into the Business Item variant.
2020-09-11 01:03:58 +02:00
Geert Janssens
c63529ea5a I18n - Update nl.po header file based on suggestions received by Frank Ellenberger 2020-09-10 10:45:11 +02:00
Geert Janssens
15f3faf042 I18n - Dutch translation update
4956 translated messages, 403 fuzzy translations, 190 untranslated messages
2020-09-09 22:22:48 +02:00
Geert Janssens
6c94350a92 I18n - deduplicate translatable strings 2020-09-09 22:22:48 +02:00
Geert Janssens
ad8b602fe2 I18n - Uppercase option name to align with other option names 2020-09-09 22:22:48 +02:00
Christopher Lam
67a18df6a6 Improve responsiveness of register scrub
Similar to f6d34f226:
* refactor to combine scrub_split common code
* progressbar and text updated every 10 splits
* abort_scrub is tested every for loop rather than 100 splits
2020-09-08 10:33:14 +08:00
John Ralls
cfbd353ab7 Rename all Transaction and Invoice Association identifiers to DocLink.
To better reflect the purpose and for consistency with other software
(e.g. Libre Office).
2020-09-07 12:48:37 -07:00
John Ralls
8dce845cc1 Rename Transaction and Invoice Associations to Document Links.
More clearly describes the actions and is more consistent with other
software (e.g. Libre Office).

This commit primarily changes the translatable strings, though it also
removes the Remove menu item because that can be done in the Manage
dialog box.
2020-09-07 10:42:53 -07:00
Christopher Lam
42249c8969 Don't overwrite gnc_window_show_progress if message is empty string
gnc_window_show_progress receives 2 arguments: message string and
percentage. The progressbar text was not updated if message string was
NULL. Reports call (gnc-window-show-progress "" percent). This commit
ensures empty string does not overwrite progressbar text.
2020-09-07 09:07:47 +08:00
John Ralls
de0422da25 Merge G4js's missing-sentinels into maint. 2020-09-06 14:39:12 -07:00
Christopher Lam
f6d34f226f [Scrub.c] improve responsiveness of progressbar during scrub
Formerly would update progress bar every 100 splits. With scrub being
slow, it's nicer to update every 10 splits. Also remove
the (percentagefunc)(NULL, 0.0) which seems an error -- it would reset
the progressbar back to zero immediately.
2020-09-06 22:54:16 +08:00
Christopher Lam
99101c191c [gnc-main-window] enable show_text for progressbar
This will allow gtk_progress_bar_set_text to actually display the
progress text.
2020-09-06 22:11:55 +08:00
Christopher Lam
979a050ae9 Set parent window properly to gnc_verify_dialog, and i18n string 2020-09-06 22:11:48 +08:00
Gaming4JC
cca4524055
Fix warnings: missing sentinel in function calls
When compiling with -Werror, GNUCash fails to build due to various error: missing sentinel in function call.
This patch resolves the issue by passing nullptr instead of C-style casting NULL.
2020-09-06 00:50:54 -04:00
John Ralls
cbf2a7b9f1 macOS: Give GnuCash time to shut down gracefully.
Instead of letting macOS pull the rug out.
2020-09-05 17:00:56 -07:00
John Ralls
706277e6a8 Merge Jean Laroche's '797900_check_repair_crash' into maint. 2020-09-05 15:50:28 -07:00
triyanwn
015b85abbb Indonesian translation for GnuCash 2020-09-05 11:56:14 +07:00
triyanwn
bc7533c6f1 Indonesian translation for GnuCash 2020-09-05 11:43:46 +07:00
Frank H. Ellenberger
bc9c717d90 I18N: Allign glossary to gnucash.pot
Create a similar copyright header.
Add missing Report-Msgid-Bugs-To.
2020-09-04 22:40:49 +02:00
Christopher Lam
304e497243 Bug 476114 - Goto register by date feature req (bis)
Addendum to c14241644 - ensure the splitlist is sorted before finding
split. This ensures the correct split is found when the register has a
non-default sorting. e.g. sorting by reverse posted-date would find
the most recent split; this commit ensures the split nearest the
desired date is selected.

Also I've confirmed there's no need to clear filter; if the register
has filtered splits, the algorithm will find the nearest *visible*
split on or after the desired date.
2020-09-04 09:52:26 +08:00
Frank H. Ellenberger
3f8ab2684e I18N: Add copyright-holder - improve wording 2020-09-04 02:46:38 +02:00
Frank H. Ellenberger
57d059bac9 I18N: Add copyright-holder
For details see https://github.com/Gnucash/gnucash/pull/780
2020-09-04 00:24:35 +02:00
Christopher Lam
c142416445 Bug 476114 - Goto register by date feature req
Adds ability to jump to arbitrary date.

Finds first split whose posted date >= specified date, and jump to it.
2020-09-03 11:08:14 +08:00
Christopher Lam
befc4056ec [gnc-plugin-page-report] use gnc_print_time64
removes the need to store and reset the current QofDateFormat via
qof_date_format_set and qof_date_format_get.

also g_free format_code properly
2020-09-02 10:48:10 +08:00
Christopher Lam
f503f708f5 [reports] use gnc-print-time64
removes the need to store and reset the current QofDateFormat via
qof-date-format-set and qof-date-format-get.

also fix test-transaction csv output test.
2020-09-02 10:48:10 +08:00
Christopher Lam
094b4ba842 [dialog-file-access] handle close-dialog with <ESC> 2020-09-02 10:48:10 +08:00
Christopher Lam
fb42065213 g_free strings allocated with gnc_prefs_get_string
gnc_prefs_get_string will return a newly-allocated string. after use,
they must be g_freed.
2020-09-02 10:48:10 +08:00
John Ralls
de33d1ef15 Bug 797924 - Crash when searching for customer to process payment.
Slightly speculative since the bug isn't reliably reproduceable, but
qof_class_get_property can silently return nullptr so it's wise to
make sure that we have a ptr before trying to dereference it.
2020-08-28 09:03:59 -07:00
jean
3d98ba092f Fix reversed logic in gnc_quartz_should_quit 2020-08-27 17:00:32 -07:00
jean
bbdd4f34b6 Bug 797900 - Crash caused by Quitting while Check and Repair All is running
The account tree page didn't have a "finish" function normally used to verify a page can close.
I added one, along with two flags that indicate whether a scrubbing operation is currently ongoing
and whether we should quit when the scrubbing is done.
The result is: If a user attempts to quit while scrubbing isn't done, an alert pops up asking whether the
user wants to abort the scrub. If so, the scrub is aborted (safely) and GC quits.
If not the app does not quit.

I have to say, I'm not sure this is the right way to do this. In my view, the right way would be:
- Disable the "quit" menu when scrubbing is happening (for some reason gnc_suspend_gui_refresh() does
not cause the quit menu to be grayed) so there's no chance of quitting while scrubbing is ongoing
- If needed, add an abort scrubbing button to the main window. Not sure whether that's desirable or not.

Let me know what you think: is what I have what we need, or would the above be better.
2020-08-27 16:59:55 -07:00
Christopher Lam
a50c188dca Bug 797923 - Running employee report results in "Unbound variable: txn"
The bug was triggered by txn referring to the invalid split being
used *outside* the let environment. Use (car splits) instead for
logging. Also augment error handling by listing the invalid splits
before the aging-list.
2020-08-26 23:16:55 +08:00
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