Mina produkter

Logga in för att följa kategorier och för att få genvägar i denna meny
avbryt
Visar resultat för 
Visa  endast  | Sök istället efter 
Menade du: 
Det är semestertider i forumet - Vill du ha snabb hjälp?
Ring oss, vi hjälper dig gärna!
Mikko Pitkonen
NY MEDLEM

Problem with Visma Administration API/DLL related to credit note fields since 2025.0

Hi
 
We have an integration towards Visma Administration which transfers customer invoices among other things.
 
During last month our customer noticed that with credit notes there were two issues after the transfer from our product to Visma Administration 1000:
- For credit notes referenced invoice is not set ("Krediterar" -field in Admin)
- For credit notes delivery date is not set ("Leveransdatum" -field in Admin)
 
We were able to reproduce this in our own test environment:
With an old version those fields were set in Admin, but with the version 2025.0 they were empty.
Also using Visma Administration 1000 to create the credit note they were set, but now via the DLL/API.
 
For credit notes we set the referenced invoice value in the integration like this:
 
dbInvoiceHead.SetStr(Api.ADK_OOI_HEAD_TYPE_OF_INVOICE, "K");
dbInvoiceHead.SetDouble(Api.ADK_OOI_HEAD_CREDIT_INVOICE_COPY_NUMBER, reimbursedInvoice.Number.Value);
dbInvoiceHead.SetDouble(Api.ADK_OOI_HEAD_CREDIT_INVOICE_COPY_WHAT, (int)Api.ADK_CREDIT_INVOICE_TO_COPY.eNothing);
dbInvoiceHead.SetDouble(Api.ADK_OOI_HEAD_DISPATCH_FEE, 0d);
 
We are using the AdkNet4Wrapper.dll with version 2025.0.
 
Looks like the delivery date is set to the current date when the invoice is transferred using some logic: 
With an old credit note it was the current date, instead of any date we store with the invoice.
 
So it looks like after the Administration upgrade these fields do not work as earlier. 
Was there some change related to these fields and which fields should we use now?
Or should we use them somehow differently?
 
Any help is greatly appreciated. 🙂 
0 SVAR 0