mercoledì 22 maggio 2024

How to check/add Cust/Vend Journal transactions to Sales Tax (Italy) report

In AX2012 and D365 there is a specific Italian report "Sales Tax (Italy) report" named "Libro IVA", it contain all transactions about VAT/Sales tax.

By my point of view, an helpful checkpoint, is to veify for each Sales Tax transactions the Posting-parameters.
I'm meaning: Purchase->Invoice Journals; Sales ledger-> Payment Journal and others.
In case we are facing to some transations missing in SalesTax (Italy) Report, the first check is to verify these TaxTrans data:
mandatory fields

The fields are: TaxTrans. TaxBook and TaxTrans.TaxBookSection.
These fields create the link between transactions and Tax Report.
table fields

Report Example

giovedì 2 maggio 2024

AX 2012 - Fixed default dimension

 Con questo job possiamo ottenere i valori "fixed" sulla default dimension di un conto:



static void GetFixedDefaultDimension(Args _args) { Map map; MainAccountLegalEntity MainAccountLegalEntity; MainAccount mainAccount; MapEnumerator enumerator; DimensionStorageSegment DimensionStorageSegment; DimensionAttribute DimensionAttribute; CompanyInfo companyInfo; companyInfo = CompanyInfo::find(); select firstOnly MainAccountLegalEntity join mainAccount where mainAccount.RecId == MainAccountLegalEntity.MainAccount && mainAccount.MainAccountId == "200100" && MainAccountLegalEntity.LegalEntity == companyInfo.RecId; map = DimensionDefaultingService::getFixedDimensionsForMainAccount(MainAccountLegalEntity.MainAccount,MainAccountLegalEntity.LegalEntity); enumerator = Map.getEnumerator(); while (enumerator.moveNext()) { DimensionStorageSegment = enumerator.currentValue(); DimensionAttribute = DimensionAttribute::find(enumerator.currentKey()); info(strFmt("%1:%2 -- %3",DimensionAttribute.Name ,DimensionStorageSegment.parmDisplayValue() ,DimensionStorageSegment.getName())); } }