mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix register bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2437 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
bd0580179e
commit
af654c31d2
@ -1,5 +1,8 @@
|
||||
2000-06-07 Dave Peticolas <dave@krondo.com>
|
||||
|
||||
* src/SplitLedger.c: use value, not share amount, for debit/credit
|
||||
cells in equity registers.
|
||||
|
||||
* src/gnome/dialog-utils.c (gnc_ui_install_field_strings): set the
|
||||
code even if it's blank. Auto-coding doesn't work right now.
|
||||
|
||||
|
@ -998,8 +998,7 @@ LedgerAutoCompletion(SplitRegister *reg, gncTableTraversalDir dir,
|
||||
xaccBasicCellSetChanged(&(reg->xfrmCell->cell), GNC_T);
|
||||
|
||||
/* auto-complete the amounts */
|
||||
if ((EQUITY_REGISTER == typo) ||
|
||||
(STOCK_REGISTER == typo) ||
|
||||
if ((STOCK_REGISTER == typo) ||
|
||||
(CURRENCY_REGISTER == typo) ||
|
||||
(PORTFOLIO_LEDGER == typo))
|
||||
amount = xaccSplitGetShareAmount (auto_split);
|
||||
@ -2304,8 +2303,7 @@ xaccSRSaveRegEntryToSCM (SplitRegister *reg, SCM trans_scm, SCM split_scm)
|
||||
|
||||
price = gnc_split_scm_get_share_price(split_scm);
|
||||
|
||||
if ((EQUITY_REGISTER == (reg->type & REG_TYPE_MASK)) ||
|
||||
(STOCK_REGISTER == (reg->type & REG_TYPE_MASK)) ||
|
||||
if ((STOCK_REGISTER == (reg->type & REG_TYPE_MASK)) ||
|
||||
(CURRENCY_REGISTER == (reg->type & REG_TYPE_MASK)) ||
|
||||
(PORTFOLIO_LEDGER == (reg->type & REG_TYPE_MASK)))
|
||||
;
|
||||
@ -2811,8 +2809,7 @@ xaccSRSaveChangedCells (SplitRegister *reg, Transaction *trans, Split *split)
|
||||
|
||||
DEBUG ("MOD_AMNT: %f\n", new_amount);
|
||||
|
||||
if ((EQUITY_REGISTER == (reg->type & REG_TYPE_MASK)) ||
|
||||
(STOCK_REGISTER == (reg->type & REG_TYPE_MASK)) ||
|
||||
if ((STOCK_REGISTER == (reg->type & REG_TYPE_MASK)) ||
|
||||
(CURRENCY_REGISTER == (reg->type & REG_TYPE_MASK)) ||
|
||||
(PORTFOLIO_LEDGER == (reg->type & REG_TYPE_MASK)))
|
||||
xaccSplitSetShareAmount (split, new_amount);
|
||||
@ -2978,8 +2975,7 @@ xaccSRLoadRegEntry (SplitRegister *reg, Split *split)
|
||||
buff[1] = 0x0;
|
||||
xaccSetBasicCellValue (reg->recnCell, buff);
|
||||
|
||||
if ((EQUITY_REGISTER == typo) ||
|
||||
(STOCK_REGISTER == typo) ||
|
||||
if ((STOCK_REGISTER == typo) ||
|
||||
(CURRENCY_REGISTER == typo) ||
|
||||
(PORTFOLIO_LEDGER == typo))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user