mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
More cleanup
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1543 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
4bf67a70c7
commit
ca9842b21e
@ -59,6 +59,7 @@ sub setprice
|
||||
|
||||
$split = gnucash::xaccTransGetSplit ($trans, 0);
|
||||
gnucash::xaccSplitSetSharePriceAndAmount ($split, $price, 0.0);
|
||||
gnucash::xaccSplitSetAction ($split, "Price");
|
||||
gnucash::xaccTransCommitEdit ($trans);
|
||||
|
||||
gnucash::xaccAccountBeginEdit ($acct, 1);
|
||||
@ -113,10 +114,12 @@ foreach $acct (@acctlist) {
|
||||
}
|
||||
}
|
||||
$dayte = $quotes {$security, "date"};
|
||||
$prodname = $quotes {$security, "name"};
|
||||
if ($price) {
|
||||
print "Info: $security last price = $price at $dayte\n";
|
||||
print "Info: $security $prodname last price = $price at $dayte\n";
|
||||
&setprice ($acct, $dayte, $price);
|
||||
}
|
||||
print "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user