Class TaxManager
Tax type manager
Inheritance
Inherited Members
Namespace: Simplic.ERP.Core.Tax
Assembly: Simplic.ERP.Core.dll
Syntax
public class TaxManager
Constructors
| Improve this Doc View SourceTaxManager()
Initialize tax manager
Declaration
public TaxManager()
Methods
| Improve this Doc View SourceDeleteArticleTaxRate(ArticleTaxRate)
Delete an article tax rate
Declaration
public void DeleteArticleTaxRate(ArticleTaxRate type)
Parameters
Type | Name | Description |
---|---|---|
ArticleTaxRate | type | Tax type instance |
DeleteRate(TaxRate)
Delete a tax rate
Declaration
public void DeleteRate(TaxRate type)
Parameters
Type | Name | Description |
---|---|---|
TaxRate | type | Tax type instance |
DeleteRateType(TaxRateType)
Delete a tax rate
Declaration
public void DeleteRateType(TaxRateType type)
Parameters
Type | Name | Description |
---|---|---|
TaxRateType | type | Tax type instance |
GetAllRates()
Get all tax types
Declaration
public IEnumerable<TaxRate> GetAllRates()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TaxRate> | Tax type instances |
GetAllRateTypes()
Get all tax types
Declaration
public IEnumerable<TaxRateType> GetAllRateTypes()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TaxRateType> | Tax type instances |
GetArticleTaxRates(Guid)
Get article taxes
Declaration
public IEnumerable<ArticleTaxRate> GetArticleTaxRates(Guid articleId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | articleId | Article id |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ArticleTaxRate> | Ty type instance of exists, else null |
GetRate(Guid)
Get a single tax type instance if exists
Declaration
public TaxRate GetRate(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Unique id |
Returns
Type | Description |
---|---|
TaxRate | Ty type instance of exists, else null |
GetRate(Guid, Guid, DateTime)
Get a rate by rate type and date
Declaration
public TaxRate GetRate(Guid rateTypeId, Guid taxGroupId, DateTime date)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | rateTypeId | |
System.Guid | taxGroupId | |
System.DateTime | date | Date until which the rate must be valid |
Returns
Type | Description |
---|---|
TaxRate |
GetRates(Guid, DateTime)
Get a rate by rate type and date
Declaration
public IEnumerable<TaxRate> GetRates(Guid taxGroupId, DateTime date)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | taxGroupId | |
System.DateTime | date | Date until which the rate must be valid |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TaxRate> |
GetRates(Guid, Guid, DateTime)
Get a rate by rate type and date
Declaration
public IEnumerable<TaxRate> GetRates(Guid taxGroupId, Guid tenantId, DateTime date)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | taxGroupId | |
System.Guid | tenantId | Ttenant id |
System.DateTime | date | Date until which the rate must be valid |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TaxRate> |
GetRateType(Guid)
Get a single tax type instance if exists
Declaration
public TaxRateType GetRateType(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Unique id |
Returns
Type | Description |
---|---|
TaxRateType | Ty type instance of exists, else null |
SaveArticleTaxRate(ArticleTaxRate)
Create or update article tax type
Declaration
public void SaveArticleTaxRate(ArticleTaxRate type)
Parameters
Type | Name | Description |
---|---|---|
ArticleTaxRate | type | Type instance |
SaveRate(TaxRate)
Create or update tax type
Declaration
public void SaveRate(TaxRate type)
Parameters
Type | Name | Description |
---|---|---|
TaxRate | type | Type instance |
SaveRateType(TaxRateType)
Create or update tax type
Declaration
public void SaveRateType(TaxRateType type)
Parameters
Type | Name | Description |
---|---|---|
TaxRateType | type | Type instance |