cancel
Showing results for 
Search instead for 
Did you mean: 
My Areas

Sign in or create account

to get a personalized navigation.

Florian Haase
PARTNER

Empty VATCode on CashtransactionLine

by Florian Haase (Updated ‎30-03-2021 10:47 by Yildirim VISMA )

Hei,

 

I have also another issue: In the UI its fully possible to set a blank Vat-Code on the Cashtransaction Lines. But thats not possible in the API. When sending "" i get the message that the Vat-Code is not found and when I send a null-value or don't send the field at all I get the standard vat-code from the account.

Our workaround so far is to use a vat-code which don't have vat calculation, but that seems to be a bug in the API.

 

Florian

 

 

4 REPLIES 4

by Magnus Johnsen

Are you getting these issues on certain entryTypes or on all types?

 

With Disembursement we were able to send a JSON without a VAT code:

{
    "tranDate": {
        "value": "2021-03-23T10:29:13.896Z"
    },
    "finanacialPeriod": {
        "value": "202103"
    },
    "description": {
        "value": "empty vat"
    },
    "cashAccount": {
        "value": "1900"
    },
    "entryType": {
        "value": "10"
    },
    "taxCalculationMode": {
        "value": "TaxSetting"
    },
    "cashTransactionDetails": [
        {
            "operation": "Insert",
            "quantity": {
                "value": 1
            },
            "uom": {
                "value": "STK"
            },
            "price": {
                "value": 5
            },
            "amount": {
                "value": 5
            },
            "offsetAccount": {
                "value": "3000"
            },
            "offsetSubaccount": [
                {
                    "segmentId": 1,
                    "segmentValue": "01"
                },
                {
                    "segmentId": 2,
                    "segmentValue": "001"
                },
                {
                    "segmentId": 3,
                    "segmentValue": "0"
                }
            ],
            "project": {
                "value": "x"
            }
        }
    ],
    "cashTransactionTaxDetails": []
}
 
UI:
 
2021-03-23 12_14_26-Transactions.png
Florian Haase
PARTNER

Here the Json:

 

{"hold":{"value":false},"tranDate":{"value":"2021-03-24T00:00:00"},"description":{"value":"Overføring fra POS"},"cashAccount":{"value":"1931"},"entryType":{"value":"13"},"cashTransactionDetails":[{"operation":"Insert","inventoryNumber":{"value":"3030302"},"description":{"value":"Røyken Segway Experience barn"},"quantity":{"value":1.0},"price":{"value":200.0},"offsetAccount":{"value":"2410"}},{"operation":"Insert","inventoryNumber":{"value":"3030301"},"description":{"value":"Røyken Segway Experience voksen"},"quantity":{"value":2.0},"price":{"value":300.0},"offsetAccount":{"value":"2410"}},{"operation":"Insert","inventoryNumber":{"value":"2010101"},"description":{"value":"24 timer voksen"},"quantity":{"value":1.0},"price":{"value":300.0},"offsetAccount":{"value":"3035"}},{"operation":"Insert","description":{"value":"Betalingstransaksjon fra POS"},"amount":{"value":-800.0},"offsetAccount":{"value":"1920"},"vatCode":{"value":""}},{"operation":"Insert","description":{"value":"Betalingstransaksjon fra POS"},"amount":{"value":-300.0},"offsetAccount":{"value":"1931"},"vatCode":{"value":""}}]}

 
Florian Haase
PARTNER

Hi

 

In the UI there is coming up a VAT-Code when registering the Account. But there it is possible to remove this code and set a blank Vat-Code instead.  This we don't get work in the API. Sending blank Vat-Codes in the post-call is obviously not possible.

 

Florian

Accepted solution
Magnus Johnsen
VISMA

by Magnus Johnsen (Updated ‎23-03-2021 11:41 by Magnus Johnsen VISMA )

Hi,

We're looking in to this and will report it to the development team.

Could you send us an example JSON of how you are expecting it to work?

Thank you.