Work on direct purchases
This commit is contained in:
+54
@@ -618,6 +618,15 @@ namespace Resources.Pages {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Mark Purchase.
|
||||
/// </summary>
|
||||
internal static string BalanceTransactions_ModalDialog_ButtonPurchase {
|
||||
get {
|
||||
return ResourceManager.GetString("BalanceTransactions_ModalDialog_ButtonPurchase", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Close VAT report.
|
||||
/// </summary>
|
||||
@@ -663,6 +672,42 @@ namespace Resources.Pages {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Charge purchase to this budget.
|
||||
/// </summary>
|
||||
internal static string BalanceTransactions_ModalDialog_DescribePurchaseBudget {
|
||||
get {
|
||||
return ResourceManager.GetString("BalanceTransactions_ModalDialog_DescribePurchaseBudget", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Upload receipt or other documentation.
|
||||
/// </summary>
|
||||
internal static string BalanceTransactions_ModalDialog_DescribePurchaseDocUpload {
|
||||
get {
|
||||
return ResourceManager.GetString("BalanceTransactions_ModalDialog_DescribePurchaseDocUpload", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Update transaction description.
|
||||
/// </summary>
|
||||
internal static string BalanceTransactions_ModalDialog_DescribePurchaseTransaction {
|
||||
get {
|
||||
return ResourceManager.GetString("BalanceTransactions_ModalDialog_DescribePurchaseTransaction", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to VAT part of the amount.
|
||||
/// </summary>
|
||||
internal static string BalanceTransactions_ModalDialog_DescribePurchaseVat {
|
||||
get {
|
||||
return ResourceManager.GetString("BalanceTransactions_ModalDialog_DescribePurchaseVat", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to This transaction is payment/return for this VAT report:.
|
||||
/// </summary>
|
||||
@@ -726,6 +771,15 @@ namespace Resources.Pages {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Mark this as a direct-from-account purchase?.
|
||||
/// </summary>
|
||||
internal static string BalanceTransactions_ModalDialog_RadioPurchase {
|
||||
get {
|
||||
return ResourceManager.GetString("BalanceTransactions_ModalDialog_RadioPurchase", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Close a VAT report with this transaction?.
|
||||
/// </summary>
|
||||
|
||||
@@ -920,4 +920,22 @@
|
||||
<value>Totals for this report</value>
|
||||
<comment>Displayed as description of footer</comment>
|
||||
</data>
|
||||
<data name="BalanceTransactions_ModalDialog_ButtonPurchase" xml:space="preserve">
|
||||
<value>Mark Purchase</value>
|
||||
</data>
|
||||
<data name="BalanceTransactions_ModalDialog_DescribePurchaseBudget" xml:space="preserve">
|
||||
<value>Charge purchase to this budget</value>
|
||||
</data>
|
||||
<data name="BalanceTransactions_ModalDialog_DescribePurchaseDocUpload" xml:space="preserve">
|
||||
<value>Upload receipt or other documentation</value>
|
||||
</data>
|
||||
<data name="BalanceTransactions_ModalDialog_DescribePurchaseTransaction" xml:space="preserve">
|
||||
<value>Update transaction description</value>
|
||||
</data>
|
||||
<data name="BalanceTransactions_ModalDialog_DescribePurchaseVat" xml:space="preserve">
|
||||
<value>VAT part of the amount</value>
|
||||
</data>
|
||||
<data name="BalanceTransactions_ModalDialog_RadioPurchase" xml:space="preserve">
|
||||
<value>Mark this as a direct-from-account purchase?</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -33,8 +33,13 @@
|
||||
$('#buttonExecuteOutboundInvoice').val(buttonOutboundInvoiceValue);
|
||||
$('#buttonExecuteVatReport').val(buttonVatReportValue);
|
||||
|
||||
if (isVatEnabled) {
|
||||
$(".onVatEnabled").show();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
var isVatEnabled = <%= CurrentOrganization.VatEnabled? "true": "false" %>;
|
||||
var transactionId = 0;
|
||||
|
||||
function onFixTransaction(newTransactionId) {
|
||||
@@ -201,6 +206,7 @@
|
||||
var buttonPayoutForeignValue = SwarmopsJS.unescape('<%=this.Localized_ButtonPayoutForeign%>');
|
||||
var buttonOutboundInvoiceValue = SwarmopsJS.unescape('<%=this.Localized_ButtonOutboundInvoice%>');
|
||||
var buttonVatReportValue = SwarmopsJS.unescape('<%=this.Localized_ButtonVatReport%>');
|
||||
var buttonPurchaseValue = SwarmopsJS.unescape('<%=this.Localized_ButtonPurchase%>');
|
||||
|
||||
</script>
|
||||
|
||||
@@ -299,20 +305,20 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p><input type="radio" id="RadioPurchase" name="TxOptions" value="Purchase" /><label for="RadioPurchase"> <asp:Label runat="server" ID="Label2" Text="Mark this as a direct-from-account purchase? XYZ" /></label></p>
|
||||
<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">
|
||||
<Swarmops5:ComboBudgets Layout="Vertical" ID="DropBudgetsPurchase" runat="server" ListType="All" />
|
||||
<div class="stacked-input-control"><input type="text" value="#Description#" id="inputTextPurchaseDescription"/></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>
|
||||
<Swarmops5:FileUpload ID="UploadPurchase" runat="server"/>
|
||||
<input type="button" value='#Balance#' class="buttonAccentColor" onclick="onBalanceTransaction(); return false;" id="buttonExecutePurchase"/>
|
||||
<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="LabelPurchaseBudget" Text="Charge purchase to this budget XYZ" /></div>
|
||||
<div class="stacked-input-control"><asp:Label runat="server" ID="LabelPurchaseDescriptionUpdate" Text="Update transaction description XYZ" /></div>
|
||||
<div class="stacked-input-control"><asp:Label runat="server" ID="LabelPurchaseVatAmount" Text="VAT part of the amount XYZ" /></div>
|
||||
<div class="stacked-input-control"><asp:Label runat="server" ID="LabelPurchaseUploadReceipt" Text="Upload the receipt or other documentation 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>
|
||||
<div class="stacked-input-control"><asp:Label runat="server" ID="LabelDescribePurchaseUploadReceipt" Text="Upload the receipt or other documentation XYZ" /></div>
|
||||
</div>
|
||||
<div style="clear:both"></div>
|
||||
</div>
|
||||
|
||||
@@ -48,6 +48,15 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
Resources.Pages.Ledgers.BalanceTransactions_ModalDialog_DescribeOutboundInvoice;
|
||||
this.LabelDescribeVatReport.Text = Resources.Pages.Ledgers.BalanceTransactions_ModalDialog_DescribeVatReport;
|
||||
|
||||
this.LabelDescribePurchaseBudget.Text =
|
||||
Resources.Pages.Ledgers.BalanceTransactions_ModalDialog_DescribePurchaseBudget;
|
||||
this.LabelDescribePurchaseDescriptionUpdate.Text =
|
||||
Resources.Pages.Ledgers.BalanceTransactions_ModalDialog_DescribePurchaseTransaction;
|
||||
this.LabelDescribePurchaseVatAmount.Text =
|
||||
Resources.Pages.Ledgers.BalanceTransactions_ModalDialog_DescribePurchaseVat;
|
||||
this.LabelDescribePurchaseUploadReceipt.Text =
|
||||
Resources.Pages.Ledgers.BalanceTransactions_ModalDialog_DescribePurchaseDocUpload;
|
||||
|
||||
this.LabelRadioPayout.Text = Resources.Pages.Ledgers.BalanceTransactions_ModalDialog_RadioPayout;
|
||||
this.LabelRadioPayoutForeign.Text =
|
||||
String.Format(Resources.Pages.Ledgers.BalanceTransactions_ModalDialog_RadioPayoutForeign, 5);
|
||||
@@ -55,6 +64,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
Resources.Pages.Ledgers.BalanceTransactions_ModalDialog_RadioOutboundInvoice;
|
||||
this.LabelRadioVatReport.Text =
|
||||
Resources.Pages.Ledgers.BalanceTransactions_ModalDialog_RadioVatReport;
|
||||
this.LabelRadioPurchase.Text = Resources.Pages.Ledgers.BalanceTransactions_ModalDialog_RadioPurchase;
|
||||
|
||||
}
|
||||
|
||||
@@ -563,5 +573,13 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
return CommonV5.JavascriptEscape(Resources.Pages.Ledgers.BalanceTransactions_ModalDialog_ButtonVatReport);
|
||||
}
|
||||
}
|
||||
|
||||
public string Localized_ButtonPurchase
|
||||
{
|
||||
get
|
||||
{
|
||||
return CommonV5.JavascriptEscape(Resources.Pages.Ledgers.BalanceTransactions_ModalDialog_ButtonPurchase);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+10
-10
@@ -211,13 +211,13 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers {
|
||||
protected global::System.Web.UI.WebControls.Label LabelDescribeOutboundInvoice;
|
||||
|
||||
/// <summary>
|
||||
/// Label2 control.
|
||||
/// LabelRadioPurchase 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 Label2;
|
||||
protected global::System.Web.UI.WebControls.Label LabelRadioPurchase;
|
||||
|
||||
/// <summary>
|
||||
/// DropBudgetsPurchase control.
|
||||
@@ -247,40 +247,40 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers {
|
||||
protected global::Swarmops.Controls.Base.FileUpload UploadPurchase;
|
||||
|
||||
/// <summary>
|
||||
/// LabelPurchaseBudget control.
|
||||
/// LabelDescribePurchaseBudget 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 LabelPurchaseBudget;
|
||||
protected global::System.Web.UI.WebControls.Label LabelDescribePurchaseBudget;
|
||||
|
||||
/// <summary>
|
||||
/// LabelPurchaseDescriptionUpdate control.
|
||||
/// LabelDescribePurchaseDescriptionUpdate 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 LabelPurchaseDescriptionUpdate;
|
||||
protected global::System.Web.UI.WebControls.Label LabelDescribePurchaseDescriptionUpdate;
|
||||
|
||||
/// <summary>
|
||||
/// LabelPurchaseVatAmount control.
|
||||
/// LabelDescribePurchaseVatAmount 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 LabelPurchaseVatAmount;
|
||||
protected global::System.Web.UI.WebControls.Label LabelDescribePurchaseVatAmount;
|
||||
|
||||
/// <summary>
|
||||
/// LabelPurchaseUploadReceipt control.
|
||||
/// LabelDescribePurchaseUploadReceipt 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 LabelPurchaseUploadReceipt;
|
||||
protected global::System.Web.UI.WebControls.Label LabelDescribePurchaseUploadReceipt;
|
||||
|
||||
/// <summary>
|
||||
/// LabelRadioBalance control.
|
||||
|
||||
Reference in New Issue
Block a user