to get a personalized navigation.
to get a personalized navigation.
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?
Solved! Go to Solution.
Hello,
Currently, Supplier Invoice > Retainage > :Default Retainage" field is not exposed via SupplierInvoiceUpdateDto therefore cannot be modified via the API.
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.
----------------
"retainagePct": {
"value":
},
"curyRetainageAmt": {
"value":
},
----------------
Copyright © 2022 Visma.com. All rights reserved.