From c19644e0c7d224a370cd0131c352711f9ded7ad6 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Fri, 23 Jun 2017 06:01:54 -0400 Subject: [PATCH] s/r/t/ in example report lua code --- reports/monthly_expenses.lua | 10 +++++----- reports/years_income.lua | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/reports/monthly_expenses.lua b/reports/monthly_expenses.lua index 9460c59..b523deb 100644 --- a/reports/monthly_expenses.lua +++ b/reports/monthly_expenses.lua @@ -26,15 +26,15 @@ function generate() account_type = account.Expense accounts = get_accounts() - r = tabulation.new(12) - r:title(year .. " Monthly Expenses") - series_map = account_series_map(accounts, r) + t = tabulation.new(12) + t:title(year .. " Monthly Expenses") + series_map = account_series_map(accounts, t) for month=1,12 do begin_date = date.new(year, month, 1) end_date = date.new(year, month+1, 1) - r:label(month, tostring(begin_date)) + t:label(month, tostring(begin_date)) for id, acct in pairs(accounts) do series = series_map[id] @@ -45,5 +45,5 @@ function generate() end end - return r + return t end diff --git a/reports/years_income.lua b/reports/years_income.lua index 408caab..4e9c20d 100644 --- a/reports/years_income.lua +++ b/reports/years_income.lua @@ -26,14 +26,14 @@ function generate() account_type = account.Income accounts = get_accounts() - r = tabulation.new(1) - r:title(year .. " Income") - series_map = account_series_map(accounts, r) + t = tabulation.new(1) + t:title(year .. " Income") + series_map = account_series_map(accounts, t) begin_date = date.new(year, 1, 1) end_date = date.new(year+1, 1, 1) - r:label(1, year .. " Income") + t:label(1, year .. " Income") for id, acct in pairs(accounts) do series = series_map[id] @@ -43,5 +43,5 @@ function generate() end end - return r + return t end