gnucash unstable: [python bindings] Add required posted dates to the transactions.
John Ralls
jralls at code.gnucash.org
Thu Mar 22 18:29:35 EDT 2018
Updated via https://github.com/Gnucash/gnucash/commit/148c02d2 (commit)
from https://github.com/Gnucash/gnucash/commit/bea89a50 (commit)
commit 148c02d231f3c1e545e62e23616a6f32018c5208
Author: John Ralls <jralls at ceridwen.us>
Date: Thu Mar 22 15:29:08 2018 -0700
[python bindings] Add required posted dates to the transactions.
diff --git a/bindings/python/example_scripts/simple_test.py b/bindings/python/example_scripts/simple_test.py
index 7156fd9..2741641 100644
--- a/bindings/python/example_scripts/simple_test.py
+++ b/bindings/python/example_scripts/simple_test.py
@@ -61,9 +61,11 @@ split3.SetAccount(savings_acct)
split3.SetParent(trans2)
trans1.SetCurrency(cad)
+trans1.SetDate(14, 3, 2006)
trans1.SetDescription("Groceries")
trans2.SetCurrency(cad)
+trans2.SetDate(7, 11, 1995)
trans2.SetDescription("Opening Savings Balance")
split2 = Split(book)
Summary of changes:
bindings/python/example_scripts/simple_test.py | 2 ++
1 file changed, 2 insertions(+)
More information about the gnucash-changes
mailing list