+
diff --git a/Site/Pages/v5/Financial/CreateInboundInvoice.aspx.cs b/Site/Pages/v5/Financial/CreateInboundInvoice.aspx.cs
index 810461aa..6ca438c7 100644
--- a/Site/Pages/v5/Financial/CreateInboundInvoice.aspx.cs
+++ b/Site/Pages/v5/Financial/CreateInboundInvoice.aspx.cs
@@ -100,6 +100,7 @@ namespace Swarmops.Frontend.Pages.v5.Financial
// Prime bank details
this.CurrencyAmount.Cents = 0;
+ this.CurrencyVat.Cents = 0;
this.TextSupplier.Focus();
this.TextDueDate.Text = DateTime.Today.AddDays (30).ToShortDateString(); // Use current culture
@@ -114,6 +115,8 @@ namespace Swarmops.Frontend.Pages.v5.Financial
this.LabelDueDate.Text = Global.Financial_DueDate;
this.LabelAmount.Text = string.Format (Resources.Pages.Financial.CreateInboundInvoice_Amount,
CurrentOrganization.Currency.Code);
+ this.LabelVat.Text = string.Format(Resources.Pages.Financial.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;
@@ -132,6 +135,7 @@ namespace Swarmops.Frontend.Pages.v5.Financial
// People who choose to disable JavaScript and then submit bad input almost deserve to be hurt.
Int64 amountCents = this.CurrencyAmount.Cents;
+ Int64 amountVatCents = this.CurrencyVat.Cents;
string description = this.TextPurpose.Text;
@@ -157,7 +161,7 @@ namespace Swarmops.Frontend.Pages.v5.Financial
throw new InvalidOperationException ("No documents uploaded");
}
- InboundInvoice invoice = InboundInvoice.Create (CurrentOrganization, dueDate, amountCents, budget,
+ InboundInvoice invoice = InboundInvoice.Create (CurrentOrganization, dueDate, amountCents, amountVatCents, budget,
this.TextSupplier.Text, this.TextPurpose.Text, this.TextAccount.Text, string.Empty,
this.TextReference.Text, CurrentUser);
diff --git a/Site/Pages/v5/Financial/CreateInboundInvoice.aspx.designer.cs b/Site/Pages/v5/Financial/CreateInboundInvoice.aspx.designer.cs
index e4646cc3..4f597573 100644
--- a/Site/Pages/v5/Financial/CreateInboundInvoice.aspx.designer.cs
+++ b/Site/Pages/v5/Financial/CreateInboundInvoice.aspx.designer.cs
@@ -66,6 +66,15 @@ namespace Swarmops.Frontend.Pages.v5.Financial {
///
protected global::Swarmops.Frontend.Controls.Financial.CurrencyTextBox CurrencyAmount;
+ ///
+ /// CurrencyVat control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::Swarmops.Frontend.Controls.Financial.CurrencyTextBox CurrencyVat;
+
///
/// TextPurpose control.
///
@@ -156,6 +165,15 @@ namespace Swarmops.Frontend.Pages.v5.Financial {
///
protected global::System.Web.UI.WebControls.Label LabelAmount;
+ ///
+ /// LabelVat control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label LabelVat;
+
///
/// LabelPurpose control.
///