Hello We are trying to add a voucher to an existing batch through the api, but are getting the error "Voucher no. XXXXXX is used before". We need to use the same voucher number, and adding a voucher with the same number works in the ui, see below. How do we make it work using the api? Here is our request. mutation add_voucher {
useCompany(no: 2860985) {
voucher_create(
values: [{
batchNo: 27
voucherNo: 2191594
lineNo: 4
voucherType: 26
valueDate: 20240930
voucherDate: 20240930
debitAccountNo : 4011 # material
amountInCurrency: 4154
orgUnit1: 2
orgUnit2: 219890
}]
) {
affectedRows
items {
batchNo
voucherNo
voucherDate
valueDate
}
}
}
} Works in the ui:
... View more