From eba64a6af2d688d1593414a1276cbcab5f286f9d Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 31 Oct 2017 13:11:47 +0100 Subject: [PATCH 01/11] Fixed nullref when there's no VAT reports yet --- .../Pages.Ledgers.designer.cs | 18 ++++++++++ Site/App_GlobalResources/Pages.Ledgers.resx | 6 ++++ Site/Pages/v5/Ledgers/ViewVatReports.aspx | 11 ++++-- Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs | 24 ++++++++++--- .../Ledgers/ViewVatReports.aspx.designer.cs | 36 +++++++++++++++++++ 5 files changed, 88 insertions(+), 7 deletions(-) diff --git a/Site/App_GlobalResources/Pages.Ledgers.designer.cs b/Site/App_GlobalResources/Pages.Ledgers.designer.cs index 25581aa4..cbc3f15b 100644 --- a/Site/App_GlobalResources/Pages.Ledgers.designer.cs +++ b/Site/App_GlobalResources/Pages.Ledgers.designer.cs @@ -2077,6 +2077,15 @@ namespace Resources.Pages { } } + /// + /// Looks up a localized string similar to No VAT reports for this organization. + /// + internal static string ViewVatReports_Header_NoReports { + get { + return ResourceManager.GetString("ViewVatReports_Header_NoReports", resourceCulture); + } + } + /// /// Looks up a localized string similar to Outbound VAT. /// @@ -2104,6 +2113,15 @@ namespace Resources.Pages { } } + /// + /// Looks up a localized string similar to There are no VAT reports to display. This is probably due to the fact that a full VAT reporting period has not elapsed yet, so it has not been possible to create a report yet.. + /// + internal static string ViewVatReports_NoReports { + get { + return ResourceManager.GetString("ViewVatReports_NoReports", resourceCulture); + } + } + /// /// Looks up a localized string similar to VAT Reports. /// diff --git a/Site/App_GlobalResources/Pages.Ledgers.resx b/Site/App_GlobalResources/Pages.Ledgers.resx index f8d73f70..13c11f68 100644 --- a/Site/App_GlobalResources/Pages.Ledgers.resx +++ b/Site/App_GlobalResources/Pages.Ledgers.resx @@ -906,4 +906,10 @@ View This is the word or words before the name of the displayed VAT report. + + No VAT reports for this organization + + + There are no VAT reports to display. This is probably due to the fact that a full VAT reporting period has not elapsed yet, so it has not been possible to create a report yet. + \ No newline at end of file diff --git a/Site/Pages/v5/Ledgers/ViewVatReports.aspx b/Site/Pages/v5/Ledgers/ViewVatReports.aspx index ed82060e..0ef31e1a 100644 --- a/Site/Pages/v5/Ledgers/ViewVatReports.aspx +++ b/Site/Pages/v5/Ledgers/ViewVatReports.aspx @@ -59,6 +59,7 @@ +

<%= CurrentOrganization.Currency.DisplayCode %>
  Loading

- + @@ -77,7 +78,13 @@ -
+ +
+ +

+
+
+
diff --git a/Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs b/Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs index 9a4436ef..36242318 100644 --- a/Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs +++ b/Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Web; +using System.Web.DynamicData; using System.Web.UI; using System.Web.UI.WebControls; using Swarmops.Logic.Financial; @@ -42,12 +43,23 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers // TODO: Disable if viewing specific report and not open ledgers VatReports reports = VatReports.ForOrganization(CurrentOrganization, true); - reports.Sort(VatReports.VatReportSorterByDate); - foreach (VatReport report in reports) + if (reports.Count > 0) { - this.DropReports.Items.Add(new ListItem(report.Description, - report.Identity.ToString(CultureInfo.InvariantCulture))); + reports.Sort(VatReports.VatReportSorterByDate); + + foreach (VatReport report in reports) + { + this.DropReports.Items.Add(new ListItem(report.Description, + report.Identity.ToString(CultureInfo.InvariantCulture))); + } + } + else + { + // There are no VAT reports for this organization (yet?) so display an error instead + + this.PanelShowVatReports.Visible = false; + this.PanelShowNoVatReports.Visible = true; } Localize(); @@ -67,7 +79,9 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers this.LiteralHeaderVatInbound.Text = Resources.Pages.Ledgers.ViewVatReports_Header_Inbound; this.LiteralHeaderVatOutbound.Text = Resources.Pages.Ledgers.ViewVatReports_Header_Outbound; this.LiteralHeaderDox.Text = Resources.Global.Global_Dox; - // Localize all controls - todo + + this.LabelHeaderNoVatReportsToDisplay.Text = Resources.Pages.Ledgers.ViewVatReports_NoReports; + this.LabelNoVatReportsToDisplay.Text = Resources.Pages.Ledgers.ViewVatReports_NoReports; } } } \ No newline at end of file diff --git a/Site/Pages/v5/Ledgers/ViewVatReports.aspx.designer.cs b/Site/Pages/v5/Ledgers/ViewVatReports.aspx.designer.cs index 725fc26b..7e2d399f 100644 --- a/Site/Pages/v5/Ledgers/ViewVatReports.aspx.designer.cs +++ b/Site/Pages/v5/Ledgers/ViewVatReports.aspx.designer.cs @@ -12,6 +12,15 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers { public partial class ViewVatReports { + /// + /// PanelShowVatReports control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel PanelShowVatReports; + /// /// LabelContentHeader control. /// @@ -93,6 +102,33 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers { /// protected global::System.Web.UI.WebControls.Literal LiteralHeaderDox; + /// + /// PanelShowNoVatReports control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel PanelShowNoVatReports; + + /// + /// LabelHeaderNoVatReportsToDisplay control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelHeaderNoVatReportsToDisplay; + + /// + /// LabelNoVatReportsToDisplay control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelNoVatReportsToDisplay; + /// /// LabelSidebarDownload control. /// From f59f390721c3017c844a59fe50d2fb229fc2c139 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 31 Oct 2017 13:38:46 +0100 Subject: [PATCH 02/11] Fixing a merge error --- Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs b/Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs index 76fe3fe1..52dc7a78 100644 --- a/Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs +++ b/Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs @@ -95,11 +95,6 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers this.PanelShowVatReports.Visible = false; this.PanelShowNoVatReports.Visible = true; - this.LabelContentHeader.Text = specificReport.Description; - this.DropReports.Visible = false; - this.InitialReportId = specificReport.Identity; - - AddDocuments(specificReport); } } From 35cbb0e04451a6fc9f9a4b85cf362d46ad62df03 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 31 Oct 2017 13:49:22 +0100 Subject: [PATCH 03/11] One more fix from merging errors --- Site/Pages/v5/Ledgers/ViewVatReports.aspx | 1 + Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Site/Pages/v5/Ledgers/ViewVatReports.aspx b/Site/Pages/v5/Ledgers/ViewVatReports.aspx index 6140ada2..665526cf 100644 --- a/Site/Pages/v5/Ledgers/ViewVatReports.aspx +++ b/Site/Pages/v5/Ledgers/ViewVatReports.aspx @@ -102,6 +102,7 @@

+
diff --git a/Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs b/Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs index 52dc7a78..2e5c0bce 100644 --- a/Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs +++ b/Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs @@ -139,7 +139,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers this.LiteralHeaderVatOutbound.Text = Resources.Pages.Ledgers.ViewVatReports_Header_Outbound; this.LiteralHeaderDox.Text = Resources.Global.Global_Dox; - this.LabelHeaderNoVatReportsToDisplay.Text = Resources.Pages.Ledgers.ViewVatReports_NoReports; + this.LabelHeaderNoVatReportsToDisplay.Text = Resources.Pages.Ledgers.ViewVatReports_Header_NoReports; this.LabelNoVatReportsToDisplay.Text = Resources.Pages.Ledgers.ViewVatReports_NoReports; } From 8bb647f5a6a0e20f7552d7413340978bae1a6fe8 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 31 Oct 2017 14:16:54 +0100 Subject: [PATCH 04/11] Small cosmetics --- Site/Pages/v5/Ledgers/ViewVatReports.aspx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Site/Pages/v5/Ledgers/ViewVatReports.aspx b/Site/Pages/v5/Ledgers/ViewVatReports.aspx index 665526cf..2d6bb0db 100644 --- a/Site/Pages/v5/Ledgers/ViewVatReports.aspx +++ b/Site/Pages/v5/Ledgers/ViewVatReports.aspx @@ -101,7 +101,9 @@

-
+
+
+
From e2e1e4a4972e2c46cf89770ba659fae0b953b11a Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 31 Oct 2017 14:23:42 +0100 Subject: [PATCH 05/11] Small cosmetics --- Site/Pages/v5/Ledgers/Json-InspectLedgerData.aspx.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Site/Pages/v5/Ledgers/Json-InspectLedgerData.aspx.cs b/Site/Pages/v5/Ledgers/Json-InspectLedgerData.aspx.cs index 519d8274..6e70206a 100644 --- a/Site/Pages/v5/Ledgers/Json-InspectLedgerData.aspx.cs +++ b/Site/Pages/v5/Ledgers/Json-InspectLedgerData.aspx.cs @@ -162,8 +162,10 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers runningBalance += row.AmountCents; - string actionHtml = String.Format ( - "", row.FinancialTransactionId.ToString (CultureInfo.InvariantCulture)); + string hasDoxString = + ""; + + string actionHtml = String.Format (hasDoxString, row.FinancialTransactionId.ToString (CultureInfo.InvariantCulture)); if (canSeeAudit) { From cf5d639b9a5d83be6c2631fe50026db45032c61d Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 31 Oct 2017 17:29:30 +0100 Subject: [PATCH 06/11] Cosmetics --- Site/App_GlobalResources/Pages.Financial.designer.cs | 2 +- Site/App_GlobalResources/Pages.Financial.resx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Site/App_GlobalResources/Pages.Financial.designer.cs b/Site/App_GlobalResources/Pages.Financial.designer.cs index 25a7ca09..0abdf7cf 100644 --- a/Site/App_GlobalResources/Pages.Financial.designer.cs +++ b/Site/App_GlobalResources/Pages.Financial.designer.cs @@ -682,7 +682,7 @@ namespace Resources.Pages { } /// - /// Looks up a localized string similar to Create Invoice. + /// Looks up a localized string similar to Create. /// internal static string CreateOutboundInvoice_ButtonCreate { get { diff --git a/Site/App_GlobalResources/Pages.Financial.resx b/Site/App_GlobalResources/Pages.Financial.resx index 488193d4..8ef2cff2 100644 --- a/Site/App_GlobalResources/Pages.Financial.resx +++ b/Site/App_GlobalResources/Pages.Financial.resx @@ -633,7 +633,8 @@ Creating Outbound Invoice - Create Invoice + Create + This goes on a button, so needs to be short (8-9 letters max) Creating Outbound Invoice From 7aa6261791980b050cf6f1f4a7f570ef88c4adf7 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 31 Oct 2017 17:59:52 +0100 Subject: [PATCH 07/11] Removed an annoying GUID from display --- Common/Enums/DocumentType.cs | 5 +++++ Logic/Financial/VatReport.cs | 7 ++++++- Logic/Financial/VatReports.cs | 2 +- Logic/Support/Document.cs | 4 ++++ Site/Master-v5.master.cs | 2 +- Site/Pages/v5/Ledgers/Json-VatReportData.aspx.cs | 9 ++++++++- Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs | 2 +- 7 files changed, 26 insertions(+), 5 deletions(-) diff --git a/Common/Enums/DocumentType.cs b/Common/Enums/DocumentType.cs index ce34d3f4..244bf47e 100644 --- a/Common/Enums/DocumentType.cs +++ b/Common/Enums/DocumentType.cs @@ -34,6 +34,11 @@ namespace Swarmops.Common.Enums /// OutboundInvoice, + /// + /// A Value Added Tax report to tax authorities + /// + VatReport, + /// /// Something physical received in the mail /// diff --git a/Logic/Financial/VatReport.cs b/Logic/Financial/VatReport.cs index 6b3a0f2f..e955b1ad 100644 --- a/Logic/Financial/VatReport.cs +++ b/Logic/Financial/VatReport.cs @@ -61,7 +61,7 @@ namespace Swarmops.Logic.Financial return FromIdentityAggressive(vatReportId); } - internal static VatReport Create(Organization organization, int year, int startMonth, int monthCount) + public static VatReport Create(Organization organization, int year, int startMonth, int monthCount) { VatReport newReport = CreateDbRecord(organization, year, startMonth, monthCount); VatReportItems testItems = newReport.Items; @@ -155,6 +155,11 @@ namespace Swarmops.Logic.Financial { FinancialTransaction tx = accountRow.Transaction; + if (tx.Dependency is VatReport) + { + continue; // Never include previous VAT reports in new VAT reports + } + if (!transactionsIncludedLookup.ContainsKey(tx.Identity)) { Int64 vatInbound = 0; diff --git a/Logic/Financial/VatReports.cs b/Logic/Financial/VatReports.cs index eed6ddb0..bfcd56af 100644 --- a/Logic/Financial/VatReports.cs +++ b/Logic/Financial/VatReports.cs @@ -33,7 +33,7 @@ namespace Swarmops.Logic.Financial if (reports.Count == 0) { DateTime firstReportGenerationTime = - new DateTime(organization.FirstFiscalYear, 1, 1).AddMonths(reportMonthInterval).AddDays(4); + new DateTime(organization.FirstFiscalYear, 1, 1).AddMonths(reportMonthInterval).AddDays(1); // add one day for some safety margin; we're constructing the VAT report on the 2nd of the month if (nowUtc > firstReportGenerationTime) { diff --git a/Logic/Support/Document.cs b/Logic/Support/Document.cs index 64302ebd..e9a553ce 100644 --- a/Logic/Support/Document.cs +++ b/Logic/Support/Document.cs @@ -132,6 +132,10 @@ namespace Swarmops.Logic.Support { return Common.Enums.DocumentType.OutboundInvoice; } + else if (foreignObject is VatReport) + { + return Common.Enums.DocumentType.VatReport; + } else if (foreignObject is PaperLetter) { return DocumentType.PaperLetter; diff --git a/Site/Master-v5.master.cs b/Site/Master-v5.master.cs index d3fda71f..b0bb8cdf 100644 --- a/Site/Master-v5.master.cs +++ b/Site/Master-v5.master.cs @@ -39,7 +39,7 @@ namespace Swarmops.Frontend // BEGIN TEST CODE - // VatReports.CreateNewReports(); + // VatReport.Create(Organization.FromIdentity(8), 2017, 10, 1); // END TEST CODE diff --git a/Site/Pages/v5/Ledgers/Json-VatReportData.aspx.cs b/Site/Pages/v5/Ledgers/Json-VatReportData.aspx.cs index 9d53dd98..c1e5e625 100644 --- a/Site/Pages/v5/Ledgers/Json-VatReportData.aspx.cs +++ b/Site/Pages/v5/Ledgers/Json-VatReportData.aspx.cs @@ -58,6 +58,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers foreach (VatReportItem item in items) { FinancialTransaction transaction = item.Transaction; + bool include = false; string element = string.Format("\"id\":\"{0}\",\"txid\":\"{1}\",\"datetime\":\"{2:MMM dd}\",\"description\":\"{3}\"", transaction.Identity, @@ -69,18 +70,21 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers { element += String.Format(",\"turnover\":\"{0:N2}\"", item.TurnoverCents / 100.0); turnoverCentsTotal += item.TurnoverCents; + include = true; } if (item.VatInboundCents > 0) { element += String.Format(",\"inbound\":\"{0:N2}\"", item.VatInboundCents/ 100.0); inboundCentsTotal += item.VatInboundCents; + include = true; } if (item.VatOutboundCents > 0) { element += String.Format(",\"outbound\":\"{0:N2}\"", item.VatOutboundCents/ 100.0); outboundCentsTotal += item.VatOutboundCents; + include = true; } if (transaction.Dependency != null) @@ -89,7 +93,10 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers element += String.Format(",\"dox\":\"" + hasDoxString + "\"", transaction.Identity); } - lines.Add("{" + element + "}"); + if (include) + { + lines.Add("{" + element + "}"); + } } if (lines.Count == 0) // add empty report line diff --git a/Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs b/Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs index 2e5c0bce..d692a1bc 100644 --- a/Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs +++ b/Site/Pages/v5/Ledgers/ViewVatReports.aspx.cs @@ -121,7 +121,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers { BaseId = item.FinancialTransactionId.ToString(CultureInfo.InvariantCulture), DocId = doc.Identity, - Title = tx.Description + " - " + doc.Description + Title = tx.Description }); } } From 3b1f50cc1ac9d0f6884ae2d99bbbc4651f1e318b Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 31 Oct 2017 18:08:36 +0100 Subject: [PATCH 08/11] Fixed broken JSON --- Site/Pages/v5/Ledgers/Json-InspectLedgerData.aspx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Site/Pages/v5/Ledgers/Json-InspectLedgerData.aspx.cs b/Site/Pages/v5/Ledgers/Json-InspectLedgerData.aspx.cs index 6e70206a..814e5209 100644 --- a/Site/Pages/v5/Ledgers/Json-InspectLedgerData.aspx.cs +++ b/Site/Pages/v5/Ledgers/Json-InspectLedgerData.aspx.cs @@ -163,7 +163,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers runningBalance += row.AmountCents; string hasDoxString = - ""; + ""; string actionHtml = String.Format (hasDoxString, row.FinancialTransactionId.ToString (CultureInfo.InvariantCulture)); From 9507aeb5c4ea2c5916b1641218b9546c431d9866 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 31 Oct 2017 18:15:31 +0100 Subject: [PATCH 09/11] Cosmetics --- Site/Pages/v5/Ledgers/InspectLedgers.aspx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Site/Pages/v5/Ledgers/InspectLedgers.aspx b/Site/Pages/v5/Ledgers/InspectLedgers.aspx index 1b9c8a1f..abe060ac 100644 --- a/Site/Pages/v5/Ledgers/InspectLedgers.aspx +++ b/Site/Pages/v5/Ledgers/InspectLedgers.aspx @@ -313,12 +313,6 @@ table.datagrid-ftable { font-weight: 500; } - .LocalIconInspect, .LocalIconFlag { - cursor: pointer; - position: relative; - top: 4px; - } - .spanAnnoyingBlink { -webkit-animation: blink 0.5s linear infinite; animation: blink 0.5s linear infinite; From df92cf74d4a633489bb354df4169777d3e5fb63f Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Wed, 1 Nov 2017 18:23:01 +0100 Subject: [PATCH 10/11] Update Readme to include beta-2..4 goals --- README.md | 123 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 79 insertions(+), 44 deletions(-) diff --git a/README.md b/README.md index 536a3dcb..d8c7966e 100644 --- a/README.md +++ b/README.md @@ -25,10 +25,87 @@ Stable releases are built every six months, at the end of every calendar half-ye This is the plan, at least. "Stable" is a somewhat wide definition at the moment. Rather, Swarmops has a few functions to go to enter Open Beta stage. -Beta features checklist +Installation +------------ + +Minimum requirements are Debian Stretch or Ubuntu Xenial (due to systemd requirements; upstart is deprecated). As Debian Stretch hasn't been released at time of writing, Ubuntu Xenial is the only platform Swarmops is currently built for. + +If you're daring enough to install a pilot of Swarmops, you're most welcome to do so! Run these commands _as root_ - first, fetch the signing key for the repository: + +> `wget -qO- http://packages.swarmops.com/swarmops-packages.gpg.key | apt-key add -` + +Then, add the Swarmops repository to your list of software sources, where [your_distribution] below is xenial (Ubuntu) or stretch (Debian): +> `echo deb http://packages.swarmops.com/ [your_distribution] contrib > /etc/apt/sources.list.d/swarmops.list` + +Then, run this to install the Swarmops frontend: +> `apt-get update; apt-get install swarmops-frontend` + +If you installed onto a clean server, Swarmops will offer to configure Apache to use Swarmops as the default site. If you decline this offer, you can still enable the site by an `a2ensite swarmops` as a suggested configuration is provided. If you prefer to configure this entirely manually, install a new Virtual Host in Apache, a Mono host, pointing at /usr/share/swarmops/frontend as its directory. We're using /usr/bin/mod-mono-server4 as our server. Note the 4 at the end; many configurators are old and will set a 2 there. See /etc/apache2/sites-available/swarmops.conf for a template file. + +Navigate to the new site and continue installation from the running site. To complete the install, you will also need to install a backend process, which can (but shouldn't) run on the same machine: + +> `apt-get install swarmops-backend` + +At one point in the installation process, you will be prompted to copy the file `/etc/swarmops/database.config` from the server running swarmops-*frontend* to the server running swarmops-*backend*. This allows the backend to connect to the database as configured by the installation process. Once you do this, the installation process will detect the running backend and the installation will continue. + +The packages named as listed above (swarmops-frontend) are the sprint packages, released every two weeks. If you prefer, you can opt for the development builds (swarmops-frontend-internal) or the stable six-month releases (swarmops-frontend-stable) instead. The development builds aren't really recommended unless you're actively contributing to development and want to see new changes running on the development sandbox. + + +Contributing +------------ + +No permission necessary, really. Just check in code. The backend is ASP.Net/C# and the frontend (where most of the development happens) is Javascript and jQuery. But if you want to see what's being worked on, feel free to get an account at http://scrum.pirateacademy.eu and join the Swarmops project, and grab tasks from the master list. + +Let's take that again, because it's important: **about 90% of development happens in JavaScript and jQuery**, so don't shy away because it looks like a C# backend. + +There's also a Facebook group named [Swarmops Developers](https://www.facebook.com/groups/swarmops.developers/) which you may want to join. Yes, Facebook is evil, so give me a better alternative. Until there is one, that's where discussions happen. + + +License +------- + +No, there isn't a "license". This code is completely in the public domain, with the exception of external libraries used. Those are marked as such. In jurisdictions where public domain doesn't exist as a legal concept, the code is under the CC-0 (Creative Commons Zero) license. + +That also means that any code _you_ commit to Swarmops, whether by checking in code to this repository or by doing so to forks and then pushing code back here, is irrevocably committed to the public domain. + + +Beta-2 features progress +------------------------ + +Beta-2 will be released on December 5, with string freeze on December 2. Its focus is to retool for Bitcoin Cash and/or the Bitcoin 2x fork. This goal is fluid and may change as the strength of the respective forks become clearer. + +- [ ] Database update for Bitcoin Cash balances for addresses +- [ ] Update NBitcoin to handle dual-mode +- [ ] Rewrite the Bitcoin Echo page to use Bitcoin Cash +- [ ] Rewrite the Bitcoin Donation page; make more resilient to socket failures +- [ ] Write a Pay Invoice page for Bitcoin Cash +- [ ] String Freeze +- [ ] Release + + +Beta-3 features progress +------------------------ + +Beta-3 will be released on January 5, 2018, with string freeze on January 2. Its focus will be on Shapeshift integration and ability to receive and send payments in all different cryptocurrencies. + +- [ ] Import all crypto pairs from Shapeshift and track exchange rates +- [ ] Enable cryptocurrency as any other currency on entry +- [ ] Enable payment identifiers, with currency +- [ ] Tie payment identifiers to people and suppliers +- [ ] String Freeze + + +Beta-4 features progress +------------------------ + +Beta-4 will be released on February 5, 2018, with string freeze on February 2. Its tentative focus will be Bitwala integration and possibly an open API exposure. + + + +Overall Beta features checklist ----------------------- -Here are the features still required to exit beta: +Here are the features still required to exit beta and declare release: - [x] enter ledger transactions manually - [ ] send invoices (and receive payment in bitcoin) @@ -75,45 +152,3 @@ There will also be many other small improvements added along with these features - [x] Create TX - [ ] Download main Ledger - [X] Fix password reset after refactor - - -Installation ------------- - -Minimum requirements are Debian Stretch or Ubuntu Xenial (due to systemd requirements; upstart is deprecated). As Debian Stretch hasn't been released at time of writing, Ubuntu Xenial is the only platform Swarmops is currently built for. - -If you're daring enough to install a pilot of Swarmops, you're most welcome to do so! Run these commands _as root_ - first, fetch the signing key for the repository: - -> `wget -qO- http://packages.swarmops.com/swarmops-packages.gpg.key | apt-key add -` - -Then, add the Swarmops repository to your list of software sources, where [your_distribution] below is xenial (Ubuntu) or stretch (Debian): -> `echo deb http://packages.swarmops.com/ [your_distribution] contrib > /etc/apt/sources.list.d/swarmops.list` - -Then, run this to install the Swarmops frontend: -> `apt-get update; apt-get install swarmops-frontend` - -If you installed onto a clean server, Swarmops will offer to configure Apache to use Swarmops as the default site. If you decline this offer, you can still enable the site by an `a2ensite swarmops` as a suggested configuration is provided. If you prefer to configure this entirely manually, install a new Virtual Host in Apache, a Mono host, pointing at /usr/share/swarmops/frontend as its directory. We're using /usr/bin/mod-mono-server4 as our server. Note the 4 at the end; many configurators are old and will set a 2 there. See /etc/apache2/sites-available/swarmops.conf for a template file. - -Navigate to the new site and continue installation from the running site. To complete the install, you will also need to install a backend process, which can (but shouldn't) run on the same machine: - -> `apt-get install swarmops-backend` - -At one point in the installation process, you will be prompted to copy the file `/etc/swarmops/database.config` from the server running swarmops-*frontend* to the server running swarmops-*backend*. This allows the backend to connect to the database as configured by the installation process. Once you do this, the installation process will detect the running backend and the installation will continue. - -The packages named as listed above (swarmops-frontend) are the sprint packages, released every two weeks. If you prefer, you can opt for the development builds (swarmops-frontend-internal) or the stable six-month releases (swarmops-frontend-stable) instead. The development builds aren't really recommended unless you're actively contributing to development and want to see new changes running on the development sandbox. - -Contributing ------------- - -No permission necessary, really. Just check in code. The backend is ASP.Net/C# and the frontend (where most of the development happens) is Javascript and jQuery. But if you want to see what's being worked on, feel free to get an account at http://scrum.pirateacademy.eu and join the Swarmops project, and grab tasks from the master list. - -Let's take that again, because it's important: **about 90% of development happens in JavaScript and jQuery**, so don't shy away because it looks like a C# backend. - -There's also a Facebook group named [Swarmops Developers](https://www.facebook.com/groups/swarmops.developers/) which you may want to join. Yes, Facebook is evil, so give me a better alternative. Until there is one, that's where discussions happen. - -License -------- - -No, there isn't a "license". This code is completely in the public domain, with the exception of external libraries used. Those are marked as such. In jurisdictions where public domain doesn't exist as a legal concept, the code is under the CC-0 (Creative Commons Zero) license. - -That also means that any code _you_ commit to Swarmops, whether by checking in code to this repository or by doing so to forks and then pushing code back here, is irrevocably committed to the public domain. From 455aaa48538c6b136ca20321223b9aa222e3ff58 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Thu, 2 Nov 2017 13:24:33 +0100 Subject: [PATCH 11/11] Added a build file --- BuildFiles/string-freeze | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 BuildFiles/string-freeze diff --git a/BuildFiles/string-freeze b/BuildFiles/string-freeze new file mode 100755 index 00000000..106f2501 --- /dev/null +++ b/BuildFiles/string-freeze @@ -0,0 +1,8 @@ +#!/bin/bash + +git checkout master +git pull +cd Localization +./upload.sh +cd .. +