diff options
author | Alan Pearce | 2015-04-06 10:58:16 +0100 |
---|---|---|
committer | Alan Pearce | 2015-04-06 11:05:01 +0100 |
commit | 2d371fdd6b9d805e7d7b35f53c3c626fa1408740 (patch) | |
tree | 2255e17ea70f1ceb9a558582f5a1fa5e9f01c5a8 /src/Item | |
parent | 115cc1a38c67606909bf3df1cc41d257fa8120ba (diff) | |
download | ynab-ledger-2d371fdd6b9d805e7d7b35f53c3c626fa1408740.tar.lz ynab-ledger-2d371fdd6b9d805e7d7b35f53c3c626fa1408740.tar.zst ynab-ledger-2d371fdd6b9d805e7d7b35f53c3c626fa1408740.zip |
Implement Ledger output
Diffstat (limited to 'src/Item')
-rw-r--r-- | src/Item/BudgetTransaction.php | 1 | ||||
-rw-r--r-- | src/Item/LedgerPosting.php | 11 | ||||
-rw-r--r-- | src/Item/LedgerTransaction.php | 11 | ||||
-rw-r--r-- | src/Item/RegisterTransaction.php | 3 |
4 files changed, 25 insertions, 1 deletions
diff --git a/src/Item/BudgetTransaction.php b/src/Item/BudgetTransaction.php index e4899f9..e073ed2 100644 --- a/src/Item/BudgetTransaction.php +++ b/src/Item/BudgetTransaction.php @@ -7,4 +7,5 @@ class BudgetTransaction { public $category = []; public $in; public $out; + public $currency; } diff --git a/src/Item/LedgerPosting.php b/src/Item/LedgerPosting.php new file mode 100644 index 0000000..79aeb49 --- /dev/null +++ b/src/Item/LedgerPosting.php @@ -0,0 +1,11 @@ +<?php + +namespace YnabLedger\Item; + +class LedgerPosting { + public $account = []; + public $isVirtual = false; + public $amount; + public $currency; + public $note; +} diff --git a/src/Item/LedgerTransaction.php b/src/Item/LedgerTransaction.php new file mode 100644 index 0000000..ebe26e8 --- /dev/null +++ b/src/Item/LedgerTransaction.php @@ -0,0 +1,11 @@ +<?php + +namespace YnabLedger\Item; + +class LedgerTransaction { + public $date; + public $state; + public $payee; + public $note; + public $postings = []; +} diff --git a/src/Item/RegisterTransaction.php b/src/Item/RegisterTransaction.php index b676640..3c9842a 100644 --- a/src/Item/RegisterTransaction.php +++ b/src/Item/RegisterTransaction.php @@ -11,5 +11,6 @@ class RegisterTransaction { public $memo; public $out; public $in; - public $cleared = false; + public $currency; + public $cleared; } |