My Products
Help
KonsultVn
CHAMPION ***

RutRot information on CustomerInvoiceV2

by KonsultVn

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"
}
]
}
]
}

20 REPLIES 20
KonsultVn
CHAMPION ***

by KonsultVn

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. 

KonsultVn_0-1649054359415.png

KonsultVn_1-1649054464793.png

 

Sine middle of january, we get this instead:

KonsultVn_2-1649054728816.png

KonsultVn_3-1649054764355.png

 

When creating in the UI, I get the same problem. See picture below. 

KonsultVn_4-1649055075297.png

 

 

 

by Magnus Johnsen

Thank you, we'll have a look at it.

KonsultVn
CHAMPION ***

by KonsultVn

Hi Magnus, what is the status on this?

by Magnus Johnsen (Updated ‎07-04-2022 08:42 by Magnus Johnsen VISMA )

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:

  "amount": { "value": 14542 }
Should this value not be 30% for VVS work?
KonsultVn
CHAMPION ***

by KonsultVn

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. 

by Magnus Johnsen

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?

KonsultVn
CHAMPION ***

by KonsultVn

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?

by Magnus Johnsen

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. 

KonsultVn
CHAMPION ***

by KonsultVn

Thanks. Customer case-number is 00146406. Do you reach it?

KonsultVn
CHAMPION ***

by KonsultVn

Hi Magnus

 

Have you had a chance to look at this? Tell me if you want us to inform you more about the case by phone. 

 

Best regards

Linnea

by Magnus Johnsen

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. 

KonsultVn
CHAMPION ***

by KonsultVn

Hi Magnus, do you have any status from the developers?

 

Br

Linnea

by Magnus Johnsen

Hi,

It is still in the backlog, we have asked the development team for an update.

KonsultVn
CHAMPION ***

by KonsultVn

Hi Magnus

 

Do you have any status update?

Br

Linnea

by Magnus Johnsen

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. 

KonsultVn
CHAMPION ***

by KonsultVn

Hi Magnus, any news?

Br

Linnea

by Magnus Johnsen

Hi,

The status of the ticket has not changed. We have once again asked the team to update this.

KonsultVn
CHAMPION ***

by KonsultVn

Hi Magnus, any news today?

 

Br

Linnea

by Magnus Johnsen

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.

by Magnus Johnsen

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.