Table of Contents

Finance.Vat.BGVATDocumentTypeVATCodes Entity

Namespace: Finance.Vat

Contains the VAT codes, which should be used, when reporting VAT for the different document types. Entity: Nat_BG_VAT_Document_Type_VAT_Codes

Default Visualization

Default Display Text Format:
{Id}: {DocumentTypeId}
Default Search Members:
__
Category: Settings
Show in UI: ShownByDefault

Track Changes

Min level: 0 - Do not track changes
Max level: 4 - Track object attribute and blob changes

Aggregate

An aggregate is a cluster of domain objects that can be treated as a single unit.

Aggregate Tree

Attributes

Name Type Description
CashReportingVATCode CashReportingVATCode nullable VAT code, which will be used when Cash Reporting mode is used for the entry. Allowed values are the same as for VAT Code.
DisplayText string Uses the repository DisplayTextFormat to build the display text from the attributes and references of current object.
Id guid
ObjectVersion int32 The latest version of the extensible data object for the aggregate root for the time the object is loaded from the database. Can be used for optimistic locking.
VATCode VATCode nullable VAT code to use when creating VAT export files for the specified Document Type. Allowed values is government-regulated list of values.

References

Name Type Description
DocumentType DocumentTypes Document type that generates VAT entries. Required Filter(multi eq)

Attribute Details

CashReportingVATCode

VAT code, which will be used when Cash Reporting mode is used for the entry. Allowed values are the same as for VAT Code.

Type: CashReportingVATCode nullable
Category: System
Allowed values for the CashReportingVATCode(Finance.Vat.BGVATDocumentTypeVATCodes.md#cashreportingvatcode) data attribute
Allowed Values (Finance.Vat.BGVATDocumentTypeVATCodesRepository.CashReportingVATCode Enum Members)

Value Description
Invoice Invoice value. Stored as '01'.
Database Value: '01'
Model Value: 0
Domain API Value: 'Invoice'
DebitNote DebitNote value. Stored as '02'.
Database Value: '02'
Model Value: 1
Domain API Value: 'DebitNote'
CreditNote CreditNote value. Stored as '03'.
Database Value: '03'
Model Value: 2
Domain API Value: 'CreditNote'
CallOffStockRegister
TheGoodsAreSent
OrTransportedFrom
TheCountryToAnother
EUCountry
CallOffStockRegister
TheGoodsAreSent
OrTransportedFrom
TheCountryToAnother
EUCountry value. Stored as '04'.
Database Value: '04'
Model Value: 3
Domain API Value: 'CallOffStockRegister
TheGoodsAreSent
OrTransportedFrom
TheCountryToAnother
EUCountry'
CallOffStockRegister
TheGoodsAreReceived
InTheCountry
CallOffStockRegister
TheGoodsAreReceived
InTheCountry value. Stored as '05'.
Database Value: '05'
Model Value: 4
Domain API Value: 'CallOffStockRegister
TheGoodsAreReceived
InTheCountry'
CustomHouseEntry CustomHouseEntry value. Stored as '07'.
Database Value: '07'
Model Value: 5
Domain API Value: 'CustomHouseEntry'
Protocol Protocol value. Stored as '09'.
Database Value: '09'
Model Value: 6
Domain API Value: 'Protocol'
InvoiceCashReporting InvoiceCashReporting value. Stored as '11'.
Database Value: '11'
Model Value: 7
Domain API Value: 'InvoiceCashReporting'
DebitNoteCashReporting DebitNoteCashReporting value. Stored as '12'.
Database Value: '12'
Model Value: 8
Domain API Value: 'DebitNoteCashReporting'
CreditNoteCashReporting CreditNoteCashReporting value. Stored as '13'.
Database Value: '13'
Model Value: 9
Domain API Value: 'CreditNoteCashReporting'
CreditNoteByArticle126b
Al1OfBGVATLaw
CreditNoteByArticle126b
Al1OfBGVATLaw value. Stored as '23'.
Database Value: '23'
Model Value: 10
Domain API Value: 'CreditNoteByArticle126b
Al1OfBGVATLaw'
ProtocolByArticle126b
Al2And7OfBGVAT
Law
ProtocolByArticle126b
Al2And7OfBGVAT
Law value. Stored as '29'.
Database Value: '29'
Model Value: 11
Domain API Value: 'ProtocolByArticle126b
Al2And7OfBGVAT
Law'
ProtocolForCharging
TheRequiredVAT
ForFuelSupplies
ForWhichCompensation
HasBeenGranted
ProtocolForCharging
TheRequiredVAT
ForFuelSupplies
ForWhichCompensation
HasBeenGranted value. Stored as '50'.
Database Value: '50'
Model Value: 12
Domain API Value: 'ProtocolForCharging
TheRequiredVAT
ForFuelSupplies
ForWhichCompensation
HasBeenGranted'
SalesReport SalesReport value. Stored as '81'.
Database Value: '81'
Model Value: 13
Domain API Value: 'SalesReport'
SpecialTaxOrderSalesReport SpecialTaxOrderSalesReport value. Stored as '82'.
Database Value: '82'
Model Value: 14
Domain API Value: 'SpecialTaxOrderSalesReport'
ReportOnSalesMade
WithFuelCompensation
Provided
ReportOnSalesMade
WithFuelCompensation
Provided value. Stored as '83'.
Database Value: '83'
Model Value: 15
Domain API Value: 'ReportOnSalesMade
WithFuelCompensation
Provided'
ReportOnTheSalesOfBread ReportOnTheSalesOfBread value. Stored as '84'.
Database Value: '84'
Model Value: 16
Domain API Value: 'ReportOnTheSalesOfBread'
ReportOnTheSalesOfFlour ReportOnTheSalesOfFlour value. Stored as '85'.
Database Value: '85'
Model Value: 17
Domain API Value: 'ReportOnTheSalesOfFlour'
RecordForRecoverable
TaxByArticle151v
Al3OfBGVATLaw
RecordForRecoverable
TaxByArticle151v
Al3OfBGVATLaw value. Stored as '91'.
Database Value: '91'
Model Value: 18
Domain API Value: 'RecordForRecoverable
TaxByArticle151v
Al3OfBGVATLaw'
RecordForTaxCredit
ByArticle151gAl3
OfBGVATLawOrReport
ByArt104zhAl14
RecordForTaxCredit
ByArticle151gAl3
OfBGVATLawOrReport
ByArt104zhAl14 value. Stored as '92'.
Database Value: '92'
Model Value: 19
Domain API Value: 'RecordForTaxCredit
ByArticle151gAl3
OfBGVATLawOrReport
ByArt104zhAl14'
RecordForRecoverable
TaxByArticle151v
Al7OfBGVATLawWith
NoCashReporting
Receiver
RecordForRecoverable
TaxByArticle151v
Al7OfBGVATLawWith
NoCashReporting
Receiver value. Stored as '93'.
Database Value: '93'
Model Value: 20
Domain API Value: 'RecordForRecoverable
TaxByArticle151v
Al7OfBGVATLawWith
NoCashReporting
Receiver'
RecordForRecoverable
TaxByArticle151v
Al7OfBGVATLawWith
CashReportingReceiver
RecordForRecoverable
TaxByArticle151v
Al7OfBGVATLawWith
CashReportingReceiver value. Stored as '94'.
Database Value: '94'
Model Value: 21
Domain API Value: 'RecordForRecoverable
TaxByArticle151v
Al7OfBGVATLawWith
CashReportingReceiver'

Supported Filters: NotFilterable
Supports Order By: False
Show in UI: ShownByDefault

DisplayText

Uses the repository DisplayTextFormat to build the display text from the attributes and references of current object.

Type: string
Category: Calculated Attributes
Supported Filters: NotFilterable
Supports Order By: ****
Show in UI: HiddenByDefault

Id

Type: guid
Indexed: True
Category: System
Supported Filters: Equals, EqualsIn
Default Value: NewGuid
Show in UI: CannotBeShown

ObjectVersion

The latest version of the extensible data object for the aggregate root for the time the object is loaded from the database. Can be used for optimistic locking.

Type: int32
Category: Extensible Data Object
Supported Filters: NotFilterable
Supports Order By: ****
Show in UI: HiddenByDefault

VATCode

VAT code to use when creating VAT export files for the specified Document Type. Allowed values is government-regulated list of values.

Type: VATCode nullable
Category: System
Allowed values for the VATCode(Finance.Vat.BGVATDocumentTypeVATCodes.md#vatcode) data attribute
Allowed Values (Finance.Vat.BGVATDocumentTypeVATCodesRepository.VATCode Enum Members)

Value Description
Invoice Invoice value. Stored as '01'.
Database Value: '01'
Model Value: 0
Domain API Value: 'Invoice'
DebitNote DebitNote value. Stored as '02'.
Database Value: '02'
Model Value: 1
Domain API Value: 'DebitNote'
CreditNote CreditNote value. Stored as '03'.
Database Value: '03'
Model Value: 2
Domain API Value: 'CreditNote'
CallOffStockRegister
TheGoodsAreSent
OrTransportedFrom
TheCountryToAnother
EUCountry
CallOffStockRegister
TheGoodsAreSent
OrTransportedFrom
TheCountryToAnother
EUCountry value. Stored as '04'.
Database Value: '04'
Model Value: 3
Domain API Value: 'CallOffStockRegister
TheGoodsAreSent
OrTransportedFrom
TheCountryToAnother
EUCountry'
CallOffStockRegister
TheGoodsAreReceived
InTheCountry
CallOffStockRegister
TheGoodsAreReceived
InTheCountry value. Stored as '05'.
Database Value: '05'
Model Value: 4
Domain API Value: 'CallOffStockRegister
TheGoodsAreReceived
InTheCountry'
CustomHouseEntry CustomHouseEntry value. Stored as '07'.
Database Value: '07'
Model Value: 5
Domain API Value: 'CustomHouseEntry'
Protocol Protocol value. Stored as '09'.
Database Value: '09'
Model Value: 6
Domain API Value: 'Protocol'
InvoiceCashReporting InvoiceCashReporting value. Stored as '11'.
Database Value: '11'
Model Value: 7
Domain API Value: 'InvoiceCashReporting'
DebitNoteCashReporting DebitNoteCashReporting value. Stored as '12'.
Database Value: '12'
Model Value: 8
Domain API Value: 'DebitNoteCashReporting'
CreditNoteCashReporting CreditNoteCashReporting value. Stored as '13'.
Database Value: '13'
Model Value: 9
Domain API Value: 'CreditNoteCashReporting'
CreditNoteByArticle126b
Al1OfBGVATLaw
CreditNoteByArticle126b
Al1OfBGVATLaw value. Stored as '23'.
Database Value: '23'
Model Value: 10
Domain API Value: 'CreditNoteByArticle126b
Al1OfBGVATLaw'
ProtocolByArticle126b
Al2And7OfBGVAT
Law
ProtocolByArticle126b
Al2And7OfBGVAT
Law value. Stored as '29'.
Database Value: '29'
Model Value: 11
Domain API Value: 'ProtocolByArticle126b
Al2And7OfBGVAT
Law'
ProtocolForCharging
TheRequiredVAT
ForFuelSupplies
ForWhichCompensation
HasBeenGranted
ProtocolForCharging
TheRequiredVAT
ForFuelSupplies
ForWhichCompensation
HasBeenGranted value. Stored as '50'.
Database Value: '50'
Model Value: 12
Domain API Value: 'ProtocolForCharging
TheRequiredVAT
ForFuelSupplies
ForWhichCompensation
HasBeenGranted'
SalesReport SalesReport value. Stored as '81'.
Database Value: '81'
Model Value: 13
Domain API Value: 'SalesReport'
SpecialTaxOrderSalesReport SpecialTaxOrderSalesReport value. Stored as '82'.
Database Value: '82'
Model Value: 14
Domain API Value: 'SpecialTaxOrderSalesReport'
ReportOnSalesMade
WithFuelCompensation
Provided
ReportOnSalesMade
WithFuelCompensation
Provided value. Stored as '83'.
Database Value: '83'
Model Value: 15
Domain API Value: 'ReportOnSalesMade
WithFuelCompensation
Provided'
ReportOnTheSalesOfBread ReportOnTheSalesOfBread value. Stored as '84'.
Database Value: '84'
Model Value: 16
Domain API Value: 'ReportOnTheSalesOfBread'
ReportOnTheSalesOfFlour ReportOnTheSalesOfFlour value. Stored as '85'.
Database Value: '85'
Model Value: 17
Domain API Value: 'ReportOnTheSalesOfFlour'
RecordForRecoverable
TaxByArticle151v
Al3OfBGVATLaw
RecordForRecoverable
TaxByArticle151v
Al3OfBGVATLaw value. Stored as '91'.
Database Value: '91'
Model Value: 18
Domain API Value: 'RecordForRecoverable
TaxByArticle151v
Al3OfBGVATLaw'
RecordForTaxCredit
ByArticle151gAl3
OfBGVATLawOrReport
ByArt104zhAl14
RecordForTaxCredit
ByArticle151gAl3
OfBGVATLawOrReport
ByArt104zhAl14 value. Stored as '92'.
Database Value: '92'
Model Value: 19
Domain API Value: 'RecordForTaxCredit
ByArticle151gAl3
OfBGVATLawOrReport
ByArt104zhAl14'
RecordForRecoverable
TaxByArticle151v
Al7OfBGVATLawWith
NoCashReporting
Receiver
RecordForRecoverable
TaxByArticle151v
Al7OfBGVATLawWith
NoCashReporting
Receiver value. Stored as '93'.
Database Value: '93'
Model Value: 20
Domain API Value: 'RecordForRecoverable
TaxByArticle151v
Al7OfBGVATLawWith
NoCashReporting
Receiver'
RecordForRecoverable
TaxByArticle151v
Al7OfBGVATLawWith
CashReportingReceiver
RecordForRecoverable
TaxByArticle151v
Al7OfBGVATLawWith
CashReportingReceiver value. Stored as '94'.
Database Value: '94'
Model Value: 21
Domain API Value: 'RecordForRecoverable
TaxByArticle151v
Al7OfBGVATLawWith
CashReportingReceiver'

Supported Filters: NotFilterable
Supports Order By: False
Show in UI: ShownByDefault

Reference Details

DocumentType

Document type that generates VAT entries. Required Filter(multi eq)

Type: DocumentTypes
Indexed: True
Category: System
Supported Filters: Equals, EqualsIn
Show in UI: ShownByDefault

API Methods

Methods that can be invoked in public APIs.

GetAllowedCustomPropertyValues

Gets the allowed values for the specified custom property for this entity object. If supported the result is ordered by property value. Some property value sources do not support ordering - in that case the result is not ordered.
Return Type: Collection Of CustomPropertyValue
Declaring Type: EntityObject
Domain API Request: GET

Parameters

  • customPropertyCode
    The code of the custom property
    Type: string

  • search
    The search text - searches by value or description. Can contain wildcard character %.
    Type: string
    Optional: True
    Default Value: null

  • exactMatch
    If true the search text should be equal to the property value
    Type: boolean
    Optional: True
    Default Value: False

  • orderByDescription
    If true the result is ordered by Description instead of Value. Note that ordering is not always possible.
    Type: boolean
    Optional: True
    Default Value: False

  • top
    The top clause - default is 10
    Type: int32
    Optional: True
    Default Value: 10

  • skip
    The skip clause - default is 0
    Type: int32
    Optional: True
    Default Value: 0

CreateNotification

Create a notification immediately in a separate transaction, and send a real-time event to the user.
Return Type: void
Declaring Type: EntityObject
Domain API Request: POST

Parameters

  • user
    The user.
    Type: Users

  • notificationClass
    The notification class.
    Type: string

  • subject
    The notification subject.
    Type: string

CreateCopy

Duplicates the object and its child objects belonging to the same aggregate. The duplicated objects are not saved to the data source but remain in the same transaction as the original object.
Return Type: EntityObject
Declaring Type: EntityObject
Domain API Request: POST

Business Rules

None

Front-End Business Rules

None

API

Domain API Query: https://demodb.my.erp.net/api/domain/odata/Finance_Vat_BGVATDocumentTypeVATCodes?$top=10

Domain API Query Builder: https://demodb.my.erp.net/api/domain/querybuilder#Finance_Vat_BGVATDocumentTypeVATCodes?$top=10