Loc should be done for Inspect Ledgers

This commit is contained in:
Rick Falkvinge
2022-08-10 08:56:27 +02:00
parent 055324978e
commit 5353aad610
3 changed files with 13 additions and 13 deletions
+4 -4
View File
@@ -25,8 +25,8 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
PageAccessRequired = new Access (CurrentOrganization, AccessAspect.Bookkeeping, AccessType.Read);
DbVersionRequired = 0; // base schema is fine
PageTitle = Resources.Pages.Ledgers.InspectLedgers_PageTitle;
InfoBoxLiteral = Resources.Pages.Ledgers.InspectLedgers_Info;
PageTitle = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_PageTitle");
InfoBoxLiteral = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_Info");
PageIcon = "iconshock-ledger-inspect";
if (!Page.IsPostBack)
@@ -263,7 +263,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
case "Payout":
Payout payout = (Payout) someObject;
string result =
String.Format (Resources.Pages.Ledgers.InspectLedgers_TxDetail_ThisIsPayoutX, payout.Identity) +
String.Format (LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_TxDetail_ThisIsPayoutX"), payout.Identity) +
" ";
List<string> subValidations = new List<string>();
@@ -480,7 +480,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
return "<strong>" +
String.Format (LocalizedStrings.Get(LocDomain.Global, "Financial_SalaryIdentity"), salary.Identity) +
":</strong> " +
String.Format (Resources.Pages.Ledgers.InspectLedgers_TxDetail_SalaryDetail,
String.Format (LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_TxDetail_SalaryDetail"),
salary.PayrollItem.Organization.Currency.Code,
salary.BaseSalaryCents/100.0, // base salary
(salary.GrossSalaryCents - salary.BaseSalaryCents)/100.0, // before-tax adjustments
@@ -130,7 +130,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
doc.Identity, doc.ClientFileName.Replace("\"", "'"), transaction.Identity);
}
actionHtml = String.Format(hasDoxString, row.FinancialTransactionId.ToString(CultureInfo.InvariantCulture), documents[0].Identity, CurrentOrganization.Name + " - " + Resources.Global.Financial_GeneralLedger + " " + transaction.DateTime.ToShortDateString() + " - " + Resources.Global.Financial_TransactionIdShort + transaction.OrganizationSequenceId.ToString("N0")) + "<span class='hiddenDocLinks'>" + actionHtml + "</span>";
actionHtml = String.Format(hasDoxString, row.FinancialTransactionId.ToString(CultureInfo.InvariantCulture), documents[0].Identity, CurrentOrganization.Name + " - " + LocalizedStrings.Get(LocDomain.Global, "Financial_GeneralLedger") + " " + transaction.DateTime.ToShortDateString() + " - " + LocalizedStrings.Get(LocDomain.Global, "Financial_TransactionIdShort") + transaction.OrganizationSequenceId.ToString("N0"))) + "<span class='hiddenDocLinks'>" + actionHtml + "</span>";
}
result.Append("{" + String.Format(
@@ -152,12 +152,12 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
VatReport report = (VatReport) dependency;
if (report.OpenTransactionId == transaction.Identity)
{
info = String.Format(Resources.Pages.Ledgers.InspectLedgers_TxInfo_OpenVatReport,
info = String.Format(LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_TxInfo_OpenVatReport"),
report.DescriptionShort);
}
else if (report.CloseTransactionId == transaction.Identity)
{
info = String.Format(Resources.Pages.Ledgers.InspectLedgers_TxInfo_CloseVatReport,
info = String.Format(LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_TxInfo_CloseVatReport"),
report.DescriptionShort);
}
}
@@ -126,22 +126,22 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
StringBuilder result = new StringBuilder (16384);
Int64 runningBalance = 0L;
string startString = Resources.Pages.Ledgers.InspectLedgers_InboundBalanceZero;
string endString = Resources.Pages.Ledgers.InspectLedgers_OutboundBalanceZero;
string startString = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_InboundBalanceZero");
string endString = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_OutboundBalanceZero");
if (!zeroStart)
{
runningBalance = account.GetDeltaCents (balanceStart, periodStart);
startString = Resources.Pages.Ledgers.InspectLedgers_InboundBalance;
startString = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_InboundBalance");
}
if (!zeroEnd)
{
endString = Resources.Pages.Ledgers.InspectLedgers_OutboundBalance;
endString = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_OutboundBalance");
}
else if (periodEnd > DateTime.Now)
{
// account is zeroed at end of this period, but we're not yet at end of period, so add a "to date" disclaimer
endString = Resources.Pages.Ledgers.InspectLedgers_OutboundBalanceZeroToDate;
endString = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_OutboundBalanceZeroToDate");
}
result.Append ("{" +
@@ -156,7 +156,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
if (!displayDescription)
{
description = Resources.Pages.Ledgers.InspectLedgers_TxDetail_DescriptionWithheld;
description = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_TxDetail_DescriptionWithheld");
}
if (row.AmountCents < 0)