Commit Graph

23713 Commits

Author SHA1 Message Date
pmraps
c1fb613f6d L10N:pt: glossary (PR #827)
Changed double "saldo" to a more clear "saldo inicial" and "saldo final"
2020-11-30 19:07:05 +01:00
John Ralls
7a8a0f40b1 Fix missing space in warning message. 2020-11-29 10:59:25 -08:00
John Ralls
4006e5a488 Bug 794807 - Calendar widget current month shown as (null).
Locales need to end in UTF-8 to work right.
2020-11-29 10:59:06 -08:00
John Ralls
b0a5673079 Merge Pedro Alvarez's Portugues updates into maint. 2020-11-29 07:34:22 -08:00
pmraps
7322e2edb8 Translation Update pt
Update glossary/pt.po
Update Spouse income accounts
Update home loan accounts
2020-11-29 14:56:04 +00:00
Robert Fewell
8a256a8db6 Bug 798031 - Date goes to prior year with mm/dd
The default value in the glade file was set to 6 months but the default
value in the gschema file org.gnucash.gschema.xml.in was set to 11
months so have changed the gschema to match the glade file.
2020-11-29 10:41:49 +00:00
Robert Fewell
5c7a2c4bd6 Change the mnemonic of '_Open Read-Only' to 'Open _Read-Only' 2020-11-29 10:33:26 +00:00
Christopher Lam
15d3eb48dc Merge branch 'maint' 2020-11-29 18:08:57 +08:00
Robert Fewell
979f6acf91 Change the mnemonic of '_Open with No File' to 'Open with _No File' to fix conflict. 2020-11-28 15:22:48 +00:00
Robert Fewell
161ab691d6 Bug 343647 - Keep scrolled report location
If you have a large report and have scrolled down to the bottom and
decide to tab to a different page and come back the report is back at
the top. This was due to reloading the report before focusing so change
this so it only loads once, if the report needs refreshing then there
is the reload toolbar button.
2020-11-28 14:10:29 +00:00
Robert Fewell
72d742e29b Change the icons used for the file lock message 2020-11-28 10:37:47 +00:00
Robert Fewell
9d99ebe30c Bug 309943 - When unable to obtain a lock, no option to open another file
Currently when you get the message that GnuCash could not obtain a lock
for the file to be opened you have four options...

Open Read-Only, Create New File, Open Anyway, Quit

This commit changes the 'Create new File' to 'Open with No File' which
allows the user to then select...
'File->New' to create a new file,
'File->Open' to open a different file or one chosen from the history or
'File->Quit' to exit.
2020-11-28 10:37:47 +00:00
Frank H. Ellenberger
93f500bd4d Move pt translation to Translation Project
https://lists.gnucash.org/pipermail/gnucash-devel/2020-November/045581.html
2020-11-27 16:56:19 +01:00
Frank H. Ellenberger
ac63126080 L10N: Update Glossaries to commit 3d7e66d
LANG, translated, fuzzy, untranslated messages:
bg: 181, 10, 5
ca: 175, 15, 6
da: 169, 18, 9
de: 196.
de_CH: 175, 15, 6
el: 10, 124, 62
es: 158, 20, 18
fi: 145, 2, 49
fr: 184, 6, 6
he: 192, 2, 2
hr: 195, 1
hu: 174, 16, 6
id: 177, 6, 13
it: 193, 1, 2
lt: 182, 9, 5
nb: 189, 7
nl: 195, 1
pl: 174, 15, 7
pt: 192, 2, 2
pt_BR: 174, 15, 7
ru: 150, 24, 22
rw: 7, 133, 56
sk: 174, 15, 7
sv: 168, 15, 13
vi: 175, 15, 6
zh_CN: 174, 16, 6
zh_TW: 170, 14, 12
2020-11-26 14:51:49 +01:00
John Ralls
1bf863d9a1 Register: Don't double-delete when typing over a selection.
In numcell or formulacell.
2020-11-24 14:53:34 -08:00
Christopher Lam
a1c517b4ba [gnc_scm_to_numeric] create NaN gnc_numeric instead of runtime error
If guile calls a C function which expects gnc_numeric but sends a
non-number, it will create a gnc_numeric_error object. This will allow
error gnc_numeric to be handled elsewhere.

Also the overflow gnc_numeric was incorrectly created.
2020-11-23 21:50:05 +08:00
Christopher Lam
8f32992100 [gnc-engine-guile.c] return #f when gnc_numeric has error
otherwise it'd throw guile div/0 exception
2020-11-23 08:08:27 +08:00
Christopher Lam
d11bdb3e3a Bug 798015 - cash flow numerical-overflow
error is caused by pricedb containing an invalid gnc_numeric
price. multiplication of (invalid) price with amount causes a report
crash.

Fix: if invalid price, return zero for amount converted to report
currency.
2020-11-22 23:35:46 +08:00
Christopher Lam
72982de588 Revert "[date-utilities] Convert reldate list into srfi-9 records"
This reverts commit 3be7935965.
2020-11-22 21:56:42 +08:00
Christopher Lam
8b5dd55dc4 Revert "[c-interface] deprecate gnc:make-string-database"
This reverts commit b67bf4b761.
2020-11-22 21:56:35 +08:00
Christopher Lam
b67bf4b761 [c-interface] deprecate gnc:make-string-database 2020-11-22 21:21:58 +08:00
Christopher Lam
3be7935965 [date-utilities] Convert reldate list into srfi-9 records 2020-11-22 21:14:13 +08:00
Robert Fewell
3676728d2f Bug 330930 - Financial Calculator resets payment period to zero
When the preference option 'Numbers, Date, Time' ->
'Automatic Decimal Point' is set and you change the 'Payment periods'
to say 11 you end up with zero as number entered becomes 0.11

To fix this treat the Periods GNCAmountEdit widget as a plain GtkEntry
and not use the GNCAmountEdit evaluate functions.
2020-11-22 10:41:44 +00:00
Robert Fewell
c2f9c5bfb1 Bug 106746 - Selecting New account in Loan Assistant
Set the modal property on the GNCAccountSel widgets, that way the new
account will selected.
2020-11-22 10:39:44 +00:00
Robert Fewell
d518500a30 Change source files gnc-account-sel.* for space and tabs 2020-11-22 10:38:57 +00:00
Robert Fewell
faaa580de7 GNCAccountSel with a New button
If the GNCAccountSel widget is set to be modal, using the 'New' button
returns the newly created account so use it for the selection.
2020-11-22 10:37:59 +00:00
Robert Fewell
026856122c Bug 355498 - When there is only one result from a 'Find', select it. 2020-11-22 10:36:55 +00:00
Robert Fewell
ae39df07eb Bug 720564 - Search in General Ledger
If you search from a General Ledger the search results will update the
General Ledger and the only way to get back the contents is to close
and reopen the General Ledger.

This change makes it the same as any other register in that the search
results are opened in a new search page.
2020-11-22 10:35:32 +00:00
Triyan W. Nugroho
562b4be220 Update Indonesian translation for GnuCash.
5430 translated messages, 114 fuzzy translations, 4 untranslated
messages.
2020-11-21 20:39:01 +01:00
John Ralls
4332c5841f Merge branch 'github-action' into maint; adds macOS unit tests. 2020-11-17 16:56:19 -08:00
John Ralls
4b7bc94e9d Implement Github-actions tests on macOS. 2020-11-17 16:55:42 -08:00
John Ralls
5de4fe5dff Merge Ralf Habacker's add-opening-balance-accounts into maint. 2020-11-16 09:27:29 -08:00
Ralf Habacker
63580d91ba Add feature GNC_FEATURE_EQUITY_TYPE_OPENING_BALANCE
When the above function is activated, the slot 'equity type' is used and
set in relation to opening balances and the checkbox for marking the
opening balance in the accounts dialog can be changed.
2020-11-16 08:51:51 +01:00
Ralf Habacker
2bdc7dd1c9 Update opening balance account on adding, editing and deleting accounts 2020-11-16 08:51:51 +01:00
Ralf Habacker
a2aca9da66 Do not create additional opening balance account on creating new gnucash file
Without this patch an additional opening balance account is created by the
assistant-hierarchy.
2020-11-16 08:51:51 +01:00
Ralf Habacker
f8dcd23023 Add support for the opening balance accounts flag
Up to now, opening balance accounts have been identified by means of
fixed names and their translations, which in some cases is not
appropriate.

With this commit, therefore, opening balance accounts can now be
identified by a special slot, which should solve the above problem.

in gnc_find_or_create_equity_account(), when querying the
EQUITY_OPENING_BALANCE type, the system now first searches for an
account with an existing 'equity-type' slot having the value
'opening-balance' and returns it as an opening balance account if
one exists. If no corresponding account is found, the search is
continued as before. An account found in the process is automatically
given the status of an opening balance account (it is given an
'equity-type' slot with value 'opening-balance') to simplify the
future search.

The opening balance status of an account is visualized in the account
settings dialog with a check box. If a Gnucash file does not yet contain
an opening balance account, one can be selected in the account settings
dialog.

https://bugs.gnucash.org/show_bug.cgi?id=797836
2020-11-16 08:51:51 +01:00
Ralf Habacker
573f7aaa0b Add slot "equity-type" with value "opening-balance" to account templates
The slots are added by running `util/add-opening-balances` on the
gnucash sources.
2020-11-16 08:51:51 +01:00
Ralf Habacker
1cce12f8be Add script to add slots with key 'equity-type' and value 'opening-balance' to detected opening balance accounts 2020-11-16 08:51:51 +01:00
Robert Fewell
fdbbc1305e Change source files gnucash-sheet/header.* for space and tabs 2020-11-15 14:44:42 +00:00
Robert Fewell
8ad9d0a22d Bug 644242 - Register Panning Problem
If the horizontal scrollbar is present for a register and you start to
tab from one cell to the next one that is not in view the sheet does
not scroll to keep the active cell in view.

This commit fixes that by getting the active cell horizontal offset and
width and comparing it to the sheet width and window width.
2020-11-15 14:44:42 +00:00
Robert Fewell
20f2efbe11 Bug 797901 - File History not updated
To reproduce this, with an existing list of four recently opened files,
open a fifth file whose name must differ from those already in the list
and you will observe that the file history list is not updated.

This was down to when doing the 'File->Open', a call is made to
gnc_close_gui_component_by_session which closes the existing pages and
as part of that the preference callbacks for the history plugin page
were being removed along with some others like for tab placement.

To fix this added the removal inside an if statement that checks to see
if the window is quitting or not.
2020-11-15 14:37:57 +00:00
Christopher Lam
ea78fa5516 Remove debugging statement 2020-11-15 18:37:17 +08:00
Christopher Lam
3e2be271fc Bug 798005 - Import of QIF file sets expenses to zero, deposits are fine
recongizes numbers with trailing negative sign.
2020-11-15 18:34:06 +08:00
Geert Janssens
e9a117b21b Bug 798008 - Option '--log' cannot be specified more than once
Wrapping the std::vector to hold the log flags is unneeded and actually harmful.
Just work on the vector directly. If user doesn't specify any '--log' options
the vector will just be empty.
2020-11-13 10:58:14 +01:00
John Ralls
79951e094f Merge branch 'github-action' into maint 2020-11-12 19:32:36 -08:00
John Ralls
0b670680d7 Implement CI tests on ArchLinux via docker container. 2020-11-12 19:32:10 -08:00
John Ralls
60f263e0d2 Merge branch 'github-action' into maint 2020-11-12 15:53:03 -08:00
John Ralls
d751913cb9 Fix typo in .gitattributes, text not test. 2020-11-12 15:52:33 -08:00
John Ralls
4e91a33be3 Use LTDL_LIBRARY_PATH instead of (DY)LD_LIBRARY_PATH
With GnuCash's main libraries now linked at startup instead of being
dlopened at runtime except by Guile we can restrict the library path
renaming to Gnu Libtool's environment variable.
2020-11-12 15:52:33 -08:00
John Ralls
31c9c5e080 Add Ubuntu-20 tests. 2020-11-12 13:54:26 -08:00