My Products
Help
Kjetil Ringstad
PARTNER

Urgent - Errors using addpurchaseorderlines after update

by Kjetil Ringstad

Hi

After last night's update of Visma.net the addpurchaseorderlines endpoint doesn't work correctly.

When posting to addpurchaseorderline :

/controller/api/v1/PurchaseReceipt/{receiptNumber}/action/addpurchaseorderlines

 

Payload:

{"purchaseOrderLines":[{"orderNbr": "000027","lines": [{"lineNbr": "9"}]}]}

 

The error  is then returned, but the purchase order line do exist:

HTTP 400-{"message":"Error adding purchase orders to receipt: Purchase order line 9 could not be found for order number 000027 "} 

 

This has worked well for a while, until yesterdays release/update.

 

Please advise

3 REPLIES 3
Accepted solution
Kjetil Ringstad
PARTNER

by Kjetil Ringstad

Thank you, please close this issue. The customer used different currencies. Coincidentally this happened on the day of the update and because of the somewhat dodgy history of Visma.net updates, we thought of API errors first.

Yıldırım
VISMA

Thanks for the confirmation 👍

Yıldırım
VISMA

by Yıldırım (Updated ‎25-05-2021 15:00 by Yıldırım VISMA )

Hello Kjetil, 

 

Visma.net ERP Financials 8.50 version has been released today (Around 13:30 CEST ) and there is no API related case included in the release. 

Based on the error message, this might just be related to the Purchase Order <> Purchase Receipt that you're trying to add a line from/to.

Please check the requested  Purchase Order > Order Line via the Purchase Receipt > Add Purchase Order Line function in the Financials ERP UI. Make sure the requested Line is available in the look-up table and can be added to the Purchase Receipt.
addPurchaseOrderLine.png
 ℹ️"OrderLines can be added based on existing purchase order of the selected supplier to the current purchase receipt or return, to account for items received. You can add lines from only purchase orders with 
Normal or Drop-ship types."

Thanks.