My Products
Help
Kanyar Mahmoud
PARTNER

JournalTransactionLine without VatCode

by Kanyar Mahmoud

Hello,

 

When trying to add a JournalTransactionLine, the VatCodeId from the account is being used. We want to avoid this, so we tried:

 

                                                "vatCodeId": {

                                                                "value": null

                                                },

 

This works, but we still get VatCodeId from the account.

 

Also tried:

 

                                                "vatCodeId": {

                                                                "value": ‘’

                                                },

 

                                                "vatCodeId": {

                                                                "value": ‘ ‘

                                                },

 

But these are rejected with an error message.

 

The purpose is getting no vat code on the journal transaction lines that has no vat.  

4 REPLIES 4
Yıldırım
VISMA

by Yıldırım

Hello, 

 

As it can be seen in the Financials UI, if createVatTransactions is being checked then VatID, VatCategory etc. are populated in the line.
Journal transactions.jpg

So if you don't want to create that, then please use the following field in the payload and do not include VAT fields in the JSON.

 "createVatTransaction": {
    "value": false
  },
  "skipVatAmountValidation": {
    "value": true
  },

 

Hi Yıldırım 

Sorry I did not mean to accept solution here. 

The problem here is that some accounts in chart of accounts have a VAT code added to it. Then the VAT Code comes as default on that account. 

We need to override this. If we override with 3 with 5 thats fine. That works. We want to (in some cases) have it without the VATCode. In The UI you can press delete or backspace in the field and that works fine. So we want to send "blank", "Null" or anything to that field that overrides from forinstance 3 to blank. 

 

We can ofcourse remove the VAT Code for chart of accounts (GL202500) so it has no default. But that is not a wanted solution for manual transactions they want the suggestion (and also is vulnerable in cases where they correct the chart of accounts at som point in time. 

 

Stian

Yıldırım
VISMA

Hi Stian, I see.
Have you tried sending a PUT request ? 

      "vatId": {
                "value": null
            },

to be clear it should be VAT Code on some lines so the Batch must have create VAT transactions