Commit Graph

9384 Commits

Author SHA1 Message Date
Derek Atkins
ac4ae4e58e Rework of Titi Ala'ilima's patch to apply payments directly to invoices. (#121420)
Apply a re-work of Titi Ala'ilima's patch to apply payments
	directly to invoices.  This fixes bug #121420.
	* src/business/business-core/gncInvoice.[ch]:
	  Add argument to the ProcessPayment API to allow the caller
	  to specify an invoice to post to first.
	* src/business/business-gnome/business-gnome-utils.[ch]:
	  Create an invoice-select API that lets you select an invoice
	  based on an owner (or not).  I.e., you can limit the invoice
	  search based on a selected owner.  If you change the owner
	  it invalidates the invoice search.
	* src/business/business-gnome/dialog-payment.[ch]:
	  Change the API from ..new_with_value() to ..new_with_invoice().
	  Pull the default amount from the invoice (if one exists).
	  Allow the user to select an invoice and apply payments there.
	  If the user changes the owner, invalidate the invoice.
	* src/business/business-gnome/business-options-gnome.c:
	  use the new invoice-select API instead of calling general_search
	  API directly.
	* src/business/business-gnome/dialog-invoice.c:
	  call the new dialog-payment API.  No need to compute the initial
	  value here; the payment dialog will compute it from the invoice
	  (instead of computing it from the invoice here).
	* src/business/business-gnome/glade/payment.glade:
	  Add invoice-selector label and box.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13411 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-27 05:42:45 +00:00
David Hampton
30f415ecc0 Fix format character for a size argument.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13410 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 22:19:18 +00:00
Joshua Sled
7b7477d7c4 Andreas Kohler's patch for barchart improvements: segment color setting, axis rotation and formatting.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13409 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 21:42:06 +00:00
David Hampton
f36bb848b4 Add the ebuild script to the tarball.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13408 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 21:15:52 +00:00
David Hampton
1a38f12c05 Fix configure for the new packaging directory.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13407 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 21:15:15 +00:00
David Hampton
46238038c3 Remove old distro specific directories.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13406 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 21:10:19 +00:00
David Hampton
5a79c5dc63 Move a couple of ditro specific files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13405 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 21:08:54 +00:00
David Hampton
66f35f8352 Create a consolidated directory for distribution specific scripts.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13404 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 21:05:21 +00:00
Joshua Sled
9496987c66 fix signature for qof changes I missed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13403 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 20:50:14 +00:00
David Hampton
1d96f1b100 Restore GtkOptionMenu support because the newer GtkComboBox doesn't
support per item tooltips.  Fixes bug 332569.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13402 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 20:10:40 +00:00
David Hampton
f0445f9aa3 Mark a couple of function arguments as const.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13401 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 20:06:15 +00:00
Joshua Sled
7d4c8423f1 Add account-deletion handling for SXes. Bug#312730.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13400 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 19:55:17 +00:00
Joshua Sled
70584b5e72 Update gwrap details, URL.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13399 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 19:44:29 +00:00
Joshua Sled
368ebbe096 formatting
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13398 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 19:44:09 +00:00
Neil Williams
9dd917ecf3 simplify creation of new application events
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13397 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 19:03:37 +00:00
Neil Williams
8fffaf8c7a using new events with object argument
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13396 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 18:59:38 +00:00
Chris Shoemaker
cec7bb732c Use function version of QOF_COMMIT_EDIT_PART2.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13395 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 18:36:05 +00:00
Neil Williams
082212a7eb replacing the macro to restore programme flow
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13394 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 18:06:52 +00:00
Joshua Sled
bcc1e9f69e consistent whitespace.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13393 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 15:18:55 +00:00
Joshua Sled
e65ef1b051 Remove web browser "report".
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13392 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 14:53:37 +00:00
Chris Shoemaker
dd8ce0e090 Keep track of exactly how many bytes we've sent to md5_process_bytes().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13391 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 05:00:52 +00:00
Chris Shoemaker
6a8404df1d Implement QOF_COMMIT_EDIT_PART2 as a function instead of a macro.
Any of the callbacks passed to this function may be NULL to decline the 
   use of that callback.  Also, the three callbacks are now called in three
   mutually exclusive cases, corresponding to: 
      1) a failed commit, ('on_error')
      2) a successful commit where the object remains valid, ('on_done'), and 
      3) a successful commit where the object has been destroyed, ('on_free').


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13390 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 04:56:47 +00:00
Joshua Sled
6f9f00dea5 remove cairo as a dep.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13389 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 03:30:02 +00:00
Christian Stimming
7d5cf75691 Remove unknown typedefs with older aqbanking
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13388 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-25 18:06:09 +00:00
Christian Stimming
870d936b34 Updated German translation - 3617 out of 3737 done.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13387 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-25 09:59:54 +00:00
Christian Stimming
6e0431f74a Aqbanking-1.3.0 (released 2005-08-11) is sufficient for MT940 import.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13386 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-25 09:23:58 +00:00
David Hampton
37ff4ec84e Remember the order in which the notebook tabs are referenced. When
closing a tab, switch to the tab that was previously in front, not the
first tab in the notebook.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13385 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-25 08:18:39 +00:00
David Hampton
a1dbbfe230 Provide the right edit menu sensitivity for the register page.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13384 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-24 23:17:10 +00:00
David Hampton
e82d670961 Remove unnecessary menu item. The same functionality exists in the
"Menus & Toolbars" preference panel.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13383 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-24 22:58:28 +00:00
Christian Stimming
8ee2861201 Let the account matcher accept a parent widget to avoid windows that
are lost behind other windows. Adapt importer modules accordingly.




git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13382 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-24 22:22:44 +00:00
Christian Stimming
26cc119630 Don't allow placeholder be selected for importing transactions. Fixes bug#327891.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13381 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-24 22:09:47 +00:00
Christian Stimming
f6fc0dfa91 Get MT940 importer compile again (experimental; requires
aqbanking-1.9.7). It is not yet tested with actual files. Bug#325170.




git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13380 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-24 21:59:29 +00:00
Christian Stimming
3d5d84836f Make gchar argument const because it is only used as a const.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13379 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-24 21:43:37 +00:00
Chris Shoemaker
ee28ca912d Since QOF no longer keeps track of the "current" session,
qof_session_destroy() no longer clears the current session when we destroy
   it.  Therefore, explicitly call gnc_clear_current_session() when we want
   to destroy the current session.
   Also, avoid accidentally creating a new book and session if there is no
   open book/current session when we run the bill reminder.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13378 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-24 05:53:35 +00:00
David Hampton
f04fccd5d0 Andrew Sackville-West's to pass the rignt number of arguments to
gnc:register-guid.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13377 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-24 05:13:51 +00:00
David Hampton
ab142450e0 Fix a misspelled word.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13376 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-24 04:55:51 +00:00
David Hampton
fa8cae90e1 Minor code cleanup and consolidations.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13375 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-24 04:50:03 +00:00
Joshua Sled
e706e3f023 Add ebuild for gnucash 1.9/2.0 series.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13374 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-24 02:57:09 +00:00
Joshua Sled
546e7b17d7 Increment TOTD index on dialog init.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13373 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-24 02:54:33 +00:00
Joshua Sled
a25ee62408 note bug
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13372 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-24 02:47:56 +00:00
Joshua Sled
dc659525ce Bug#332359: use correct labels for x-axis.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13371 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-24 01:22:26 +00:00
David Hampton
fcdf57037a Add the example gtkrc-2.0.gnucash file to the tarball.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13370 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-23 22:25:02 +00:00
Chris Shoemaker
b4456caf23 When we malloc a Transaction, then TransBeginEdit, then want to abort,
just call xaccTransDestroy(), xaccTransCommitEdit().  No rollback needed.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13369 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-23 20:11:02 +00:00
Chris Shoemaker
a652fc59d0 Dirty Splits when they change.
Add const to Split where appropriate.
   Fix GCache crash cause by using non-cached value in cached 'action' field 
   from the qsf-backend.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13368 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-23 17:44:42 +00:00
Derek Atkins
15cb6d2214 add QOF_LIBS to link line because debian libtool is broken.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13367 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-23 17:16:11 +00:00
Derek Atkins
eb29ffd9f8 force a build from svn to have access to svn version info.
this might break the broken ebuild that forcibly removes the
	  .svn directories, but the ebuild is broken and shouldn't do that.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13366 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-23 01:39:05 +00:00
Derek Atkins
5cd8bdf5a1 include gtk-compat.h so we build against gtk-2.4.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13365 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-23 01:35:25 +00:00
David Hampton
fa9f8dea28 Cleanup patch from Andreas Köhler.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13364 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-22 22:35:03 +00:00
Chris Shoemaker
3d6a06e208 Separate the Split functions from Transaction.c into Split.c.
Introduce xaccSplitVoid() and xaccSplitUnvoid() to aid the separation.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13363 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-22 21:52:46 +00:00
Chris Shoemaker
00ba10ef00 Add some comments, error checks, ENTER/LEAVE balances and a special-case
early-return for the conversion-rate calculation.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13362 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-22 17:41:58 +00:00