Class PersonalAccountManager
Class to manage everything about PersonalAccount
Inheritance
Inherited Members
Namespace: Simplic.PlugIn.SAC.Contact
Assembly: Simplic.PlugIn.SAC.dll
Syntax
public class PersonalAccountManager
Methods
| Improve this Doc View SourceAssignTaxGroupCountry(Guid, Guid)
Assign Country to a TaxGroup
Declaration
public void AssignTaxGroupCountry(Guid taxGroupId, Guid countryId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | taxGroupId | Id of the TaxGroup |
System.Guid | countryId | Id of the Country |
Delete(PersonalAccount)
Remove a PersonalAccount
Declaration
public void Delete(PersonalAccount obj)
Parameters
Type | Name | Description |
---|---|---|
PersonalAccount | obj | Object to delete |
Delete(Guid)
Remove a PersonalAccount
Declaration
public void Delete(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
DeleteGLA(PersonalAccountGeneralLedgerGroup)
Remove a gla
Declaration
public void DeleteGLA(PersonalAccountGeneralLedgerGroup obj)
Parameters
Type | Name | Description |
---|---|---|
PersonalAccountGeneralLedgerGroup | obj | Object to delete |
DeleteGLA(Guid)
Remove a gla
Declaration
public void DeleteGLA(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
DeleteIntraStat(IntraStat)
Remove a IntraStat
Declaration
public void DeleteIntraStat(IntraStat obj)
Parameters
Type | Name | Description |
---|---|---|
IntraStat | obj | Object to delete |
DeleteIntraStat(Guid)
Remove a IntraStat
Declaration
public void DeleteIntraStat(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
DeleteInvoicingGroup(InvoicingGroup)
Remove a InvoicingGroup
Declaration
public void DeleteInvoicingGroup(InvoicingGroup obj)
Parameters
Type | Name | Description |
---|---|---|
InvoicingGroup | obj | Object to delete |
DeleteInvoicingGroup(Guid)
Remove a InvoicingGroup
Declaration
public void DeleteInvoicingGroup(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
DeletePersonalAccountTenant(PersonalAccountTenant)
Remove a PersonalAccountTenant
Declaration
public void DeletePersonalAccountTenant(PersonalAccountTenant obj)
Parameters
Type | Name | Description |
---|---|---|
PersonalAccountTenant | obj | Object to delete |
DeletePersonalAccountTenant(Guid)
Remove a PersonalAccountTenant
Declaration
public void DeletePersonalAccountTenant(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id |
DeletePersonalAccountTermOfPayment(PersonalAccountTermOfPayment)
Remove a PersonalAccountTermOfPayment
Declaration
public void DeletePersonalAccountTermOfPayment(PersonalAccountTermOfPayment obj)
Parameters
Type | Name | Description |
---|---|---|
PersonalAccountTermOfPayment | obj | Object to delete |
DeletePersonalAccountTermOfPayment(Guid)
Remove a PersonalAccountTermOfPayment
Declaration
public void DeletePersonalAccountTermOfPayment(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
DeletePersonalAccountType(PersonalAccountType)
Remove a PersonalAccountType
Declaration
public void DeletePersonalAccountType(PersonalAccountType obj)
Parameters
Type | Name | Description |
---|---|---|
PersonalAccountType | obj | Object to delete |
DeletePersonalAccountType(Guid)
Remove a PersonalAccountType
Declaration
public void DeletePersonalAccountType(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
DeleteShippingType(ShippingType)
Remove a ShippingType
Declaration
public void DeleteShippingType(ShippingType obj)
Parameters
Type | Name | Description |
---|---|---|
ShippingType | obj | Object to delete |
DeleteShippingType(Guid)
Remove a ShippingType
Declaration
public void DeleteShippingType(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
DeleteTaxGroup(TaxGroup)
Remove a TaxGroup
Declaration
public void DeleteTaxGroup(TaxGroup obj)
Parameters
Type | Name | Description |
---|---|---|
TaxGroup | obj | Object to delete |
DeleteTaxGroup(Guid)
Remove a TaxGroup
Declaration
public void DeleteTaxGroup(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
Get(Guid)
Get a single PersonalAccount
Declaration
public PersonalAccount Get(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
Returns
Type | Description |
---|---|
PersonalAccount | PersonalAccount instance, else null |
GetAll()
Get all PersonalAccounts
Declaration
public IEnumerable<PersonalAccount> GetAll()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PersonalAccount> | IEnumerable of PersonalAccount |
GetAllGLAs()
Get all GLAs
Declaration
public IEnumerable<PersonalAccountGeneralLedgerGroup> GetAllGLAs()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PersonalAccountGeneralLedgerGroup> | IEnumerable of GLAs |
GetAllIntraStat()
Get all IntraStat
Declaration
public IEnumerable<IntraStat> GetAllIntraStat()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IntraStat> | IEnumerable of IntraStat |
GetAllInvoicingGroup()
Get all InvoicingGroup
Declaration
public IEnumerable<InvoicingGroup> GetAllInvoicingGroup()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<InvoicingGroup> | IEnumerable of InvoicingGroup |
GetAllPersonalAccountTenant()
Get all PersonalAccountTenant
Declaration
public IEnumerable<PersonalAccountTenant> GetAllPersonalAccountTenant()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PersonalAccountTenant> | IEnumerable of PersonalAccountTenant |
GetAllPersonalAccountTermOfPayment()
Get all PersonalAccountTermOfPayment
Declaration
public IEnumerable<PersonalAccountTermOfPayment> GetAllPersonalAccountTermOfPayment()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PersonalAccountTermOfPayment> | IEnumerable of PersonalAccountTermOfPayment |
GetAllPersonalAccountType()
Get all PersonalAccountType
Declaration
public IEnumerable<PersonalAccountType> GetAllPersonalAccountType()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PersonalAccountType> | IEnumerable of PersonalAccountType |
GetAllShippingType()
Get all ShippingType
Declaration
public IEnumerable<ShippingType> GetAllShippingType()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ShippingType> | IEnumerable of ShippingType |
GetAllTaxGroup()
Get all TaxGroup
Declaration
public IEnumerable<TaxGroup> GetAllTaxGroup()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TaxGroup> | IEnumerable of TaxGroup |
GetByContact(Int64)
Get all PersonalAccounts for a given contact
Declaration
public IEnumerable<PersonalAccount> GetByContact(long id)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | id | Contact id |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PersonalAccount> | IEnumerable of PersonalAccount |
GetByNumber(String)
Get all Personalaccounts for a given number.
Declaration
public PersonalAccount GetByNumber(string number)
Parameters
Type | Name | Description |
---|---|---|
System.String | number |
Returns
Type | Description |
---|---|
PersonalAccount |
GetCountriesWithTaxGroupId(Guid)
Get a single Country
Declaration
public IEnumerable<Country> GetCountriesWithTaxGroupId(Guid taxGroupId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | taxGroupId | Id value |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Country> | ContactRegion instance, else null |
GetGLA(Guid)
Get a single gla
Declaration
public PersonalAccountGeneralLedgerGroup GetGLA(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
Returns
Type | Description |
---|---|
PersonalAccountGeneralLedgerGroup | GLA instance, else null |
GetIntraStat(Guid)
Get a single IntraStat
Declaration
public IntraStat GetIntraStat(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
Returns
Type | Description |
---|---|
IntraStat | IntraStat instance, else null |
GetInvoicingGroup(Guid)
Get a single InvoicingGroup
Declaration
public InvoicingGroup GetInvoicingGroup(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
Returns
Type | Description |
---|---|
InvoicingGroup | InvoicingGroup instance, else null |
GetPersonalAccountTenant(Guid)
Get a single PersonalAccountTenant
Declaration
public PersonalAccountTenant GetPersonalAccountTenant(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Tenant-Account value |
Returns
Type | Description |
---|---|
PersonalAccountTenant | PersonalAccountTenant instance, else null |
GetPersonalAccountTenant(Guid, Guid)
Get a single PersonalAccountTenant
Declaration
public PersonalAccountTenant GetPersonalAccountTenant(Guid tenantId, Guid accountTypeId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | tenantId | Tenant-Account value |
System.Guid | accountTypeId | Account type id |
Returns
Type | Description |
---|---|
PersonalAccountTenant | PersonalAccountTenant instance, else null |
GetPersonalAccountTermOfPayment(Guid)
Get a single PersonalAccountTermOfPayment
Declaration
public PersonalAccountTermOfPayment GetPersonalAccountTermOfPayment(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
Returns
Type | Description |
---|---|
PersonalAccountTermOfPayment | PersonalAccountTermOfPayment instance, else null |
GetPersonalAccountTermOfPaymentByNumber(Int32)
Get a single PersonalAccountTermOfPayment by number
Declaration
public PersonalAccountTermOfPayment GetPersonalAccountTermOfPaymentByNumber(int number)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | number | Number value |
Returns
Type | Description |
---|---|
PersonalAccountTermOfPayment |
GetPersonalAccountType(Guid)
Get a single PersonalAccountType
Declaration
public PersonalAccountType GetPersonalAccountType(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
Returns
Type | Description |
---|---|
PersonalAccountType | PersonalAccountType instance, else null |
GetShippingType(Guid)
Get a single ShippingType
Declaration
public ShippingType GetShippingType(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
Returns
Type | Description |
---|---|
ShippingType | ShippingType instance, else null |
GetTaxGroup(Guid)
Get a single TaxGroup
Declaration
public TaxGroup GetTaxGroup(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
Returns
Type | Description |
---|---|
TaxGroup | TaxGroup instance, else null |
RestoreDeletedPersonalAccount(Guid)
Restores a deleted personal account.
Declaration
public void RestoreDeletedPersonalAccount(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id |
Save(PersonalAccount)
Save a PersonalAccount
Declaration
public void Save(PersonalAccount obj)
Parameters
Type | Name | Description |
---|---|---|
PersonalAccount | obj | Object to save |
SaveGLA(PersonalAccountGeneralLedgerGroup)
Save a gla
Declaration
public void SaveGLA(PersonalAccountGeneralLedgerGroup obj)
Parameters
Type | Name | Description |
---|---|---|
PersonalAccountGeneralLedgerGroup | obj | Object to save |
SaveIntraStat(IntraStat)
Save a IntraStat
Declaration
public void SaveIntraStat(IntraStat obj)
Parameters
Type | Name | Description |
---|---|---|
IntraStat | obj | Object to save |
SaveInvoicingGroup(InvoicingGroup)
Save a InvoicingGroup
Declaration
public void SaveInvoicingGroup(InvoicingGroup obj)
Parameters
Type | Name | Description |
---|---|---|
InvoicingGroup | obj | Object to save |
SavePersonalAccountTenant(PersonalAccountTenant)
Save a PersonalAccountTenant
Declaration
public void SavePersonalAccountTenant(PersonalAccountTenant obj)
Parameters
Type | Name | Description |
---|---|---|
PersonalAccountTenant | obj | Object to save |
SavePersonalAccountTermOfPayment(PersonalAccountTermOfPayment)
Save a PersonalAccountTermOfPayment
Declaration
public void SavePersonalAccountTermOfPayment(PersonalAccountTermOfPayment obj)
Parameters
Type | Name | Description |
---|---|---|
PersonalAccountTermOfPayment | obj | Object to save |
SavePersonalAccountType(PersonalAccountType)
Save a PersonalAccountType
Declaration
public void SavePersonalAccountType(PersonalAccountType obj)
Parameters
Type | Name | Description |
---|---|---|
PersonalAccountType | obj | Object to save |
SaveShippingType(ShippingType)
Save a ShippingType
Declaration
public void SaveShippingType(ShippingType obj)
Parameters
Type | Name | Description |
---|---|---|
ShippingType | obj | Object to save |
SaveTaxGroup(TaxGroup)
Save a TaxGroup
Declaration
public void SaveTaxGroup(TaxGroup obj)
Parameters
Type | Name | Description |
---|---|---|
TaxGroup | obj | Object to save |
UnassignTaxGroupCountry(Guid, Guid)
Unassign Country from a TaxGroup
Declaration
public void UnassignTaxGroupCountry(Guid taxGroupId, Guid countryId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | taxGroupId | Id of the TaxGroup |
System.Guid | countryId | Id of the Country |