Converted Add Invoice to new loc
This commit is contained in:
Generated
+9
@@ -564,6 +564,15 @@ namespace Swarmops.Localization {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Invoice Date.
|
||||
/// </summary>
|
||||
internal static string CreateInboundInvoice_InvoiceDate {
|
||||
get {
|
||||
return ResourceManager.GetString("CreateInboundInvoice_InvoiceDate", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Received Inbound Invoice.
|
||||
/// </summary>
|
||||
|
||||
@@ -311,6 +311,10 @@
|
||||
<data name="CreateInboundInvoice_Info" xml:space="preserve">
|
||||
<value>This is where you file invoices received at your organization ("Accounts Payable"). Enter the supplier name, amount, due date, the invoice reference, and upload an image of the received invoice. Also, select a budget. The budget owner needs to attest, as usual. (Future roadmapped expansions to this mechanism include purchase orders and supplier lists.)</value>
|
||||
</data>
|
||||
<data name="CreateInboundInvoice_InvoiceDate" xml:space="preserve">
|
||||
<value>Invoice Date</value>
|
||||
<comment>This refers to the date as written on the invoice. (It defaults to the date when the invoice is entered, which is usually later.)</comment>
|
||||
</data>
|
||||
<data name="CreateInboundInvoice_PageTitle" xml:space="preserve">
|
||||
<value>Received Inbound Invoice</value>
|
||||
</data>
|
||||
|
||||
@@ -145,6 +145,7 @@
|
||||
<h2><asp:Label ID="BoxTitle" runat="server"/></h2>
|
||||
<asp:HiddenField ID="HiddenTagSetIdentifiers" runat="server"/>
|
||||
<div class="data-entry-fields">
|
||||
<div class="stacked-input-control"><asp:TextBox runat="server" ID="TextInvoiceDate"/></div>
|
||||
<div class="stacked-input-control"><asp:TextBox runat="server" ID="TextSupplier" /></div>
|
||||
<Swarmops5:CurrencyAmount runat="server" ID="CurrencyAmount" />
|
||||
<span class="vatEnabled"><Swarmops5:CurrencyAmount runat="server" ID="CurrencyVat" /></span>
|
||||
@@ -167,6 +168,7 @@
|
||||
<asp:Button ID="ButtonCreate" runat="server" CssClass="button-accent-color suppress-input-focus" OnClientClick="return validateFields();" OnClick="ButtonCreate_Click" Text="Create"/>
|
||||
</div>
|
||||
<div class="data-entry-labels">
|
||||
<asp:Label runat="server" ID="LabelInvoiceDate"/><br/>
|
||||
<asp:Label runat="server" ID="LabelSupplier" /><br/>
|
||||
<asp:Label runat="server" ID="LabelAmount" /><br/>
|
||||
<span class="vatEnabled"><asp:Label runat="server" ID="LabelVat" /><br/></span>
|
||||
|
||||
@@ -4,6 +4,7 @@ using System.Drawing;
|
||||
using System.Globalization;
|
||||
using System.Web;
|
||||
using Resources;
|
||||
using Swarmops.Localization;
|
||||
using Swarmops.Logic.Financial;
|
||||
using Swarmops.Logic.Security;
|
||||
using Swarmops.Logic.Support;
|
||||
@@ -112,21 +113,23 @@ namespace Swarmops.Frontend.Pages.v5.Financial
|
||||
|
||||
private void Localize()
|
||||
{
|
||||
this.LabelSupplier.Text = Global.Financial_Supplier;
|
||||
this.LabelDueDate.Text = Global.Financial_DueDate;
|
||||
this.LabelAmount.Text = string.Format (Resources.Pages.Financial.CreateInboundInvoice_Amount,
|
||||
this.LabelInvoiceDate.Text = LocalizedStrings.Get(LocDomain.PagesFinancial,
|
||||
"CreateInboundInvoice_InvoiceDate");
|
||||
this.LabelSupplier.Text = LocalizedStrings.Get(LocDomain.Global, "Financial_Supplier");
|
||||
this.LabelDueDate.Text = this.LabelInvoiceDate.Text = LocalizedStrings.Get(LocDomain.Global, "Financial_DueDate");
|
||||
this.LabelAmount.Text = string.Format (LocalizedStrings.Get(LocDomain.PagesFinancial, "CreateInboundInvoice_Amount"),
|
||||
CurrentOrganization.Currency.Code);
|
||||
this.LabelVat.Text = string.Format(Resources.Pages.Financial.CreateInboundInvoice_AmountVat,
|
||||
this.LabelVat.Text = string.Format(LocalizedStrings.Get(LocDomain.PagesFinancial, "CreateInboundInvoice_AmountVat"),
|
||||
CurrentOrganization.Currency.Code);
|
||||
this.LabelPurpose.Text = Resources.Pages.Financial.CreateInboundInvoice_Description;
|
||||
this.LabelBudget.Text = Global.Financial_Budget;
|
||||
this.LabelHeaderBankDetails.Text = Resources.Pages.Financial.CreateInboundInvoice_HeaderPaymentDetails;
|
||||
this.LabelHeaderImageFiles.Text = Resources.Pages.Financial.CreateInboundInvoice_HeaderInvoiceImage;
|
||||
this.LabelImageFiles.Text = Resources.Pages.Financial.CreateInboundInvoice_UploadInvoiceImage;
|
||||
this.LabelReference.Text = Resources.Pages.Financial.CreateInboundInvoice_Reference;
|
||||
this.LabelAccount.Text = Resources.Pages.Financial.CreateInboundInvoice_SupplierAccount;
|
||||
this.LabelPurpose.Text = LocalizedStrings.Get(LocDomain.PagesFinancial, "CreateInboundInvoice_Description");
|
||||
this.LabelBudget.Text = LocalizedStrings.Get(LocDomain.Global, "Financial_Budget");
|
||||
this.LabelHeaderBankDetails.Text = LocalizedStrings.Get(LocDomain.PagesFinancial, "CreateInboundInvoice_HeaderPaymentDetails");
|
||||
this.LabelHeaderImageFiles.Text = LocalizedStrings.Get(LocDomain.PagesFinancial, "Financial.CreateInboundInvoice_HeaderInvoiceImage");
|
||||
this.LabelImageFiles.Text = LocalizedStrings.Get(LocDomain.PagesFinancial, "CreateInboundInvoice_UploadInvoiceImage");
|
||||
this.LabelReference.Text = LocalizedStrings.Get(LocDomain.PagesFinancial, "CreateInboundInvoice_Reference");
|
||||
this.LabelAccount.Text = LocalizedStrings.Get(LocDomain.PagesFinancial, "CreateInboundInvoice_SupplierAccount");
|
||||
|
||||
this.ButtonCreate.Text = Resources.Pages.Financial.CreateInboundInvoice_ButtonCreate;
|
||||
this.ButtonCreate.Text = LocalizedStrings.Get(LocDomain.PagesFinancial, "CreateInboundInvoice_ButtonCreate");
|
||||
}
|
||||
|
||||
|
||||
@@ -233,39 +236,39 @@ namespace Swarmops.Frontend.Pages.v5.Financial
|
||||
}
|
||||
|
||||
return
|
||||
JavascriptEscape (String.Format (Resources.Pages.Financial.CreateInboundInvoice_SuccessMessage,
|
||||
JavascriptEscape (String.Format (LocalizedStrings.Get(LocDomain.PagesFinancial, "CreateInboundInvoice_SuccessMessage"),
|
||||
this._invoiceId));
|
||||
}
|
||||
}
|
||||
|
||||
public string Localized_ValidationError_MissingTag
|
||||
{
|
||||
get { return JavascriptEscape(Resources.Pages.Financial.CreateInboundInvoice_ValidationError_MissingTag); }
|
||||
get { return JavascriptEscape(LocalizedStrings.Get(LocDomain.PagesFinancial, "CreateInboundInvoice_ValidationError_MissingTag")); }
|
||||
}
|
||||
|
||||
public string Localized_ValidationError_Account
|
||||
{
|
||||
get { return JavascriptEscape(Resources.Pages.Financial.CreateInboundInvoice_ValidationError_Account); }
|
||||
get { return JavascriptEscape(LocalizedStrings.Get(LocDomain.PagesFinancial, "CreateInboundInvoice_ValidationError_Account")); }
|
||||
}
|
||||
|
||||
public string Localized_ValidationError_Purpose
|
||||
{
|
||||
get { return JavascriptEscape(Resources.Pages.Financial.CreateInboundInvoice_ValidationError_Purpose); }
|
||||
get { return JavascriptEscape(LocalizedStrings.Get(LocDomain.PagesFinancial, "CreateInboundInvoice_ValidationError_Purpose")); }
|
||||
}
|
||||
|
||||
public string Localized_ValidationError_Budget
|
||||
{
|
||||
get { return JavascriptEscape(Resources.Pages.Financial.CreateInboundInvoice_ValidationError_Budget); }
|
||||
get { return JavascriptEscape(LocalizedStrings.Get(LocDomain.PagesFinancial, "CreateInboundInvoice_ValidationError_Budget")); }
|
||||
}
|
||||
|
||||
public string Localized_ValidationError_Amount
|
||||
{
|
||||
get { return JavascriptEscape(Resources.Pages.Financial.CreateInboundInvoice_ValidationError_Amount); }
|
||||
get { return JavascriptEscape(LocalizedStrings.Get(LocDomain.PagesFinancial, "CreateInboundInvoice_ValidationError_Amount")); }
|
||||
}
|
||||
|
||||
public string Localized_ValidationError_Documents
|
||||
{
|
||||
get { return JavascriptEscape(Resources.Pages.Financial.CreateInboundInvoice_ValidationError_Documents); }
|
||||
get { return JavascriptEscape(LocalizedStrings.Get(LocDomain.PagesFinancial, "CreateInboundInvoice_ValidationError_Documents")); }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -48,6 +48,15 @@ namespace Swarmops.Frontend.Pages.v5.Financial {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField HiddenTagSetIdentifiers;
|
||||
|
||||
/// <summary>
|
||||
/// TextInvoiceDate control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox TextInvoiceDate;
|
||||
|
||||
/// <summary>
|
||||
/// TextSupplier control.
|
||||
/// </summary>
|
||||
@@ -147,6 +156,15 @@ namespace Swarmops.Frontend.Pages.v5.Financial {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button ButtonCreate;
|
||||
|
||||
/// <summary>
|
||||
/// LabelInvoiceDate control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label LabelInvoiceDate;
|
||||
|
||||
/// <summary>
|
||||
/// LabelSupplier control.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user