Work on VAT reports
This commit is contained in:
@@ -6,6 +6,7 @@ using System.Threading.Tasks;
|
||||
using Swarmops.Basic.Types.Financial;
|
||||
using Swarmops.Common.Interfaces;
|
||||
using Swarmops.Database;
|
||||
using Swarmops.Logic.Structure;
|
||||
|
||||
namespace Swarmops.Logic.Financial
|
||||
{
|
||||
@@ -37,6 +38,15 @@ namespace Swarmops.Logic.Financial
|
||||
return FromBasic(SwarmDb.GetDatabaseForWriting().GetVatReport(vatReportId));
|
||||
}
|
||||
|
||||
public static VatReport Create(Organization organization, int year, int startMonth, int monthCount)
|
||||
{
|
||||
System.Guid guid = System.Guid.NewGuid();
|
||||
|
||||
int vatReportId = SwarmDb.GetDatabaseForWriting()
|
||||
.CreateVatReport(organization.Identity, guid.ToString(), year*100 + startMonth, monthCount);
|
||||
return FromIdentityAggressive(vatReportId);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
public void AddItem(FinancialTransaction transaction, Int64 turnoverCents,
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Swarmops.Basic.Types.Financial;
|
||||
using Swarmops.Logic.Support;
|
||||
|
||||
namespace Swarmops.Logic.Financial
|
||||
{
|
||||
public class VatReports: PluralBase<VatReports, VatReport, BasicVatReport>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -129,6 +129,7 @@
|
||||
<Compile Include="Financial\VatReport.cs" />
|
||||
<Compile Include="Financial\VatReportItem.cs" />
|
||||
<Compile Include="Financial\VatReportItems.cs" />
|
||||
<Compile Include="Financial\VatReports.cs" />
|
||||
<Compile Include="Resources\Logic.Financial.FinancialAccount.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
|
||||
Reference in New Issue
Block a user