My Products
Help
Michel V
CONTRIBUTOR ***

Updating released supplierinvoice with FT=1 resets the invoice balance

by Michel V

Hello, 

It looks like when updating a released supplierinvoice with the GET parameter FT=1, it also resets the total balance of the invoice.

1. Create a supplierinvoice
2. Release the supplierinvoice
3. Add a payment to the supplierinvoice and release this one aswell

4. Update the supplierinvoice through the API

Endpoint: /controller/api/v1/supplierInvoice/{documentType}/{invoiceNumber}?FT=1
Body: 

{
	"paySelected": {
		"value": "true"
	}
}

 

MichelV_0-1657195222862.png

 

2 REPLIES 2

by Magnus Johnsen

Hi,

For what reason are you using the feature toggle?

We'll have a look at this, thank you. 

Michel V
CONTRIBUTOR ***

by Michel V

Hi Magnus,

We use it to set the "Approved for payment" check in the financial details of the invoice. In some cases this happens after the invoice has been released. Now what happend here, with resetting the balance, is a weird one because the end user went of all the normal tracks he is supposed to be and did this all manual and added a payment to it. But the end result is still a bit strange.


Thanks,

Michel