My Products
Help

missing vat in orderhead

by Trygve Storrønningen1

This is a question from ISV and Visma.net partner.

 

When we POST an order in one specific company; VAT are not calculated in order head.

If we open the order in Visma.net UI, and add one more line -- VAT shows up.

 

For other companies we are POSTing orders to, VAT seems to be ok after POST.

Any ideas what could be wrong in this case?

 

We understand missing VAT can be an interesting feature in some markets, but most of our customers preffer it to be acknowledged by tax inspection 😉

 

Here is our JSON:

{
   "soShippingContact": {"value": {
      "fax": {"value": null},
      "email": {"value": "buyer@outlook.com"},
      "name": {"value": "Tomas Buyer"},
      "overrideContact": {"value": true},
      "phone2": {"value": null},
      "web": {"value": null},
      "phone1": {"value": "+47 999 99 999"},
      "attention": {"value": "guest guest"}
   }},
   "location": {"value": "HOVED"},
   "orderType": {"value": "SO"},
   "soShippingAddress": {"value": {
      "countryId": {"value": "NO"},
      "postalCode": {"value": "7606"},
      "overrideAddress": {"value": true},
      "county": {"value": null},
      "addressLine3": {"value": null},
      "addressLine2": {"value": null},
      "addressLine1": {"value": "Adressevegen 8C"},
      "city": {"value": "Levanger"}
   }},
   "customerOrder": {"value": "web-14683"},
   "customerRefNo": {"value": null},
   "hold": {"value": null},
   "date": {"value": "2020-08-28T10:00:00Z"},
   "customer": {"value": "15100"},
   "currency": {"value": null},
   "recalculateShipment": null,
   "description": {"value": "Web order nr. web-14683"},
   "soBillingAddress": {"value": {
      "countryId": {"value": "NO"},
      "postalCode": {"value": "7606"},
      "overrideAddress": {"value": true},
      "addressLine3": {"value": null},
      "addressLine2": {"value": null},
      "addressLine1": {"value": "Adressevegen 8C"},
      "city": {"value": "Levanger"}
   }},
   "soBillingContact": {"value": {
      "fax": {"value": null},
      "email": {"value": "buyer@outlook.com"},
      "name": {"value": "Tomas Buyer"},
      "overrideContact": {"value": true},
      "phone2": {"value": null},
      "web": {"value": null},
      "phone1": {"value": "+47 999 99 999"},
      "attention": {"value": "guest guest"}
   }},
   "orderNumber": {"value": "web-14683"},
   "lines": [{
      "lineNbr": {"value": 1},
      "operation": "Insert",
      "inventoryId": {"value": "HEDEF704550"},
      "unitPrice": {"value": 395.2},
      "quantity": {"value": 2},
      "discountPercent": {"value": 0},
      "manualDiscount": {"value": false},
      "lineDescription": {"value": "Oransje skjøtekabel 2 mtr"}
   }]
}

 

10 REPLIES 10

by Trygve Storrønningen1

And that is how it is done 🙂

Setting currency = "NOK" made the difference.

 

Thank you, Visma! 🙂

Accepted solution
Magnus Johnsen
VISMA

by Magnus Johnsen

Hi,

 

Development team is saying:

"Tested and DTO must contain valid currency.  Also setting of "null" in dto where the type is boolean is not valid.  Setting "null"-values for dto-fields must be avoided as much as possible . The backend will process and set correct type in the system if the "not mandatory"-fields is not included in the DTO.

 

When setting correct currency "NOK" in the attached JSON, the tax is calculated correctly."

 

Could you please try this in your end? Please set the currency and let us know if this helps. 

 

Thank you. 

by Magnus Johnsen

Hi,

We have opened a case with the development team for this and sent you an email.

Progress in the case will be posted here.

 

Thank you. 

by Trygve Storrønningen1

Sorry for late answer, we have been searching a lot of possible causes in config.

 

I have tried posting order with UoM -- same story, no VAT in head.

I have tried adopting all settings from the company where this fails to a test company -- still not able to reproduce this in test.

We know that Cloud Connection have made an integration with WallMob and this company; and VAT is generated in the head for these orders - they made a special variant of settings to avoid challenges with rounding of VAT. But for them VAT generation in head works.

by Magnus Johnsen

Hi, it looks like my reply got cut of.

 

We were unable to reproduce it, as can be seen here:

2020-09-01 14_20_39-Sales orders.png

The issue might be in VAT settings or in the inventory item.

The only difference in your JSON and ours was that we had to add "UoM" to the inventory line, could you please try that as well?

Also, do you get the same issue when using a different inventoryitem?

 

by Trygve Storrønningen1

So it could be then either a setting in Visma.net or an obscurity in this company -- we will investigate further and tell what we will find.

by Magnus Johnsen

Using the same JSON, modified to fit with our company, we are unable to reproduce this.

 
 

by Trygve Storrønningen1
 

 

image.png

 

 

 

image.png

 

 

by Yıldırım

Hello, 

can you please attach a screenshot from the UI that where we can see the case as what you've specified ? 

by Trygve Storrønningen1

When creating this order in Visma.net UI, VAT in order head is updated as expected after field quantity is updated.