Transaction: expose splits attribute
This commit is contained in:
parent
36313ddcc4
commit
4cf3949005
@ -13,6 +13,9 @@ module Gnucash
|
|||||||
# _String_: The description of the transaction
|
# _String_: The description of the transaction
|
||||||
attr_accessor :description
|
attr_accessor :description
|
||||||
|
|
||||||
|
# _Array_ of _Hash_ with keys +account+ and +value+
|
||||||
|
attr_accessor :splits
|
||||||
|
|
||||||
# Create a new Transaction object
|
# Create a new Transaction object
|
||||||
# === Arguments
|
# === Arguments
|
||||||
# +book+ _Book_:: The Gnucash::Book containing the transaction
|
# +book+ _Book_:: The Gnucash::Book containing the transaction
|
||||||
@ -32,7 +35,7 @@ module Gnucash
|
|||||||
end
|
end
|
||||||
account.add_transaction(AccountTransaction.new(self, value))
|
account.add_transaction(AccountTransaction.new(self, value))
|
||||||
{
|
{
|
||||||
account_id: account_id,
|
account: account,
|
||||||
value: value,
|
value: value,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user