Untangling loc as EOL QFE
This commit is contained in:
@@ -5,6 +5,7 @@ using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using Swarmops.Common.Enums;
|
||||
using Swarmops.Localization;
|
||||
using Swarmops.Logic.Security;
|
||||
using Swarmops.Logic.Structure;
|
||||
using Swarmops.Logic.Support;
|
||||
@@ -157,11 +158,11 @@ namespace Swarmops.Frontend
|
||||
string[] inputParts = input.Split ('|');
|
||||
|
||||
string resourceKey = inputParts[0].Substring (5);
|
||||
object translatedResource = GetGlobalResourceObject ("Global", resourceKey);
|
||||
object translatedResource = LocalizedStrings.Get (LocDomain.Global, resourceKey);
|
||||
|
||||
if (translatedResource == null)
|
||||
{
|
||||
return "[FAIL] " + resourceKey;
|
||||
return "[LOCFAIL] " + resourceKey;
|
||||
|
||||
// throw new NotImplementedException ("Unimplemented localization resource key: \"" + resourceKey + "\"");
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using Resources;
|
||||
using Swarmops.Localization;
|
||||
using Swarmops.Logic.Financial;
|
||||
using Swarmops.Logic.Security;
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace Swarmops.Frontend.Pages.Financial
|
||||
"\"",
|
||||
payout.ProtoIdentity,
|
||||
(payout.ExpectedTransactionDate <= today
|
||||
? Global.Global_ASAP
|
||||
? LocalizedStrings.Get(LocDomain.Global, "Global_ASAP")
|
||||
: payout.ExpectedTransactionDate.ToShortDateString()),
|
||||
JsonSanitize (TryLocalize (transferInfo.Recipient)),
|
||||
transferInfo.Currency.Code + ", " + JsonSanitize (transferInfo.LocalizedPaymentMethodName),
|
||||
|
||||
@@ -4,9 +4,9 @@ using System.Globalization;
|
||||
using System.Web;
|
||||
using System.Web.Services;
|
||||
using System.Web.UI.WebControls;
|
||||
using Resources;
|
||||
using Swarmops.Common.Enums;
|
||||
using Swarmops.Common.Interfaces;
|
||||
using Swarmops.Localization;
|
||||
using Swarmops.Logic.Financial;
|
||||
using Swarmops.Logic.Security;
|
||||
using Swarmops.Logic.Support;
|
||||
@@ -53,26 +53,26 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
monthNumber.ToString(CultureInfo.InvariantCulture))); // will autolocalize
|
||||
}
|
||||
|
||||
this.DropMonths.Items.Add(new ListItem(Global.Global_Q1, "21"));
|
||||
this.DropMonths.Items.Add(new ListItem(LocalizedStrings.Get(LocDomain.Global, "Global_Q1"), "21"));
|
||||
// quarters and all-year are coded as fake month numbers
|
||||
this.DropMonths.Items.Add(new ListItem(Global.Global_Q2, "22"));
|
||||
this.DropMonths.Items.Add(new ListItem(Global.Global_Q3, "23"));
|
||||
this.DropMonths.Items.Add(new ListItem(Global.Global_Q4, "24"));
|
||||
this.DropMonths.Items.Add(new ListItem(Global.Global_AllYear, "31"));
|
||||
this.DropMonths.Items.Add(new ListItem(LocalizedStrings.Get(LocDomain.Global, "Global_Q2"), "22"));
|
||||
this.DropMonths.Items.Add(new ListItem(LocalizedStrings.Get(LocDomain.Global, "Global_Q3"), "23"));
|
||||
this.DropMonths.Items.Add(new ListItem(LocalizedStrings.Get(LocDomain.Global, "Global_Q4"), "24"));
|
||||
this.DropMonths.Items.Add(new ListItem(LocalizedStrings.Get(LocDomain.Global, "Global_AllYear"), "31"));
|
||||
|
||||
this.DropGeneralMonths.Items.Add(new ListItem(Global.Global_Q1, "21"));
|
||||
this.DropGeneralMonths.Items.Add(new ListItem(LocalizedStrings.Get(LocDomain.Global, "Global_Q1"), "21"));
|
||||
// quarters and all-year are coded as fake month numbers
|
||||
this.DropGeneralMonths.Items.Add(new ListItem(Global.Global_Q2, "22"));
|
||||
this.DropGeneralMonths.Items.Add(new ListItem(Global.Global_Q3, "23"));
|
||||
this.DropGeneralMonths.Items.Add(new ListItem(Global.Global_Q4, "24"));
|
||||
this.DropGeneralMonths.Items.Add(new ListItem(Global.Global_AllYear, "31"));
|
||||
this.DropGeneralMonths.Items.Add(new ListItem(LocalizedStrings.Get(LocDomain.Global, "Global_Q2"), "22"));
|
||||
this.DropGeneralMonths.Items.Add(new ListItem(LocalizedStrings.Get(LocDomain.Global, "Global_Q3"), "23"));
|
||||
this.DropGeneralMonths.Items.Add(new ListItem(LocalizedStrings.Get(LocDomain.Global, "Global_Q4"), "24"));
|
||||
this.DropGeneralMonths.Items.Add(new ListItem(LocalizedStrings.Get(LocDomain.Global, "Global_AllYear"), "31"));
|
||||
|
||||
this.DropHotwalletMonths.Items.Add(new ListItem(Global.Global_Q1, "21"));
|
||||
this.DropHotwalletMonths.Items.Add(new ListItem(LocalizedStrings.Get(LocDomain.Global, "Global_Q1"), "21"));
|
||||
// quarters and all-year are coded as fake month numbers
|
||||
this.DropHotwalletMonths.Items.Add(new ListItem(Global.Global_Q2, "22"));
|
||||
this.DropHotwalletMonths.Items.Add(new ListItem(Global.Global_Q3, "23"));
|
||||
this.DropHotwalletMonths.Items.Add(new ListItem(Global.Global_Q4, "24"));
|
||||
this.DropHotwalletMonths.Items.Add(new ListItem(Global.Global_AllYear, "31"));
|
||||
this.DropHotwalletMonths.Items.Add(new ListItem(LocalizedStrings.Get(LocDomain.Global, "Global_Q2"), "22"));
|
||||
this.DropHotwalletMonths.Items.Add(new ListItem(LocalizedStrings.Get(LocDomain.Global, "Global_Q3"), "23"));
|
||||
this.DropHotwalletMonths.Items.Add(new ListItem(LocalizedStrings.Get(LocDomain.Global, "Global_Q4"), "24"));
|
||||
this.DropHotwalletMonths.Items.Add(new ListItem(LocalizedStrings.Get(LocDomain.Global, "Global_AllYear"), "31"));
|
||||
|
||||
DateTime lastMonth = today.AddMonths(-1);
|
||||
|
||||
@@ -94,40 +94,41 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
|
||||
private void Localize()
|
||||
{
|
||||
this.LabelHeaderInspect.Text = Resources.Pages.Ledgers.InspectLedgers_Header_Inspect;
|
||||
this.LabelHeaderInspectFor.Text = Resources.Pages.Ledgers.InspectLedgers_Header_For;
|
||||
this.LabelHeaderGeneral.Text = Resources.Pages.Ledgers.InspectLedgers_GeneralLedger;
|
||||
this.LabelHeaderHotwallet.Text = Resources.Pages.Ledgers.InspectLedgers_Header_Hotwallet;
|
||||
this.LabelHeaderInspect.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "");
|
||||
this.LabelHeaderInspect.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_Header_Inspect");
|
||||
this.LabelHeaderInspectFor.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_Header_For");
|
||||
this.LabelHeaderGeneral.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_GeneralLedger");
|
||||
this.LabelHeaderHotwallet.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_Header_Hotwallet");
|
||||
|
||||
this.LabelGridHeaderAction.Text = this.LabelTreeHeaderAction.Text = Global.Global_Action;
|
||||
this.LabelGridHeaderBalance.Text = this.LabelTreeHeaderBalance.Text = Global.Ledgers_Balance;
|
||||
this.LabelGridHeaderDateTime.Text = this.LabelTreeHeaderDateTime.Text = Global.Global_Timestamp;
|
||||
this.LabelGridHeaderDeltaNegative.Text = this.LabelTreeHeaderDeltaNegative.Text = Global.Ledgers_Credit;
|
||||
this.LabelGridHeaderDeltaPositive.Text = this.LabelTreeHeaderDeltaPositive.Text = Global.Ledgers_Debit;
|
||||
this.LabelGridHeaderDescription.Text = Global.Global_Description;
|
||||
this.LabelTreeHeaderDescriptionAccount.Text = Resources.Pages.Ledgers.InspectLedgers_Detail;
|
||||
this.LabelGridHeaderId.Text = this.LabelTreeHeaderId.Text = Resources.Pages.Ledgers.InspectLedgers_TransactionId;
|
||||
this.LabelGridHeaderAction.Text = this.LabelTreeHeaderAction.Text = LocalizedStrings.Get(LocDomain.Global, "Global_Action");
|
||||
this.LabelGridHeaderBalance.Text = this.LabelTreeHeaderBalance.Text = LocalizedStrings.Get(LocDomain.Global, "Ledgers_Balance");
|
||||
this.LabelGridHeaderDateTime.Text = this.LabelTreeHeaderDateTime.Text = LocalizedStrings.Get(LocDomain.Global, "Global_Timestamp");
|
||||
this.LabelGridHeaderDeltaNegative.Text = this.LabelTreeHeaderDeltaNegative.Text = LocalizedStrings.Get(LocDomain.Global, "Ledgers_Credit");
|
||||
this.LabelGridHeaderDeltaPositive.Text = this.LabelTreeHeaderDeltaPositive.Text = LocalizedStrings.Get(LocDomain.Global, "Ledgers_Debit");
|
||||
this.LabelGridHeaderDescription.Text = LocalizedStrings.Get(LocDomain.Global, "Global_Description");
|
||||
this.LabelTreeHeaderDescriptionAccount.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_Detail");
|
||||
this.LabelGridHeaderId.Text = this.LabelTreeHeaderId.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_TransactionId");
|
||||
|
||||
this.LabelGridHeaderAccountName.Text = Resources.Pages.Ledgers.InspectLedgers_AccountName;
|
||||
this.LabelGridHeaderDateTimeEntered.Text = Resources.Pages.Ledgers.InspectLedgers_LoggedDate;
|
||||
this.LabelGridHeaderDeltaNegative2.Text = Global.Ledgers_Credit;
|
||||
this.LabelGridHeaderDeltaPositive2.Text = Global.Ledgers_Debit;
|
||||
this.LabelGridHeaderInitials.Text = Resources.Pages.Ledgers.InspectLedgers_LoggedByInitials;
|
||||
this.LabelGridHeaderAccountName.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_AccountName");
|
||||
this.LabelGridHeaderDateTimeEntered.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_LoggedDate");
|
||||
this.LabelGridHeaderDeltaNegative2.Text = LocalizedStrings.Get(LocDomain.Global, "Ledgers_Credit");
|
||||
this.LabelGridHeaderDeltaPositive2.Text = LocalizedStrings.Get(LocDomain.Global, "Ledgers_Debit");
|
||||
this.LabelGridHeaderInitials.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_LoggedByInitials");
|
||||
|
||||
this.LabelHotwalletHeaderDateTime.Text = Global.Global_Timestamp;
|
||||
this.LabelHotwalletHeaderDescription.Text = Global.Global_Description;
|
||||
this.LabelHotwalletHeaderId.Text = Resources.Pages.Ledgers.InspectLedgers_TransactionId;
|
||||
this.LabelHotwalletHeaderDateTime.Text = LocalizedStrings.Get(LocDomain.Global, "Global_Timestamp");
|
||||
this.LabelHotwalletHeaderDescription.Text = LocalizedStrings.Get(LocDomain.Global, "Global_Description");
|
||||
this.LabelHotwalletHeaderId.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_TransactionId");
|
||||
this.LabelHotwalletHeaderPresentationCurrency.Text = CurrentOrganization.Currency.DisplayCode;
|
||||
this.LabelHotwalletHeaderMicrocoin.Text = Currency.BitcoinCash.DisplayCode;
|
||||
this.LabelHotwalletHeaderBalance.Text = Resources.Pages.Ledgers.BitcoinHotwallet_BalanceMicrocoins;
|
||||
this.LabelHotwalletActions.Text = Global.Global_Action;
|
||||
this.LabelHotwalletHeaderBalance.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "BitcoinHotwallet_BalanceMicrocoins");
|
||||
this.LabelHotwalletActions.Text = LocalizedStrings.Get(LocDomain.Global, "Global_Action");
|
||||
|
||||
this.LabelFlagNotAvailable.Text = Resources.Pages.Ledgers.InspectLedgers_FlaggingNotAvailable;
|
||||
this.LabelFlagNotAvailable.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_FlaggingNotAvailable");
|
||||
|
||||
|
||||
this.LabelAddTransactionRowsHeader.Text = Resources.Pages.Ledgers.InspectLedgers_HeaderAddTransactionRow;
|
||||
this.LabelAddTransactionRowsHeader.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_HeaderAddTransactionRow");
|
||||
this.LabelTrackedTransactionHeader.Text =
|
||||
Resources.Pages.Ledgers.InspectLedgers_HeaderAutoTransactionTracking;
|
||||
LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_HeaderAutoTransactionTracking");
|
||||
|
||||
// if write access
|
||||
|
||||
@@ -135,26 +136,26 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
CurrentAuthority.HasAccess (new Access (CurrentOrganization, AccessAspect.BookkeepingDetails,
|
||||
AccessType.Write)))
|
||||
{
|
||||
LiteralEditHeader.Text = Resources.Pages.Ledgers.InspectLedgers_EditingTransactionX;
|
||||
LiteralEditHeader.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_EditingTransactionX");
|
||||
|
||||
this.LabelAddRowAccount.Text = Global.Financial_Account;
|
||||
this.LabelAddRowAmount.Text = Global.Financial_Amount;
|
||||
this.LabelAddRowAccount.Text = LocalizedStrings.Get(LocDomain.Global, "Financial_Account");
|
||||
this.LabelAddRowAmount.Text = LocalizedStrings.Get(LocDomain.Global, "Financial_Amount");
|
||||
this.LiteralErrorAddRowSelectAccount.Text =
|
||||
Resources.Pages.Ledgers.InspectLedgers_TxDetail_ErrorAddRowNoAccount;
|
||||
this.LiteralAddRowButton.Text = JavascriptEscape(Global.Global_Add);
|
||||
LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_TxDetail_ErrorAddRowNoAccount");
|
||||
this.LiteralAddRowButton.Text = JavascriptEscape(LocalizedStrings.Get(LocDomain.Global, "Global_Add"));
|
||||
}
|
||||
else // read access, at a minimum of AccessAspect.Bookkeeping
|
||||
{
|
||||
LiteralEditHeader.Text = Resources.Pages.Ledgers.InspectLedgers_InspectingTransactionX;
|
||||
LiteralEditHeader.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_InspectingTransactionX");
|
||||
}
|
||||
|
||||
this.LabelCreateTxDialogHeader.Text = Resources.Pages.Ledgers.InspectLedgers_CreateTransactionDialogHeader;
|
||||
this.LabelAddTxDateTime.Text = Resources.Pages.Ledgers.InspectLedgers_CreateTransactionDateTime;
|
||||
this.LabelAddTxDescription.Text = Resources.Pages.Ledgers.InspectLedgers_CreateTransactionDescription;
|
||||
this.LabelAddTxFirstRowAccount.Text = Resources.Pages.Ledgers.InspectLedgers_CreateTransactionFirstAccount;
|
||||
this.LabelAddTxFirstRowAmount.Text = Resources.Pages.Ledgers.InspectLedgers_CreateTransactionFirstAmount;
|
||||
this.LabelCreateTxDialogHeader.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_CreateTransactionDialogHeader");
|
||||
this.LabelAddTxDateTime.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_CreateTransactionDateTime");
|
||||
this.LabelAddTxDescription.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_CreateTransactionDescription");
|
||||
this.LabelAddTxFirstRowAccount.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_CreateTransactionFirstAccount");
|
||||
this.LabelAddTxFirstRowAmount.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_CreateTransactionFirstAmount");
|
||||
|
||||
this.LabelAddTransaction.Text = Resources.Pages.Ledgers.InspectLedgers_CreateTransactionSidebar;
|
||||
this.LabelAddTransaction.Text = LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_CreateTransactionSidebar");
|
||||
|
||||
// Access helpers to JavaScript (these don't actually determine access, but help in UI prettiness)
|
||||
|
||||
@@ -273,7 +274,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
if (payout.DependentExpenseClaims.Count == 1)
|
||||
{
|
||||
subResults.Add ("<strong>" +
|
||||
String.Format (Global.Financial_ExpenseClaimSpecificationWithClaimer,
|
||||
String.Format (LocalizedStrings.Get(LocDomain.Global, "Financial_ExpenseClaimSpecificationWithClaimer"),
|
||||
payout.DependentExpenseClaims[0].OrganizationSequenceId,
|
||||
HttpUtility.HtmlEncode (payout.DependentExpenseClaims[0].Claimer.Name)) +
|
||||
".</strong>");
|
||||
@@ -281,7 +282,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
else
|
||||
{
|
||||
subResults.Add ("<strong>" +
|
||||
String.Format (Global.Financial_ExpenseClaimsSpecificationWithClaimer,
|
||||
String.Format (LocalizedStrings.Get(LocDomain.Global, "Financial_ExpenseClaimsSpecificationWithClaimer"),
|
||||
Formatting.GenerateRangeString (payout.DependentExpenseClaims.Identities),
|
||||
HttpUtility.HtmlEncode (payout.DependentExpenseClaims[0].Claimer.Name)) +
|
||||
".</strong>");
|
||||
@@ -298,13 +299,13 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
if (payout.DependentCashAdvancesPayback.Count == 1)
|
||||
{
|
||||
subResults.Add ("<strong>" +
|
||||
String.Format (Global.Financial_CashAdvancePaybackSpecification,
|
||||
String.Format (LocalizedStrings.Get(LocDomain.Global, "Financial_CashAdvancePaybackSpecification"),
|
||||
payout.DependentCashAdvancesPayback[0].Identity) + ".</strong>");
|
||||
}
|
||||
else
|
||||
{
|
||||
subResults.Add ("<strong>" +
|
||||
String.Format (Global.Financial_CashAdvancePaybacksSpecification,
|
||||
String.Format (LocalizedStrings.Get(LocDomain.Global, "Financial_CashAdvancePaybacksSpecification"),
|
||||
Formatting.GenerateRangeString (payout.DependentExpenseClaims.Identities)) +
|
||||
".</strong>");
|
||||
}
|
||||
@@ -317,13 +318,13 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
if (payout.DependentCashAdvancesPayout.Count == 1)
|
||||
{
|
||||
subResults.Add ("<strong>" +
|
||||
String.Format (Global.Financial_CashAdvanceLongSpecificationWithRecipient,
|
||||
String.Format (LocalizedStrings.Get(LocDomain.Global, "Financial_CashAdvanceLongSpecificationWithRecipient"),
|
||||
advance0.OrganizationSequenceId, advance0.Person.Name) + ".</strong>");
|
||||
}
|
||||
else
|
||||
{
|
||||
subResults.Add ("<strong>" +
|
||||
String.Format (Global.Financial_CashAdvancesLongSpecificationWithRecipient,
|
||||
String.Format (LocalizedStrings.Get(LocDomain.Global, "Financial_CashAdvancesLongSpecificationWithRecipient"),
|
||||
Formatting.GenerateRangeString (payout.DependentExpenseClaims.Identities),
|
||||
advance0.Person.Name) + ".</strong>");
|
||||
}
|
||||
@@ -341,7 +342,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
InboundInvoice invoice = payout.DependentInvoices[0];
|
||||
|
||||
subResults.Add ("<strong>" + String.Format (
|
||||
Global.Financial_InboundInvoiceSpecificationWithSender, invoice.OrganizationSequenceId,
|
||||
LocalizedStrings.Get(LocDomain.Global, "Financial_InboundInvoiceSpecificationWithSender"), invoice.OrganizationSequenceId,
|
||||
invoice.Supplier) + "</strong>");
|
||||
|
||||
subValidations.Add (GetObjectDetails (invoice));
|
||||
@@ -354,7 +355,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
Salary salary = payout.DependentSalariesNet[0];
|
||||
|
||||
subResults.Add ("<strong>" +
|
||||
String.Format (Global.Financial_SalaryDualSpecificationWithRecipient,
|
||||
String.Format (LocalizedStrings.Get(LocDomain.Global, "Financial_SalaryDualSpecificationWithRecipient"),
|
||||
salary.Identity, salary.PayoutDate,
|
||||
HttpUtility.HtmlEncode (salary.PayrollItem.PersonCanonical)) +
|
||||
"</strong>");
|
||||
@@ -369,22 +370,22 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
if (payout.DependentSalariesTax.Count == 1)
|
||||
{
|
||||
subResults.Add ("<strong>" +
|
||||
String.Format (Global.Financial_SalaryTaxDualSpecification, salary0.Identity,
|
||||
String.Format (LocalizedStrings.Get(LocDomain.Global, "Financial_SalaryTaxDualSpecification"), salary0.Identity,
|
||||
salary0.PayoutDate) + "</strong>");
|
||||
}
|
||||
else
|
||||
{
|
||||
subResults.Add ("<strong>" +
|
||||
String.Format (Global.Financial_SalariesTaxSpecification, salary0.PayoutDate) +
|
||||
String.Format (LocalizedStrings.Get(LocDomain.Global, "Financial_SalariesTaxSpecification"), salary0.PayoutDate) +
|
||||
"</strong>");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
result +=
|
||||
String.Join (" " + Resources.Pages.Ledgers.InspectLedgers_TxDetail_CombinedWith + " ",
|
||||
String.Join (" " + LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_TxDetail_CombinedWith") + " ",
|
||||
subResults) + ". " +
|
||||
String.Format (Resources.Pages.Ledgers.InspectLedgers_TxDetail_PaidOutBy,
|
||||
String.Format (LocalizedStrings.Get(LocDomain.Global, "InspectLedgers_TxDetail_PaidOutBy"),
|
||||
payout.CreatedByPerson.Canonical);
|
||||
|
||||
return "<p>" + result + "</p><p>" + String.Join ("</p><p>", subValidations) + "</p>";
|
||||
@@ -408,13 +409,13 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
{
|
||||
if (validation.ValidationType == FinancialValidationType.Approval)
|
||||
{
|
||||
result += String.Format (Resources.Pages.Ledgers.InspectLedgers_TxDetail_AttestedByX + ". ",
|
||||
result += String.Format (LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_TxDetail_AttestedByX") + ". ",
|
||||
validation.Person.Canonical,
|
||||
validation.DateTime);
|
||||
}
|
||||
if (validation.ValidationType == FinancialValidationType.Validation)
|
||||
{
|
||||
result += String.Format (Resources.Pages.Ledgers.InspectLedgers_TxDetail_ValidatedByX + ". ",
|
||||
result += String.Format (LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_TxDetail_ValidatedByX") + ". ",
|
||||
validation.Person.Canonical,
|
||||
validation.DateTime);
|
||||
}
|
||||
@@ -448,7 +449,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
ExpenseClaim claim = (ExpenseClaim) identifiableObject;
|
||||
|
||||
return "<strong>" +
|
||||
String.Format (Global.Financial_ExpenseClaimLongSpecification, claim.Identity) +
|
||||
String.Format (LocalizedStrings.Get(LocDomain.Global, "Financial_ExpenseClaimLongSpecification"), claim.Identity) +
|
||||
":</strong> " + claim.Organization.Currency.Code + " " +
|
||||
(claim.AmountCents/100.0).ToString ("N2") + ". " +
|
||||
HttpUtility.HtmlEncode (GetValidationDetails (claim.Validations)) + " " +
|
||||
@@ -458,7 +459,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
CashAdvance advance = (CashAdvance) identifiableObject;
|
||||
|
||||
return "<strong>" +
|
||||
String.Format (Global.Financial_CashAdvanceSpecification, advance.Identity) +
|
||||
String.Format (LocalizedStrings.Get(LocDomain.Global, "Financial_CashAdvanceSpecification"), advance.Identity) +
|
||||
":</strong> " + advance.Organization.Currency.Code + " " +
|
||||
(advance.AmountCents/100.0).ToString ("N2") + ". " +
|
||||
HttpUtility.HtmlEncode (GetValidationDetails (advance.Validations));
|
||||
@@ -467,7 +468,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
InboundInvoice invoice = (InboundInvoice) identifiableObject;
|
||||
|
||||
return "<strong>" +
|
||||
String.Format (Global.Financial_InboundInvoiceSpecification, invoice.Identity) +
|
||||
String.Format (LocalizedStrings.Get(LocDomain.Global, "Financial_InboundInvoiceSpecification"), invoice.Identity) +
|
||||
":</strong> " + invoice.Organization.Currency.Code + " " +
|
||||
(invoice.AmountCents/100.0).ToString ("N2") + ". " +
|
||||
GetValidationDetails (invoice.Validations) + " " +
|
||||
@@ -477,7 +478,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
Salary salary = (Salary) identifiableObject;
|
||||
|
||||
return "<strong>" +
|
||||
String.Format (Global.Financial_SalaryIdentity, salary.Identity) +
|
||||
String.Format (LocalizedStrings.Get(LocDomain.Global, "Financial_SalaryIdentity"), salary.Identity) +
|
||||
":</strong> " +
|
||||
String.Format (Resources.Pages.Ledgers.InspectLedgers_TxDetail_SalaryDetail,
|
||||
salary.PayrollItem.Organization.Currency.Code,
|
||||
@@ -537,7 +538,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
|
||||
public string Localized_CreateTx
|
||||
{
|
||||
get { return Resources.Pages.Ledgers.InspectLedgers_CreateTransactionButton; }
|
||||
get { return LocalizedStrings.Get(LocDomain.PagesLedgers, "InspectLedgers_CreateTransactionButton"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user