Commit 4880d1f5 authored by Maxime Doyen's avatar Maxime Doyen

5.1.2 release

parent 3d283521
2016-12-08 Maxime Doyen
Made 5.1.2 release.
* wish : #1645126 remember the size of columns in the main window
* wish : #1639862 multiple edit transactions date
* wish : #1638023 remind scheduled listview column width
* wish : #916690 qif option (info to desc; payee to desc)
* wish : #462919 option to choose to import OFX name to payee or memo
* bugfix: import, new account don't have currency, result display NaN
* bugfix: import, amount was not displaying decimal part
* bugfix: import, dialog to choose child xfer was popup when no match found
* bugfix: txn dialog, after input a split amount/category widget were not disabled
* bugfix: #1645001 import shows rounded amount but import correctly
* bugfix: #1640885 txn changes in detail list cannot be saved
* bugfix: #1638064 balance report may show wrong values
2016-11-06 Maxime Doyen
Made 5.1.1 release.
......
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for homebank 5.1.1.
# Generated by GNU Autoconf 2.69 for homebank 5.1.2.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
......@@ -577,8 +577,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='homebank'
PACKAGE_TARNAME='homebank'
PACKAGE_VERSION='5.1.1'
PACKAGE_STRING='homebank 5.1.1'
PACKAGE_VERSION='5.1.2'
PACKAGE_STRING='homebank 5.1.2'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
......@@ -1340,7 +1340,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures homebank 5.1.1 to adapt to many kinds of systems.
\`configure' configures homebank 5.1.2 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
......@@ -1407,7 +1407,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of homebank 5.1.1:";;
short | recursive ) echo "Configuration of homebank 5.1.2:";;
esac
cat <<\_ACEOF
......@@ -1515,7 +1515,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
homebank configure 5.1.1
homebank configure 5.1.2
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
......@@ -1934,7 +1934,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by homebank $as_me 5.1.1, which was
It was created by homebank $as_me 5.1.2, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
......@@ -2802,7 +2802,7 @@ fi
# Define the identity of the package.
PACKAGE='homebank'
VERSION='5.1.1'
VERSION='5.1.2'
cat >>confdefs.h <<_ACEOF
......@@ -6999,7 +6999,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by homebank $as_me 5.1.1, which was
This file was extended by homebank $as_me 5.1.2, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
......@@ -7065,7 +7065,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
homebank config.status 5.1.1
homebank config.status 5.1.2
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
......
......@@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52)
AC_INIT([homebank], [5.1.1])
AC_INIT([homebank], [5.1.2])
#AC_INIT([homebank], [x.x-rc])
AM_CONFIG_HEADER(config.h)
......
homebank (5.1.0-1) unstable; urgency=medium
homebank (5.1.2-1) unstable; urgency=medium
* debian/control: changed description (Closes: #734503, #639536)
(LP: #155059)
......
......@@ -41,6 +41,7 @@
<h3><a id="51multicurr" name="51multicurr"></a> <!-- = = = = separator = = = = -->Multiple currencies</h3>
<p>You can now manage accounts in different currencies. When opening a file from a previous version of HomeBank, you will be prompted to choose a base currency.<br>
Then you can add several currencies with the <a href="dlg-curr.html">currencies dialog</a>, update the exchange rate on-line, and assign different currencies to every account.</p>
<p>Take care as the currency formatting option are now in the <a href="dlg-curr.html">currencies dialog</a>.
<p class="top"><a href="#top">↑ Back to Top</a></p>
</div>
<div class="rounded content">
......@@ -204,4 +205,4 @@
<p class="top"><a href="#top">↑ Back to Top</a></p>
</div>
</body>
</html>
\ No newline at end of file
</html>
......@@ -52,5 +52,38 @@
</tr>
</table>
</div>
<div class="rounded content">
<h2>Using the edit currency dialog</h2>
<p><img class="gtkshot right" src="images/dlg-currencies2.png"></p>
<h3>Currency</h3>
<p>Display the currency symbol and name</p>
<h3>Exchange rate</h3>
<p>Enable to chnage the exchange rate (if currency is not the base one)</p>
<h3>Format</h3>
<p>Display a sample of the currency format</p>
<p>Customize</p>
<table class="widgetinfo">
<tr>
<th>Symbol</th>
<td>Symbol that prefix the amount</td>
</tr>
<tr>
<th>Is prefix</th>
<td>define is the symbol is a prefix symbol</td>
</tr>
<tr>
<th>Decimal char</th>
<td>Character to be used as decimal separator</td>
</tr>
<tr>
<th>Frac digits</th>
<td>Number of digits after decimal separator</td>
</tr>
<tr>
<th>Grouping char</th>
<td>Character to be used as grouping separator</td>
</tr>
</table>
</div>
</body>
</html>
\ No newline at end of file
</html>
......@@ -11,8 +11,8 @@
<p><img src="images/web_title.png"><br></p>
<p>&copy; Copyright 1995-2016 by Maxime Doyen<br>
All Rights Reserved</p>
<p>Version: 5.1.1<br>
Compilation date: November 6th, 2016</p><br>
<p>Version: 5.1.2<br>
Compilation date: December 8th, 2016</p><br>
</div>
</body>
</html>
......@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: homebank\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2016-08-07 11:54+0200\n"
"PO-Revision-Date: 2016-06-05 11:22+0000\n"
"Last-Translator: Joan Duran <jodufi@gmail.com>\n"
"PO-Revision-Date: 2016-12-03 08:14+0000\n"
"Last-Translator: AniolOliver <Unknown>\n"
"Language-Team: Catalan <ca@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2016-11-06 07:52+0000\n"
"X-Generator: Launchpad (build 18246)\n"
"X-Launchpad-Export-Date: 2016-12-07 19:36+0000\n"
"X-Generator: Launchpad (build 18292)\n"
#: ../data/homebank.desktop.in.in.h:1 ../src/dsp_mainwindow.c:876
msgid "HomeBank"
......@@ -484,7 +484,7 @@ msgstr "Desa el fitxer actual"
#: ../src/dsp_mainwindow.c:176
msgid "Save _As..."
msgstr ""
msgstr "Anomena i _desa..."
#: ../src/dsp_mainwindow.c:176
msgid "Save the current file with a different name"
......@@ -500,7 +500,7 @@ msgstr "Recupera una versió desada d'aquest fitxer"
#: ../src/dsp_mainwindow.c:179
msgid "Properties..."
msgstr ""
msgstr "Propietats..."
#: ../src/dsp_mainwindow.c:179
msgid "Configure the file"
......@@ -516,7 +516,7 @@ msgstr "_Surt"
#: ../src/dsp_mainwindow.c:181
msgid "Quit HomeBank"
msgstr ""
msgstr "Surt de HomeBank"
#. Exchange
#: ../src/dsp_mainwindow.c:184
......@@ -551,12 +551,12 @@ msgstr "Preferències..."
#: ../src/dsp_mainwindow.c:191
msgid "Configure HomeBank"
msgstr ""
msgstr "Configura el HomeBank"
#. ManageMenu
#: ../src/dsp_mainwindow.c:194
msgid "Currencies..."
msgstr ""
msgstr "Monedes..."
#: ../src/dsp_mainwindow.c:194
msgid "Configure the currencies"
......@@ -1787,11 +1787,11 @@ msgstr "exclou de qualsevol _informe"
#: ../src/ui-archive.c:47
msgid "Scheduled"
msgstr ""
msgstr "Planificat"
#: ../src/ui-archive.c:48
msgid "Template"
msgstr ""
msgstr "Plantilla"
#: ../src/ui-archive.c:55
msgid "Possible"
......@@ -1891,7 +1891,7 @@ msgstr "Si esborreu una assignació, aquesta no es podrà recuperar."
#: ../src/ui-assign.c:693
msgid "Disabled"
msgstr ""
msgstr "Inhabilitat"
#: ../src/ui-assign.c:694
msgid "If empty"
......@@ -1899,7 +1899,7 @@ msgstr ""
#: ../src/ui-assign.c:695
msgid "Overwrite"
msgstr ""
msgstr "Sobreescriu"
#: ../src/ui-assign.c:714
msgid "Manage Assignments"
......@@ -1920,7 +1920,7 @@ msgstr ""
#: ../src/ui-assign.c:811
msgid "Match _case"
msgstr ""
msgstr "Distingeix majúscules i minúscules"
#: ../src/ui-assign.c:816
msgid "Use _regular expressions"
......
......@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: homebank\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-08-07 11:54+0200\n"
"PO-Revision-Date: 2016-09-14 05:38+0000\n"
"Last-Translator: Michael Dix <thylamediol@googlemail.com>\n"
"PO-Revision-Date: 2016-11-20 20:42+0000\n"
"Last-Translator: Denis Graipel <Unknown>\n"
"Language-Team: German <de@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2016-11-06 07:52+0000\n"
"X-Generator: Launchpad (build 18246)\n"
"X-Launchpad-Export-Date: 2016-12-07 19:36+0000\n"
"X-Generator: Launchpad (build 18292)\n"
#: ../data/homebank.desktop.in.in.h:1 ../src/dsp_mainwindow.c:876
msgid "HomeBank"
......@@ -81,7 +81,7 @@ msgstr "_OK"
#: ../src/dsp_account.c:357
msgid "Multiple edit transactions"
msgstr ""
msgstr "Mehrere Transaktionen bearbeiten"
#: ../src/dsp_account.c:372 ../src/ui-payee.c:921 ../src/ui-transaction.c:958
msgid "Pa_yment:"
......@@ -301,11 +301,11 @@ msgstr "\"Ausgeglichen\" für ausgewählte Transaktion(en) umschalten"
#: ../src/dsp_account.c:2176
msgid "_Multiple Edit..."
msgstr ""
msgstr "_Mehrere bearbeiten..."
#: ../src/dsp_account.c:2176
msgid "Edit multiple transaction"
msgstr ""
msgstr "Mehrere Transaktionen bearbeiten"
#: ../src/dsp_account.c:2177
msgid "Create template..."
......@@ -398,7 +398,7 @@ msgstr "_Status:"
#: ../src/dsp_account.c:2430
msgid "Reset _filters"
msgstr ""
msgstr "_Filter zurücksetzen"
#. TRANSLATORS: this is for Euro specific users, a toggle to display in 'Minor' currency
#: ../src/dsp_account.c:2435 ../src/rep_balance.c:853 ../src/rep_budget.c:1112
......@@ -1784,7 +1784,7 @@ msgstr "von Berichten ausschließen"
#: ../src/ui-archive.c:47
msgid "Scheduled"
msgstr ""
msgstr "Geplant"
#: ../src/ui-archive.c:48
msgid "Template"
......@@ -1892,7 +1892,7 @@ msgstr "Deaktiviert"
#: ../src/ui-assign.c:694
msgid "If empty"
msgstr ""
msgstr "Wenn leer"
#: ../src/ui-assign.c:695
msgid "Overwrite"
......@@ -1908,16 +1908,16 @@ msgstr "Bedingung"
#: ../src/ui-assign.c:795
msgid "Search _in:"
msgstr ""
msgstr "Suche in"
#. label = make_label_widget(_("Con_tains:"));
#: ../src/ui-assign.c:803
msgid "Fi_nd:"
msgstr ""
msgstr "Enthäl_t"
#: ../src/ui-assign.c:811
msgid "Match _case"
msgstr ""
msgstr "Groß-/Kleinschreibung"
#: ../src/ui-assign.c:816
msgid "Use _regular expressions"
......@@ -1925,15 +1925,15 @@ msgstr "Benutze _reguläre Ausdrücke"
#: ../src/ui-assign.c:831
msgid "Assign payee"
msgstr ""
msgstr "Zahlungsempfänger zuweisen"
#: ../src/ui-assign.c:860
msgid "Assign category"
msgstr ""
msgstr "Kategorie zuweisen"
#: ../src/ui-assign.c:888
msgid "Assign payment"
msgstr ""
msgstr "Bezahlung zuweisen"
#: ../src/ui-assist-start.c:129
#, c-format
......@@ -2107,7 +2107,7 @@ msgstr "Konto: %d - Transaktion: %d - Zahlungsempfänger: %d - Kategorie: %d"
#: ../src/ui-assist-import.c:1347
msgid "Some date convertion failed"
msgstr ""
msgstr "Datumskonvertierung fehlgeschlagen"
#: ../src/ui-assist-import.c:1348
#, c-format
......@@ -2405,7 +2405,7 @@ msgstr "Kategorien verwalten"
#: ../src/ui-category.c:1873 ../src/ui-payee.c:1270
msgid "_Delete unused"
msgstr ""
msgstr "Unbenutzte Löschen"
#: ../src/ui-category.c:1893
msgid "new category"
......@@ -2421,7 +2421,7 @@ msgstr "_Zusammenführen"
#: ../src/ui-currency.c:370 ../src/ui-currency.c:377
msgid "Base currency"
msgstr ""
msgstr "Standardwährung"
#: ../src/ui-currency.c:629
msgid "Symbol"
......@@ -2445,7 +2445,7 @@ msgstr "Währung"
#: ../src/ui-currency.c:836 ../src/ui-pref.c:1410
msgid "Format"
msgstr ""
msgstr "Format"
#: ../src/ui-currency.c:845 ../src/ui-pref.c:1419 ../src/ui-pref.c:1489
msgid "_Customize"
......@@ -2461,7 +2461,7 @@ msgstr ""
#: ../src/ui-currency.c:866 ../src/ui-pref.c:1440
msgid "_Decimal char:"
msgstr ""
msgstr "_Dezimalzeichen"
#: ../src/ui-currency.c:873 ../src/ui-pref.c:1447
msgid "_Frac digits:"
......@@ -2473,7 +2473,7 @@ msgstr ""
#: ../src/ui-currency.c:1040
msgid "Select base currency"
msgstr ""
msgstr "Als Standardwährung festlegen"
#: ../src/ui-currency.c:1040
msgid "Select currency"
......@@ -2493,7 +2493,7 @@ msgstr ""
#: ../src/ui-currency.c:1345
msgid "Change the base currency"
msgstr ""
msgstr "Standwardwährung wählen"
#: ../src/ui-currency.c:1346
msgid ""
......@@ -2507,11 +2507,11 @@ msgstr "Währungen"
#: ../src/ui-currency.c:1511
msgid "Update online"
msgstr ""
msgstr "Online aktualisieren"
#: ../src/ui-currency.c:1543
msgid "Set as base"
msgstr ""
msgstr "Als Standard festlegen"
#: ../src/ui-dialogs.c:176
msgid "File statistics"
......@@ -2523,11 +2523,11 @@ msgstr "Zuweisung"
#: ../src/ui-dialogs.c:324
msgid "Upgrade"
msgstr ""
msgstr "Aktualisieren"
#: ../src/ui-dialogs.c:349
msgid "Select a base currency"
msgstr ""
msgstr "Standardwährung wählen"
#: ../src/ui-dialogs.c:358
msgid ""
......@@ -2791,7 +2791,7 @@ msgstr "Standard-Kategorie"
#: ../src/ui-payee.c:743
msgid "Delete unused payee"
msgstr ""
msgstr "Unbenutzen Zahlungsemfpänger löschen"
#: ../src/ui-payee.c:744
msgid ""
......@@ -3024,7 +3024,7 @@ msgstr "V_orlage:"
#: ../src/ui-pref.c:1498
msgid "_Format:"
msgstr ""
msgstr "_Format:"
#: ../src/ui-pref.c:1511
msgid ""
......@@ -3154,7 +3154,7 @@ msgstr "Zuletzt benutzte Datei öffnen"
#: ../src/ui-pref.c:1781
msgid "Update currencies online"
msgstr ""
msgstr "Währungen online aktualisieren"
#: ../src/ui-pref.c:1791
msgid "Fiscal year"
......@@ -3259,11 +3259,11 @@ msgstr ""
#: ../src/ui-transaction.c:870 ../src/ui-widgets.c:273
msgid "Search..."
msgstr ""
msgstr "Suchen …"
#: ../src/ui-transaction.c:906
msgid "Show _scheduled"
msgstr ""
msgstr "Zeige geplante"
#: ../src/ui-transaction.c:930
msgid "_Date:"
......@@ -3291,7 +3291,7 @@ msgstr ""
#: ../src/ui-transaction.c:1105
msgid "_Add & keep"
msgstr ""
msgstr "Hinzufügen und beh_alten"
#: ../src/ui-transaction.c:1113
msgid "_Post"
......@@ -3299,7 +3299,7 @@ msgstr "_Posten"
#: ../src/ui-transaction.c:1157
msgid "Use a _template"
msgstr ""
msgstr "Vorlage erstellen"
#: ../src/ui-transaction.c:1201
msgid "Warning: amount and category sign don't match"
......
......@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: homebank\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-08-07 11:54+0200\n"
"PO-Revision-Date: 2016-08-23 03:51+0000\n"
"Last-Translator: Binnette <Unknown>\n"
"PO-Revision-Date: 2016-12-05 04:00+0000\n"
"Last-Translator: Tom <Unknown>\n"
"Language-Team: fr <fr@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2016-11-06 07:52+0000\n"
"X-Generator: Launchpad (build 18246)\n"
"X-Launchpad-Export-Date: 2016-12-07 19:37+0000\n"
"X-Generator: Launchpad (build 18292)\n"
"Language: fr\n"
#: ../data/homebank.desktop.in.in.h:1 ../src/dsp_mainwindow.c:876
......@@ -1936,7 +1936,7 @@ msgstr "Affecter le tiers"
#: ../src/ui-assign.c:860
msgid "Assign category"
msgstr "Affecter la categérie"
msgstr "Affecter la catégorie"
#: ../src/ui-assign.c:888
msgid "Assign payment"
......
......@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2016-11-06 07:52+0000\n"
"X-Generator: Launchpad (build 18246)\n"
"X-Launchpad-Export-Date: 2016-12-07 19:36+0000\n"
"X-Generator: Launchpad (build 18292)\n"
#: ../data/homebank.desktop.in.in.h:1 ../src/dsp_mainwindow.c:876
msgid "HomeBank"
......
......@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2016-11-06 07:52+0000\n"
"X-Generator: Launchpad (build 18246)\n"
"X-Launchpad-Export-Date: 2016-12-07 19:36+0000\n"
"X-Generator: Launchpad (build 18292)\n"
#: ../data/homebank.desktop.in.in.h:1 ../src/dsp_mainwindow.c:876
msgid "HomeBank"
......
......@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2016-11-06 07:52+0000\n"
"X-Generator: Launchpad (build 18246)\n"
"X-Launchpad-Export-Date: 2016-12-07 19:36+0000\n"
"X-Generator: Launchpad (build 18292)\n"
"Language: lt\n"
#: ../data/homebank.desktop.in.in.h:1 ../src/dsp_mainwindow.c:876
......
This diff is collapsed.
......@@ -91,6 +91,10 @@ gchar *tagstr;
{
switch( column_id )
{
case LST_DSPOPE_DATE:
gtk_date_entry_set_date(GTK_DATE_ENTRY(data->PO_date), (guint)ope->date);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(data->CM_date), TRUE);
break;
case LST_DSPOPE_INFO:
gtk_combo_box_set_active(GTK_COMBO_BOX(data->NU_mode), ope->paymode);
gtk_entry_set_text(GTK_ENTRY(data->ST_info), (ope->info != NULL) ? ope->info : "");
......@@ -128,6 +132,9 @@ struct ui_multipleedit_dialog_data *data;
DB( g_print ("\n[ui-multipleedit] update\n") );
if(data->PO_date)
gtk_widget_set_sensitive (data->PO_date, gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(data->CM_date)) );
if(data->NU_mode && data->ST_info)
{
gtk_widget_set_sensitive (data->NU_mode, gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(data->CM_mode)) );
......@@ -213,6 +220,16 @@ GList *selection, *list;
DB( g_print(" modifying %s %.2f\n", txn->wording, txn->amount) );
if( list_txn_column_id_isvisible(GTK_TREE_VIEW(data->treeview), LST_DSPOPE_DATE) == TRUE )
{
if( gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(data->CM_date)) )
{
txn->date = gtk_date_entry_get_date(GTK_DATE_ENTRY(data->PO_date));
DB( g_print(" -> date: '%d'\n", txn->date) );
change = TRUE;
}
}
if( list_txn_column_id_isvisible(GTK_TREE_VIEW(data->treeview), LST_DSPOPE_INFO) == TRUE )
{
if( gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(data->CM_mode)) )
......@@ -414,6 +431,22 @@ gint row;
row = -1;
if( list_txn_column_id_isvisible(GTK_TREE_VIEW(data->treeview), LST_DSPOPE_DATE) == TRUE )
{
row++;
label = make_label_widget(_("_Date:"));
gtk_grid_attach (GTK_GRID (group_grid), label, 0, row, 1, 1);
widget = gtk_check_button_new();
data->CM_date = widget;
gtk_grid_attach (GTK_GRID (group_grid), widget, 1, row, 1, 1);
widget = gtk_date_entry_new();
data->PO_date = widget;
gtk_widget_set_hexpand (widget, TRUE);
gtk_grid_attach (GTK_GRID (group_grid), widget, 2, row, 1, 1);
g_signal_connect (data->CM_date , "toggled", G_CALLBACK (ui_multipleedit_dialog_update), NULL);
}
if( list_txn_column_id_isvisible(GTK_TREE_VIEW(data->treeview), LST_DSPOPE_INFO) == TRUE )
{
row++;
......
......@@ -26,6 +26,7 @@ struct ui_multipleedit_dialog_data
{
GtkWidget *window;
GtkWidget *CM_date, *PO_date;
GtkWidget *LB_mode, *CM_mode, *NU_mode;
GtkWidget *CM_info, *ST_info;
GtkWidget *LB_acc, *CM_acc, *PO_acc;
......
......@@ -1470,18 +1470,18 @@ cairo_t *cr;
#if CHART_PIE_DONUT == 1
a1 = 0;
a2 = 2 * M_PI;
//original
//radius = (gint)((chart->rayon/3) * (1 / PHI));
radius = (gint)((chart->rayon/2) * 2 / 3);
//5.1
//radius = (gint)((chart->rayon/2) * 2 / 3);
//ynab
radius = (gint)(chart->rayon/2) * 0.5;
cairo_arc(cr, cx, cy, radius, a1, a2);
cairo_user_set_rgbcol(cr, &global_colors[THBASE]);
cairo_fill(cr);
#endif
cairo_destroy(cr);
......
......@@ -566,6 +566,7 @@ gboolean account_balances_add(Transaction *trn)
}
//todo: optim called 2 times from dsp_mainwindow
void account_compute_balances(void)
{
GList *lst_acc, *lnk_acc;
......
......@@ -135,6 +135,41 @@ guint32 oldkcur;
}
GList *hbfile_transaction_get_all(guint32 kacc)
{
GList *lst_acc, *lnk_acc;
GList *lnk_txn;
GList *list;
list = NULL;
lst_acc = g_hash_table_get_values(GLOBALS->h_acc);
lnk_acc = g_list_first(lst_acc);
while (lnk_acc != NULL)
{
Account *acc = lnk_acc->data;
if( (acc->flags & (AF_CLOSED|AF_NOREPORT)) )
goto next_acc;
if( (kacc > 0 ) && (acc->key != kacc) )
goto next_acc;
lnk_txn = g_queue_peek_head_link(acc->txn_queue);
while (lnk_txn != NULL)
{
list = g_list_append(list, lnk_txn->data);
lnk_txn = g_list_next(lnk_txn);
}
next_acc:
lnk_acc = g_list_next(lnk_acc);
}
g_list_free(lst_acc);
return da_transaction_sort (list);
}
GQueue *hbfile_transaction_get_partial(guint32 minjulian, guint32 maxjulian)
{
GList *lst_acc, *lnk_acc;
......
......@@ -20,6 +20,7 @@
#ifndef __HB_HBFILE_H__
#define __HB_HBFILE_H__
GList *hbfile_transaction_get_all(guint32 kacc);
GQueue *hbfile_transaction_get_partial(guint32 minjulian, guint32 maxjulian);
gboolean hbfile_file_hasbackup(gchar *filepath);
......
......@@ -141,6 +141,8 @@ gint lasttype;
valid = hb_string_isdigit(str_array[i]);
break;
case CSV_DOUBLE :
//todo: use strtod (to take care or . or ,)
g_ascii_strtod(str_array[i], NULL);
//todo : see this errno
if( errno )
......
......@@ -210,7 +210,7 @@ struct tm *temp_tm;
GDate date;
Transaction *newope;
DB( g_print("** ofx_proc_transaction_cb()\n") );
DB( g_print("\n** ofx_proc_transaction_cb()\n") );
newope = da_transaction_malloc();
......@@ -236,7 +236,6 @@ Transaction *newope;
if(data.amount_valid==true)