My Products
Help
jnemo
CONTRIBUTOR ***

Obtaining DunningLevelInformation

by jnemo

This here is Invoice A as shown in Invoices and Memos -> Financial Details (AR301000)

jnemo_1-1637763076442.png

 

And this is Invoice B found in the same place

jnemo_0-1637763049761.png

 

The same can be seen in Dunning Letter History in ERP where, as expected, we find Invoice B and not Invoice A.

 

But querying CustomerInvoice for Invoice A via API gives me

"dunningLetterDate": "2021-01-26T00:00:00",
"dunningLetterLevel": 1,

and for Invoice B

"dunningLetterDate": "2021-11-04T00:00:00",
"dunningLetterLevel": 1,

 

I don't really understand this result. I've been unable to differentiate between these two via API. Am I missing something obvious?

3 REPLIES 3
Yıldırım
VISMA

by Yıldırım

Hello,

 

We're unable to reproduce the mentioned issue. Please review and send us the details of the following modules/steps with print screens.

How do you fetch the Invoice A & B, is that a GET Specific Customer Invoice request ? Please send the URL. 

1) Go to > Dunning letter history by document <ScreenId=AR408500> and check the listed invoices based on the customer. (Make sure the start date set ">=" 2021-01-26  based on Invoice "A" dunningLetterDate.)

dunningletter.jpg

 

2) e.g Customer Invoice: "00228" > Dunning Level: "0" > Does not show Dunning Information in the Customer Invoice:"00228"(ERP UI) and does not return the following information via the GET /api/v1/customerinvoice/00228

"dunningLetterDate": "xxx",
"dunningLetterLevel": x

 

3- What is the company Customer Ledger Preferences > Dunning Settings <ScreenId=AR101000> ? 

customerLedgerPrf.jpg

 

jnemo
CONTRIBUTOR ***

by jnemo

Ok, that's probably good.

 

The JSON was from

GET https://integration.visma.net/API/controller/api/v1/customerinvoice/INVOICENUMBER
GET https://integration.visma.net/API/controller/api/v1/customerinvoice?dunningLevel=1

 

<ScreenId=AR101000>

jnemo_0-1637844828538.png

 

So it seems I was too hasty looking at Dunning Letter History yesterday. Here is A

jnemo_5-1637845804224.png

And for B

jnemo_4-1637845710967.png

 

Ok, so it seems api/CustomerInvoice includes Drafts when returning dunningLetterDate/dunningLetterLevel?

 

I'm after Invoices with a DunningLetterLevel that is 1 where the DunningLetter also has Status Released. Is there a way of doing this? Or getting the list of the actualy DunningLetters?

Yıldırım
VISMA

by Yıldırım (Updated ‎25-11-2021 16:14 by Yıldırım VISMA )

Hello, 

 


@jnemo wrote:

Ok, so it seems api/CustomerInvoice includes Drafts when returning dunningLetterDate/dunningLetterLevel?


That's true.

 


@jnemo wrote:

I'm after Invoices with a DunningLetterLevel that is 1 where the DunningLetter also has Status Released. Is there a way of doing this? Or getting the list of the actualy DunningLetters?


currently, it's not possible to filter the data based on "Dunning letter status".   

2021-11-25 16_08_09-Window.jpg

 

This can be registered as a wish for improvement in the "Ideas" part of the community.