to get a personalized navigation.
to get a personalized navigation.
We have a customer that uses the rut/rot functionality through the API on the CustomerInvoiceV2 endpoint.
We have noticed that since middle of january we get wrong amount summed up on the RotRut-total.
When using this Json today we get the wrong amount. When we used the same in the beginning of january we got the right amount. Our conclusion is that the check box "distributedAutomatically" does not work in the same way.
{
"customerNumber": {
"value": "61938"
},
"creditTermsId": {
"value": "30"
},
"documentDate": {
"value": "2022-03-31T00:00:00.000Z"
},
"invoiceText": {
"value": "98158 Samma som faktura 106523 Helsingborg"
},
"note": {
"value": "Ordernummer: 98158\r\nProjektnummer: 2000102\r\nArbetsbeskrivning:\r\nSamma som faktura 106523 Helsingborg"
},
"salesperson": {
"value": "102"
},
"externalReference": {
"value": "Test Husarbete"
},
"locationId": {
"value": "HR5RWLIAVVEUFACN4FC65OSQ54"
},
"domesticServicesDeductibleDocument": {
"value": true
},
"rotRutDetails": {
"type": {
"value": "Rot"
},
"distributedAutomaticaly": {
"value": false
},
"organizationNbr": {
"value": ""
},
"estate": {
"value": "Berget 12:1"
},
"appartment": {
"value": ""
},
"distribution": [
{
"operation": "Insert",
"lineNbr": {
"value": 0
},
"personalId": {
"value": "198601015608"
},
"amount": {
"value": 14542
},
"extra": {
"value": false
}
}
]
},
"invoiceLines": [
{
"operation": "Insert",
"lineNumber": {
"value": 1
},
"domesticServicesDeductible": {
"value": false
},
"description": {
"value": "V\u00E5rt ordernummer: 98158"
},
"quantity": {
"value": 0
},
"accountNumber": {
"value": "9999"
}
},
{
"operation": "Insert",
"lineNumber": {
"value": 6
},
"domesticServicesDeductible": {
"value": true
},
"itemType": {
"value": "Service"
},
"typeOfWork": {
"value": "Plumbing"
},
"description": {
"value": "Fast pris"
},
"uom": {
"value": "st"
},
"quantity": {
"value": 17.5
},
"manualAmountInCurrency": {
"value": 110800
},
"accountNumber": {
"value": "3031"
},
"vatCodeId": {
"value": "01"
},
"subaccount": [
{
"segmentId": 1,
"segmentValue": "12"
},
{
"segmentId": 2,
"segmentValue": "12"
},
{
"segmentId": 3,
"segmentValue": "2000102"
},
{
"segmentId": 4,
"segmentValue": "98158"
},
{
"segmentId": 5,
"segmentValue": "0"
}
]
}
]
}
Hi
We are expecting Total Deductible Amount to be the same as the Amount in RUT and ROT Distribution, as seen in pictures below. This invoice is created with the same integration.
Sine middle of january, we get this instead:
When creating in the UI, I get the same problem. See picture below.
Thank you, we'll have a look at it.
Hi,
As far as we can see, the box for "distributeAutomatically" works correctly as it takes the total and distribute it over the people registered under the distribution.
It seems like the amount you are sending on the line for distribution is incorrect:
Hi
Normally the value is 30% of the work, but in these cases it is not. Labor cost concerning heat pump installations are not always 30%, and until january we have been able to override the logic in Visma.net trough the API. Now we can not do that.
Alright, thank you. It looks like you should be able to set the deductible amount on the invoice line, however this seems to have been set to a read only field.
We'll check how this is meant to be handled with the development team.
Is there anything else you have noticed is incorrect when it comes to deductible services?
Thanks.
Yes we have noticed another problem with the deductible services but we are not sure they are API related. We have reported this to the support, can I send you the ticket-nbr?
Sure, we can have a look and see if it is related at least. This case does not seem to be solely API related as well, since the same issue occurs when trying to do it via the UI as well.
Hi,
Yes the case is currently waiting to be picked up for from the developers.
We'll inform when we have more information.
Thank you.
Hi,
It is still in the backlog, we have asked the development team for an update.
Hi,
We have still not received any updates regarding the case.
If you have any concerns regarding the solution/implementation time of this case, we recommend that you get in contact with your partner service.
Thank you.
Hi,
The status of the ticket has not changed. We have once again asked the team to update this.
Hi,
The team are still looking for the root cause of the bug.
The case is being prioritized, we will keep monitoring the case and update you as soon as we have more information.
Hi,
What result are you expecting, and what result are you getting?
To help us rule out where the issue is occurring, are you getting the same types of issues when entering an invoice with rot/rut in the UI?
Thank you.
Copyright © 2022 Visma.com. All rights reserved.