From de16e2c746699690b166644cb42ea7963164acdd Mon Sep 17 00:00:00 2001 From: Kwesi Aguillera Date: Thu, 23 Feb 2017 14:00:16 -0500 Subject: [PATCH 1/3] Start porting 2012-08.dat to 2012-08.beancount --- FY2013/2012-08.beancount | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 FY2013/2012-08.beancount diff --git a/FY2013/2012-08.beancount b/FY2013/2012-08.beancount new file mode 100644 index 0000000..bd28fcd --- /dev/null +++ b/FY2013/2012-08.beancount @@ -0,0 +1,28 @@ +2012-08-01 Opening Balance + Assets:Operations:New Alliance $ 1372.49 + Equity:Opening Balance + +2012-08-02 Settlement + Assets:Escrow:New Alliance $ 1030.84 + Assets:Escrow:Stripe + +; Random Fee to Samurai +2012-08-03 Samurai + Expenses:Processing Fees:Samurai $ 7.95 + Assets:Processing Fee Buffer:Samurai +2012-08-03 Retained Earnings + Equity:Retained Earnings $ 7.95 + Expenses:Processing Fees:Samurai + +2012-08-09 Settlement + Assets:Escrow:New Alliance $ 480.15 + Assets:Escrow:Stripe + +2012-08-16 Settlement + Assets:Escrow:New Alliance $ 511.66 + Assets:Escrow:Stripe + +2012-08-30 Settlement + Assets:Escrow:New Alliance $ 9.41 + Assets:Escrow:Stripe + From 7a94daf1d9c96fe2dea96670fc9552b04f5ab88c Mon Sep 17 00:00:00 2001 From: Kwesi Aguillera Date: Thu, 23 Feb 2017 16:53:14 -0500 Subject: [PATCH 2/3] Porting of .dat Ledger file to beancount --- FY2013/2012-07.beancount | 163 +++++++++++++++++++++++++++++++++++++++ FY2013/2012-08.beancount | 109 +++++++++++++++++++++----- FY2013/FY2013.beancount | 2 + 3 files changed, 253 insertions(+), 21 deletions(-) create mode 100644 FY2013/2012-07.beancount diff --git a/FY2013/2012-07.beancount b/FY2013/2012-07.beancount new file mode 100644 index 0000000..0f7a214 --- /dev/null +++ b/FY2013/2012-07.beancount @@ -0,0 +1,163 @@ +; IHasAMoney +; ========== + +2012-07-02 * "We charge a user vis Samurai." + Assets:Operations:Samurai 2.92 USD + Income:IHasAMoney -2.92 USD + +2012-07-02 * "Samurai settled with us." + Assets:Operations:New-Alliance 2.92 USD + Assets:Operations:Samurai -2.92 USD + + +; Random Fee to Samurai +; ===================== + +2012-07-02 * "Samurai withdrew random fee for some reason" + Expenses:Fees:Samurai 7.95 USD + Assets:Operations:New-Alliance -7.95 USD + + +; Another Random Fee to Samurai (Next day) +; ======================================= + +2012-07-03 * "Samurai withdrew random fee for some reason" + Expenses:Fees:Samurai 7.95 USD + Assets:Operations:New-Alliance -7.95 USD + + +; Gittip Payday 4 Settlement +; ========================== + +2012-07-05 * "Stripe settled the net of Payday 4 to us" + Assets:Escrow:New-Alliance 95.24 USD + Assets:Operations:New-Alliance 1.13 USD + Expenses:Fees:Stripe 14.63 USD + Assets:Operations:Stripe -14.63 USD + Assets:Operations:Stripe -1.13 USD + Assets:Escrow:Stripe -95.24 USD + + +; Testing out Amazon Payments +; =========================== + +2012-07-05 open Assets:Operations:Amazon USD +2012-07-05 open Expenses:Fees:Amazon USD + +2012-07-05 * "Amazon send some funds" + Assets:Operations:Amazon 0.08 USD + Income:Testing -0.08 USD + +2012-07-05 * "Amazon take back thier funds" + Expenses:Fees:Amazon 0.08 USD + Assets:Operations:Amazon -0.08 USD + +2012-07-05 * "Amazon send some more funds" + Assets:Operations:Amazon 0.04 USD + Income:Testing -0.04 USD + +2012-07-05 * "Amazon take back thier funds" + Expenses:Fees:Amazon 0.04 USD + Assets:Operations:Amazon -0.04 USD + + +; Yet another set of Samurai Fees (WTF) +; ===================================== + +2012-07-05 * "Samurai withdrew some funds for some reason" + Expenses:Fees:Samurai 3.07 USD + Assets:Operations:New-Alliance -3.07 USD + +2012-07-05 * "Samurai withdrew some more funds for some reason" + Expenses:Fees:Samurai 163.80 USD + Assets:Operations:New-Alliance -163.80 USD + +2012-07-09 * "Samurai withdrew even more funds for some reason" + Expenses:Fees:Samurai 2.00 USD + Assets:Operations:New-Alliance -2.00 USD + + +; Gittip Payday 5 +; =============== + +2012-07-06 * "We Charged participants via Stripe" + Assets:Escrow:Stripe 341.61 USD + Assets:Operations:Stripe 33.63 USD + Income:Fees:Stripe -33.63 USD + Liabilities:Escrow -341.61 USD + +2012-07-19 * "Stripe settlement the net to us" + Assets:Escrow:New-Alliance 341.61 USD + Assets:Operations:New-Alliance 3.52 USD + Expenses:Fees:Stripe 30.11 USD + Assets:Operations:Stripe -30.11 USD + Assets:Operations:Stripe -3.52 USD + Assets:Escrow:Stripe -341.61 USD + + +; Gittip Payday 6 +; =============== + +2012-07-13 * "We Charged participants via Stripe" + Assets:Escrow:Stripe 509.13 USD + Assets:Operations:Stripe 46.14 USD + Income:Fees:Stripe -46.14 USD + Liabilities:Escrow -509.13 USD + +2012-07-19 * "Stripe settle the net to us" + Assets:Escrow:New-Alliance 509.13 USD + Assets:Operations:New-Alliance 5.12 USD + Expenses:Fees:Stripe 41.02 USD + Assets:Operations:Stripe -41.02 USD + Assets:Operations:Stripe -5.12 USD + Assets:Escrow:Stripe -509.13 USD + +; ======================================================= +; *********** Recheck after this line ************ +; ======================================================= + + +; Gittip Payday 7 +; From here needs to be reviewed. (!?) +; $509.51 recorded in Gittip , Stripe charged users - $510.09 +; $41.45 fees recorded in Stripe, Gittip recorded fees as - $46.29 + +2012-07-20 * "We charged participants via Stripe" + Assets:Escrow:Stripe 463.80 USD + Assets:Operations:Stripe 46.29 USD + Income:Fees:Stripe -46.29 USD + Liabilities:Escrow -463.80 USD + +2012-07-27 * "Stripe settle a unexpected net to us" + Assets:Escrow:New-Alliance 463.80 USD + Assets:Operations:New-Alliance 4.84 USD + Expenses:Fees:Stripe 41.45 USD + Assets:Operations:Stripe -41.45 USD + Assets:Operations:Stripe -4.84 USD + Assets:Escrow:Stripe -463.80 USD + + +; Gittip Payday 8 +2012-07-27 * "We charged participants via Stripe" + Assets:Escrow:Stripe 1027.29 USD + Assets:Operations:Stripe 59.97 USD + Income:Fees:Stripe -59.97 USD + Liabilities:Escrow -1027.29 USD + + +; Startubg to use Balanced as Payment provider +; ============================================ + +; Accounts to open next month +; 2012-07-27 open Expenses:Fees:Balanced USD + +2012-07-27 open Assets:Escrow:Balanced USD +2012-07-27 open Assets:Operations:Balanced USD +2012-07-27 open Income:Fees:Balanced USD + + +2012-07-27 * "We also charged participants vi Balanced" + Assets:Escrow:Balanced 506.24 USD + Assets:Operations:Balanced 29.71 USD + Income:Fees:Balanced -29.71 USD + Liabilities:Escrow -506.24 USD diff --git a/FY2013/2012-08.beancount b/FY2013/2012-08.beancount index bd28fcd..035ad27 100644 --- a/FY2013/2012-08.beancount +++ b/FY2013/2012-08.beancount @@ -1,28 +1,95 @@ -2012-08-01 Opening Balance - Assets:Operations:New Alliance $ 1372.49 - Equity:Opening Balance +; Start paying Balanced for services +; ================================== + +2012-08-02 open Expenses:Fees:Balanced USD + +2012-08-02 * "Stripe settle the net of payday 8 to us" + Assets:Escrow:New-Alliance 1027.29 USD + Assets:Operations:New-Alliance 3.55 USD + Expenses:Fees:Stripe 56.42 USD + Assets:Operations:Stripe -56.42 USD + Assets:Operations:Stripe -3.55 USD + Assets:Escrow:Stripe -1027.29 USD -2012-08-02 Settlement - Assets:Escrow:New Alliance $ 1030.84 - Assets:Escrow:Stripe ; Random Fee to Samurai -2012-08-03 Samurai - Expenses:Processing Fees:Samurai $ 7.95 - Assets:Processing Fee Buffer:Samurai -2012-08-03 Retained Earnings - Equity:Retained Earnings $ 7.95 - Expenses:Processing Fees:Samurai +; ===================== + +2012-08-03 * "Samurai withdrew a random fee" + Expenses:Fees:Samurai 7.95 USD + Assets:Operations:New-Alliance -7.95 USD + + +; Gittip Payday 9 +; =============== + +2012-08-03 * "We charged participants via Balanced" + Assets:Escrow:Balanced 456.78 USD + Assets:Operations:Balanced 26.76 USD + Income:Fees:Balanced -26.76 USD + Liabilities:Escrow 456.78 USD + +2012-08-03 * "We charged participants via Stripe" + Assets:Escrow:Stripe 477.08 USD + Assets:Operations:Stripe 25.75 USD + Income:Fees:Stripe -25.75 USD + Liabilities:Escrow 477.08 USD + +2012-08-10 * "Stripe settle the net of payday 9 to us" + Assets:Escrow:New-Alliance 477.08 USD + Assets:Operations:New-Alliance 3.07 USD + Expenses:Fees:Stripe 22.68 USD + Assets:Operations:Stripe -22.68 USD + Assets:Operations:Stripe -3.07 USD + Assets:Escrow:Stripe -477.08 USD + + +; Gittip Payday 10 +; ================ + +2012-08-10 * "We charged participants via Balanced" + Assets:Escrow:Balanced 304.46 USD + Assets:Operations:Balanced 17.22 USD + Income:Fees:Balanced -17.22 USD + Liabilities:Escrow -304.46 USD + +2012-08-10 * "We charged participants via Stripe" + Assets:Escrow:Stripe 508.56 USD + Assets:Operations:Stripe 27.65 USD + Income:Fees:Stripe -27.65 USD + Liabilities:Escrow -508.56 USD + +2012-08-17 * "Stripe settle the net of payday to us" + Assets:Escrow:New-Alliance 508.56 USD + Assets:Operations:New-Alliance 3.10 USD + Expenses:Fees:Stripe 24.55 USD + Assets:Operations:Stripe -24.55 USD + Assets:Operations:Stripe -3.10 USD + Assets:Escrow:Stripe -508.56 USD + + +; Gittip Payday 11 +; ================ + +2012-08-17 * "We charged participants via Balanced" + Assets:Escrow:Balanced 913.40 USD + Assets:Operations:Balanced 51.00 USD + Income:Fees:Balanced -51.00 USD + Liabilities:Escrow -913.00 USD -2012-08-09 Settlement - Assets:Escrow:New Alliance $ 480.15 - Assets:Escrow:Stripe -2012-08-16 Settlement - Assets:Escrow:New Alliance $ 511.66 - Assets:Escrow:Stripe +; Final Stripe transaction +; ======================== +; https://github.com/gratipay/logs/blob/master/statements/2012/08/new-alliance.csv#L6 -2012-08-30 Settlement - Assets:Escrow:New Alliance $ 9.41 - Assets:Escrow:Stripe +2012-08-30 * "There was a migration hiccup with Stripe" + Assets:Escrow:Stripe 9.41 USD + Assets:Operations:Stripe 0.59 USD + Income:Fees:Stripe -0.59 USD + Liabilities:Escrow -9.41 USD +2012-08- * "Stripe settle the net of migration hiccup to us" + Assets:Escrow:New-Alliance 9.41 USD + Expenses:Fees:Stripe 0.59 USD + Assets:Operations:Stripe -0.59 USD + Assets:Escrow:Stripe -9.42 USD diff --git a/FY2013/FY2013.beancount b/FY2013/FY2013.beancount index eb66a7a..3513632 100644 --- a/FY2013/FY2013.beancount +++ b/FY2013/FY2013.beancount @@ -9,3 +9,5 @@ Equity:Owners:Chad-Whitacre -102.45 USD include "2012-06.beancount" +include "2012-07.beancount" +include "2012-08.beancount" From 15fb1244d463346eec131f8f673c46d2ce975f10 Mon Sep 17 00:00:00 2001 From: Kwesi Aguillera Date: Thu, 23 Feb 2017 17:55:25 -0500 Subject: [PATCH 3/3] Missed out some transactions as a result of dropping Stripe --- FY2013/2012-08.beancount | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/FY2013/2012-08.beancount b/FY2013/2012-08.beancount index 035ad27..e3c8702 100644 --- a/FY2013/2012-08.beancount +++ b/FY2013/2012-08.beancount @@ -27,13 +27,13 @@ Assets:Escrow:Balanced 456.78 USD Assets:Operations:Balanced 26.76 USD Income:Fees:Balanced -26.76 USD - Liabilities:Escrow 456.78 USD + Liabilities:Escrow -456.78 USD 2012-08-03 * "We charged participants via Stripe" Assets:Escrow:Stripe 477.08 USD Assets:Operations:Stripe 25.75 USD Income:Fees:Stripe -25.75 USD - Liabilities:Escrow 477.08 USD + Liabilities:Escrow -477.08 USD 2012-08-10 * "Stripe settle the net of payday 9 to us" Assets:Escrow:New-Alliance 477.08 USD @@ -75,21 +75,29 @@ Assets:Escrow:Balanced 913.40 USD Assets:Operations:Balanced 51.00 USD Income:Fees:Balanced -51.00 USD - Liabilities:Escrow -913.00 USD + Liabilities:Escrow -913.40 USD -; Final Stripe transaction -; ======================== +; Gittip Payday 12 +; ================ + +2012-08-14 * "We charged participants via Balanced" + Assets:Escrow:Balanced 988.93 USD + Assets:Operations:Balanced 55.73 USD + Income:Fees:Balanced -55.73 USD + Liabilities:Escrow -988.93 USD + ; https://github.com/gratipay/logs/blob/master/statements/2012/08/new-alliance.csv#L6 +; We charged someone in stripe -2012-08-30 * "There was a migration hiccup with Stripe" +2012-08-14 * "There was a migration hiccup with Stripe payday 12" Assets:Escrow:Stripe 9.41 USD Assets:Operations:Stripe 0.59 USD Income:Fees:Stripe -0.59 USD Liabilities:Escrow -9.41 USD -2012-08- * "Stripe settle the net of migration hiccup to us" +2012-08-30 * "Stripe settle the net of migration hiccup to us" Assets:Escrow:New-Alliance 9.41 USD Expenses:Fees:Stripe 0.59 USD Assets:Operations:Stripe -0.59 USD - Assets:Escrow:Stripe -9.42 USD + Assets:Escrow:Stripe -9.41 USD