CVS update: gnucash/src/register/ledger-core

Derek Atkins warlord at linas.org
Wed Jul 30 20:25:59 CDT 2003


Date:	Wednesday July 30, 2003 @ 19:25
Author:	warlord

Update of /home/cvs/cvsroot/gnucash/src/register/ledger-core
In directory www.linas.org:/tmp/cvs-serv24384/src/register/ledger-core

Modified Files:
	split-register-control.c split-register-model-save.c 
	split-register-model.c split-register.c 
Log Message:
	Support "gain/loss" balancing splits on stocks:
	* src/engine/Transaction.c: fix xaccSplitGetPrice() to return '0'
	  if 'amount' is zero but 'value' is non-zero
	* src/register/ledger-core/split-register-model-save.c: if we've
	  already handled the debcred cell then DON'T handle the price cell
	  as it will override the debcred's value.
	* src/register/ledger-core/split-register.c: if #shares == 0,
	  price == 0, and value (buy/sell) != 0 then allow this entry;
	  it's an income/expense balancing split.
	* src/register/ledger-core/split-register-control.c: if the exchange
	  rate cell is 0 but this is NOT the blank split, then don't run
	  the exchange-rate dialog unless specifically requested.
	* src/register/ledger-core/split-register-model.c: when trying to
	  find the conversion rate for a split, remember if we found
	  a matching split (even if the amount is 0).  If all matching
	  splits are 0, then return 0, not 1.




More information about the gnucash-patches mailing list