Commit Graph

22743 Commits

Author SHA1 Message Date
Robert Fewell
e81e95ee59 Change dialog-assoc functions to use ones from dialog-assoc-utils 2020-05-28 17:25:40 +01:00
Robert Fewell
07d46d5d52 Add option to change associations when path head changes
When the path head is changed the associations are not updated so this
change adds a dialog to ask if you want the old relative paths updated
to absolute ones and whether to update existing absolute paths to new
relative ones.
2020-05-28 17:25:40 +01:00
Robert Fewell
7e05d8690a Allow the Transaction Association to be updated from list
Allow the transaction Association to be updated from the list of
associations by double clicking on the selected row column Available.
2020-05-28 17:25:40 +01:00
Robert Fewell
d282e645a7 Bug 797185 - Add Reload button for Transaction associations
Currently to refresh the list the dialog needs to be closed and
re-opened so add a button to reload the model instead. Also added
another button that does a reload and location check in one.
2020-05-28 17:25:40 +01:00
Robert Fewell
1884ae2093 Bug 797185 - Allow sorting on all Transaction Association columns 2020-05-28 17:25:40 +01:00
Robert Fewell
282e456f52 Move the transaction association dialog to dialog-assoc.c/h
The transaction association dialog was all setup from gnc-split-reg but
it seems logical to move all the association source to one file so this
commit does that as well as changing the dialog to be based on a glade
file. The existing toolbar menu entries have changed to Update, Open and
Remove the association.
2020-05-28 17:25:40 +01:00
Robert Fewell
8596763d70 Minor text changes to reflect associated file name changes 2020-05-28 17:25:40 +01:00
Robert Fewell
456c3494ff Rename the trans associate files
Rename the files dialog-trans-assoc.c/h and the glade file to the less
specific form dialog-assoc.c/h so that it can be used for other
associations.
2020-05-28 17:25:40 +01:00
John Ralls
5091d7a670 Merge Christoph Holterman's python-gettext-localize into master. 2020-05-28 14:17:10 -07:00
John Ralls
20251999a4 python-gettext-localize: Additional POTFILES.in changes. 2020-05-28 14:16:38 -07:00
c-holtermann
b13f40aeaf remove translation test 2020-05-28 20:55:15 +02:00
c-holtermann
e1701fbdd6 locale is not needed anymore (debug) 2020-05-28 20:42:27 +02:00
c-holtermann
9e678a421e remove debug stuff 2020-05-28 20:31:16 +02:00
c-holtermann
7bf38ef837 test info 2020-05-28 20:29:33 +02:00
c-holtermann
ca21f32249 remove global gettext import 2020-05-28 20:21:31 +02:00
c-holtermann
efe9b4b606 remove debug info 2020-05-28 20:19:39 +02:00
c-holtermann
f788e59318 remove debug stuff (temporarily) 2020-05-28 18:51:01 +02:00
c-holtermann
fc87e275fa further debugging 2020-05-28 18:51:01 +02:00
c-holtermann
8d429d8295 further debugging 2020-05-28 18:51:01 +02:00
c-holtermann
2c09fe4f44 debug on travis 2020-05-28 18:51:01 +02:00
c-holtermann
694e5a26ff add test for gettext 2020-05-28 18:50:55 +02:00
c-holtermann
31d2b3cb44 install gettext 2020-05-28 18:41:34 +02:00
c-holtermann
101a2ca09d add translatable python files 2020-05-28 18:41:34 +02:00
c-holtermann
22848c6b0a localize strings for python 2020-05-28 18:41:34 +02:00
c-holtermann
41dc6ddbe2 implement gettext localization for python
make gnc_path_get_localedir() and GETTEXT_PACKAGE available for python
to access locales. Import gettext module to provide _ as translator
method. Provide null _-method returning english text in case of missing gettext.
Make a lot of messages translatable by adding _-method. Include python
files to create .pot-files.
2020-05-28 18:41:34 +02:00
Robert Fewell
890637b2dc Delete Account: Short circuit checks if no transactions or subaccounts
Count of splits and number of children need to be or'd
2020-05-28 12:13:14 +01:00
Robert Fewell
3457dd150b Add file name to dialog used in ofx import 2020-05-28 11:21:04 +01:00
Robert Fewell
8bf426e274 Rename a couple of functions used in multiple OFX file import 2020-05-28 11:20:59 +01:00
Robert Fewell
e69c8a237c Set the reconcile after close button in import-main-matcher
Set the default visibility of the reconcile after close check button
to be hidden and set it so it does not respond to gtk_show_all.
2020-05-28 10:49:56 +01:00
Robert Fewell
2dcc0b7a19 Merge Jean Laroche's branch 'add_multi_ofx_import_master' PR 697 to master 2020-05-28 10:32:32 +01:00
Christopher Lam
4fd5a2cd59 typo fix 2020-05-28 13:35:58 +08:00
John Ralls
de9d6a3339 Delete Account: Use subaccount commodity for subaccount splits.
It might be different from the parent account's. Also check the
commodity, not the currency-or-parent; moving widgets to flidgets
is just as bad as pounds to dollars.
2020-05-27 18:50:35 -07:00
John Ralls
7218bfef37 Delete Account: Short circuit checks if no transactions or subaccounts. 2020-05-27 18:50:34 -07:00
John Ralls
a584806e07 Delete account: Rename and reflow helper functions. 2020-05-27 18:50:34 -07:00
John Ralls
ccdeda4292 Extract function account_delete_dialog. 2020-05-27 18:50:34 -07:00
John Ralls
0af5883d6e Delete Account: Abstract the disposition adopters into a struct.
With functions for the operations done on the members.
2020-05-27 18:50:34 -07:00
John Ralls
1f8dfbac99 Delete Account: Modify strings for single subaccount.
Because we bail out and make the user sort it out if there is more
than one subaccount.
2020-05-27 18:50:34 -07:00
John Ralls
d65a29c4c0 gnc-plugin-page-account-tree.c: delete_account_next fix leaks and whitespace. 2020-05-27 18:50:34 -07:00
John Ralls
ee4f0daa47 Plugin-page-account: Extract function commodity_mismatch_dialog. 2020-05-27 18:50:34 -07:00
John Ralls
2af5d52c4c Merge Jean Laroche's '797220_delete_account_wrong_currency' into master. 2020-05-27 18:49:33 -07:00
John Ralls
fa769090e8 Fix printf arg mismatch, windows build failure. 2020-05-27 11:26:36 -07:00
Robert Fewell
1adbc54865 Change the position the register pop up so it aligns better 2020-05-27 14:43:26 +01:00
Robert Fewell
5de1c6d711 Fix the alignment of the Notes label in Transfer dialog 2020-05-27 14:26:44 +01:00
Robert Fewell
b50acc3ba9 Set horizontal paned position in Lot viewer
Set the initial Split horizontal paned position to be half way when the
window is realized.
2020-05-27 14:19:26 +01:00
Robert Fewell
85e6396dcd Set the expanding column in the lot viewer
Set the expanding columns in the lot viewer to be the 'Title' and the
'Description'. Also ellipsize the description to help with long
transaction descriptions.
2020-05-27 14:08:12 +01:00
Robert Fewell
923b25ffed Change the alignment of the numeric values in the lot viewer
Change the alignment of the numeric columns to be right aligned so the
number align up.
2020-05-27 14:02:02 +01:00
Robert Fewell
c0abdb28d1 Bug 797768 - View Lots sorting numbers not right.
When you try and sort on balance, amount and value the columns are
sorted alphabetically as opposed to numeric value. Fixed by adding
extra double columns to the list store and use them to sort the numeric
columns.
2020-05-27 13:52:27 +01:00
Christopher Lam
6419857462 Bug 797770 - Reconciliation report does not consider credit transactions
A few preparatory changes...

* calculated-cells augmented to allow 7 fields instead of 6. 7th field
defines whether cell is mergeable for subtotal-table. note only the
first element in calculated-cells is currently considered for the
subtotal-table accumulator.

* backward compatible upgrade to trep-engine's add-subtotal-row --
handles both 6-field and 7-field calculated-cells. 7th field, if
missing, is assumed to be #f.

* transaction report: unlock subtotal-table when amount='double in
addition to 'single.

And finally the bug fix itself:

* reconcile-report: fix subtotal-table accumulator to consider both Dr
and Cr
2020-05-27 18:31:41 +08:00
John Ralls
12680ebb58 gnucash-item-edit.c: Small whitespace fixup. 2020-05-26 12:27:20 -07:00
John Ralls
a873cae90e Place the cursor after the preedit.
Connect to the GtkEntry's preedit-changed signal and stash the preedit
length.

Uses the PangoLayout's text instead of the GtkEntry's because the former
includes the current preedit string and the latter does not. Add the
preedit length to the cursor position so that the cursor is drawn to the
right (left in RTL languages) of the preedit.
2020-05-26 12:27:20 -07:00