Commit Graph

6966 Commits

Author SHA1 Message Date
Linas Vepstas
b2da24e3c6 add convenience function to find date on which lot was closed
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8165 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-02 04:02:34 +00:00
Derek Atkins
875e3e49bc When building the "name + address" string, check if the
company name and contact name are the same and, if so,
	  only print one of them.  Fixes #109753.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8163 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-02 03:38:23 +00:00
Derek Atkins
2e6325afe1 * src/business/business-gnome/glade/date-close.glade:
Fix the glade settings so resizing the window will properly
	  resize the widgets.  Fixes #107586.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8161 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-02 03:19:41 +00:00
Derek Atkins
4798b3255b * src/business/business-ledger/gncEntryLedgerControl.c:
Save the entry cells before adding an it to the invoice,
	  otherwise it wont get sorted properly.  Fixes #108910.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8159 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-02 03:05:30 +00:00
Derek Atkins
d634a00aec * src/business/business-ledger/gncEntryLedgerControl.c:
Don't ask the user in the general case when making changes
	  to entries.  Generally the user should be allowed to make
	  whatever changes they want without being pestered.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8157 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-02 01:37:41 +00:00
Derek Atkins
d39a0022b3 * src/business/business-gnome/dialog-invoice.c: fix an assertion
failure -- don't try to set the to_charge_amount value unless
	  we're in a VIEW/EDIT invoice.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8155 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-02 01:04:25 +00:00
Derek Atkins
41e630069e * src/business/business-core/gncEntry.h: Move the definitions
of PaymentType and DiscountHow higher earlier in the file
	  to prevent problems of circular dependencies.
	* src/business/business-core/gncInvoice.[ch]:
	  - Add the storage of the to_charge_amount.
	  - Add GetTotalOf() to find the total of Cash and Charge amounts
	  - Use the to_charge_amount when posting an invoice
	* src/business/business-core/dialog-invoice.c:
	  - add a to_charge_amount for Exp. Vouchers
	  - add a "Total Cash" and "Total Charge" summary
	* src/business/business-gnome/glade/invoice.glade:
	  - add the to_charge_amount frame and labels.
	* src/busines/business-core/file/gnc-invoice-xml-v2.c: Add support
	  for the to-charge amount.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8153 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-01 21:15:22 +00:00
Christian Stimming
efd32817c2 2003-04-01 Christian Stimming <stimming@tuhh.de>
* src/report/report-system/options-utilities.scm: Fix missing i18n
	markup on some option names.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8152 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-01 20:32:33 +00:00
David Hampton
b49db15076 Collapse the account tree data declarations into a common table.
Change functions to be driven off this data table instead of
explicitly coding each field.

Add new fields in the account tree window for present, cleared,
reconciled, and future minimum balances.  #95628


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8148 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-01 04:09:19 +00:00
David Hampton
d03de9aae9 Update for changes to function parameters.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8147 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-01 04:06:29 +00:00
David Hampton
f906f0b11b Push gui independent functions into the engine.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8146 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-04-01 04:05:32 +00:00
Christian Stimming
1c2adca030 2003-03-31 Herbert Thoma <herbie@hthoma.de>
* src/engine/gnc-pricedb.c
	* src/engine/gnc-pricedb.h: new function
	gnc_pricedb_lookup_latest_any_currency, return any available
	prices for given commodity regardless of currency

	* src/app-utils/gnc-ui-util.c: do a "two stage" price lookup in
	gnc_ui_convert_balance_to_currency if no price for the commodity
	is found in the requested currency, then look for prices in any
	currency and for a exchange rate from the price currency to the
	requested currency

	* src/gnome/gnc-split-reg.c: do currency conversion and show the
	value in the status line of stock and mutual fund accounts


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8145 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 19:12:21 +00:00
Derek Atkins
c1818d3d2c * src/business/business-core/test/test-employee.c: fix the test
to reflect the change in Employee->Printable()


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8144 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 18:08:32 +00:00
Linas Vepstas
3d8b885108 rename the 'GetOrMake' routine, its not static any more but shared between two files
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8142 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 05:15:21 +00:00
Linas Vepstas
5f6476648f inital checkin -- add private prototype for utility func
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8141 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 04:42:16 +00:00
Linas Vepstas
ebc997d35c cleanup author credits
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8140 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 04:41:21 +00:00
Linas Vepstas
1808028f83 more new code
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8139 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 04:19:18 +00:00
Linas Vepstas
a115451c52 check in some documentation updates made way way long ago
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8138 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 04:17:48 +00:00
Linas Vepstas
2f7b0f517a remove bogus argument for dxaccAccount subroutine calls
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8137 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 04:12:31 +00:00
Linas Vepstas
c45c2da35e misssed a spot - remove more bogus arguments
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8136 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 03:50:32 +00:00
Linas Vepstas
a55b0c4196 get rid of bogus subroutine argument
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8135 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 03:46:36 +00:00
Linas Vepstas
496015a5b6 add documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8134 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 03:25:37 +00:00
Linas Vepstas
f1e8ae9e0d d of bogus argument to scrub functions
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8133 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 03:25:19 +00:00
Linas Vepstas
0a70aea1d7 get rid of bogus argument to scrub functions
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8132 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 03:24:29 +00:00
Linas Vepstas
f2fdc583f6 remove bogus argument to Scrub functions
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8131 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 03:23:39 +00:00
Linas Vepstas
413ff3ad12 get rid of spurious argument
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8130 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-31 02:50:02 +00:00
Linas Vepstas
93d30df886 fix bugs, start adding routine to perform the double-balance check
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8129 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 19:04:42 +00:00
Linas Vepstas
952ef55424 add documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8128 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 18:40:40 +00:00
Christian Stimming
5e1957174f Forgot to install scheme file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8127 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 12:42:41 +00:00
Linas Vepstas
8bedf26761 fill in more of the lot-scrubbing algorithm
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8125 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 06:32:36 +00:00
Linas Vepstas
d0adc936c3 add notes, update
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8124 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 06:30:51 +00:00
Linas Vepstas
d694fb5a4e fix formating
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8123 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 06:29:19 +00:00
Linas Vepstas
eb0b60038c fix some notes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8122 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 05:44:12 +00:00
Linas Vepstas
7c5f5fcaf3 never mind; we really do *not* have any use for these funcs;
things will be handled very differently.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8121 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 04:50:09 +00:00
Linas Vepstas
18cc347bae fill in more functions to clean up lots
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8120 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 04:45:48 +00:00
Linas Vepstas
c39c2be3be oops
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8119 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 04:09:45 +00:00
Linas Vepstas
d328d40114 add utility routine to get earliest split in lot
convert tabs to spaces


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8118 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 04:08:55 +00:00
Linas Vepstas
e701237359 fix a FIXME note
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8117 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 03:30:42 +00:00
Linas Vepstas
f8e733bb52 start working on functions to cleanup up usage of Lots in trading accounts
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8116 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 03:03:02 +00:00
Linas Vepstas
5fc7551350 remove obsolete commentary
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8115 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 03:01:23 +00:00
Linas Vepstas
b1913918b6 add an account-for-each-lot function
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8114 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 02:58:25 +00:00
Linas Vepstas
c43a1b13d3 fix typo
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8113 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-30 00:21:41 +00:00
Linas Vepstas
6a498252d5 start porting fifo code to current gnucash engine
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8112 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-29 23:29:58 +00:00
Christian Stimming
18c67f9db8 2003-03-29 Christian Stimming <stimming@tuhh.de>
* src/report/standard-reports/daily-reports.scm: New report
	"income vs. day of week" by Andy Wingo <wingo@pobox.com>.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8107 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-29 22:21:24 +00:00
Linas Vepstas
5278b8e655 reinstate simple accounting FIFO from the gnucash-1.4 branch
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8106 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-29 21:34:40 +00:00
Christian Stimming
72614fb23a 2003-03-29 Christian Stimming <stimming@tuhh.de>
* src/engine/gnc-session.c: OpenBSD fix by Todd T. Fries
        <todd@flare.fries.net>

        * src/engine/Transaction.c: OpenBSD fix by Todd T. Fries
        <todd@flare.fries.net>: time_t is not long everywhere.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8104 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-29 21:33:04 +00:00
Christian Stimming
36bc6d9b6b Updated function documentation for doxygen.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8103 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-26 23:07:01 +00:00
Christian Stimming
039f9bd8aa Improved documentation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8102 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-26 00:17:26 +00:00
Christian Stimming
81b798f7d4 Forgot this part of close-on-finish fix.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8099 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-23 12:35:55 +00:00
Christian Stimming
3cbd89037a 2003-03-23 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/hbci-interaction.c (GNCInteractor_hide):
	Fix close-on-finished checkbutton.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8097 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-03-23 12:30:42 +00:00