Added localized payout specs

This commit is contained in:
Rick Falkvinge
2015-03-25 15:57:28 +01:00
parent 86723bfe21
commit 3d894cb416
7 changed files with 595 additions and 5 deletions
+94
View File
@@ -668,6 +668,100 @@ namespace Swarmops.Logic.Financial
Open = false;
}
/// <summary>
/// Gets a (localized) specification of what this payout is for. Will return a type and identity or identities. Does not include the recipient name.
/// </summary>
public string Specification
{
get
{
if (this.DependentCashAdvancesPayout.Count > 0)
{
if (this.DependentCashAdvancesPayout.Count > 1)
{
return String.Format (Resources.Logic_Financial_Payout.Payout_CashAdvanceIdentities,
Formatting.GenerateRangeString (this.DependentCashAdvancesPayout.Identities));
}
return String.Format(Resources.Logic_Financial_Payout.Payout_CashAdvanceIdentity,
this.DependentCashAdvancesPayout [0].Identity);
}
if (this.DependentExpenseClaims.Count > 0)
{
if (this.DependentExpenseClaims.Count > 1)
{
if (this.DependentCashAdvancesPayback.Count > 0)
{
if (this.DependentCashAdvancesPayback.Count > 1)
{
// multiple expenses, multiple paybacks
return String.Format(Resources.Logic_Financial_Payout.Payout_ExpenseClaimIdentitiesLessAdvanceIdentities,
Formatting.GenerateRangeString(this.DependentExpenseClaims.Identities),
Formatting.GenerateRangeString(this.DependentCashAdvancesPayback.Identities));
}
// multiple expenses, single payback
return String.Format(Resources.Logic_Financial_Payout.Payout_ExpenseClaimIdentitiesLessAdvanceIdentities,
Formatting.GenerateRangeString(this.DependentExpenseClaims.Identities),
this.DependentCashAdvancesPayback[0].Identity);
}
// multiple expenses, no payback
return String.Format (Resources.Logic_Financial_Payout.Payout_ExpenseClaimIdentities,
Formatting.GenerateRangeString (this.DependentExpenseClaims.Identities));
}
// single expense, no payback
return String.Format (Resources.Logic_Financial_Payout.Payout_ExpenseClaimIdentity,
this.DependentExpenseClaims[0].Identity);
}
if (this.DependentInvoices.Count > 0)
{
if (this.DependentInvoices.Count > 1)
{
return @"NO SUPPORT FOR MULTIPLE INVOICES - FIX IN PAYOUT.SPECIFICATION";
}
return String.Format (Resources.Logic_Financial_Payout.Payout_InboundInvoiceIdentity,
this.DependentInvoices[0].Identity);
}
if (this.DependentSalariesNet.Count > 0)
{
if (this.DependentSalariesNet.Count > 1)
{
return @"NO SUPPORT FOR MULTIPLE NET SALARIES - FIX IN PAYOUT.SPECIFICATION";
}
return String.Format (Resources.Logic_Financial_Payout.Payout_SalaryIdentityMonth,
this.DependentSalariesNet[0].Identity,
this.DependentSalariesNet[0].PayoutDate);
}
if (this.DependentSalariesTax.Count > 0)
{
if (this.DependentSalariesTax.Count > 1)
{
// tax for multiple salaries
return String.Format (Resources.Logic_Financial_Payout.Payout_SalaryTaxIdentitiesMonth,
Formatting.GenerateRangeString (this.DependentSalariesTax.Identities),
this.DependentSalariesTax[0].PayoutDate); // assumes all salaries on same date
}
}
return @"UNSUPPORTED CASE - FIX IN PAYOUT.SPECIFICATION";
}
}
#region Implementation of ISummable
public long SumCents
+9
View File
@@ -87,6 +87,11 @@
<DesignTime>True</DesignTime>
<DependentUpon>Logic.Financial.FinancialTransactionTagSetTypesStock.resx</DependentUpon>
</Compile>
<Compile Include="Resources\Logic.Financial.Payout.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Logic.Financial.Payout.resx</DependentUpon>
</Compile>
<Compile Include="Resources\Logic.Swarm.DashboardTodos.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
@@ -487,6 +492,10 @@
<EmbeddedResource Include="Resources\Logic.Financial.FinancialTransactionTagSetTypesStock.ru-RU.resx" />
<EmbeddedResource Include="Resources\Logic.Financial.FinancialTransactionTagSetTypesStock.sv-SE.resx" />
<EmbeddedResource Include="Resources\Logic.Financial.FinancialTransactionTagSetTypesStock.zh-CN.resx" />
<EmbeddedResource Include="Resources\Logic.Financial.Payout.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Logic.Financial.Payout.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="Resources\Logic.Swarm.DashboardTodos.af-ZA.resx" />
<EmbeddedResource Include="Resources\Logic.Swarm.DashboardTodos.ar-SA.resx" />
<EmbeddedResource Include="Resources\Logic.Swarm.DashboardTodos.da-DK.resx" />
+288
View File
@@ -0,0 +1,288 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18444
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Swarmops.Logic.Resources {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Logic_Financial_Payout {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Logic_Financial_Payout() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Swarmops.Logic.Resources.Logic.Financial.Payout", typeof(Logic_Financial_Payout).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to Cash Advances {0}.
/// </summary>
internal static string Payout_CashAdvanceIdentities {
get {
return ResourceManager.GetString("Payout_CashAdvanceIdentities", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Cash Advances {0} for {1}.
/// </summary>
internal static string Payout_CashAdvanceIdentitiesRecipient {
get {
return ResourceManager.GetString("Payout_CashAdvanceIdentitiesRecipient", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Cash Advance #{0}.
/// </summary>
internal static string Payout_CashAdvanceIdentity {
get {
return ResourceManager.GetString("Payout_CashAdvanceIdentity", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Cash Advance #{0:N0} for {1}.
/// </summary>
internal static string Payout_CashAdvanceIdentityRecipient {
get {
return ResourceManager.GetString("Payout_CashAdvanceIdentityRecipient", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Cash Advances {0} Payback.
/// </summary>
internal static string Payout_CashAdvancePaybackIdentities {
get {
return ResourceManager.GetString("Payout_CashAdvancePaybackIdentities", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Cash Advance #{0:N0} Payback.
/// </summary>
internal static string Payout_CashAdvancePaybackIdentity {
get {
return ResourceManager.GetString("Payout_CashAdvancePaybackIdentity", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Expenses {0}.
/// </summary>
internal static string Payout_ExpenseClaimIdentities {
get {
return ResourceManager.GetString("Payout_ExpenseClaimIdentities", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Expenses {0} (minus advances {1}).
/// </summary>
internal static string Payout_ExpenseClaimIdentitiesLessAdvanceIdentities {
get {
return ResourceManager.GetString("Payout_ExpenseClaimIdentitiesLessAdvanceIdentities", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Expenses {0} (minus advance #{1:N0}).
/// </summary>
internal static string Payout_ExpenseClaimIdentitiesLessAdvanceIdentity {
get {
return ResourceManager.GetString("Payout_ExpenseClaimIdentitiesLessAdvanceIdentity", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Expense Claims {0} by {1}.
/// </summary>
internal static string Payout_ExpenseClaimIdentitiesRecipient {
get {
return ResourceManager.GetString("Payout_ExpenseClaimIdentitiesRecipient", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Expense #{0:N0}.
/// </summary>
internal static string Payout_ExpenseClaimIdentity {
get {
return ResourceManager.GetString("Payout_ExpenseClaimIdentity", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Expense #{0:N0} (minus advances {1}).
/// </summary>
internal static string Payout_ExpenseClaimIdentityLessAdvanceIdentities {
get {
return ResourceManager.GetString("Payout_ExpenseClaimIdentityLessAdvanceIdentities", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Expense #{0:N0} (minus advance #{1:N0}).
/// </summary>
internal static string Payout_ExpenseClaimIdentityLessAdvanceIdentity {
get {
return ResourceManager.GetString("Payout_ExpenseClaimIdentityLessAdvanceIdentity", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Expense Claim #{0:N0} by {1}.
/// </summary>
internal static string Payout_ExpenseClaimIdentityRecipient {
get {
return ResourceManager.GetString("Payout_ExpenseClaimIdentityRecipient", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Expense Claim #{0:N0}.
/// </summary>
internal static string Payout_ExpenseClaimLongIdentity {
get {
return ResourceManager.GetString("Payout_ExpenseClaimLongIdentity", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Inbound Invoice #{0:N0}.
/// </summary>
internal static string Payout_InboundInvoiceIdentity {
get {
return ResourceManager.GetString("Payout_InboundInvoiceIdentity", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Inbound Invoice #{0:N0} from {1}.
/// </summary>
internal static string Payout_InboundInvoiceIdentitySender {
get {
return ResourceManager.GetString("Payout_InboundInvoiceIdentitySender", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Salary Taxes for {0:yyyy-MMM}.
/// </summary>
internal static string Payout_SalariesTaxMonth {
get {
return ResourceManager.GetString("Payout_SalariesTaxMonth", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Salaries {0} for {1:yyyy-MMM}.
/// </summary>
internal static string Payout_SalaryIdentitiesMonth {
get {
return ResourceManager.GetString("Payout_SalaryIdentitiesMonth", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Salary #{0:N0}.
/// </summary>
internal static string Payout_SalaryIdentity {
get {
return ResourceManager.GetString("Payout_SalaryIdentity", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Salary #{0:N0} for {1:yyyy-MMM}.
/// </summary>
internal static string Payout_SalaryIdentityMonth {
get {
return ResourceManager.GetString("Payout_SalaryIdentityMonth", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Salary #{0:N0} for {1:yyyy-MMM} for {2}.
/// </summary>
internal static string Payout_SalaryIdentityMonthRecipient {
get {
return ResourceManager.GetString("Payout_SalaryIdentityMonthRecipient", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Salary for {0:yyyy-MMM}.
/// </summary>
internal static string Payout_SalaryMonth {
get {
return ResourceManager.GetString("Payout_SalaryMonth", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Taxes for Salaries {0} for {1:yyyy-MMM}.
/// </summary>
internal static string Payout_SalaryTaxIdentitiesMonth {
get {
return ResourceManager.GetString("Payout_SalaryTaxIdentitiesMonth", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Taxes for Salary #{0:N0} for {1:yyyy-MMM}.
/// </summary>
internal static string Payout_SalaryTaxIdentityMonth {
get {
return ResourceManager.GetString("Payout_SalaryTaxIdentityMonth", resourceCulture);
}
}
}
}
+197
View File
@@ -0,0 +1,197 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Payout_CashAdvanceIdentities" xml:space="preserve">
<value>Cash Advances {0}</value>
</data>
<data name="Payout_CashAdvanceIdentitiesRecipient" xml:space="preserve">
<value>Cash Advances {0} for {1}</value>
</data>
<data name="Payout_CashAdvanceIdentity" xml:space="preserve">
<value>Cash Advance #{0}</value>
</data>
<data name="Payout_CashAdvanceIdentityRecipient" xml:space="preserve">
<value>Cash Advance #{0:N0} for {1}</value>
</data>
<data name="Payout_CashAdvancePaybackIdentities" xml:space="preserve">
<value>Cash Advances {0} Payback</value>
</data>
<data name="Payout_CashAdvancePaybackIdentity" xml:space="preserve">
<value>Cash Advance #{0:N0} Payback</value>
</data>
<data name="Payout_ExpenseClaimIdentities" xml:space="preserve">
<value>Expenses {0}</value>
</data>
<data name="Payout_ExpenseClaimIdentitiesLessAdvanceIdentities" xml:space="preserve">
<value>Expenses {0} (minus advances {1})</value>
</data>
<data name="Payout_ExpenseClaimIdentitiesLessAdvanceIdentity" xml:space="preserve">
<value>Expenses {0} (minus advance #{1:N0})</value>
</data>
<data name="Payout_ExpenseClaimIdentitiesRecipient" xml:space="preserve">
<value>Expense Claims {0} by {1}</value>
</data>
<data name="Payout_ExpenseClaimIdentity" xml:space="preserve">
<value>Expense #{0:N0}</value>
</data>
<data name="Payout_ExpenseClaimIdentityLessAdvanceIdentities" xml:space="preserve">
<value>Expense #{0:N0} (minus advances {1})</value>
</data>
<data name="Payout_ExpenseClaimIdentityLessAdvanceIdentity" xml:space="preserve">
<value>Expense #{0:N0} (minus advance #{1:N0})</value>
</data>
<data name="Payout_ExpenseClaimIdentityRecipient" xml:space="preserve">
<value>Expense Claim #{0:N0} by {1}</value>
</data>
<data name="Payout_ExpenseClaimLongIdentity" xml:space="preserve">
<value>Expense Claim #{0:N0}</value>
</data>
<data name="Payout_InboundInvoiceIdentity" xml:space="preserve">
<value>Inbound Invoice #{0:N0}</value>
</data>
<data name="Payout_InboundInvoiceIdentitySender" xml:space="preserve">
<value>Inbound Invoice #{0:N0} from {1}</value>
</data>
<data name="Payout_SalariesTaxMonth" xml:space="preserve">
<value>Salary Taxes for {0:yyyy-MMM}</value>
</data>
<data name="Payout_SalaryIdentitiesMonth" xml:space="preserve">
<value>Salaries {0} for {1:yyyy-MMM}</value>
</data>
<data name="Payout_SalaryIdentity" xml:space="preserve">
<value>Salary #{0:N0}</value>
</data>
<data name="Payout_SalaryIdentityMonth" xml:space="preserve">
<value>Salary #{0:N0} for {1:yyyy-MMM}</value>
</data>
<data name="Payout_SalaryIdentityMonthRecipient" xml:space="preserve">
<value>Salary #{0:N0} for {1:yyyy-MMM} for {2}</value>
<comment>0 is identity, 1 is month, 2 is name</comment>
</data>
<data name="Payout_SalaryMonth" xml:space="preserve">
<value>Salary for {0:yyyy-MMM}</value>
<comment>The payout date is inserted for date, like "Salary for 2012-Aug".</comment>
</data>
<data name="Payout_SalaryTaxIdentitiesMonth" xml:space="preserve">
<value>Taxes for Salaries {0} for {1:yyyy-MMM}</value>
</data>
<data name="Payout_SalaryTaxIdentityMonth" xml:space="preserve">
<value>Taxes for Salary #{0:N0} for {1:yyyy-MMM}</value>
</data>
</root>
+1
View File
@@ -3,6 +3,7 @@ Logic.Communications.Transmission.MailPayload.resx
Logic.Communications.Transmission.NotificationPayload.resx
Logic.Financial.FinancialAccount.resx
Logic.Financial.FinancialTransactionTagSetTypesStock.resx
Logic.Financial.Payout.resx
Logic.Swarm.DashboardTodos.resx
Logic.Swarm.ParticipantTitle.resx
Logic.Swarm.Position.resx
+3 -3
View File
@@ -728,8 +728,8 @@
<value>Amount Within 10% Tolerance</value>
<comment>Header in selection list. Capitalize as customary for culture.</comment>
</data>
<data name="BalanceTransaction_PayoutMatch" xml:space="preserve">
<value>Payout #{0:N0}, expected {1:yyyy-MMM-dd}, for {2}: {3} {4:N2}</value>
<comment>0 is the payout Id, 1 is the date (do culturally edit format if called for), 2 is the recipient name, and 3 4 is the currency and amount</comment>
<data name="BalanceTransactions_PayoutMatch" xml:space="preserve">
<value>Payout #{0:N0}, {5} (expected {1:yyyy-MMM-dd}) for {2}: {3} {4:N2}</value>
<comment>0 is the payout Id, 1 is the date (do edit format if called for in culture), 2 is the recipient name, and 3 4 is the currency and amount, 5 is the specification (like "Expense Claim #4711")</comment>
</data>
</root>
@@ -112,8 +112,9 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
{
if (payout.AmountCents == -matchAmount)
{
string description = String.Format (Resources.Pages.Ledgers.BalanceTransaction_PayoutMatch, payout.Identity,
payout.ExpectedTransactionDate, payout.Recipient, payout.Organization.Currency.DisplayCode, payout.AmountCents / 100.0);
string description = String.Format (Resources.Pages.Ledgers.BalanceTransactions_PayoutMatch, payout.Identity,
payout.ExpectedTransactionDate, payout.Recipient, payout.Organization.Currency.DisplayCode, payout.AmountCents / 100.0,
payout.Specification);
result.Add(new DropdownOption
{