diff --git a/src/interaction/budgets/recordTemplates.js b/src/interaction/budgets/recordTemplates.js index 1371fb8ffd93a91769b59b43ca93f81edde39db4..8a7cc9feb4692bcfdec3f4f7a8c458ea20c02a4a 100644 --- a/src/interaction/budgets/recordTemplates.js +++ b/src/interaction/budgets/recordTemplates.js @@ -86,13 +86,6 @@ App.Data.Records.LastWeeksCash = function() { this.total = 0; }; -window.setupLastWeeksCash = function() { - V.lastWeeksCashIncome = new App.Data.Records.LastWeeksCash(); - V.lastWeeksCashExpenses = new App.Data.Records.LastWeeksCash(); - V.lastWeeksCashProfits = new App.Data.Records.LastWeeksCash(); -}; - - App.Data.Records.LastWeeksRep = function() { // Slave Jobs this.fucktoy = 0, @@ -157,9 +150,3 @@ App.Data.Records.LastWeeksRep = function() { this.total = 0; }; - -window.setupLastWeeksRep = function() { - V.lastWeeksRepIncome = new App.Data.Records.LastWeeksRep(); - V.lastWeeksRepExpenses = new App.Data.Records.LastWeeksRep(); - V.lastWeeksRepProfits = new App.Data.Records.LastWeeksRep(); -}; diff --git a/src/js/economyJS.js b/src/js/economyJS.js index d84eab5d11b22775837ed09acdc21b04c10186de..2296249ca5a4b0659d24298d39502ac3449ffd9b 100644 --- a/src/js/economyJS.js +++ b/src/js/economyJS.js @@ -2221,3 +2221,15 @@ window.ownershipReport = function({sidebar}) { return r += warrning ? `<span class="warning"> A dangerously narrow margin of control.</span>` : ``; } }; + +window.setupLastWeeksCash = function() { + V.lastWeeksCashIncome = new App.Data.Records.LastWeeksCash(); + V.lastWeeksCashExpenses = new App.Data.Records.LastWeeksCash(); + V.lastWeeksCashProfits = new App.Data.Records.LastWeeksCash(); +}; + +window.setupLastWeeksRep = function() { + V.lastWeeksRepIncome = new App.Data.Records.LastWeeksRep(); + V.lastWeeksRepExpenses = new App.Data.Records.LastWeeksRep(); + V.lastWeeksRepProfits = new App.Data.Records.LastWeeksRep(); +};