Retrieve Entry

20 views
Skip to first unread message

Vic

unread,
Nov 4, 2018, 1:05:05 AM11/4/18
to plutus-gem
Hello,

Thanks for making this great gem. I have fun using it, and now i have one question.

I created an entry:
      entry = Plutus::Entry.new(:description => invoice")
      entry.debit_amounts << debit_amount
      entry.credit_amounts << credit_amount

find the entry:
      entry = Plutus::Entry.find_by_description("invoice")

print it:
      puts entry.debit_amounts.balance

Question: I create a few Entry using the same description. When finding entry by description, which entry am i getting? And how to get the date of the entry ?
Reply all
Reply to author
Forward
0 new messages