Table "VAT Setup Posting Groups"
ID 1877
Namespace: Microsoft.Finance.VAT.Setup
Properties
| Name |
Value |
| Caption |
VAT Setup Posting Groups
|
| DataClassification |
CustomerContent
|
Fields
| Name |
Type |
Description |
| "VAT Prod. Posting Group" |
Code[20]
|
|
| "VAT %" |
Decimal
|
|
| "Sales VAT Account" |
Code[20]
|
|
| "Purchase VAT Account" |
Code[20]
|
|
| "Reverse Chrg. VAT Acc." |
Code[20]
|
|
| "VAT Prod. Posting Grp Desc." |
Text[100]
|
|
| "VAT Clause Desc" |
Text[250]
|
|
| Selected |
Boolean
|
|
| "Application Type" |
Option
|
|
| Default |
Boolean
|
|
| SystemId |
Guid
|
|
| SystemCreatedAt |
DateTime
|
|
| SystemCreatedBy |
Guid
|
|
| SystemModifiedAt |
DateTime
|
|
| SystemModifiedBy |
Guid
|
|
| SystemRowVersion |
BigInteger
|
|
Methods
ValidateVATRates
procedure ValidateVATRates(): Boolean
Returns
PopulateVATProdGroups
procedure PopulateVATProdGroups()
AddOrUpdateProdPostingGrp
procedure AddOrUpdateProdPostingGrp(ProdGrpCode: Code[20], GrpDesc: Text[100], VatRate: Decimal, SalesAccount: Code[20], PurchAccount: Code[20], IsService: Boolean, IsDefault: Boolean): Boolean
Parameters
| Name |
Type |
Description |
|
ProdGrpCode
|
Code[20]
|
|
|
GrpDesc
|
Text[100]
|
|
|
VatRate
|
Decimal
|
|
|
SalesAccount
|
Code[20]
|
|
|
PurchAccount
|
Code[20]
|
|
|
IsService
|
Boolean
|
|
|
IsDefault
|
Boolean
|
|
Returns
CheckExistingItemAndServiceWithVAT
procedure CheckExistingItemAndServiceWithVAT(VATProdPostingGroupCode: Code[20], IsService: Boolean): Boolean
Parameters
| Name |
Type |
Description |
|
VATProdPostingGroupCode
|
Code[20]
|
|
|
IsService
|
Boolean
|
|
Returns
ValidateGLAccountsExist
procedure ValidateGLAccountsExist(var ErrorMessage: Text): Boolean
Parameters
| Name |
Type |
Description |
|
ErrorMessage
|
Text
|
|
Returns
GetLabelTok
procedure GetLabelTok(LabelName: Text): Code[20]
Parameters
| Name |
Type |
Description |
|
LabelName
|
Text
|
|
Returns
| Type |
Description |
|
Code[20]
|
|
GetLabelTxt
procedure GetLabelTxt(LabelName: Text): Text[100]
Parameters
| Name |
Type |
Description |
|
LabelName
|
Text
|
|
Returns
| Type |
Description |
|
Text[100]
|
|
Events
OnInitWithStandardValues
[IntegrationEvent(False,False)]
local procedure OnInitWithStandardValues(var Handled: Boolean, VATSetupPostingGroups: Record "VAT Setup Posting Groups")
Parameters
OnBeforeCheckExistingItemAndServiceWithVAT
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckExistingItemAndServiceWithVAT(VATProdPostingGroupCode: Code[20], var Result: Boolean)
Parameters
| Name |
Type |
Description |
|
VATProdPostingGroupCode
|
Code[20]
|
|
|
Result
|
Boolean
|
|
See also