diff --git a/Site5/App_GlobalResources/Pages.Ledgers.resx b/Site5/App_GlobalResources/Pages.Ledgers.resx
index 2cda3d36..30191cc0 100644
--- a/Site5/App_GlobalResources/Pages.Ledgers.resx
+++ b/Site5/App_GlobalResources/Pages.Ledgers.resx
@@ -117,12 +117,38 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ Account
+
+
+ P&L for {0} for
+ The {0} is the organization name. The year number follows this string.
+
The P&L is an overview of income and expenditures, and are grouped by budgets or cost/income type. The sum of all income and expenditure is the yearly result. You may also want to look at the <a href="BalanceSheet.aspx">balance sheet</a> which is the overview of assets and debts.
+
+ Last Year
+
Profit & Loss Statement
+
+ Q1
+
+
+ Q2
+
+
+ Q3
+
+
+ Q4
+
+
+ YTD
+ Year To Date
+
Budget, Owner
Displayed above editables
diff --git a/Site5/App_GlobalResources/Pages.Ledgers.sv-SE.resx b/Site5/App_GlobalResources/Pages.Ledgers.sv-SE.resx
new file mode 100644
index 00000000..00d22d63
--- /dev/null
+++ b/Site5/App_GlobalResources/Pages.Ledgers.sv-SE.resx
@@ -0,0 +1,199 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ Konto
+
+
+ Resultaträkning för {0} år
+ The {0} is the organization name. The year number follows this string.
+
+
+ Resultaträkningen är en översikt av inkomster och utgifter, och grupperas per budget eller kostnadstyp. Summan av alla inkomster och utgifter är det årliga reulstatet. Du kan också titta på <a href="BalanceSheet.aspx">balansräkningen</a> som är översikten över tillgångar och skulder.
+
+
+ Föreg år
+
+
+ Resultaträkning
+
+
+ Q1
+
+
+ Q2
+
+
+ Q3
+
+
+ Q4
+
+
+ Idag
+ Year To Date
+
+
+ Budget, ägare
+ Displayed above editables
+
+
+ Här sätter vi rotbudgetarna för varje budgetår. När dessa är satta, så delegerar varje budgetägare vidare budget inom sina respektive områden.
+
+
+ Rotbudgetar för {0}
+ The {0} is replaced with the organization's name.
+
+
+ Sätt rotnivåbudgetar
+ Displayed above main content
+
+
+ Spara budgetar
+ Text on submit button
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Site5/Pages/v5/Ledgers/ProfitLossStatement.aspx b/Site5/Pages/v5/Ledgers/ProfitLossStatement.aspx
index ba863e49..d1762d74 100644
--- a/Site5/Pages/v5/Ledgers/ProfitLossStatement.aspx
+++ b/Site5/Pages/v5/Ledgers/ProfitLossStatement.aspx
@@ -26,8 +26,26 @@
onLoadSuccess: function () {
$('div.datagrid').css('opacity', 1);
$('#imageLoadIndicator').hide();
+
+ var selectedYear = $('#<%=DropYears.ClientID %>').val();
- // TODO: header processing
+ if (selectedYear == currentYear)
+ {
+ alert("selectedyear == currentyear");
+ $('span.previousYearsHeader').hide();
+ $('span.currentYearHeader').show();
+ }
+ else
+ {
+ alert("selectedyear is not currentyear");
+
+ $('#previousLastYear').text(selectedYear - 1);
+ $('#previousQ1').text(selectedYear + "-" + $('#currentQ1').text());
+ $('#previousQ2').text(selectedYear + "-" + $('#currentQ2').text());
+ $('#previousQ3').text(selectedYear + "-" + $('#currentQ3').text());
+ $('#previousQ4').text(selectedYear + "-" + $('#currentQ4').text());
+ $('#previousYtd').text(selectedYear);
+ }
}
});
@@ -58,7 +76,7 @@
- P&L for Piratpartiet For Year 
+ 
- | Account |
- Last Year |
- Q1 |
- Q2 |
- Q3 |
- Q4 |
- YTD |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
diff --git a/Site5/Pages/v5/Ledgers/ProfitLossStatement.aspx.cs b/Site5/Pages/v5/Ledgers/ProfitLossStatement.aspx.cs
index 292f1f86..bed2b009 100644
--- a/Site5/Pages/v5/Ledgers/ProfitLossStatement.aspx.cs
+++ b/Site5/Pages/v5/Ledgers/ProfitLossStatement.aspx.cs
@@ -31,6 +31,20 @@ public partial class Pages_v5_Ledgers_ProfitLossStatement : PageV5Base
year--;
}
+ Localize();
}
}
+
+ private void Localize()
+ {
+ this.LabelContentHeader.Text = string.Format(Resources.Pages.Ledgers.ProfitLossStatement_ContentHeader, CurrentOrganization.Name);
+ this.LiteralHeaderLastYear.Text = Resources.Pages.Ledgers.ProfitLossStatement_LastYear;
+ this.LiteralHeaderQ1.Text = Resources.Pages.Ledgers.ProfitLossStatement_Q1;
+ this.LiteralHeaderQ2.Text = Resources.Pages.Ledgers.ProfitLossStatement_Q2;
+ this.LiteralHeaderQ3.Text = Resources.Pages.Ledgers.ProfitLossStatement_Q3;
+ this.LiteralHeaderQ4.Text = Resources.Pages.Ledgers.ProfitLossStatement_Q4;
+ this.LiteralHeaderYtd.Text = Resources.Pages.Ledgers.ProfitLossStatement_Ytd;
+ this.LiteralHeaderAccountName.Text = Resources.Pages.Ledgers.ProfitLossStatement_AccountName;
+
+ }
}
\ No newline at end of file