My Products
Help
RMaarssen
CONTRIBUTOR *

Retainage not applied when POSTing a SupplierInvoice

by RMaarssen (Updated ‎30-03-2021 10:45 by Yıldırım VISMA )

We POST a SupplierInvoice with a different percentage (60% in this example) as which is filled on the Supplier card.

 

This is the JSON:

 

 

{
	"documentType": {
		"value": "Invoice"
	},
	"date": {
		"value": "2020-02-01"
	},
	"financialPeriod": {
		"value": "202002"
	},
	"supplierReference": {
		"value": "1985011"
	},
	"description": {
		"value": "Memo/5001"
	},
	"supplierNumber": {
		"value": "243234"
	},
	"currencyId": {
		"value": "EUR"
	},
	"paymentRefNo": {
		"value": "1985001"
	},
	"creditTermsId": {
		"value": "14"
	},
	"cashDiscountDate": {
		"value": "2020-02-01"
	},
	"branchNumber": {
		"value": "OrgWater"
	},
	"taxCalculationMode": {
		"value": "TaxSetting"
	},
	"supplierTaxZone": {
		"value": "NL"
	},
	"applyRetainage": {
		"value": true
	},

	"taxDetailLines": [{
		"taxId": {
			"value": "3         "
		},
		"taxableAmount": {
			"value": 100.00
		},
		"vatAmount": {
			"value": 21.00
		}
	}],
	"invoiceLines": [{
		"operation": "Insert",
		"lineNumber": {
			"value": 1
		},
		"transactionDescription": {
			"value": "Memo/5001"
		},
		"quantity": {
			"value": 0
		},
		"costInCurrency": {
			"value": 100.00
		},
		"accountNumber": {
			"value": "4610"
		},
		"vatCodeId": {
			"value": "1"
		},
		"retainagePct": {
			"value": 60
		},
		"curyRetainageAmt": {
			"value": 60
		},
		"branchNumber": {
			"value": "OrgWater"
		},
		"projectId": {
			"value": "X"
		}
	}]
}

 

 

But the API still applies the percentage from the Supplier?

 

2021-03-23_12-09-54.png

3 REPLIES 3
RMaarssen
CONTRIBUTOR *

by RMaarssen

Thanks, we will always provide 

 

"retainagePct": {
"value":
},
"curyRetainageAmt": {
"value":
},

 

🙂

Accepted solution
Yıldırım
VISMA

by Yıldırım (Updated ‎24-03-2021 18:33 by Yıldırım VISMA )

Hello, 


Currently, Supplier Invoice > Retainage > :Default Retainage" field is not exposed via SupplierInvoiceUpdateDto therefore cannot be modified via the API.
defaukt_retainage.png


However,
according to our tests, default retainage is not a qualifier when the following invoiceLine level retainage fields are used.
These fields are the determinants of the retainage calculations regardless of the default value inherited from the supplier card.


Calculations.png

----------------

 

"retainagePct": {
			"value": 
		},
"curyRetainageAmt": {
			"value":
		},

 

2021-03-24 18_12_25-Window.png

----------------

Yıldırım
VISMA

by Yıldırım

Hello, 
we'll look into it and get back to you.