softwerkab / fortnox-csharp-api-sdk

.NET SDK for Fortnox API.
MIT License
52 stars 64 forks source link

Total, TotalVAT and OrderReference are read only property in Invoice entity #247

Open lakshansud opened 2 years ago

lakshansud commented 2 years ago

Hi When I implemented this SDK to our system, I can't set Total, TotalVAT, and OrderReference to the invoice since read-only property. Can you please know, how can I send these values to the FORTNOX when I create invoice?

richardrandak commented 2 years ago

You can't. If I remember correctly, You need to add invoice lines. The total amounts are calculated on server.

richardrandak commented 2 years ago

Not sure about order reference. It is populated when invoice is created from an fortnox order. If it is readonly, you can maybe use ExternalReference or something.