Added a helper field
This commit is contained in:
@@ -699,6 +699,15 @@ namespace Resources.Pages {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Direct-debit purchase amount ({0}).
|
||||
/// </summary>
|
||||
internal static string BalanceTransactions_ModalDialog_DescribePurchaseAmount {
|
||||
get {
|
||||
return ResourceManager.GetString("BalanceTransactions_ModalDialog_DescribePurchaseAmount", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Charge purchase to this budget.
|
||||
/// </summary>
|
||||
|
||||
@@ -932,6 +932,10 @@
|
||||
<data name="BalanceTransactions_ModalDialog_ButtonPurchase" xml:space="preserve">
|
||||
<value>Mark as Direct Purchase</value>
|
||||
</data>
|
||||
<data name="BalanceTransactions_ModalDialog_DescribePurchaseAmount" xml:space="preserve">
|
||||
<value>Direct-debit purchase amount ({0})</value>
|
||||
<comment>{0} is the currency</comment>
|
||||
</data>
|
||||
<data name="BalanceTransactions_ModalDialog_DescribePurchaseBudget" xml:space="preserve">
|
||||
<value>Charge purchase to this budget</value>
|
||||
</data>
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
$('#spanTransactionUnbalancedBy').text(data.DifferingAmount);
|
||||
$('span#spanModalTransactionDate').text(data.TransactionDate);
|
||||
$('input#inputTextPurchaseDescription').val(data.TransactionDescription);
|
||||
$('input#inputTextPurchaseAmount').val(data.DifferingAmount.substring(1)); // removes the leading minus sign
|
||||
|
||||
if (data.OpenPayoutData == null) // amount is positive
|
||||
{
|
||||
@@ -348,6 +349,7 @@
|
||||
<p><input type="radio" id="RadioPurchase" name="TxOptions" value="Purchase" /><label for="RadioPurchase"> <asp:Label runat="server" ID="LabelRadioPurchase" Text="Mark this as a direct-from-account purchase? XYZ" /></label></p>
|
||||
<div id="radioOptionPurchase" class="radioOption">
|
||||
<div class="entryFields">
|
||||
<div class="stacked-input-control"><input type="text" value="" readonly="readonly" disabled="disabled" id="inputTextPurchaseAmount"/></div>
|
||||
<Swarmops5:ComboBudgets Layout="Vertical" ID="DropBudgetsPurchase" runat="server" ListType="InvoiceableIn" />
|
||||
<div class="stacked-input-control"><input type="text" value="" id="inputTextPurchaseDescription"/></div>
|
||||
<div class="onVatEnabled" style="display: none"><Swarmops5:CurrencyTextBox ID="CurrencyPurchaseVat" runat="server" Layout="Vertical"/></div>
|
||||
@@ -355,6 +357,7 @@
|
||||
<input type="button" value='#Balance#' class="buttonAccentColor" onclick="onCreateDirectPurchase(); return false;" id="buttonExecutePurchase"/>
|
||||
</div>
|
||||
<div class="entryLabels">
|
||||
<div class="stacked-input-control"><asp:Label runat="server" ID="LabelDescribePurchaseAmount" Text="Direct purchase amount (CUR) XYZ" /></div>
|
||||
<div class="stacked-input-control"><asp:Label runat="server" ID="LabelDescribePurchaseBudget" Text="Charge purchase to this budget XYZ" /></div>
|
||||
<div class="stacked-input-control"><asp:Label runat="server" ID="LabelDescribePurchaseDescriptionUpdate" Text="Update transaction description XYZ" /></div>
|
||||
<div class="onVatEnabled" style="display:none"><div class="stacked-input-control"><asp:Label runat="server" ID="LabelDescribePurchaseVatAmount" Text="VAT part of the amount XYZ" /></div></div>
|
||||
|
||||
@@ -59,6 +59,9 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
Resources.Pages.Ledgers.BalanceTransactions_ModalDialog_DescribePurchaseVat;
|
||||
this.LabelDescribePurchaseUploadReceipt.Text =
|
||||
Resources.Pages.Ledgers.BalanceTransactions_ModalDialog_DescribePurchaseDocUpload;
|
||||
this.LabelDescribePurchaseAmount.Text =
|
||||
String.Format(Resources.Pages.Ledgers.BalanceTransactions_ModalDialog_DescribePurchaseAmount,
|
||||
CurrentOrganization.Currency.DisplayCode);
|
||||
|
||||
this.LabelRadioPayout.Text = Resources.Pages.Ledgers.BalanceTransactions_ModalDialog_RadioPayout;
|
||||
this.LabelRadioPayoutForeign.Text =
|
||||
|
||||
@@ -246,6 +246,15 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers {
|
||||
/// </remarks>
|
||||
protected global::Swarmops.Controls.Base.FileUpload UploadPurchase;
|
||||
|
||||
/// <summary>
|
||||
/// LabelDescribePurchaseAmount 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 LabelDescribePurchaseAmount;
|
||||
|
||||
/// <summary>
|
||||
/// LabelDescribePurchaseBudget control.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user