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

Community site session details

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

Electronic reporting - record list filter

(0) ShareShare
ReportReport
Posted on by 36


 
Hi everyone,
I’m working on electronic reporting for invoices in XML, and I have a problem with filtering in a CodeTax record list.
The CodeTax list contains fields TaxCd and TaxV, which point to TaxCode and the showTaxValue() method. This list is inside the invoice line (LigneClient).
Here is my CodeTax reference:
@.'>Relations'.TaxItemGroup.'<Relations'.TaxOnItem

For TaxCd, I’m using:
if(@.TaxCode = "TVA19", "TVA19",
   if(@.TaxCode = "TVA19-TPE", "TVA19",
      if(@.TaxCode = "ECOFILTER", "ECOFILTER",
         if(@.TaxCode = "TPE", "TPE", ""))))

And for TaxV:
IF(@.TaxCode = "TVA19", 19.0,
   IF(@.TaxCode = "TPE", @.'showTaxValue()',
      IF(@.TaxCode = "ECOFILTRE", @.'showTaxValue()',
         IF(@.TaxCode = "TVA19-TPE", 19.0, 0.0))))

The issue is that when I try to filter specific taxes, the other taxes remain in the list, but their TaxCd is empty and TaxV is 0. I want these other taxes to not exist at all in the filtered list instead of showing empty or 0 values.
How can I achieve this?
Thanks in advance!
 














Categories:
I have the same question (0)

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade 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... 703 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 582 Most Valuable Professional

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 542

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans