web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

VAT Declaration XML - negative values (RESOLVED)

(5) ShareShare
ReportReport
Posted on by 10

Hello,
 
I need to see negative values in my declaration to record CreditNotes.
I have successfully updated the VAT Declaration format for Excel preview in ER (Electronic reporting) > Designer.
 
However, when I do the same steps for XML, it doesn't quite work.
Example, 057/066 UseTax + UseTaxCreditNote
Initially, negative values are prevented to be recorded in these boxes by Transformation formula:
- FormatNumberF2_Positive
Instead, value is recorded as correction in 067.
Client doesn't want such behaviour, that's why we are updating this.
 
I have removed this formula for 057 and 066 boxes. Also, updated the formula for 067 by removing boxes 057 and 066.
All works as expected for Excel preview.
 
Same steps don't work for XML format. I have additionally tried to use transformation formula instead of blank:
- FormatNumberF2
 
Still didn't work. 
 
Could it be that XML does not support negative values or other solution is possible?
 
SOLUTION
Select the groupping above the String (E.g., KZ057) > Go to Mapping and remove the fucntion on the bottom right of the screen.
It conditions what is later on visible on XML.
Thank you in advance.
 
Categories:
I have the same question (0)
  • Adis Profile Picture
    6,069 Super User 2025 Season 2 on at
    Hi,
     
    XML does support negative values. 
     
    The difference between the xml and the excel in this case can be the following. Please check them.
    • different version of configurations
    • different application setup (please also check that the setup is completed)
    • details in the (format) configuration (validations, transformations)
    • draft version is not completed or "Run draft" is not activated
    Apart from that, please show us what you have changed in the excel and in the xml regarding the transformation.
     
     

    Kind regards, Adis

     

    If this helped, please mark it as "Verified" for others facing the same issue

    Keep in mind that it is possible to mark more than one answer as verified

     
  • RM-09090509-0 Profile Picture
    61 on at
    Hi,
     
    I would suggest you firstly try to debug the XML format mapping and confirm that the value you are expecting is in negative.
    IF it does not show as negative while you are debugging, you need to adjust the formulas you are using.
     
    Please share a screenshot of the formula you are using to help you better on this point.
  • Verified answer
    Gerardo Rentería García Profile Picture
    25,367 Most Valuable Professional on at
     
    SOLUTION
    Select the groupping above the String (E.g., KZ057) > Go to Mapping and remove the fucntion on the bottom right of the screen.
    It conditions what is later on visible on XML.
    Thank you in advance.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 456 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans