My Products
Help
adrianm
PARTNER

Project transactions ignores financial period

by adrianm

I post a project transaction with 2 different financial periods but they get the same period in Visma.Net

POST: https://integration.visma.net/API/controller/api/v1/projecttransaction
Headers: {
    Accept: application/json
    Authorization: <hidden>
    ipp-application-type: Visma.net Financials
    ipp-company-id: 3553648
    Accept-Encoding: gzip    Accept-Encoding: deflate
    Request-Id: |wj4VMNYduQY=.f86efa56_51.
    Content-Type: application/json; charset=utf-8
    Content-Length: 963
}
{
"description": { "value": "2022-04-22" },
"lines": [{
		"operation": "Insert",
		"date": { "value": "2022-04-22T00:00:00" },
		"inventoryId": { "value": "Yrkesarbetare" },
		"quantity": { "value": 8 },
		"amount": { "value": 450.0 },
		"financialPeriod": { "value": "202204" },
		"project": { "value": "18055" },
		"projectTask": { "value": "1" },
		"debitAccount": { "value": "7118" },
		"debitSubaccount": { "value": "1805500000000" },
		"creditAccount": { "value": "7110" },
		"creditSubaccount": { "value": "1805500000000" },
		"accountGroup": { "value": "70" }
	},{
		"operation": "Insert",
		"date": { "value": "2022-05-20T00:00:00" },
		"inventoryId": { "value": "Yrkesarbetare" },
		"quantity": { "value": -8 },
		"amount": { "value": 450.0 },
		"financialPeriod": { "value": "202205" },
		"project": { "value": "18055" },
		"projectTask": { "value": "1" },
		"debitAccount": { "value": "7118" },
		"debitSubaccount": { "value": "1805500000000" },
		"creditAccount": { "value": "7110" },
		"creditSubaccount": { "value": "1805500000000" },
		"accountGroup": { "value": "70" },
		"description": { "value": "Reverse" }
	}]
}

adrianm_0-1646661900318.png

It works if I send them in two requests. POST+PUT

 

2 REPLIES 2
Accepted solution
Magnus Johnsen
VISMA

by Magnus Johnsen (Updated ‎13-04-2022 14:51 by Magnus Johnsen VISMA )

Hi,

The fix for this was included in the 8.92.0 version released yesterday:

[Release Notes] - Visma.Net API 8.92.0 - 12.04.2022

Please let us know if you are still having issues with this.

Thank you. 

by Magnus Johnsen

Hi,

We can confirm that when sending multiple lines via POST, only the last financialPeriod is used on all lines.

The same seems to be true for PUT as well, sending multiple lines with financialPeriods will update all lines to the last occurring period.

We'll open a case with the development team.

Thank you.