diff --git a/Site/App_GlobalResources/Pages.Ledgers.designer.cs b/Site/App_GlobalResources/Pages.Ledgers.designer.cs index 3cfbbf9e..ea60e07e 100644 --- a/Site/App_GlobalResources/Pages.Ledgers.designer.cs +++ b/Site/App_GlobalResources/Pages.Ledgers.designer.cs @@ -618,6 +618,15 @@ namespace Resources.Pages { } } + /// + /// Looks up a localized string similar to Mark Purchase. + /// + internal static string BalanceTransactions_ModalDialog_ButtonPurchase { + get { + return ResourceManager.GetString("BalanceTransactions_ModalDialog_ButtonPurchase", resourceCulture); + } + } + /// /// Looks up a localized string similar to Close VAT report. /// @@ -663,6 +672,42 @@ namespace Resources.Pages { } } + /// + /// Looks up a localized string similar to Charge purchase to this budget. + /// + internal static string BalanceTransactions_ModalDialog_DescribePurchaseBudget { + get { + return ResourceManager.GetString("BalanceTransactions_ModalDialog_DescribePurchaseBudget", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Upload receipt or other documentation. + /// + internal static string BalanceTransactions_ModalDialog_DescribePurchaseDocUpload { + get { + return ResourceManager.GetString("BalanceTransactions_ModalDialog_DescribePurchaseDocUpload", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Update transaction description. + /// + internal static string BalanceTransactions_ModalDialog_DescribePurchaseTransaction { + get { + return ResourceManager.GetString("BalanceTransactions_ModalDialog_DescribePurchaseTransaction", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to VAT part of the amount. + /// + internal static string BalanceTransactions_ModalDialog_DescribePurchaseVat { + get { + return ResourceManager.GetString("BalanceTransactions_ModalDialog_DescribePurchaseVat", resourceCulture); + } + } + /// /// Looks up a localized string similar to This transaction is payment/return for this VAT report:. /// @@ -726,6 +771,15 @@ namespace Resources.Pages { } } + /// + /// Looks up a localized string similar to Mark this as a direct-from-account purchase?. + /// + internal static string BalanceTransactions_ModalDialog_RadioPurchase { + get { + return ResourceManager.GetString("BalanceTransactions_ModalDialog_RadioPurchase", resourceCulture); + } + } + /// /// Looks up a localized string similar to Close a VAT report with this transaction?. /// diff --git a/Site/App_GlobalResources/Pages.Ledgers.resx b/Site/App_GlobalResources/Pages.Ledgers.resx index f790ebcb..67bdd6a8 100644 --- a/Site/App_GlobalResources/Pages.Ledgers.resx +++ b/Site/App_GlobalResources/Pages.Ledgers.resx @@ -920,4 +920,22 @@ Totals for this report Displayed as description of footer + + Mark Purchase + + + Charge purchase to this budget + + + Upload receipt or other documentation + + + Update transaction description + + + VAT part of the amount + + + Mark this as a direct-from-account purchase? + \ No newline at end of file diff --git a/Site/Pages/v5/Ledgers/BalanceTransactions.aspx b/Site/Pages/v5/Ledgers/BalanceTransactions.aspx index 4241c440..df0fa54c 100644 --- a/Site/Pages/v5/Ledgers/BalanceTransactions.aspx +++ b/Site/Pages/v5/Ledgers/BalanceTransactions.aspx @@ -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%>'); @@ -299,20 +305,20 @@ -

+

- -
+ +
- +
-
-
-
-
+
+
+ +
diff --git a/Site/Pages/v5/Ledgers/BalanceTransactions.aspx.cs b/Site/Pages/v5/Ledgers/BalanceTransactions.aspx.cs index 47ad6a7e..8a0b25ba 100644 --- a/Site/Pages/v5/Ledgers/BalanceTransactions.aspx.cs +++ b/Site/Pages/v5/Ledgers/BalanceTransactions.aspx.cs @@ -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); + } + } } } \ No newline at end of file diff --git a/Site/Pages/v5/Ledgers/BalanceTransactions.aspx.designer.cs b/Site/Pages/v5/Ledgers/BalanceTransactions.aspx.designer.cs index 72780fd3..9f7bd3bd 100644 --- a/Site/Pages/v5/Ledgers/BalanceTransactions.aspx.designer.cs +++ b/Site/Pages/v5/Ledgers/BalanceTransactions.aspx.designer.cs @@ -211,13 +211,13 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers { protected global::System.Web.UI.WebControls.Label LabelDescribeOutboundInvoice; /// - /// Label2 control. + /// LabelRadioPurchase control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.Label Label2; + protected global::System.Web.UI.WebControls.Label LabelRadioPurchase; /// /// DropBudgetsPurchase control. @@ -247,40 +247,40 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers { protected global::Swarmops.Controls.Base.FileUpload UploadPurchase; /// - /// LabelPurchaseBudget control. + /// LabelDescribePurchaseBudget control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.Label LabelPurchaseBudget; + protected global::System.Web.UI.WebControls.Label LabelDescribePurchaseBudget; /// - /// LabelPurchaseDescriptionUpdate control. + /// LabelDescribePurchaseDescriptionUpdate control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.Label LabelPurchaseDescriptionUpdate; + protected global::System.Web.UI.WebControls.Label LabelDescribePurchaseDescriptionUpdate; /// - /// LabelPurchaseVatAmount control. + /// LabelDescribePurchaseVatAmount control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.Label LabelPurchaseVatAmount; + protected global::System.Web.UI.WebControls.Label LabelDescribePurchaseVatAmount; /// - /// LabelPurchaseUploadReceipt control. + /// LabelDescribePurchaseUploadReceipt control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.Label LabelPurchaseUploadReceipt; + protected global::System.Web.UI.WebControls.Label LabelDescribePurchaseUploadReceipt; /// /// LabelRadioBalance control.